@bridgeline-digital/hawksearch-handlebars-ui 6.4.0-beta.1 → 6.4.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * name: @bridgeline-digital/hawksearch-handlebars-ui
3
3
  *
4
- * version: v6.4.0-beta.1
4
+ * version: v6.4.0-beta.3
5
5
  *
6
6
  * description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
7
7
  *
8
8
  * author: Bridgeline Digital
9
9
  */
10
- var e=Object.create,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,s=(s,o,c)=>(c=null!=s?e(n(s)):{},((e,n,s,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var c,l=r(n),h=0,d=l.length;h<d;h++)c=l[h],i.call(e,c)||c===s||t(e,c,{get:(e=>n[e]).bind(null,c),enumerable:!(o=a(n,c))||o.enumerable});return e})(!o&&s&&s.__esModule?c:t(c,"default",{value:s,enumerable:!0}),s)),o=((e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports))((e,t)=>{!function(a,r){"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof e?e.Handlebars=r():a.Handlebars=r()}(e,function(){return function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(2)),i=r(a(83)),s=a(84),o=a(89),c=r(a(90)),l=r(a(87)),h=r(a(82)),d=n.default.create;function u(){var e=d();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=i.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=c.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var p=u();p.create=u,h.default(p),p.Visitor=l.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var r=a(3).default,n=a(1).default;t.__esModule=!0;var i=r(a(4)),s=n(a(76)),o=n(a(6)),c=r(a(5)),l=r(a(77)),h=n(a(82));function d(){var e=new i.HandlebarsEnvironment;return c.extend(e,i),e.SafeString=s.default,e.Exception=o.default,e.Utils=c,e.escapeExpression=c.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var u=d();u.create=d,h.default(u),u.default=u,t.default=u,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=d;var n=a(5),i=r(a(6)),s=a(10),o=a(70),c=r(a(72)),l=a(73);t.VERSION="4.7.9",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var h="[object Object]";function d(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(n.toString.call(e)===h){if(t)throw new i.default("Arg not supported with multiple helpers");n.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(n.toString.call(e)===h)n.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(n.toString.call(e)===h){if(t)throw new i.default("Arg not supported with multiple decorators");n.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}},t.log=c.default.log,t.createFrame=n.createFrame,t.logger=c.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var a=0,r=e.length;a<r;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return n.test(e)?e.replace(r,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,n=/[&<>"'`=]/;function i(e){return a[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var c=function(e){return"function"==typeof e};c(/x/)&&(t.isFunction=c=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=c;var l=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=l},function(e,t,a){"use strict";var r=a(7).default;t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var a=t&&t.loc,s=void 0,o=void 0,c=void 0,l=void 0;a&&(s=a.start.line,o=a.end.line,c=a.start.column,l=a.end.column,e+=" - "+s+":"+c);for(var h=Error.prototype.constructor.call(this,e),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{a&&(this.lineNumber=s,this.endLineNumber=o,r?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=c,this.endColumn=l))}catch(u){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var r=a(9);e.exports=function(e,t,a){return r.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){n.default(e),i.default(e),s.default(e),o.default(e),c.default(e),l.default(e),h.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||(e.helpers[t]=void 0))};var n=r(a(11)),i=r(a(12)),s=r(a(65)),o=r(a(66)),c=r(a(67)),l=r(a(68)),h=r(a(69))},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,a){var n=a.inverse,i=a.fn;if(!0===t)return i(this);if(!1===t||null==t)return n(this);if(r.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):n(this);if(a.data&&a.ids){var s=r.createFrame(a.data);s.contextPath=r.appendContextPath(a.data.contextPath,a.name),a={data:s}}return i(t,a)})},e.exports=t.default},function(e,t,a){"use strict";var r=a(13).default,n=a(43).default,i=a(55).default,s=a(60).default,o=a(1).default;t.__esModule=!0;var c=a(5),l=o(a(6));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new l.default("Must pass iterator to #each");var a,o=t.fn,h=t.inverse,d=0,u="",p=void 0,g=void 0;function m(t,a,r){p&&(p.key=t,p.index=a,p.first=0===a,p.last=!!r,g&&(p.contextPath=g+t)),u+=o(e[t],{data:p,blockParams:c.blockParams([e[t],t],[g+t,null])})}if(t.data&&t.ids&&(g=c.appendContextPath(t.data.contextPath,t.ids[0])+"."),c.isFunction(e)&&(e=e.call(this)),t.data&&(p=c.createFrame(t.data)),e&&"object"==typeof e)if(c.isArray(e))for(var f=e.length;d<f;d++)d in e&&m(d,d,d===e.length-1);else if("function"==typeof r&&e[n]){for(var v=[],w=i(e),A=w.next();!A.done;A=w.next())v.push(A.value);for(f=(e=v).length;d<f;d++)m(d,d,d===e.length-1)}else a=void 0,s(e).forEach(function(e){void 0!==a&&m(a,d-1),a=e,d++}),void 0!==a&&m(a,d-1,!0);return 0===d&&(u=h(this)),u})},e.exports=t.default},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),a(42),e.exports=a(21).Symbol},function(e,t,a){"use strict";var r=a(9),n=a(16),i=a(17),s=a(18),o=a(20),c=a(24),l=a(19),h=a(27),d=a(28),u=a(30),p=a(29),g=a(31),m=a(36),f=a(37),v=a(38),w=a(39),A=a(32),y=a(26),b=r.getDesc,k=r.setDesc,_=r.create,x=m.get,E=n.Symbol,S=n.JSON,C=S&&S.stringify,M=!1,H=p("_hidden"),P=r.isEnum,I=h("symbol-registry"),D=h("symbols"),T="function"==typeof E,R=Object.prototype,B=s&&l(function(){return 7!=_(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,a){var r=b(R,t);r&&delete R[t],k(e,t,a),r&&e!==R&&k(R,t,r)}:k,q=function(e){var t=D[e]=_(E.prototype);return t._k=e,s&&M&&B(R,e,{configurable:!0,set:function(t){i(this,H)&&i(this[H],e)&&(this[H][e]=!1),B(this,e,y(1,t))}}),t},L=function(e){return"symbol"==typeof e},O=function(e,t,a){return a&&i(D,t)?(a.enumerable?(i(e,H)&&e[H][t]&&(e[H][t]=!1),a=_(a,{enumerable:y(0,!1)})):(i(e,H)||k(e,H,y(1,{})),e[H][t]=!0),B(e,t,a)):k(e,t,a)},F=function(e,t){w(e);for(var a,r=f(t=A(t)),n=0,i=r.length;i>n;)O(e,a=r[n++],t[a]);return e},Q=function(e,t){return void 0===t?_(e):F(_(e),t)},N=function(e){var t=P.call(this,e);return!(t||!i(this,e)||!i(D,e)||i(this,H)&&this[H][e])||t},U=function(e,t){var a=b(e=A(e),t);return!a||!i(D,t)||i(e,H)&&e[H][t]||(a.enumerable=!0),a},V=function(e){for(var t,a=x(A(e)),r=[],n=0;a.length>n;)i(D,t=a[n++])||t==H||r.push(t);return r},j=function(e){for(var t,a=x(A(e)),r=[],n=0;a.length>n;)i(D,t=a[n++])&&r.push(D[t]);return r},z=l(function(){var e=E();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))});T||(E=function(){if(L(this))throw TypeError("Symbol is not a constructor");return q(u(arguments.length>0?arguments[0]:void 0))},c(E.prototype,"toString",function(){return this._k}),L=function(e){return e instanceof E},r.create=Q,r.isEnum=N,r.getDesc=U,r.setDesc=O,r.setDescs=F,r.getNames=m.get=V,r.getSymbols=j,s&&!a(41)&&c(R,"propertyIsEnumerable",N,!0));var Y={for:function(e){return i(I,e+="")?I[e]:I[e]=E(e)},keyFor:function(e){return g(I,e)},useSetter:function(){M=!0},useSimple:function(){M=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=p(e);Y[e]=T?t:q(t)}),M=!0,o(o.G+o.W,{Symbol:E}),o(o.S,"Symbol",Y),o(o.S+o.F*!T,"Object",{create:Q,defineProperty:O,defineProperties:F,getOwnPropertyDescriptor:U,getOwnPropertyNames:V,getOwnPropertySymbols:j}),S&&o(o.S+o.F*(!T||z),"JSON",{stringify:function(e){if(void 0!==e&&!L(e)){for(var t,a,r=[e],n=1,i=arguments;i.length>n;)r.push(i[n++]);return"function"==typeof(t=r[1])&&(a=t),!a&&v(t)||(t=function(e,t){if(a&&(t=a.call(this,e,t)),!L(t))return t}),r[1]=t,C.apply(S,r)}}}),d(E,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t,a){e.exports=!a(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,a){var r=a(16),n=a(21),i=a(22),s="prototype",o=function(e,t,a){var c,l,h,d=e&o.F,u=e&o.G,p=e&o.S,g=e&o.P,m=e&o.B,f=e&o.W,v=u?n:n[t]||(n[t]={}),w=u?r:p?r[t]:(r[t]||{})[s];for(c in u&&(a=t),a)(l=!d&&w&&c in w)&&c in v||(h=l?w[c]:a[c],v[c]=u&&"function"!=typeof w[c]?a[c]:m&&l?i(h,r):f&&w[c]==h?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[s]=e[s],t}(h):g&&"function"==typeof h?i(Function.call,h):h,g&&((v[s]||(v[s]={}))[c]=h))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,e.exports=o},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var r=a(23);e.exports=function(e,t,a){if(r(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,r){return e.call(t,a,r)};case 3:return function(a,r,n){return e.call(t,a,r,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,a){e.exports=a(25)},function(e,t,a){var r=a(9),n=a(26);e.exports=a(18)?function(e,t,a){return r.setDesc(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,a){var r=a(16),n="__core-js_shared__",i=r[n]||(r[n]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,a){var r=a(9).setDesc,n=a(17),i=a(29)("toStringTag");e.exports=function(e,t,a){e&&!n(e=a?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,a){var r=a(27)("wks"),n=a(30),i=a(16).Symbol;e.exports=function(e){return r[e]||(r[e]=i&&i[e]||(i||n)("Symbol."+e))}},function(e,t){var a=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+r).toString(36))}},function(e,t,a){var r=a(9),n=a(32);e.exports=function(e,t){for(var a,i=n(e),s=r.getKeys(i),o=s.length,c=0;o>c;)if(i[a=s[c++]]===t)return a}},function(e,t,a){var r=a(33),n=a(35);e.exports=function(e){return r(n(e))}},function(e,t,a){var r=a(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var r=a(32),n=a(9).getNames,i={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.get=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return n(e)}catch(t){return s.slice()}}(e):n(r(e))}},function(e,t,a){var r=a(9);e.exports=function(e){var t=r.getKeys(e),a=r.getSymbols;if(a)for(var n,i=a(e),s=r.isEnum,o=0;i.length>o;)s.call(e,n=i[o++])&&t.push(n);return t}},function(e,t,a){var r=a(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,a){var r=a(40);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=!0},function(e,t){},function(e,t,a){e.exports={default:a(44),__esModule:!0}},function(e,t,a){a(45),a(51),e.exports=a(29)("iterator")},function(e,t,a){"use strict";var r=a(46)(!0);a(48)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,a=this._i;return a>=t.length?{value:void 0,done:!0}:(e=r(t,a),this._i+=e.length,{value:e,done:!1})})},function(e,t,a){var r=a(47),n=a(35);e.exports=function(e){return function(t,a){var i,s,o=String(n(t)),c=r(a),l=o.length;return c<0||c>=l?e?"":void 0:(i=o.charCodeAt(c))<55296||i>56319||c+1===l||(s=o.charCodeAt(c+1))<56320||s>57343?e?o.charAt(c):i:e?o.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t){var a=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:a)(e)}},function(e,t,a){"use strict";var r=a(41),n=a(20),i=a(24),s=a(25),o=a(17),c=a(49),l=a(50),h=a(28),d=a(9).getProto,u=a(29)("iterator"),p=!([].keys&&"next"in[].keys()),g="@@iterator",m="keys",f="values",v=function(){return this};e.exports=function(e,t,a,w,A,y,b){l(a,t,w);var k,_,x=function(e){if(!p&&e in M)return M[e];switch(e){case m:case f:return function(){return new a(this,e)}}return function(){return new a(this,e)}},E=t+" Iterator",S=A==f,C=!1,M=e.prototype,H=M[u]||M[g]||A&&M[A],P=H||x(A);if(H){var I=d(P.call(new e));h(I,E,!0),!r&&o(M,g)&&s(I,u,v),S&&H.name!==f&&(C=!0,P=function(){return H.call(this)})}if(r&&!b||!p&&!C&&M[u]||s(M,u,P),c[t]=P,c[E]=v,A)if(k={values:S?P:x(f),keys:y?P:x(m),entries:S?x("entries"):P},b)for(_ in k)_ in M||i(M,_,k[_]);else n(n.P+n.F*(p||C),t,k);return k}},function(e,t){e.exports={}},function(e,t,a){"use strict";var r=a(9),n=a(26),i=a(28),s={};a(25)(s,a(29)("iterator"),function(){return this}),e.exports=function(e,t,a){e.prototype=r.create(s,{next:n(1,a)}),i(e,t+" Iterator")}},function(e,t,a){a(52);var r=a(49);r.NodeList=r.HTMLCollection=r.Array},function(e,t,a){"use strict";var r=a(53),n=a(54),i=a(49),s=a(32);e.exports=a(48)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,a=this._i++;return!e||a>=e.length?(this._t=void 0,n(1)):n(0,"keys"==t?a:"values"==t?e[a]:[a,e[a]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,a){e.exports={default:a(56),__esModule:!0}},function(e,t,a){a(51),a(45),e.exports=a(57)},function(e,t,a){var r=a(39),n=a(58);e.exports=a(21).getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,a){var r=a(59),n=a(29)("iterator"),i=a(49);e.exports=a(21).getIteratorMethod=function(e){if(null!=e)return e[n]||e["@@iterator"]||i[r(e)]}},function(e,t,a){var r=a(34),n=a(29)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,a,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=(t=Object(e))[n])?a:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,a){e.exports={default:a(61),__esModule:!0}},function(e,t,a){a(62),e.exports=a(21).Object.keys},function(e,t,a){var r=a(63);a(64)("keys",function(e){return function(t){return e(r(t))}})},function(e,t,a){var r=a(35);e.exports=function(e){return Object(r(e))}},function(e,t,a){var r=a(20),n=a(21),i=a(19);e.exports=function(e,t){var a=(n.Object||{})[e]||Object[e],s={};s[e]=t(a),r(r.S+r.F*i(function(){a(1)}),"Object",s)}},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(6));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new n.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=a(5),i=r(a(6));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return n.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||n.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,a){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],a=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var n=1;null!=a.hash.level?n=a.hash.level:a.data&&null!=a.data.level&&(n=a.data.level),t[0]=n,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,a){return e?a.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=a(5),i=r(a(6));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");n.isFunction(e)&&(e=e.call(this));var a=t.fn;if(n.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=n.createFrame(t.data)).contextPath=n.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:r,blockParams:n.blockParams([e],[r&&r.contextPath])})})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){n.default(e)};var n=r(a(71))},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5);t.default=function(e){e.registerDecorator("inline",function(e,t,a,n){var i=e;return t.partials||(t.partials={},i=function(n,i){var s=a.partials;a.partials=r.extend({},s,t.partials);var o=e(n,i);return a.partials=s,o}),t.partials[n.args[0]]=n.fn,i})},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5),n={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(n.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];console[t].apply(console,r)}}};t.default=n,e.exports=t.default},function(e,t,a){"use strict";var r=a(74).default,n=a(60).default,i=a(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=r(null);t.__proto__=!1,s.extend(t,e.allowedProtoProperties);var a=r(null);return a.constructor=!1,a.__defineGetter__=!1,a.__defineSetter__=!1,a.__lookupGetter__=!1,a.__lookupSetter__=!1,s.extend(a,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:a,defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,a){return l("function"==typeof e?t.methods:t.properties,a)},t.resetLoggedProperties=function(){n(c).forEach(function(e){delete c[e]})};var s=a(5),o=i(a(72)),c=r(null);function l(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==c[e]&&(c[e]=!0,o.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,a){e.exports={default:a(75),__esModule:!0}},function(e,t,a){var r=a(9);e.exports=function(e,t){return r.create(e,t)}},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var r=a(78).default,n=a(60).default,i=a(3).default,s=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=l.COMPILER_REVISION;if(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)return;if(t<l.LAST_COMPATIBLE_COMPILER_REVISION){var r=l.REVISION_CHANGES[a],n=l.REVISION_CHANGES[t];throw new c.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+n+").")}throw new c.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new c.default("No environment passed to template");if(!e||!e.main)throw new c.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0];var n={strict:function(e,t,a){if(!e||!(t in e))throw new c.default('"'+t+'" not defined in '+e,{loc:a});return n.lookupProperty(e,t)},lookupProperty:function(e,t){var a=e[t];return null==a||Object.prototype.hasOwnProperty.call(e,t)||u.resultIsAllowed(a,n.protoAccessControl,t)?a:void 0},lookup:function(e,t){for(var a=e.length,r=0;r<a;r++){var i=e[r]&&n.lookupProperty(e[r],t);if(null!=i)return i}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(a,r,n){n.hash&&(r=o.extend({},r,n.hash),n.ids&&(n.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,r,n),n.hooks=this.hooks,n.protoAccessControl=this.protoAccessControl;var i=t.VM.invokePartial.call(this,a,r,n);if(null==i&&t.compile&&(n.partials[n.name]=t.compile(a,e.compilerOptions,t),i=n.partials[n.name](r,n)),null!=i){if(n.indent){for(var s=i.split("\n"),l=0,h=s.length;l<h&&(s[l]||l+1!==h);l++)s[l]=n.indent+s[l];i=s.join("\n")}return i}throw new c.default("The partial "+n.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,r,n){var i=this.programs[e],s=this.fn(e);return t||n||r||a?i=p(this,e,s,t,a,r,n):i||(i=this.programs[e]=p(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var a=e||t;return e&&t&&e!==t&&(a=o.extend({},t,e)),a},nullContext:r({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=a.data;i._setup(a),!a.partial&&e.useData&&(r=function(e,t){t&&"root"in t||((t=t?l.createFrame(t):{}).root=e);return t}(t,r));var s=void 0,o=e.useBlockParams?[]:void 0;function c(t){return""+e.main(n,t,n.helpers,n.partials,r,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(c=f(e.main,c,n,a.depths||[],r,o))(t,a)}return i.isTop=!0,i._setup=function(r){if(r.partial)n.protoAccessControl=r.protoAccessControl,n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators,n.hooks=r.hooks;else{var i={};v(i,t.helpers,n),v(i,r.helpers,n),n.helpers=i,e.usePartial&&(n.partials=n.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=o.extend({},t.decorators,r.decorators)),n.hooks={},n.protoAccessControl=u.createProtoAccessControl(r);var s=r.allowCallsToHelperMissing||a;h.moveHelperToHooks(n,"helperMissing",s),h.moveHelperToHooks(n,"blockHelperMissing",s)}},i._child=function(t,a,r,i){if(e.useBlockParams&&!r)throw new c.default("must pass block params");if(e.useDepths&&!i)throw new c.default("must pass parent depths");return p(n,t,e[t],a,0,r,i)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,a){e?e.call||a.name||(a.name=e,e=m(a.partials,e)):e="@partial-block"===a.name?m(a.data,"partial-block"):m(a.partials,a.name);return e},t.invokePartial=function(e,t,a){var r=m(a.data,"partial-block");a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var n=void 0;a.fn&&a.fn!==g&&function(){a.data=l.createFrame(a.data);var e=a.fn;n=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=l.createFrame(a.data),a.data["partial-block"]=r,e(t,a)},e.partials&&(a.partials=o.extend({},a.partials,e.partials))}();void 0===e&&n&&(e=n);if(void 0===e)throw new c.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=g;var o=i(a(5)),c=s(a(6)),l=a(4),h=a(10),d=a(81),u=a(73);function p(e,t,a,r,n,i,s){function o(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),a(e,t,e.helpers,e.partials,n.data||r,i&&[n.blockParams].concat(i),o)}return(o=f(a,o,e,s,r,i)).program=t,o.depth=s?s.length:0,o.blockParams=n||0,o}function g(){return""}function m(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function f(e,t,a,r,n,i){if(e.decorator){var s={};t=e.decorator(t,s,a,r&&r[0],n,i,r),o.extend(t,s)}return t}function v(e,t,a){t&&n(t).forEach(function(r){var n=t[r];e[r]=function(e,t){var a=t.lookupProperty;return d.wrapHelper(e,function(e){return e.lookupProperty=a,e})}(n,a)})}},function(e,t,a){e.exports={default:a(79),__esModule:!0}},function(e,t,a){a(80),e.exports=a(21).Object.seal},function(e,t,a){var r=a(40);a(64)("seal",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var r=a(60).default,n=a(1).default,i=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var a=u(e,t);return new o.default(t).accept(a)};var s=n(a(85)),o=n(a(86)),c=i(a(88)),l=n(a(6)),h=a(5);t.parser=s.default;var d={};function u(e,t){return"Program"===e.type?(p(e),e):(s.default.yy=d,d.locInfo=function(e){return new d.SourceLocation(t&&t.srcName,e)},s.default.parse(e))}function p(e){if(null!=e)if(Array.isArray(e))e.forEach(p);else if("object"==typeof e){if("PathExpression"===e.type){if(!("number"==typeof(a=e.depth)&&isFinite(a)&&Math.floor(a)===a&&a>=0))throw new l.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new l.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if("string"!=typeof e.parts[t])throw new l.default("Invalid AST: PathExpression.parts must only contain strings")}else if("NumberLiteral"===e.type){if("number"!=typeof e.value||!isFinite(e.value))throw new l.default("Invalid AST: NumberLiteral.value must be a number")}else if("BooleanLiteral"===e.type&&"boolean"!=typeof e.value)throw new l.default("Invalid AST: BooleanLiteral.value must be a boolean");var a;r(e).forEach(function(t){"loc"!==t&&p(e[t])})}}h.extend(d,c)},function(e,t){"use strict";t.__esModule=!0,t.default=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,r,n,i,s){var o=i.length-1;switch(n){case 1:return i[o-1];case 2:this.$=r.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(i[o]),strip:r.stripFlags(i[o],i[o]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=r.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=r.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:r.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:r.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:r.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var c=r.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),l=r.prepareProgram([c],i[o-1].loc);l.chained=!0,this.$={strip:i[o-2].strip,program:l,chain:!0};break;case 21:this.$={path:i[o-1],strip:r.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=r.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],r.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:r.stripFlags(i[o-4],i[o]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:r.stripFlags(i[o-4],i[o])};break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(i[o-2]),value:i[o],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(i[o-1]);break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[o],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,i[o],this._$);break;case 43:this.$=r.preparePath(!1,i[o],this._$);break;case 44:i[o-2].push({part:r.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 45:this.$=[{part:r.id(i[o]),original:i[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:i[o-1].push(i[o]);break;case 98:case 100:this.$=[i[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,a=[0],r=[null],n=[],i=this.table,s="",o=0,c=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;n.push(h);var d=this.lexer.options&&this.lexer.options.ranges;function u(){var e=t.lexer.lex()||1;return"number"!=typeof e&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,g,m,f,v,w,A,y,b,k={};;){if(m=a[a.length-1],this.defaultActions[m]?f=this.defaultActions[m]:(null==p&&(p=u()),f=i[m]&&i[m][p]),void 0===f||!f.length||!f[0]){var _="";if(!l){for(w in b=[],i[m])this.terminals_[w]&&w>2&&b.push("'"+this.terminals_[w]+"'");_=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:b})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(f[0]){case 1:a.push(p),r.push(this.lexer.yytext),n.push(this.lexer.yylloc),a.push(f[1]),p=null,g?(p=g,g=null):(c=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,h=this.lexer.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[f[1]][1],k.$=r[r.length-A],k._$={first_line:n[n.length-(A||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(A||1)].first_column,last_column:n[n.length-1].last_column},d&&(k._$.range=[n[n.length-(A||1)].range[0],n[n.length-1].range[1]]),void 0!==(v=this.performAction.call(k,s,c,o,this.yy,f[1],r,n)))return v;A&&(a=a.slice(0,-1*A*2),r=r.slice(0,-1*A),n=n.slice(0,-1*A)),a.push(this.productions_[f[1]][0]),r.push(k.$),n.push(k._$),y=i[a[a.length-2]][a[a.length-1]],a.push(y);break;case 3:return!0}}return!0}};function t(){this.yy={}}return e.lexer={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(a=this._input.match(this.rules[i[s]]))||t&&!(a[0].length>t[0].length)||(t=a,r=s,this.options.flex));s++);return t?((n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,r){function n(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(n(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(n(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(n(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=n(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=n(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}},t.prototype=e,e.Parser=t,new t}(),e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(87));function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,a){void 0===t&&(t=e.length);var r=e[t-1],n=e[t-2];return r?"ContentStatement"===r.type?(n||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var r=e[t+1],n=e[t+2];return r?"ContentStatement"===r.type?(n||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:a}function c(e,t,a){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(a||!r.rightStripped)){var n=r.value;r.value=r.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==n}}function l(e,t,a){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(a||!r.leftStripped)){var n=r.value;return r.value=r.value.replace(a?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==n,r.leftStripped}}i.prototype=new n.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,n=0,i=r.length;n<i;n++){var h=r[n],d=this.accept(h);if(d){var u=s(r,n,a),p=o(r,n,a),g=d.openStandalone&&u,m=d.closeStandalone&&p,f=d.inlineStandalone&&u&&p;d.close&&c(r,n,!0),d.open&&l(r,n,!0),t&&f&&(c(r,n),l(r,n)&&"PartialStatement"===h.type&&(h.indent=/([ \t]+$)/.exec(r[n-1].original)[1])),t&&g&&(c((h.program||h.inverse).body),l(r,n)),t&&m&&(c(r,n),l((h.inverse||h.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,r=a,n=a;if(a&&a.chained)for(r=a.body[0].program;n.chained;)n=n.body[n.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((r||t).body)};if(e.openStrip.close&&c(t.body,null,!0),a){var h=e.inverseStrip;h.open&&l(t.body,null,!0),h.close&&c(r.body,null,!0),e.closeStrip.open&&l(n.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(r.body)&&(l(t.body),c(r.body))}else e.closeStrip.open&&l(t.body,null,!0);return i},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(6));function i(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function c(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!i.prototype[a.type])throw new n.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new n.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new n.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:c,PartialBlockStatement:function(e){c.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var r=e?"@":"",i=[],s=0,o=0,c=t.length;o<c;o++){var l=t[o].part,h=t[o].original!==l;if(r+=(t[o].separator||"")+l,h||".."!==l&&"."!==l&&"this"!==l)i.push(l);else{if(i.length>0)throw new n.default("Invalid path: "+r,{loc:a});".."===l&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:r,loc:a}},t.prepareMustache=function(e,t,a,r,n,i){var s=r.charAt(3)||r.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:n,loc:this.locInfo(i)}},t.prepareRawBlock=function(e,t,a,r){i(e,a),r=this.locInfo(r);var n={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,a,r,s,o){r&&r.path&&i(e,r);var c=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,h=void 0;if(a){if(c)throw new n.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=r.strip),h=a.strip,l=a.program}s&&(s=l,l=t,t=s);return{type:c?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:h,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,r=e[e.length-1].loc;a&&r&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,r){return i(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(r)}};var n=r(a(6));function i(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new n.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var r=a(74).default,n=a(1).default;t.__esModule=!0,t.Compiler=l,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0);t.compat&&(t.useDepths=!0);var r=a.parse(e,t),n=(new a.Compiler).compile(r,t);return(new a.JavaScriptCompiler).compile(n,t)},t.compile=function(e,t,a){void 0===t&&(t={});if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0);t.compat&&(t.useDepths=!0);var r=void 0;function n(){var r=a.parse(e,t),n=(new a.Compiler).compile(r,t),i=(new a.JavaScriptCompiler).compile(n,t,void 0,!0);return a.template(i)}function o(e,t){return r||(r=n()),r.call(this,e,t)}return o._setup=function(e){return r||(r=n()),r._setup(e)},o._child=function(e,t,a,i){return r||(r=n()),r._child(e,t,a,i)},o};var i=n(a(6)),s=a(5),o=n(a(83)),c=[].slice;function l(){}function h(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!h(e[a],t[a]))return!1;return!0}}function d(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}l.prototype={compiler:l,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var r=this.opcodes[a],n=e.opcodes[a];if(r.opcode!==n.opcode||!h(r.args,n.args))return!1}t=this.children.length;for(a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(r(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,r=0;r<a;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){d(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,a):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new i.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,n="SubExpression"===e.name.type;n&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",n,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){d(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var r=e.path,n=r.parts[0],i=null!=t||null!=a;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",n,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var r=this.setupFullMustacheParams(e,t,a),n=e.path,s=n.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",r.length,s);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);n.strict=!0,n.falsy=!0,this.accept(n),this.opcode("invokeHelper",r.length,n.original,o.default.helpers.simpleId(n))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),r=!e.depth&&!a&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,r=t.length;for(this.opcode("pushHash");a<r;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:c.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),r=!a&&o.default.helpers.helperExpression(e),n=!a&&(r||t);if(n&&!r){var i=e.path.parts[0],s=this.options;s.knownHelpers[i]?r=!0:s.knownHelpersOnly&&(n=!1)}return r?"helper":n?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,r){var n=e.params;return this.pushParams(n),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),n},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var r=this.options.blockParams[t],n=r&&s.indexOf(r,e);if(r&&n>=0)return[t,n]}}}},function(e,t,a){"use strict";var r=a(60).default,n=a(1).default;t.__esModule=!0;var i=a(4),s=n(a(6)),o=a(5),c=n(a(91));function l(e){this.value=e}function h(){}h.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,a,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,i=void 0,o=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)i=n[c],this.source.currentLocation=i.loc,o=o||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(r);if(this.isChild)return h;var d={compiler:this.compilerInfo(),main:h};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var u=this.context,p=u.programs,g=u.decorators;for(c=0,l=p.length;c<l;c++)d[c]=p[c],g[c]&&(d[c+"_d"]=g[c],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),r?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),t.srcName?(d=d.toStringWithSourceMap({file:t.destName})).map=d.map&&d.map.toString():d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new c.default(this.options.srcName),this.decorators=new c.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",n=this.stackVars.concat(this.registers.list);n.length>0&&(a+=", "+n.join(", "));var i=0;r(this.aliases).forEach(function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(a+=", alias"+ ++i+"="+e,r.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(a+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(a);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,r=void 0,n=void 0,i=void 0,s=void 0;return this.source.each(function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(n?i.prepend("buffer += "):r=!0,s.add(";"),i=s=void 0),n=!0,t||(a=!1))}),a?i?(i.prepend("return "),s.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var r=this.popStack();a.splice(1,0,r),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,r){var n=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[n++])),this.resolvePath("context",e,n,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,r,n){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,r,n){var i=t.popStack(),s=a.length;e&&s--;for(var o=r;o<s;o++)i=t.nameLookup(i,a[o],n);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(a[s]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&n,this,t,a,e));else for(var s=t.length,o=function(a){i.replaceStack(function(n){var s=i.nameLookup(n,t[a],e);return r?[" && ",s]:[" != null ? ",s," : ",n]})},c=a;c<s;c++)o(c)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["var decorator = ",a,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+t+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,a){var r=this.popStack(),n=this.setupHelper(e,t),i=[];a&&i.push(n.name),i.push(r),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],o=this.source.functionCall(s,"call",n.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var r=1;r<e.length;r++)a.push(t,e[r]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),n=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(n[0]="(helper = ",n.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",n,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,a){var r=[],n=this.setupParams(t,1,r);e&&(t=this.popStack(),delete n.name),a&&(n.indent=JSON.stringify(a)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),r.push(n),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),a=void 0,r=void 0,n=void 0;this.trackIds&&(n=this.popStack()),this.stringParams&&(r=this.popStack(),a=this.popStack());var i=this.hash;a&&(i.contexts[e]=a),r&&(i.types[e]=r),n&&(i.ids[e]=n),i.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:h,compileChildren:function(e,t){for(var a=e.children,r=void 0,n=void 0,i=0,s=a.length;i<s;i++){r=a[i],n=new this.compiler;var o=this.matchExistingProgram(r);if(null==o){var c=this.context.programs.push("")-1;r.index=c,r.name="program"+c,this.context.programs[c]=n.compile(r,t,this.context,!this.precompile),this.context.decorators[c]=n.decorators,this.context.environments[c]=r,this.useDepths=this.useDepths||n.useDepths,this.useBlockParams=this.useBlockParams||n.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=o.index,r.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof l||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new l(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,r=void 0,n=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var i=this.popStack(!0);if(i instanceof l)t=["(",a=[i.value]],n=!0;else{r=!0;var o=this.incrStack();t=["((",this.push(o)," = ",i,")"],a=this.topStack()}var c=e.call(this,a);n||this.popStack(),r&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var r=e[t];if(r instanceof l)this.compileStack.push(r);else{var n=this.incrStack();this.pushSource([n," = ",r,";"]),this.compileStack.push(n)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof l)return a.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof l?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,a){var r={},n=[],i=[],s=[],o=!a,c=void 0;o&&(a=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var l=this.popStack(),h=this.popStack();(h||l)&&(r.fn=h||"container.noop",r.inverse=l||"container.noop");for(var d=t;d--;)c=this.popStack(),a[d]=c,this.trackIds&&(s[d]=this.popStack()),this.stringParams&&(i[d]=this.popStack(),n[d]=this.popStack());return o&&(r.args=this.source.generateArray(a)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(i),r.contexts=this.source.generateArray(n)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,a,r){var n=this.setupParams(e,t,a);return n.loc=JSON.stringify(this.source.currentLocation),n=this.objectLiteral(n),r?(this.useRegister("options"),a.push("options"),["options=",n]):a?(a.push(n),""):n}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=h.RESERVED_WORDS={},a=0,r=e.length;a<r;a++)t[e[a]]=!0}(),h.isValidJavaScriptVariableName=function(e){return!h.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=h,e.exports=t.default},function(e,t,a){"use strict";var r=a(60).default;t.__esModule=!0;var n=a(5),i=void 0;function s(e,t,a){if(n.isArray(e)){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t.wrap(e[i],a));return r}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,a,r){this.src="",r&&this.add(r)}).prototype={add:function(e){n.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){n.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add([" ",t,"\n"])}),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=s(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];r(e).forEach(function(r){var n=s(e[r],t);"undefined"!==n&&a.push([t.quotedString(r),":",n])});var n=this.generateList(a);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var t=this.empty(),a=0,r=e.length;a<r;a++)a&&t.add(","),t.add(s(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])})}),c="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),d=h.Symbol,u=Object.prototype,p=u.hasOwnProperty,g=u.toString,m=d?d.toStringTag:void 0;var f=Object.prototype.toString;var v=d?d.toStringTag:void 0;function w(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=p.call(e,m),a=e[m];try{e[m]=void 0;var r=!0}catch(i){}var n=g.call(e);return r&&(t?e[m]=a:delete e[m]),n}(e):function(e){return f.call(e)}(e)}function A(e){return null!=e&&"object"==typeof e}function y(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==w(e)}var b=Array.isArray,k=d?d.prototype:void 0,_=k?k.toString:void 0;function x(e){if("string"==typeof e)return e;if(b(e))return function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}(e,x)+"";if(y(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var E=/\s/;var S=/^\s+/;function C(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&E.test(e.charAt(t)););return t}(e)+1).replace(S,""):e}function M(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var H=/^[-+]0x[0-9a-f]+$/i,P=/^0b[01]+$/i,I=/^0o[0-7]+$/i,D=parseInt;function T(e){if("number"==typeof e)return e;if(y(e))return NaN;if(M(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=M(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=C(e);var a=P.test(e);return a||I.test(e)?D(e.slice(2),a?2:8):H.test(e)?NaN:+e}function R(e){return e}function B(e){if(!M(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var q,L=h["__core-js_shared__"],O=(q=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"";var F=Function.prototype.toString;function Q(e){if(null!=e){try{return F.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var N=/^\[object .+?Constructor\]$/,U=Function.prototype,V=Object.prototype,j=U.toString,z=V.hasOwnProperty,Y=RegExp("^"+j.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J(e){return!(!M(e)||(t=e,O&&O in t))&&(B(e)?Y:N).test(Q(e));var t}function Z(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return J(a)?a:void 0}var W=Z(h,"WeakMap"),X=Object.create,K=function(){function e(){}return function(t){if(!M(t))return{};if(X)return X(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();var G=Date.now;var $,ee,te,ae=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),re=ae?function(e,t){return ae(e,"toString",{configurable:!0,enumerable:!1,value:(a=t,function(){return a}),writable:!0});var a}:R,ne=($=re,ee=0,te=0,function(){var e=G(),t=16-(e-te);if(te=e,t>0){if(++ee>=800)return arguments[0]}else ee=0;return $.apply(void 0,arguments)});var ie=/^(?:0|[1-9]\d*)$/;function se(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&ie.test(e))&&e>-1&&e%1==0&&e<t}function oe(e,t,a){"__proto__"==t&&ae?ae(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function ce(e,t){return e===t||e!=e&&t!=t}var le=Object.prototype.hasOwnProperty;function he(e,t,a){var r=e[t];le.call(e,t)&&ce(r,a)&&(void 0!==a||t in e)||oe(e,t,a)}function de(e,t,a,r){var n=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var o=t[i],c=r?r(a[o],e[o],o,a,e):void 0;void 0===c&&(c=e[o]),n?oe(a,o,c):he(a,o,c)}return a}var ue=Math.max;function pe(e,t){return ne(function(e,t,a){return t=ue(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=ue(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=r[n];return o[t]=a(s),function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}(e,this,o)}}(e,t,R),e+"")}function ge(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function me(e){return null!=e&&ge(e.length)&&!B(e)}var fe=Object.prototype;function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fe)}function we(e){return A(e)&&"[object Arguments]"==w(e)}var Ae=Object.prototype,ye=Ae.hasOwnProperty,be=Ae.propertyIsEnumerable,ke=we(function(){return arguments}())?we:function(e){return A(e)&&ye.call(e,"callee")&&!be.call(e,"callee")};var _e="object"==typeof exports&&exports&&!exports.nodeType&&exports,xe=_e&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=xe&&xe.exports===_e?h.Buffer:void 0,Se=(Ee?Ee.isBuffer:void 0)||function(){return!1},Ce={};function Me(e){return function(t){return e(t)}}Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Pe&&Pe.exports===He&&c.process,De=function(){try{var e=Pe&&Pe.require&&Pe.require("util").types;return e||Ie&&Ie.binding&&Ie.binding("util")}catch(t){}}(),Te=De&&De.isTypedArray,Re=Te?Me(Te):function(e){return A(e)&&ge(e.length)&&!!Ce[w(e)]},Be=Object.prototype.hasOwnProperty;function qe(e,t){var a=b(e),r=!a&&ke(e),n=!a&&!r&&Se(e),i=!a&&!r&&!n&&Re(e),s=a||r||n||i,o=s?function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}(e.length,String):[],c=o.length;for(var l in e)!t&&!Be.call(e,l)||s&&("length"==l||n&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||se(l,c))||o.push(l);return o}function Le(e,t){return function(a){return e(t(a))}}var Oe=Le(Object.keys,Object),Fe=Object.prototype.hasOwnProperty;function Qe(e){return me(e)?qe(e):function(e){if(!ve(e))return Oe(e);var t=[];for(var a in Object(e))Fe.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)}var Ne,Ue=Object.prototype.hasOwnProperty,Ve=(Ne=function(e,t){if(ve(t)||me(t))de(t,Qe(t),e);else for(var a in t)Ue.call(t,a)&&he(e,a,t[a])},pe(function(e,t){var a=-1,r=t.length,n=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(n=Ne.length>3&&"function"==typeof n?(r--,n):void 0,i&&function(e,t,a){if(!M(a))return!1;var r=typeof t;return!!("number"==r?me(a)&&se(t,a.length):"string"==r&&t in a)&&ce(a[t],e)}(t[0],t[1],i)&&(n=r<3?void 0:n,r=1),e=Object(e);++a<r;){var s=t[a];s&&Ne(e,s,a,n)}return e}));var je=Object.prototype.hasOwnProperty;function ze(e){if(!M(e))return function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}(e);var t=ve(e),a=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&a.push(r);return a}function Ye(e){return me(e)?qe(e,!0):ze(e)}var Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ze=/^\w*$/;var We=Z(Object,"create");var Xe=Object.prototype.hasOwnProperty;var Ke=Object.prototype.hasOwnProperty;function Ge(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function $e(e,t){for(var a=e.length;a--;)if(ce(e[a][0],t))return a;return-1}Ge.prototype.clear=function(){this.__data__=We?We(null):{},this.size=0},Ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ge.prototype.get=function(e){var t=this.__data__;if(We){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return Xe.call(t,e)?t[e]:void 0},Ge.prototype.has=function(e){var t=this.__data__;return We?void 0!==t[e]:Ke.call(t,e)},Ge.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=We&&void 0===t?"__lodash_hash_undefined__":t,this};var et=Array.prototype.splice;function tt(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,a=$e(t,e);return!(a<0)&&(a==t.length-1?t.pop():et.call(t,a,1),--this.size,!0)},tt.prototype.get=function(e){var t=this.__data__,a=$e(t,e);return a<0?void 0:t[a][1]},tt.prototype.has=function(e){return $e(this.__data__,e)>-1},tt.prototype.set=function(e,t){var a=this.__data__,r=$e(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this};var at=Z(h,"Map");function rt(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function nt(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}nt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ge,map:new(at||tt),string:new Ge}},nt.prototype.delete=function(e){var t=rt(this,e).delete(e);return this.size-=t?1:0,t},nt.prototype.get=function(e){return rt(this,e).get(e)},nt.prototype.has=function(e){return rt(this,e).has(e)},nt.prototype.set=function(e,t){var a=rt(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this};function it(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=a.cache;if(i.has(n))return i.get(n);var s=e.apply(this,r);return a.cache=i.set(n,s)||i,s};return a.cache=new(it.Cache||nt),a}it.Cache=nt;var st=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/\\(\\)?/g,ct=function(e){var t=it(e,function(e){return 500===a.size&&a.clear(),e}),a=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(st,function(e,a,r,n){t.push(r?n.replace(ot,"$1"):a||e)}),t});function lt(e){return null==e?"":x(e)}function ht(e,t){return b(e)?e:function(e,t){if(b(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!y(e))||Ze.test(e)||!Je.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:ct(lt(e))}function dt(e){if("string"==typeof e||y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ut(e,t,a){var r=null==e?void 0:function(e,t){for(var a=0,r=(t=ht(t,e)).length;null!=e&&a<r;)e=e[dt(t[a++])];return a&&a==r?e:void 0}(e,t);return void 0===r?a:r}function pt(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}var gt=Le(Object.getPrototypeOf,Object);function mt(e){var t=this.__data__=new tt(e);this.size=t.size}mt.prototype.clear=function(){this.__data__=new tt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var a=this.__data__;if(a instanceof tt){var r=a.__data__;if(!at||r.length<199)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new nt(r)}return a.set(e,t),this.size=a.size,this};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=ft&&"object"==typeof module&&module&&!module.nodeType&&module,wt=vt&&vt.exports===ft?h.Buffer:void 0,At=wt?wt.allocUnsafe:void 0;function yt(){return[]}var bt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,_t=kt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,i=[];++a<r;){var s=e[a];t(s,a,e)&&(i[n++]=s)}return i}(kt(e),function(t){return bt.call(e,t)}))}:yt;var xt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)pt(t,_t(e)),e=gt(e);return t}:yt;function Et(e,t,a){var r=t(e);return b(e)?r:pt(r,a(e))}function St(e){return Et(e,Qe,_t)}function Ct(e){return Et(e,Ye,xt)}var Mt=Z(h,"DataView"),Ht=Z(h,"Promise"),Pt=Z(h,"Set"),It="[object Map]",Dt="[object Promise]",Tt="[object Set]",Rt="[object WeakMap]",Bt="[object DataView]",qt=Q(Mt),Lt=Q(at),Ot=Q(Ht),Ft=Q(Pt),Qt=Q(W),Nt=w;(Mt&&Nt(new Mt(new ArrayBuffer(1)))!=Bt||at&&Nt(new at)!=It||Ht&&Nt(Ht.resolve())!=Dt||Pt&&Nt(new Pt)!=Tt||W&&Nt(new W)!=Rt)&&(Nt=function(e){var t=w(e),a="[object Object]"==t?e.constructor:void 0,r=a?Q(a):"";if(r)switch(r){case qt:return Bt;case Lt:return It;case Ot:return Dt;case Ft:return Tt;case Qt:return Rt}return t});var Ut=Nt,Vt=Object.prototype.hasOwnProperty;var jt=h.Uint8Array;function zt(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t}var Yt=/\w*$/;var Jt=d?d.prototype:void 0,Zt=Jt?Jt.valueOf:void 0;function Wt(e,t,a){var r,n,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return zt(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var a=t?zt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var a=t?zt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}(e,a);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(n=e).constructor(n.source,Yt.exec(n))).lastIndex=n.lastIndex,i;case"[object Symbol]":return r=e,Zt?Object(Zt.call(r)):{}}}var Xt=De&&De.isMap,Kt=Xt?Me(Xt):function(e){return A(e)&&"[object Map]"==Ut(e)};var Gt=De&&De.isSet,$t=Gt?Me(Gt):function(e){return A(e)&&"[object Set]"==Ut(e)},ea="[object Arguments]",ta="[object Function]",aa="[object Object]",ra={};function na(e,t,a,r,n,i){var s,o=1&t,c=2&t,l=4&t;if(a&&(s=n?a(e,r,n,i):a(e)),void 0!==s)return s;if(!M(e))return e;var h=b(e);if(h){if(s=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&Vt.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(e),!o)return function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}(e,s)}else{var d=Ut(e),u=d==ta||"[object GeneratorFunction]"==d;if(Se(e))return function(e,t){if(t)return e.slice();var a=e.length,r=At?At(a):new e.constructor(a);return e.copy(r),r}(e,o);if(d==aa||d==ea||u&&!n){if(s=c||u?{}:function(e){return"function"!=typeof e.constructor||ve(e)?{}:K(gt(e))}(e),!o)return c?function(e,t){return de(e,xt(e),t)}(e,function(e,t){return e&&de(t,Ye(t),e)}(s,e)):function(e,t){return de(e,_t(e),t)}(e,function(e,t){return e&&de(t,Qe(t),e)}(s,e))}else{if(!ra[d])return n?e:{};s=Wt(e,d,o)}}i||(i=new mt);var p=i.get(e);if(p)return p;i.set(e,s),$t(e)?e.forEach(function(r){s.add(na(r,t,a,r,e,i))}):Kt(e)&&e.forEach(function(r,n){s.set(n,na(r,t,a,n,e,i))});var g=h?void 0:(l?c?Ct:St:c?Ye:Qe)(e);return function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););}(g||e,function(r,n){g&&(r=e[n=r]),he(s,n,na(r,t,a,n,e,i))}),s}ra[ea]=ra["[object Array]"]=ra["[object ArrayBuffer]"]=ra["[object DataView]"]=ra["[object Boolean]"]=ra["[object Date]"]=ra["[object Float32Array]"]=ra["[object Float64Array]"]=ra["[object Int8Array]"]=ra["[object Int16Array]"]=ra["[object Int32Array]"]=ra["[object Map]"]=ra["[object Number]"]=ra[aa]=ra["[object RegExp]"]=ra["[object Set]"]=ra["[object String]"]=ra["[object Symbol]"]=ra["[object Uint8Array]"]=ra["[object Uint8ClampedArray]"]=ra["[object Uint16Array]"]=ra["[object Uint32Array]"]=!0,ra["[object Error]"]=ra[ta]=ra["[object WeakMap]"]=!1;function ia(e){return na(e,5)}var sa=function(){return h.Date.now()},oa=Math.max,ca=Math.min;function la(e,t,a){var r,n,i,s,o,c,l=0,h=!1,d=!1,u=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var a=r,i=n;return r=n=void 0,l=t,s=e.apply(i,a)}function g(e){var a=e-c;return void 0===c||a>=t||a<0||d&&e-l>=i}function m(){var e=sa();if(g(e))return f(e);o=setTimeout(m,function(e){var a=t-(e-c);return d?ca(a,i-(e-l)):a}(e))}function f(e){return o=void 0,u&&r?p(e):(r=n=void 0,s)}function v(){var e=sa(),a=g(e);if(r=arguments,n=this,c=e,a){if(void 0===o)return function(e){return l=e,o=setTimeout(m,t),h?p(e):s}(c);if(d)return clearTimeout(o),o=setTimeout(m,t),p(c)}return void 0===o&&(o=setTimeout(m,t)),s}return t=T(t)||0,M(a)&&(h=!!a.leading,i=(d="maxWait"in a)?oa(T(a.maxWait)||0,t):i,u="trailing"in a?!!a.trailing:u),v.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=c=n=o=void 0},v.flush=function(){return void 0===o?s:f(sa())},v}var ha=/[\\^$.*+?()[\]{}|]/g,da=RegExp(ha.source);var ua,pa=(ua={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==ua?void 0:ua[e]}),ga=/&(?:amp|lt|gt|quot|#39);/g,ma=RegExp(ga.source);var fa=class extends HTMLElement{configOverride;data;handlebars=HawkSearch.handlebars;eventFilter;contentModel;get configuration(){const e=HawkSearch.config.components?.[this.componentName],t=this.getAttribute("config");if(!t&&!this.configOverride)return e;let a;return t?a=ut(window,t)??void 0:this.configOverride&&(a=this.configOverride),Ve({},e??{},a)}get useCustomStyle(){return void 0!==this.configuration?.useCustomStyle?this.configuration.useCustomStyle:HawkSearch.config.useCustomStyle??!1}get shadowDom(){return void 0!==this.configuration?.shadowDom?this.configuration.shadowDom:HawkSearch.config.shadowDom??!0}get rootElement(){return this.shadowRoot??this}get eventName(){if(!this.bindFromEvent)return;let e=`hawksearch:bind-${this.componentName}`;return this.eventFilter&&(e=`${e}:${this.eventFilter}`),e}bindEventHandler;template;connectedCallback(){this.shadowDom&&this.attachShadow({mode:"open"}),this.registerHelpers();const e=/\[\[((?!\[).+?)\]\]/g;let t=this.getCustomTemplateHtml()??this.defaultHtml;for(;e.test(t);)t=t.replace(e,"{{$1}}");this.template=this.handlebars.compile(t),setTimeout(()=>{this.render()}),this.eventName&&(this.bindEventHandler=e=>{this.data=e.detail,this.render()},window.addEventListener(this.eventName,this.bindEventHandler))}disconnectedCallback(){this.eventName&&this.bindEventHandler&&window.removeEventListener(this.eventName,this.bindEventHandler)}registerHelpers(){}render(){if(!this.template||!this.renderContent())return this.rootElement.replaceChildren(),this.style.display="none",void this.dispatchEvent(new CustomEvent("hawksearch:skipped-render"));const e=this.getContentModel();window.dispatchEvent(new CustomEvent(`hawksearch:before-${this.componentName}-rendered`,{detail:{component:this,contentModel:e}})),this.dispatchEvent(new CustomEvent("hawksearch:before-render",{detail:{contentModel:e}}));const t=[];let a=[];if(!1!==HawkSearch.config.css?.defaultStyles&&a.push('html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{box-shadow:none;font-size:100%;font-weight:400;font:inherit;vertical-align:baseline;color:inherit;text-transform:none;text-shadow:none;background:0 0;border:0;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{width:auto;list-style:none}ol li,ul li{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}img{display:inline-block}.clearfix:after{content:"";clear:both;display:table}*,:before,:after{transition:none;box-sizing:border-box!important}b,strong{font-weight:700}i,em{font-style:italic}u{text-decoration:underline}sup{vertical-align:super;font-size:75%}sub{vertical-align:sub;font-size:75%}a{cursor:pointer}.label{text-align:left;margin:0 0 5px;display:block}input[type=text],input[type=number],input[type=search],textarea,select{border:var(--form-element-border);border-radius:var(--form-element-border-radius);width:100%;height:45px;padding:var(--padding-sm);background:var(--form-element-background);font-family:var(--default-font-family);color:var(--default-font-color);outline:none;font-size:16px;line-height:1;display:block}input[type=text]:hover,input[type=text]:focus,input[type=number]:hover,input[type=number]:focus,input[type=search]:hover,input[type=search]:focus,textarea:hover,textarea:focus,select:hover,select:focus{border:var(--form-element-border--focus)}select{padding-right:var(--padding)}::placeholder{color:var(--form-element-placeholder-color)}input[type=checkbox]{display:none}input[type=checkbox]+label{padding-left:calc(16px + var(--padding-sm));cursor:pointer;margin:0 0 5px;display:block;position:relative}input[type=checkbox]+label:before{content:"";border:var(--form-element-border);background:var(--form-element-background);width:16px;height:16px;position:absolute;top:1px;left:0}input[type=checkbox]:checked+label:before{background:var(--color-accent)}.row,.smartresponse__info__summary ul{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row:last-child,.smartresponse__info__summary ul:last-child{margin-bottom:0}.row--reverse{flex-direction:row-reverse}.row--tight{--gap:var(--padding-xs)}@media (width>=740px){.row-sm{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-sm:last-child{margin-bottom:0}.row-sm--reverse{flex-direction:row-reverse}.row-sm--tight{--gap:var(--padding-xs)}}@media (width>=990px){.row-md{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-md:last-child{margin-bottom:0}.row-md--reverse{flex-direction:row-reverse}.row-md--tight{--gap:var(--padding-xs)}}@media (width>=1260px){.row-lg{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-lg:last-child{margin-bottom:0}.row-lg--reverse{flex-direction:row-reverse}.row-lg--tight{--gap:var(--padding-xs)}}@media (width>=1800px){.row-xl{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-xl:last-child{margin-bottom:0}.row-xl--reverse{flex-direction:row-reverse}.row-xl--tight{--gap:var(--padding-xs)}}.column,.smartresponse__info__summary li{flex-grow:0;flex-shrink:0;width:100%}.column--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column--3{flex-basis:calc(25% - .75 * var(--gap))}.column--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column--6{flex-basis:calc(50% - .5 * var(--gap))}.column--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column--9{flex-basis:calc(75% - .25 * var(--gap))}.column--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column--12,.smartresponse__info__summary li{flex-basis:calc(100% - 0 * var(--gap))}.column--pull-right{margin-left:auto}@media (width>=740px){.column-sm{flex-grow:0;flex-shrink:0;width:100%}.column-sm--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-sm--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-sm--3{flex-basis:calc(25% - .75 * var(--gap))}.column-sm--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-sm--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-sm--6,.smartresponse__info__summary li{flex-basis:calc(50% - .5 * var(--gap))}.column-sm--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-sm--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-sm--9{flex-basis:calc(75% - .25 * var(--gap))}.column-sm--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-sm--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-sm--12{flex-basis:calc(100% - 0 * var(--gap))}.column-sm--pull-right{margin-left:auto}}@media (width>=990px){.column-md{flex-grow:0;flex-shrink:0;width:100%}.column-md--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-md--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-md--3{flex-basis:calc(25% - .75 * var(--gap))}.column-md--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-md--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-md--6{flex-basis:calc(50% - .5 * var(--gap))}.column-md--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-md--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-md--9{flex-basis:calc(75% - .25 * var(--gap))}.column-md--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-md--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-md--12{flex-basis:calc(100% - 0 * var(--gap))}.column-md--pull-right{margin-left:auto}}@media (width>=1260px){.column-lg{flex-grow:0;flex-shrink:0;width:100%}.column-lg--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-lg--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-lg--3{flex-basis:calc(25% - .75 * var(--gap))}.column-lg--4,.smartresponse__info__summary li{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-lg--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-lg--6{flex-basis:calc(50% - .5 * var(--gap))}.column-lg--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-lg--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-lg--9{flex-basis:calc(75% - .25 * var(--gap))}.column-lg--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-lg--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-lg--12{flex-basis:calc(100% - 0 * var(--gap))}.column-lg--pull-right{margin-left:auto}}@media (width>=1800px){.column-xl{flex-grow:0;flex-shrink:0;width:100%}.column-xl--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-xl--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-xl--3{flex-basis:calc(25% - .75 * var(--gap))}.column-xl--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-xl--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-xl--6{flex-basis:calc(50% - .5 * var(--gap))}.column-xl--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-xl--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-xl--9{flex-basis:calc(75% - .25 * var(--gap))}.column-xl--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-xl--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-xl--12{flex-basis:calc(100% - 0 * var(--gap))}.column-xl--pull-right{margin-left:auto}}img{max-width:100%;height:auto}.spinner{width:var(--default-font-size);height:var(--default-font-size);border:2px solid var(--container-background--alternate);border-top-color:var(--color-accent);border-radius:50%;animation:.5s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.heading{margin:0 0 var(--padding) 0;font-size:1.375rem;font-weight:700;display:block}p{margin:0 0 var(--padding) 0}p:last-child{margin-bottom:0}a,.link{cursor:pointer;text-decoration:none}a:hover,.link:hover{color:var(--color-accent)}.autocomplete{border:var(--container-border);padding:var(--padding);background:var(--container-background);z-index:1;margin-top:-1px;position:absolute;left:0;right:0;box-shadow:0 2px 5px #0000001a}.autocomplete__title{margin:0 0 var(--padding) 0;font-size:1.1rem;font-weight:700;display:block}.autocomplete__list:not(:last-child){margin-bottom:var(--margin)}.autocomplete__product{text-align:center;height:100%}.autocomplete__product__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:150px;display:flex}.autocomplete__product__image a{display:block}.autocomplete__product__image img{max-height:100%;margin:0}.autocomplete__product__title{margin:0 0 var(--padding-sm) 0;font-weight:700;display:block}.autocomplete__product__title:last-child{margin-bottom:0}.autocomplete__product__price{margin:0 0 var(--padding-sm) 0;display:block}.autocomplete__product__price__original{text-decoration:line-through}.autocomplete__product__price:last-child{margin-bottom:0}.autocomplete__view-all{text-align:center}.button{border-radius:var(--button-border-radius);height:45px;padding:var(--padding-sm) var(--padding);background:var(--button-background);color:var(--button-font-color);text-align:center;cursor:pointer;border:none;outline:none;font-weight:700;display:inline-block}.button:hover{outline:solid 2px var(--button-background)}.button--full-width{width:100%;display:block}hawksearch-featured-items-content-item{height:100%;display:block}.custom-content{margin:0 0 var(--margin) 0}.featured-items-content__item{position:relative}.featured-items-content__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.featured-items-content__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.featured-items-content__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.featured-items-content__item__image img{max-height:100%;margin:0}.featured-items-content__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.featured-items-content__item__title:last-child{margin-bottom:0}.featured-items-content__item__price{margin:0 0 var(--padding-sm) 0;display:block}.featured-items-content__item__price__original{text-decoration:line-through}.featured-items-content__item__price:last-child{margin-bottom:0}.featured-items-content__item--content{border-bottom:var(--container-border);padding:0 0 var(--padding) 0}.featured-items-content__item--product{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.featured-items-content__item--product:hover{border-color:var(--color-accent)}.image-content{margin:0 0 var(--margin) 0}.image-content__image{margin:0 auto;display:block}.popular-queries-content{margin:0 0 var(--margin) 0;text-align:center;line-height:1}.popular-queries-content__item{vertical-align:middle;margin:0 5px;display:inline-block}.popular-queries-content__item--1{font-size:100%}.popular-queries-content__item--2{font-size:150%}.popular-queries-content__item--3{font-size:200%}.popular-queries-content__item--4{font-size:250%}.popular-queries-content__item--5{font-size:300%}.content-zone{margin:0 0 var(--margin) 0}.conversationalsearch{position:relative}.conversationalsearch__body{border:var(--form-element-border);border-radius:var(--form-element-border-radius);margin:0 0 var(--padding-sm) 0;padding:0;overflow:hidden}.conversationalsearch__message-list{padding:var(--padding-sm) var(--padding) 0;overscroll-behavior-y:contain;flex-direction:column;width:100%;height:270px;margin:0;list-style:none;display:flex;overflow:hidden auto}.conversationalsearch__message-list p{margin:0}.conversationalsearch__message{align-items:flex-start;gap:var(--padding-xs);width:100%;margin:0 0 var(--margin) 0;word-wrap:break-word;white-space:pre-wrap;border-radius:0;min-width:150px;max-width:70%;display:flex}.conversationalsearch__message .message__icon{color:var(--color-accent)}.conversationalsearch__message.message--sent{justify-content:flex-end;align-self:flex-end}.conversationalsearch__message.message--sent p{background-color:var(--container-background--alternate);border-radius:var(--form-element-border-radius);padding:var(--padding-sm) var(--padding)}.conversationalsearch__message.message--received *{display:flex}.conversationalsearch__message.message--received .message-icon{color:var(--color-accent)}.conversationalsearch__message.message--received p{align-self:flex-start}.conversationalsearch__footer{gap:var(--padding-xs);display:flex}.conversationalsearch textarea{resize:none;min-height:45px;line-height:1.2}.conversationalsearch button{padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);border:var(--container-border);align-items:center;display:flex}.conversationalsearch button:hover{border-color:var(--color-accent)}.date-picker{position:relative}.date-picker__modal{border:var(--container-border);width:310px;padding:var(--padding-sm);background:var(--container-background);z-index:10;position:absolute}.date-picker__modal__header{align-items:center;gap:var(--padding-sm);margin:0 0 var(--padding-sm) 0;padding:var(--padding-sm);background:var(--container-background--alternate);text-align:center;font-weight:700;display:flex}.date-picker__modal__header__previous,.date-picker__modal__header__next{flex-grow:0;font-size:1.5rem;display:inline-flex}.date-picker__modal__header__month{flex-grow:1}.date-picker__calendar{width:100%}.date-picker__calendar thead th{width:14.286%;padding:var(--padding-xs);background:var(--container-background);text-align:center;font-weight:700}.date-picker__calendar tbody td{border:var(--container-border);padding:var(--padding-xs);text-align:center}.date-picker__calendar tbody td:hover{color:var(--color-accent)}.date-picker__calendar__day{background:var(--container-background);cursor:pointer}.date-picker__calendar__day--alternate{background:var(--color-secondary-light)}.date-picker__calendar__day--selected{background:var(--color-accent);color:var(--default-font-color--inverse)!important}.date-picker__calendar__day--disabled{cursor:no-drop;opacity:.5}hawksearch-facets-list{margin:0 0 var(--margin-sm) 0;display:block}hawksearch-facets-list:last-child{margin-bottom:0}.facets{border:var(--container-border);background:var(--container-background)}.facets__heading{padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);cursor:pointer;align-items:center;font-size:1.2rem;font-weight:700;display:flex}.facets__heading__mobile-toggle{margin-left:auto}.facets__heading:hover{color:var(--color-accent)}.facets__content{display:none}.facets--expanded .facets__content{display:block}@media (width>=990px){.facets__heading{cursor:default}.facets__heading__mobile-toggle{display:none}.facets__heading:hover{color:var(--default-font-color)}.facets__content{display:block}}.facet__heading{padding:var(--padding-sm) var(--padding);cursor:default;align-items:center;font-size:1.125rem;display:flex}.facet__heading__tooltip{margin-left:5px;font-size:1.2em}.facet__heading__toggle{margin-left:auto}.facet__heading--collapsible{cursor:pointer}.facet__heading--collapsible:hover{--icon-color:var(--color-accent);color:var(--color-accent)}.facet__search{margin:0 0 var(--padding) 0}.facet__content{padding:0 var(--padding) var(--padding) var(--padding)}.facet__value{flex-wrap:wrap;align-items:center;display:flex}.facet__value__image{margin-right:5px}.facet__value__count{color:var(--secondary-font-color)}.checkbox-list-facet{overflow-y:auto}.checkbox-list-facet__list{margin:0 0 var(--padding-xs) 0}.checkbox-list-facet__list__item{margin:0 0 var(--padding-xs) 0;display:flex}.checkbox-list-facet__list__item__content{flex-grow:1}.checkbox-list-facet__list__item__actions{white-space:nowrap;flex-grow:0;margin-left:auto;line-height:1;position:relative;top:-2px}.checkbox-list-facet__list__item__actions__item{cursor:pointer;font-size:1.3em}.checkbox-list-facet__list__item__actions__item:hover{color:var(--color-accent)}.checkbox-list-facet__list__item--excluded>.checkbox-list-facet__item__content>label .facet__value__title{text-decoration:line-through}.checkbox-list-facet__list__item:last-child{margin-bottom:0}.checkbox-list-facet__list__item .checkbox-list-facet__list{margin-left:calc(16px + var(--padding-sm))}.checkbox-list-facet__list:last-child{margin-bottom:0}.color-facet__items{margin-bottom:var(--padding-xs)}.color-facet__item{border:var(--container-border);cursor:pointer;position:relative}.color-facet__item__box{padding:0 0 100%}.color-facet__item__image{width:100%;height:100%;display:block}.color-facet__item__actions{display:none}.color-facet__item--selected,.color-facet__item:hover{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.color-facet__item:hover .color-facet__item__actions{border:var(--container-border);background:var(--container-background);font-size:1rem;line-height:1;display:block;position:absolute;top:0;right:0}.color-facet__item:hover .color-facet__item__actions:hover{color:var(--color-accent)}.link-list-facet{overflow-y:auto}.link-list-facet__list__item,.recent-searches-facet__list__item,.related-searches-facet__list__item,.size-facet__items{margin-bottom:var(--padding-xs)}.size-facet__item{border:var(--container-border);position:relative}.size-facet__item__outer{cursor:pointer;padding:0 0 100%;position:relative}.size-facet__item__inner{padding:var(--padding-xs);background:var(--container-background--alternate);justify-content:center;align-items:center;font-size:.6875rem;display:flex;position:absolute;inset:0}.size-facet__item__actions{display:none}.size-facet__item--selected{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.size-facet__item:hover{border-color:var(--color-accent)}.size-facet__item:hover .size-facet__item__actions{border:var(--container-border);background:var(--container-background);cursor:pointer;font-size:1rem;line-height:1;display:block;position:absolute;top:0;right:0}.size-facet__item:hover .size-facet__item__actions:hover{color:var(--color-accent)}hawksearch-icon{font-size:var(--icon-font-size,1em);color:var(--icon-color,currentColor);align-items:center;display:inline-flex}.icon{fill:currentColor;vertical-align:middle;align-items:center;max-width:none;margin:0 .5em 0 0;display:inline-flex}.icon:last-child{margin:0}.modified-query{margin:0 0 var(--margin) 0}.modified-query__modified{font-style:italic}.modified-query__original{font-weight:700}.pagination{align-items:center;gap:var(--padding);line-height:1;display:flex}.pagination__pages{align-items:center;gap:var(--padding-xs);display:flex}.pagination__page--selected{color:var(--color-accent);font-weight:700}.query-suggestions{margin:0 0 var(--margin) 0}.query-suggestions a{font-style:italic}.range-slider{padding:0 12px}.range-slider__container{padding:8px 0;position:relative}.range-slider__bar{border:var(--container-border);background:var(--container-background);height:8px;position:relative}.range-slider__bar__active{background:var(--color-accent);height:100%;position:absolute;left:0;right:0}.range-slider__handle{outline:solid 1px var(--color-accent);border:solid 3px var(--color-background);background:var(--color-accent);cursor:pointer;touch-action:none;border-radius:100%;width:24px;height:24px;margin-left:-12px;padding:4px;display:block;position:absolute;top:0}.range-slider__handle--start{left:0}.range-slider__handle--end{left:100%}.range-slider__handle:hover{outline-width:2px}hawksearch-rating{margin:0 0 var(--padding-sm) 0;font-size:var(--icon-font-size,1em);color:var(--icon-color,currentColor);align-items:center;display:inline-flex}hawksearch-rating:last-child{margin:0}.rating{margin:0 0 var(--padding-sm) 0;fill:currentColor;vertical-align:middle;max-width:none;color:var(--color-accent);align-items:center;font-size:1.2em;display:inline-flex}.rating:last-child{margin:0}hawksearch-recommendations-item{height:100%;display:block}.recommendations{margin:0 0 var(--margin) 0}.recommendations__content{display:flex}.recommendations__button{flex-shrink:0;align-self:center;font-size:2.5em}.recommendations__carousel{flex-grow:1;position:relative;overflow:hidden}.recommendations__carousel__item{margin-bottom:var(--padding);padding:0 calc(.5 * var(--padding));flex-grow:0;flex-shrink:0}.recommendations__list{margin:0 calc(-.5 * var(--padding)) calc(-1 * var(--padding)) calc(-.5 * var(--padding));flex-wrap:wrap;transition:left .5s;display:flex;position:relative}.recommendations__list--carousel{flex-wrap:nowrap;margin:0}.recommendations__item{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.recommendations__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.recommendations__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.recommendations__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.recommendations__item__image img{max-height:100%;margin:0}.recommendations__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.recommendations__item__title:last-child{margin-bottom:0}.recommendations__item__price{margin:0 0 var(--padding-sm) 0;display:block}.recommendations__item__price__original{text-decoration:line-through}.recommendations__item__price:last-child{margin-bottom:0}.recommendations__item:hover{border-color:var(--color-accent)}.recommendations__pagination{justify-content:center;gap:var(--padding-xs);display:flex}.recommendations__pagination__item{background:var(--color-secondary);cursor:pointer;border-radius:100%;width:10px;height:10px;display:block}.recommendations__pagination__item--selected{background:var(--color-secondary-dark)}.recommendations__pagination__item:hover{background:var(--color-accent)}.recommendations:last-child{margin-bottom:0}.search-field{position:relative}hawksearch-search-results-list{margin:0 0 var(--margin) 0;display:block}hawksearch-search-results-list:last-child{margin:0}hawksearch-search-results-item{height:100%;display:block}.search-results-list{margin:0 0 var(--margin) 0}.search-results-list__item{position:relative}.search-results-list__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.search-results-list__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.search-results-list__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.search-results-list__item__image img{max-height:100%;margin:0}.search-results-list__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.search-results-list__item__title:last-child{margin-bottom:0}.search-results-list__item__price{margin:0 0 var(--padding-sm) 0;display:block}.search-results-list__item__price__original{text-decoration:line-through}.search-results-list__item__price:last-child{margin-bottom:0}.search-results-list__item--content{border-bottom:var(--container-border);padding:0 0 var(--padding) 0}.search-results-list__item--product{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.search-results-list__item--product:hover{border-color:var(--color-accent)}.search-results-list:last-child{margin:0}.selected-facets{margin:0 0 var(--padding) 0}.selected-facets__item{align-items:center;gap:var(--padding-xs);padding:var(--padding-xs);background:var(--container-background--alternate);white-space:nowrap;display:flex}.selected-facets__item__field{font-weight:700}.selected-facets__item__field:after{content:":"}.selected-facets__item__value--excluded{text-decoration:line-through}.selected-facets__item__remove{margin-top:2px;line-height:1}.smartresponse{justify-content:space-between;align-items:start;column-gap:var(--padding-xs);padding:var(--padding-sm);border:var(--container-border);border-left-color:var(--color-accent);border-left-width:var(--padding-xs);display:flex}.smartresponse__icon{color:var(--color-accent)}.smartresponse__info{gap:var(--padding-xs);flex-direction:column;flex-grow:1;display:flex}.smartresponse__info.busy .smartresponse__info__summary{opacity:.2}.smartresponse__info__header{font-weight:700}.smartresponse__info__summary{transition:max-height .5s ease-out,opacity .5s ease-out;overflow:hidden}.smartresponse__info__summary p{padding:var(--padding) var(--padding) var(--padding) 0}.smartresponse__info__summary ul{gap:8px;display:flex}.smartresponse__info__summary li{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.smartresponse__info__summary li *{flex-direction:column;display:flex}.smartresponse__info__summary li:hover{border-color:var(--color-accent)}.smartresponse__actions .switch{cursor:pointer;background-color:#ccc;border-radius:25px;width:50px;height:25px;transition:background-color .3s;position:relative}.smartresponse__actions .switch:before{content:"";background-color:#fff;border-radius:50%;width:23px;height:23px;transition:transform .3s;position:absolute;top:1px;left:1px}.smartresponse__actions .switch.on{background-color:#3498db}.smartresponse__actions .switch.on:before{transform:translate(25px)}.tabs{gap:var(--padding-xs);margin:0 0 var(--padding) 0;flex-flow:column wrap;display:flex}.tabs__item{border:var(--container-border);padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);white-space:nowrap;cursor:pointer;margin:0 0 -1px;display:block}.tabs__item--selected{background:var(--container-background)}.tabs__item:hover{color:var(--color-accent)}@media (width>=740px){.tabs{flex-direction:row}}@media (width>=990px){.tabs:not(.tabs--list){border-bottom:var(--container-border);border-bottom-color:var(--container-background--alternate);padding:0 var(--padding)}.tabs:not(.tabs--list) .tabs__item--selected{border-bottom-color:var(--container-background)}}.tooltip{cursor:pointer;display:inline-flex}.tooltip__content{display:none}.tooltip:hover .tooltip__content{margin:calc(-.5 * var(--padding) - 1px) 0 0 2rem;border:var(--container-border);max-width:350px;padding:calc(var(--padding) / 2);background:var(--container-background);z-index:1;display:block;position:fixed;box-shadow:0 0 5px #0000001a}.unifiedsearch-field{position:relative}.variant-selector-list{gap:var(--padding-xs);margin:0 0 var(--padding-sm) 0;flex-wrap:wrap;display:flex}.variant-selector-list:last-child{margin-bottom:0}.variant-selector-list__item{border:var(--container-border);cursor:pointer;width:25px;height:25px}.variant-selector-list__item__box{height:100%}.variant-selector-list__item__image{width:100%;height:100%;display:block}.variant-selector-list__item--selected,.variant-selector-list__item:hover{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.visualsearch-field{position:relative}.visualsearch-field__drop-area{padding:var(--padding-sm) 0;border:var(--container-border);background:var(--container-background);margin-bottom:var(--padding-sm);flex-direction:column;align-self:stretch;align-items:center;display:flex}.visualsearch-field__drop-area input[type=file]{display:none}.visualsearch-field__drop-area.error-state{border-style:dashed;border-color:var(--color-accent);background-color:var(--color-accent-light)}.visualsearch-field__drop-area.error-state .visualsearch-field__drop-area__dragging-state{display:none}.visualsearch-field__drop-area.dragging-state{border-style:dashed;border-color:var(--color-accent);background-color:var(--container-background--alternate)}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__normal-state{visibility:hidden}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__dragging-state,.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__drop-msg{display:block}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__prompt-msg{display:none}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__image-display{opacity:.1}.visualsearch-field__drop-area__prompt-msg{margin:0;display:block}.visualsearch-field__drop-area__prompt-msg .visualsearch-field__drop-area__upload-button{color:var(--color-accent);cursor:pointer}.visualsearch-field__drop-area__drop-msg{pointer-events:none;margin:0;display:none;color:var(--color-accent)!important}.visualsearch-field__drop-area__image-display{pointer-events:none;text-align:center;width:220px;height:auto}.visualsearch-field__drop-area__image-display img{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.display-block{display:block!important}.display-none{display:none!important}@media (width>=740px){.display-sm-block{display:block!important}.display-sm-none{display:none!important}}@media (width>=990px){.display-md-block{display:block!important}.display-md-none{display:none!important}}@media (width>=1260px){.display-lg-block{display:block!important}.display-lg-none{display:none!important}}@media (width>=1800px){.display-xl-block{display:block!important}.display-xl-none{display:none!important}}.flex-align-self-center{align-self:center}@media (width>=740px){.flex-align-self-sm-center{align-self:center}}@media (width>=990px){.flex-align-self-md-center{align-self:center}}@media (width>=1260px){.flex-align-self-lg-center{align-self:center}}@media (width>=1800px){.flex-align-self-xl-center{align-self:center}}.flex-vertical-center{flex-direction:column;justify-content:center;display:flex}@media (width>=740px){.flex-vertical-sm-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=990px){.flex-vertical-md-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=1260px){.flex-vertical-lg-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=1800px){.flex-vertical-xl-center{flex-direction:column;justify-content:center;display:flex}}.flex-gap{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap--none{gap:0}.flex-gap--sm{gap:var(--padding-sm)}.flex-gap--xs{gap:var(--padding-xs)}@media (width>=740px){.flex-gap-sm{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-sm--none{gap:0}.flex-gap-sm--sm{gap:var(--padding-sm)}.flex-gap-sm--xs{gap:var(--padding-xs)}}@media (width>=990px){.flex-gap-md{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-md--none{gap:0}.flex-gap-md--sm{gap:var(--padding-sm)}.flex-gap-md--xs{gap:var(--padding-xs)}}@media (width>=1260px){.flex-gap-lg{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-lg--none{gap:0}.flex-gap-lg--sm{gap:var(--padding-sm)}.flex-gap-lg--xs{gap:var(--padding-xs)}}@media (width>=1800px){.flex-gap-xl{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-xl--none{gap:0}.flex-gap-xl--sm{gap:var(--padding-sm)}.flex-gap-xl--xs{gap:var(--padding-xs)}}.margin{margin-bottom:var(--margin)!important}.margin-small{margin-bottom:var(--margin-sm)!important}.margin-none{margin-bottom:0!important}@media (width>=740px){.margin-sm{margin-bottom:var(--margin)!important}.margin-sm-small{margin-bottom:var(--margin-sm)!important}.margin-sm-none{margin-bottom:0!important}}@media (width>=990px){.margin-md{margin-bottom:var(--margin)!important}.margin-md-small{margin-bottom:var(--margin-sm)!important}.margin-md-none{margin-bottom:0!important}}@media (width>=1260px){.margin-lg{margin-bottom:var(--margin)!important}.margin-lg-small{margin-bottom:var(--margin-sm)!important}.margin-lg-none{margin-bottom:0!important}}@media (width>=1800px){.margin-xl{margin-bottom:var(--margin)!important}.margin-xl-small{margin-bottom:var(--margin-sm)!important}.margin-xl-none{margin-bottom:0!important}}.width-auto{width:auto}.width-full{width:100%}@media (width>=740px){.width-sm-auto{width:auto}.width-sm-full{width:100%}}@media (width>=990px){.width-md-auto{width:auto}.width-md-full{width:100%}}@media (width>=1260px){.width-lg-auto{width:auto}.width-lg-full{width:100%}}@media (width>=1800px){.width-xl-auto{width:auto}.width-xl-full{width:100%}}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}@media (width>=740px){.text-align-sm-left{text-align:left}.text-align-sm-center{text-align:center}.text-align-sm-right{text-align:right}}@media (width>=990px){.text-align-md-left{text-align:left}.text-align-md-center{text-align:center}.text-align-md-right{text-align:right}}@media (width>=1260px){.text-align-lg-left{text-align:left}.text-align-lg-center{text-align:center}.text-align-lg-right{text-align:right}}@media (width>=1800px){.text-align-xl-left{text-align:left}.text-align-xl-center{text-align:center}.text-align-xl-right{text-align:right}}:host,:root{--color-accent:var(--hawksearch-color-accent,#119ff7);--color-secondary:var(--hawksearch-color-secondary,#ccc);--color-secondary-light:var(--hawksearch-color-secondary-light,#f1f1f1);--color-secondary-dark:var(--hawksearch-color-secondary-dark,#757575);--color-background:var(--hawksearch-color-background,#fff);--container-background:var(--hawksearch-container-background,var(--color-background));--container-background--alternate:var(--hawksearch-container-background--alternate,var(--color-secondary-light));--container-border:var(--hawksearch-container-border,solid 1px var(--color-secondary));--default-line-height:var(--hawksearch-default-line-height,1.25);--default-font-color:var(--hawksearch-default-font-color,#2e2e2e);--default-font-color--inverse:var(--hawksearch-default-font-color--inverse,#fff);--default-font-family:var(--hawksearch-default-font-family,Arial, sans-serif);--default-font-size:var(--hawksearch-default-font-size,16px);--button-background:var(--hawksearch-button-background,var(--color-accent));--button-border-radius:var(--hawksearch-button-border-radius,5px);--button-font-color:var(--hawksearch-button-font-color,#fff);--form-element-background:var(--hawksearch-form-element-background,var(--color-background));--form-element-border:var(--hawksearch-form-element-border,solid 1px var(--color-secondary));--form-element-border--focus:var(--hawksearch-form-element-border--focus,solid 1px var(--color-accent));--form-element-border-radius:var(--hawksearch-form-element-border-radius,0);--form-element-placeholder-color:var(--hawksearch-form-element-placeholder-color,var(--color-secondary-dark));--margin:var(--hawksearch-margin,32px);--margin-sm:var(--hawksearch-margin-sm,calc(var(--margin) / 2));--padding:var(--hawksearch-padding,24px);--padding-xs:var(--hawksearch-padding-xs,calc(var(--padding) / 4));--padding-sm:var(--hawksearch-padding-sm,calc(var(--padding) / 2));--secondary-font-color:var(--hawksearch-secondary-font-color,var(--color-secondary-dark));font-family:var(--default-font-family);font-size:var(--default-font-size);color:var(--default-font-color);line-height:var(--default-line-height)}'),HawkSearch.config.css?.customStyles){const e="string"==typeof HawkSearch.config.css.customStyles?[HawkSearch.config.css.customStyles]:HawkSearch.config.css.customStyles;a=a.concat(e)}a.forEach((e,a)=>{const r=`hawksearch-handlebars-ui-css-${a}`;if(!this.shadowDom&&document.head.querySelector(`[id="${r}"]`))return;let n;if(/^.*?.css$/.test(e)){const t=document.createElement("link");t.id=r,t.type="text/css",t.rel="stylesheet",t.href=e,n=t}else{const t=document.getElementById(e);if(t instanceof HTMLTemplateElement){const e=t.content.cloneNode(!0).querySelector("style");e&&(e.id=r,n=e)}else{const t=document.createElement("style");t.id=r,t.innerHTML=e,n=t}}n&&(this.shadowDom?t.push(n):this.useCustomStyle||document.head.append(n))});const r=document.createElement("template");r.innerHTML=this.template(e);const n=r.content.cloneNode(!0);t.push(n),this.rootElement.replaceChildren(...t),this.style.display=r.innerHTML?"":"none",this.contentModel=e,this.bindChildElements(),this.onRender(),window.dispatchEvent(new CustomEvent(`hawksearch:after-${this.componentName}-rendered`,{detail:{component:this,contentModel:e}})),this.dispatchEvent(new CustomEvent("hawksearch:after-render",{detail:{contentModel:e}}))}renderContent(){return!0}bindChildElements(){}onRender(){}getCustomTemplateHtml(){let e=this.configuration?.template;if(e){const t=document.getElementById(e);(t instanceof HTMLTemplateElement||t instanceof HTMLScriptElement)&&(e=t.innerHTML),Object.entries({"{{&gt;":"{{>"}).forEach(([t,a])=>{const r=new RegExp(t,"g");e=e.replace(r,a)})}return e}interpolate(e,t){let a=e;return Object.entries(t).forEach(([e,t])=>{a=a.replace("${"+e+"}",t)}),a}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},va=class extends fa{bindFromEvent=!1},wa=class extends fa{componentName="bubble-content";defaultHtml='<div class="content-zone-banner">\n <div class="bubble-banner">\n <button class="hs-banner-help" type="button" aria-label="Banner information" aria-haspopup="true" aria-expanded="false">?</button>\n <div class="hs-banner-tooltip">\n <div class="hs-trigger-title">Triggered by</div>\n <div class="hs-trigger-name">\n <a target="_top" href="/settings/ads/rules/edit.aspx?BannerGroupId={{BannerGroupId}}">\n {{addBrBeforeParen Name}}\n </a>\n </div>\n <div class="hs-trigger__rule">\n <div class="hs-trigger__rule-items">\n {{#each Rule.Rules}}\n <span class="hs-trigger__rule-item">\n <span class="hs-trigger__field">{{Field}}</span>\n <span class="hs-trigger__condition">{{Condition}}</span>\n <span class="hs-trigger__value">{{Value}}</span>\n {{#unless @last}}\n <span class="hs-trigger__connector">OR</span>\n {{/unless}}\n </span>\n {{/each}}\n </div>\n </div>\n </div>\n </div>\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data}}},Aa=class extends va{componentName="custom-content";defaultHtml='<div class="custom-content">\n {{html content}}\n</div>';renderContent(){return!!this.data}getContentModel(){return{...this.data}}},ya=class extends va{componentName="featured-items-content";defaultHtml='<div class="row featured-items-content">\n {{#each items}}\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{/if}}\n {{else}}\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n {{/if}}\n {{/each}}\n</div>';renderContent(){return!!this.data?.items?.length}getContentModel(){return{...this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-featured-items-content-item").forEach((e,t)=>{e.data=this.data.items?.[t],e.trackingEnabled=this.data.trackingEnabled})}},ba=class extends fa{trackingEnabled=!0;componentName="featured-items-content-item";defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\n {{#if pinned}}\n <span class="featured-items-content__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACPsp9wKiNptN2mw2uZcBAJ2bTqdpOp3mXkZIVeFwfX2dexkAcBC1hINHFQBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwqp55fS+Tk5Oqnl9JwDDstls0v39fe5lHMRgw2E6nabT09PcywBghK6urgYbDh5VAABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCA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MOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data||!this.trackingEnabled)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackSearchResultClick(t,this.data.url,e)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},ka=class extends va{componentName="image-content";defaultHtml='<div class="image-content">\n {{#if link}}\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n </a>\n {{else}}\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{HawkSearch.services.tracking.trackBannerClick(this.data.id,this.data.campaignId)})}),HawkSearch.services.tracking.trackBannerImpression(this.data.id,this.data.campaignId)}},_a=class extends va{componentName="popular-queries-content";defaultHtml='<div class="popular-queries-content">\n {{#each items}}\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\n {{/each}}\n</div>';renderContent(){return!!this.data?.items?.length}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},xa=class extends fa{componentName="content-zone";defaultHtml='<div class="content-zone">\n {{#each items}}\n {{#if (eq type "custom")}}\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\n {{/if}}\n {{#if (eq type "featured-items")}}\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\n {{/if}}\n {{#if (eq type "image")}}\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\n {{/if}}\n {{#if (eq type "popular-queries")}}\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\n {{/if}}\n {{/each}}\n</div>';bindFromEvent=!0;get name(){return this.getAttribute("name")||void 0}get zone(){return this.name?this.data?.contentZones?.[this.name]:void 0}get displayType(){const e=window.innerWidth;return e>=(HawkSearch.config.breakpoints?.desktop??990)?"desktop":e>=(HawkSearch.config.breakpoints?.tablet??740)?"tablet":"mobile"}previousDisplayType;windowResizeEventHandler;connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=la(e=>{this.displayType!==this.previousDisplayType&&this.render()},100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){return!!this.zone?.items?.length}getContentModel(){return this.previousDisplayType=this.displayType,{...this.zone,items:this.zone?.items.map(e=>e[this.displayType])??[]}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[index]").forEach(e=>{const t=e,a=parseInt(t.getAttribute("index")||"-1");isNaN(a)||a<0||a>=(this.zone?.items.length||-1)||(t.data=this.zone?.items[a]?.[this.displayType])}),this.rootElement.querySelectorAll("hawksearch-bubble-content").forEach((e,t)=>{e.data=this.zone?.items[t]?.[this.displayType]?.trigger})}};function Ea(e){e=e.toLowerCase().replace(/[^a-z]/g,"");const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}function Sa(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function Ca(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleDateString(t,{month:"long"})}function Ma(){const e=HawkSearch.config.formatting?.cultureIsoCode||"en-US",t=(new Date).getFullYear(),a=[];for(let r=0;r<12;r++){const n=new Date(t,r,1).toLocaleDateString(e,{month:"long"});a.push(n)}return a}function Ha(e,t=2){const a=HawkSearch.config.formatting?.cultureIsoCode||"en-US",r=HawkSearch.config.formatting?.currencyIsoCode?.toUpperCase()||"USD";return e.toLocaleString(a,{style:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t})}function Pa(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function Ia(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleString(t,{year:"numeric",month:"short",day:"2-digit"})}function Da(e,t=2){const a=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleString(a,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}function Ta(e){return!!e&&e.includes("data:image/")}function Ra(e){let t=decodeURIComponent(e);return t!==e&&(t=Ra(t)),t}var Ba=class extends fa{static get observedAttributes(){return["label","max","min","value"]}componentName="date-picker";defaultHtml='<div class="date-picker">\n <input type="text" name="hawksearch-date-picker" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}" />\n {{#if modalVisible}}\n <div hawksearch-modal class="date-picker__modal">\n {{#if monthSelectorVisible}}\n <div class="date-picker__modal__header">\n <span class="date-picker__modal__header__month">{{strings.selectMonth}}</span>\n </div>\n <div class="row">\n <div class="column column--12">\n <select name="hawksearch-date-picker-month" hawksearch-month>\n {{#each months}}\n {{#if (eq this @root.currentMonth)}}\n <option value="{{@index}}" selected>{{this}}</option>\n {{else}}\n <option value="{{@index}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <select name="hawksearch-date-picker-year" hawksearch-year>\n {{#each years}}\n {{#if (eq this @root.currentYear)}}\n <option value="{{this}}" selected>{{this}}</option>\n {{else}}\n <option value="{{this}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button>\n </div>\n </div>\n {{else}}\n <div class="date-picker__modal__header">\n <a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a>\n <a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}">\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n </div>\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\n <thead>\n <tr>\n <th scope="col">{{dayAbbreviation 0}}</th>\n <th scope="col">{{dayAbbreviation 1}}</th>\n <th scope="col">{{dayAbbreviation 2}}</th>\n <th scope="col">{{dayAbbreviation 3}}</th>\n <th scope="col">{{dayAbbreviation 4}}</th>\n <th scope="col">{{dayAbbreviation 5}}</th>\n <th scope="col">{{dayAbbreviation 6}}</th>\n </tr>\n </thead>\n <tbody>\n {{#each weeks}}\n <tr>\n {{#each this}}\n <td\n hawksearch-date="{{value}}"\n class="date-picker__calendar__day\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\n {{attribute \' date-picker__calendar__day--selected\' selected}}\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\n >\n <span>{{dayOfMonth date}}</span>\n </td>\n {{/each}}\n </tr>\n {{/each}}\n </tbody>\n </table>\n {{/if}}\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;label;minDate;maxDate;selectedDate;modalVisible=!1;modalDate=new Date;monthSelectorVisible=!1;documentClickEventHandler;windowResizeEventHandler;connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout(()=>this.render()))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=la(e=>{this.positionModal()},100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){if("label"===e)this.label=a||void 0;else{const t=a?new Date(a):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.render()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayAbbreviation",e=>function(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return new Date(2023,0,e+1).toLocaleDateString(t,{weekday:"short"})}(e)),this.handlebars.registerHelper("dayOfMonth",e=>e.getDate().toString().padStart(2,"0"))}getContentModel(){return{value:this.selectedDate?Pa(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,years:this.getYears(),months:Ma(),weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:Ca(this.modalDate),strings:{heading:`${Ca(this.modalDate)} ${this.modalDate.getFullYear()}`,label:this.label??this.configuration?.strings?.defaultLabel??"Selected Date",next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous",selectMonth:this.configuration?.strings?.selectMonth??"Select Month",viewCalendar:this.configuration?.strings?.viewCalendar??"View Calendar"}}}onRender(){super.onRender(),this.positionModal(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{e.addEventListener("click",e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.render()})}),this.rootElement.querySelectorAll("[hawksearch-next]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.render()})}),this.rootElement.querySelectorAll("[hawksearch-month-selector]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-select-month]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=this.rootElement.querySelector("[hawksearch-month]")?.value,a=this.rootElement.querySelector("[hawksearch-year]")?.value;if(void 0===t)throw new Error("Unable to get month value");if(void 0===a)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(a),parseInt(t),1),this.monthSelectorVisible=!1,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-date]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const a=e.getAttribute("hawksearch-date")||void 0;if(!a)return;const r=new Date(a);if(this.minDate&&!(r>=this.minDate)||this.maxDate&&!(r<=this.maxDate))return;this.selectedDate=r,this.modalVisible=!1,this.render();const n=new CustomEvent("hawksearch:date-picker-changed",{detail:r});this.dispatchEvent(n)})})}positionModal(){const e=this.rootElement.querySelector("[hawksearch-modal]");if(!e||!e.offsetWidth||!this.modalVisible)return;e.style.left="",e.style.right="";const t=window.innerWidth,a=e.getBoundingClientRect();e.offsetWidth+a.x>=t&&t>=e.offsetWidth&&(e.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),a=t<1900?t:1900,r=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let n=a;n<=r;n++)e.push(n);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const a=[];do{const e=this.getWeek(t);a.push(e),t=new Date(a[a.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(a.length<6);return a}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let a=0;a<7;a++){const r=new Date(e.getTime());r.setDate(r.getDate()+a),r.setHours(0,0,0,0);const n={date:r,value:r.toISOString(),currentMonth:r.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||r>=this.minDate)&&(!this.maxDate||r<=this.maxDate),selected:!!this.selectedDate&&Sa(r,this.selectedDate)};t.push(n)}return t}},qa=class extends fa{componentName="icon";defaultHtml='{{html svg}}\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\n <use href="{{url}}"></use>\n</svg>';bindFromEvent=!1;get name(){return this.getAttribute("name")??void 0}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}renderContent(){return!!this.name}getContentModel(){return{svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs><symbol id="chevron-back"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z" fill="#000"/></g></symbol><symbol id="chevron-down"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z" fill="#000"/></g></symbol><symbol id="chevron-forward"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z" fill="#000"/></g></symbol><symbol id="chevron-left"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z" fill="#000"/></g></symbol><symbol id="chevron-right"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z" fill="#000"/></g></symbol><symbol id="chevron-up"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z" fill="#000"/></g></symbol><symbol id="cross"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z" fill="#000"/></g></symbol><symbol id="drop-image" viewBox="0 0 100 100"><path d="M55.875 25.375H52.75v9h3.125v-9Zm0-5.375v-1.125c0-4.125-3.375-7.5-7.5-7.5H47.25V14.5h1.125c2.375 0 4.375 2 4.375 4.375V20h3.125Zm-14 39.875h-9V63h9v-3.125Zm-14.5 0h-9V63h9v-3.125Zm-19.875-20H4.375v9H7.5v-9Zm0-14.5H4.375v9H7.5v-9ZM11.875 63H13v-3.125h-1.125c-2.375 0-4.375-2-4.375-4.375v-1.125H4.375V55.5c0 4.125 3.375 7.5 7.5 7.5Zm0-48.5H13v-3.125h-1.125c-4.125 0-7.5 3.375-7.5 7.5V20H7.5v-1.125c0-2.375 2-4.375 4.375-4.375Zm15.5-3.125h-9V14.5h9v-3.125Zm14.5 0h-9V14.5h9v-3.125ZM36.625 36.5c.875 0 1.5-.625 1.5-1.5 0-.5-.25-1-.625-1.25L31.25 29c-.5-.5-1.375-.5-1.875 0l-6.25 4.75c-.625.5-.75 1.5-.25 2.125s1.5.75 2.125.25l3.875-2.75v11.25c0 .875.625 1.5 1.5 1.625h.25c.75-.125 1.375-.75 1.375-1.5V33.5l3.875 2.75s.375.25.75.25Zm52.75 1.5H51.25c-1.625 0-3.25.625-4.375 1.875-1.25 1-1.875 2.625-1.875 4.25V82.25c0 1.625.625 3.25 1.875 4.375C48 87.75 49.625 88.5 51.25 88.5h38.125c1.625 0 3.25-.625 4.375-1.875s1.875-2.75 1.875-4.375V44.125c0-1.625-.625-3.25-1.875-4.375S91.125 38 89.375 38Zm3.375 44.375a3.415 3.415 0 0 1-3.375 3.375H51.25a3.415 3.415 0 0 1-3.375-3.375v-6.5l5.75-5.75 6.125 6.125c.125.125.25.25.5.375.5.25 1.125.125 1.625-.375L77.5 60.5l15.25 15.25v6.625Zm0-10.75L78.5 57.5c-.125-.125-.25-.25-.5-.375a1.734 1.734 0 0 0-1.125 0c-.125.125-.375.125-.5.375L60.75 73.125 54.625 67c-.25-.25-.625-.375-1-.375s-.75.125-1 .375l-4.75 4.75v-27.5a3.415 3.415 0 0 1 3.375-3.375h38.125a3.415 3.415 0 0 1 3.375 3.375v27.375Z"/><path d="M64.625 54.125c.125-.875-.125-1.75-.625-2.5s-1.25-1.25-2.125-1.5C61.5 50 61.125 50 60.75 50c-.5 0-1 .125-1.5.25-.875.375-1.5 1-1.875 1.75s-.5 1.75-.375 2.5c.125.875.625 1.625 1.375 2.25.625.5 1.5.875 2.375.875 1 0 2-.375 2.75-1.125.625-.75 1-1.5 1.125-2.375Z"/></symbol><symbol id="help"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z" fill="#000"/></g></symbol><symbol id="image" viewBox="0 0 20 20"><path d="M17.27 20H2.727A2.726 2.726 0 0 1 0 17.273V2.727A2.728 2.728 0 0 1 2.727 0H17.27a2.726 2.726 0 0 1 2.727 2.727v14.546A2.728 2.728 0 0 1 17.27 20ZM2.727 1.818a.909.909 0 0 0-.909.91v14.545a.91.91 0 0 0 .91.909H17.27a.91.91 0 0 0 .91-.91V2.728a.909.909 0 0 0-.91-.909H2.727Z"/><path d="M.91 15.455A.91.91 0 0 1 .269 13.9l2.727-2.727a.909.909 0 0 1 1.281.004l2.086 2.082 5.722-5.718a.908.908 0 0 1 1.286 0l6.363 6.364a.91.91 0 0 1-1.287 1.286l-5.721-5.723-5.722 5.719a.909.909 0 0 1-1.286 0l-2.082-2.082L1.55 15.19c-.17.17-.4.264-.64.264Zm5.453-7.273a1.818 1.818 0 1 1 .003-3.636 1.818 1.818 0 0 1-.003 3.636Z"/></symbol><symbol id="message" viewBox="0 0 20 21"><path fill-rule="evenodd" d="M14.84 7.946H5.01a1 1 0 0 1-.998-.998 1 1 0 0 1 .998-.998h9.83a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Zm-6.407 3.992H5a1 1 0 0 1-.998-.998A1 1 0 0 1 5 9.942h3.433a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.016.96A2.002 2.002 0 0 0 .02 2.956v11.976c0 1.098.898 1.996 1.996 1.996h8.094c-.21-.41-.34-.878-.34-1.377 0-.21.02-.42.07-.62H2.016V2.957h15.968v11.976h-2.216c.04.2.07.409.07.619 0 .499-.13.958-.339 1.377h2.495a2.002 2.002 0 0 0 1.996-1.996V2.956A2.002 2.002 0 0 0 17.994.96H2.016Z" clip-rule="evenodd"/><path d="m17.545 19.413-1.367-1.677a3.85 3.85 0 0 0 .778-2.315 3.897 3.897 0 0 0-3.892-3.892 3.897 3.897 0 0 0-3.892 3.892 3.897 3.897 0 0 0 3.892 3.892 3.89 3.89 0 0 0 1.647-.38l1.367 1.677c.18.22.449.35.738.35a.95.95 0 0 0 .738-1.547h-.009Zm-2.266-3.992a2.217 2.217 0 0 1-2.215 2.215 2.21 2.21 0 0 1-2.216-2.215 2.21 2.21 0 0 1 2.216-2.216 2.21 2.21 0 0 1 2.216 2.216Z"/></symbol><symbol id="minus"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z" fill="#000"/></g></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="reset" viewBox="0 0 16 16"><path d="M14.923 3.988A7.977 7.977 0 0 0 10.459.39a7.98 7.98 0 0 0-5.73.32 8.026 8.026 0 0 0-2.77 2.06V1.765a.976.976 0 0 0-1.951 0V5.86h4.097a.976.976 0 0 0 0-1.95H3.56a6.029 6.029 0 0 1 4.41-1.952h.078a6.003 6.003 0 0 1 4.16 1.694l.187.187a5.99 5.99 0 0 1 1.663 4.082v.187a6.022 6.022 0 0 1-1.647 4.05c-.078.087-.164.165-.25.25a6.042 6.042 0 0 1-4.059 1.647H7.93a6.039 6.039 0 0 1-5.682-4.214C2.1 9.374 1.623 9.1 1.116 9.21a.989.989 0 0 0-.64.46.946.946 0 0 0-.086.78 7.944 7.944 0 0 0 1.678 2.912A7.965 7.965 0 0 0 8.016 16a7.95 7.95 0 0 0 4.706-1.538 7.996 7.996 0 0 0 3.114-4.815 8.026 8.026 0 0 0-.905-5.667l-.008.008Z"/></symbol><symbol id="search" viewBox="0 0 20 20"><g clip-path="url(#a)"><path fill-rule="evenodd" d="m18.678 16.322-3.299-3.3a7.85 7.85 0 0 0 1.265-4.284 7.85 7.85 0 0 0-2.316-5.589A7.854 7.854 0 0 0 8.738.833 7.853 7.853 0 0 0 3.15 3.148a7.855 7.855 0 0 0-2.316 5.59c0 2.112.823 4.098 2.316 5.59a7.85 7.85 0 0 0 5.59 2.315 7.84 7.84 0 0 0 4.283-1.264l3.3 3.3c.315.314.733.488 1.178.488.445 0 .863-.174 1.178-.489.315-.314.489-.732.489-1.178 0-.446-.174-.864-.489-1.178Zm-14.35-3.174A6.193 6.193 0 0 1 2.5 8.738a6.2 6.2 0 0 1 1.827-4.41A6.194 6.194 0 0 1 8.738 2.5c1.667 0 3.233.65 4.411 1.828a6.193 6.193 0 0 1 1.828 4.41c0 1.667-.65 3.233-1.828 4.411a6.193 6.193 0 0 1-4.41 1.828 6.19 6.19 0 0 1-4.412-1.829Z" clip-rule="evenodd"/></g></symbol><symbol id="send"><path d="M1.635 19a.635.635 0 0 1-.595-.856l2.608-7.03a.629.629 0 0 1 .483-.403l3.985-.704-3.98-.685a.63.63 0 0 1-.488-.405L1.04 1.853a.636.636 0 0 1 .88-.786l16.73 8.367a.634.634 0 0 1 0 1.132L1.918 18.933a.634.634 0 0 1-.282.067Z"/></symbol><symbol id="sparkles" viewBox="0 0 20 20"><path d="m12.263 16.353-.855 2.646-.855-2.646a4.086 4.086 0 0 0-2.636-2.635l-2.646-.855 2.646-.855a4.086 4.086 0 0 0 2.636-2.635l.855-2.646.855 2.646a4.086 4.086 0 0 0 2.635 2.635l2.646.855-2.646.855a4.09 4.09 0 0 0-2.635 2.635ZM5.75 9.342l-.478 1.478-.477-1.478a2.047 2.047 0 0 0-1.317-1.317L2 7.545l1.478-.476A2.047 2.047 0 0 0 4.795 5.75l.477-1.478.477 1.478a2.047 2.047 0 0 0 1.318 1.32l1.478.477-1.478.477a2.053 2.053 0 0 0-1.318 1.32Zm4.313-5.151-.29.899-.29-.899a1.33 1.33 0 0 0-.856-.856l-.898-.29.898-.29a1.33 1.33 0 0 0 .857-.857L9.774 1l.29.898c.13.407.45.726.856.857l.898.29-.898.29a1.337 1.337 0 0 0-.857.856Z"/></symbol><symbol id="star-empty"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m18.333 7.7-5.991-.517L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392l5.15 3.108-1.359-5.858L18.334 7.7ZM10 12.833l-3.133 1.892.833-3.567-2.767-2.4 3.65-.316L10 5.083l1.425 3.367 3.65.317-2.767 2.4.834 3.566-3.142-1.9Z" fill="#000"/></g></symbol><symbol id="star-half" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><style>.st0{fill-rule:evenodd;clip-rule:evenodd}</style><path class="st0" d="m18.3 7.7-6-.5L10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.1-3.1 5.1 3.1-1.4-5.9 4.7-3.9zM10 12.8l-3.1 1.9.8-3.6-2.8-2.3 3.7-.3L10 5.1l1.4 3.4 3.6.3-2.8 2.4.8 3.6-3-2z"/><path class="st0" d="M10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.2-3.1z"/></g></symbol><symbol id="star"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z" fill="#000"/></g></symbol><symbol id="upload" viewBox="0 0 21 20"><path fill-rule="evenodd" d="M5.825 6.67C3.422 6.762 1.5 8.72 1.5 11.119c0 2.457 2.016 4.45 4.498 4.45h1.196v-1.187H5.998c-1.82 0-3.297-1.462-3.297-3.263 0-1.8 1.477-3.263 3.297-3.263.286 0 .572.037.857.06.276-2.277 1.645-4.227 4.24-4.227 2.32 0 4.203 1.863 4.203 4.158 0 .614.03.6 0 1.36.428 0 3.001.39 3.001 2.799 0 1.311-1.075 2.376-2.4 2.376h-1.802v1.188h1.801c1.988 0 3.602-1.598 3.602-3.564 0-1.778-1.318-3.254-3.04-3.521.025-.21.038-.422.038-.638 0-2.95-2.42-5.346-5.402-5.346-2.574 0-4.73 1.785-5.271 4.17Z" clip-rule="evenodd"/><path d="m7.78 12.622-.845-.809 3.574-3.398 3.556 3.4-.848.807-2.105-2.013-.006 7.09H9.893l.007-7.094-2.12 2.017Z"/><path fill-rule="evenodd" d="M5.705 6.527c.598-2.398 2.786-4.177 5.39-4.177 3.064 0 5.553 2.462 5.553 5.496 0 .174-.008.345-.024.514 1.723.335 3.026 1.84 3.026 3.645 0 2.05-1.683 3.714-3.752 3.714h-1.95V14.23h1.95c1.244 0 2.251-.999 2.251-2.226 0-1.138-.602-1.794-1.264-2.173-.671-.383-1.395-.476-1.587-.476h-.156l.006-.156c.019-.476.014-.64.008-.85a15.228 15.228 0 0 1-.008-.504c0-2.21-1.815-4.008-4.052-4.008-1.257 0-2.207.47-2.88 1.21-.675.744-1.077 1.77-1.212 2.885l-.018.144-.144-.012-.226-.02a6.558 6.558 0 0 0-.618-.04c-1.739 0-3.147 1.397-3.147 3.113 0 1.717 1.408 3.113 3.147 3.113h1.346v1.488H5.998c-2.564 0-4.648-2.06-4.648-4.6 0-2.444 1.927-4.442 4.355-4.592Zm5.39-3.877c-2.503 0-4.598 1.736-5.124 4.054l-.026.112-.115.005c-2.323.087-4.18 1.98-4.18 4.297 0 2.372 1.947 4.3 4.348 4.3h1.046v-.887H5.998c-1.901 0-3.447-1.528-3.447-3.413 0-1.885 1.546-3.413 3.447-3.413a7.03 7.03 0 0 1 .727.048c.157-1.107.572-2.139 1.27-2.906.73-.804 1.761-1.309 3.1-1.309 2.401 0 4.353 1.93 4.353 4.308 0 .219.004.358.007.484.006.196.01.36-.002.735.332.033.975.16 1.58.507.732.418 1.416 1.162 1.416 2.433 0 1.396-1.144 2.526-2.55 2.526h-1.652v.888h1.651c1.906 0 3.452-1.532 3.452-3.414 0-1.702-1.262-3.117-2.913-3.373l-.143-.022.017-.144c.025-.203.038-.41.038-.62 0-2.866-2.353-5.196-5.253-5.196Zm-.586 5.557 3.774 3.609-1.066 1.013-1.955-1.869-.006 6.89-1.513-.002.007-6.893-1.97 1.874-1.063-1.016 3.792-3.606Zm-3.357 3.607.629.6 2.27-2.159-.008 7.294h.913l.007-7.29 2.255 2.156.63-.6-3.34-3.193-3.356 3.192Z" clip-rule="evenodd"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${this.name}`,height:this.size,width:this.size}}},La=class extends fa{static get observedAttributes(){return["end","start"]}componentName="range-slider";defaultHtml='<div class="range-slider">\n <div class="range-slider__container">\n <div class="range-slider__bar">\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\n </div>\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\n </div>\n</div>';bindFromEvent=!1;dragging=!1;activeHandle;startX;startOffsetPercentage;mouseUpEventHandler;mouseMoveEventHandler;start=0;end=100;connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach(e=>document.addEventListener(e,this.mouseUpEventHandler)),["mousemove","touchmove"].forEach(e=>document.addEventListener(e,this.mouseMoveEventHandler),{passive:!0})}attributeChangedCallback(e,t,a){switch(e){case"end":this.setEnd(a);break;case"start":this.setStart(a)}this.render()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach(e=>document.removeEventListener(e,this.mouseUpEventHandler)),["mousemove","touchmove"].forEach(e=>document.removeEventListener(e,this.mouseMoveEventHandler))}setStart(e){let t=parseInt(e??"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(e??"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentModel(){return{start:this.start,end:this.end,strings:{start:this.configuration?.strings?.start??"Start",end:this.configuration?.strings?.end??"End"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-handle]").forEach(e=>{["mousedown","touchstart"].forEach(t=>e.addEventListener(t,t=>{if(!e.getAttribute("hawksearch-handle"))return;const a=t.currentTarget;this.activeHandle=a,this.startOffsetPercentage=parseFloat(a.style.left??0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,this.rootElement.querySelectorAll("[hawksearch-handle]").forEach(e=>e.style.zIndex=""),a.style.zIndex="1"},{passive:!0}))})}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},a=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(a)}onMouseMove(e){if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const t=this.activeHandle.getAttribute("hawksearch-handle"),a=this.rootElement.querySelector('[hawksearch-handle="start"]'),r=this.rootElement.querySelector('[hawksearch-handle="end"]'),n=this.rootElement.querySelector("[hawksearch-bar]"),i=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,s=this.activeHandle.parentElement.offsetWidth;let o=Math.round(i/s*100)+this.startOffsetPercentage,c=0,l=100;"start"===t?l=parseFloat(r.style.left??100):"end"===t&&(c=parseFloat(a.style.left??0)),o<=c?o=c:o>=l&&(o=l),"start"===t?c=o:"end"===t&&(l=o),this.activeHandle.style.left=`${o}%`,n.style.left=`${c}%`,n.style.right=100-l+"%","start"===t?this.start=o:"end"===t&&(this.end=o);const h={start:this.start,end:this.end},d=new CustomEvent("hawksearch:range-slider-dragging",{detail:h});this.dispatchEvent(d)}},Oa=class extends fa{componentName="rating";defaultHtml='<div class="rating" title="{{rating}}">\n <hawksearch-icon name="{{ratingIcon rating 0}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 1}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 2}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 3}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 4}}" class="rating__icon"></hawksearch-icon>\n</div>';bindFromEvent=!1;registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("ratingIcon",(e,t)=>{const a=e-t;return a>=1?"star":a>=.5?"star-half":"star-empty"})}get rating(){return parseFloat(this.getAttribute("rating")??"0")||void 0}renderContent(){return!!this.rating}getContentModel(){return{rating:this.rating}}onRender(){super.onRender(),this.rootElement.querySelector("[hawksearch-tooltip]")?.addEventListener("mouseover",e=>{const t=e.currentTarget,a=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!a)return;a.style.removeProperty("top"),a.style.removeProperty("right");const r=window.innerWidth,n=t.getBoundingClientRect(),i=n.x+n.width;a.style.top=`${n.top}px`,r-i<370&&(a.style.right="20px")})}},Fa=class extends fa{componentName="tooltip";defaultHtml='<span class="tooltip" hawksearch-tooltip>\n <span class="tooltip__icon">\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\n </span>\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\n</span>';bindFromEvent=!1;get text(){return this.getAttribute("text")??void 0}renderContent(){return!!this.text}getContentModel(){return{text:this.text}}onRender(){super.onRender(),this.rootElement.querySelector("[hawksearch-tooltip]")?.addEventListener("mouseover",e=>{const t=e.currentTarget,a=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!a)return;a.style.removeProperty("top"),a.style.removeProperty("right");const r=window.innerWidth,n=t.getBoundingClientRect(),i=n.x+n.width;a.style.top=`${n.top}px`,r-i<370&&(a.style.right="20px")})}},Qa=function(e){return e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content",e}({}),Na=function(e){return e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple",e}({}),Ua=function(e){return e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom",e}({}),Va=function(e){return e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement",e}({}),ja=class extends fa{componentName="landing-page";defaultHtml='{{#if customLayout}}\n {{html customLayout}}\n{{else}}\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\n{{/if}}';bindFromEvent=!0;get url(){return this.getAttribute("url")??window.location.pathname}constructor(){super(),HawkSearch.services.tracking.trackPageLoad(Ua.Landing);const e=HawkSearch.services.search.getRequestFromUrl();e.url=this.url,HawkSearch.services.search.search(e)}renderContent(){return!!this.data}getContentModel(){return{...this.data,customLayout:this.processCustomLayout(this.data.customLayout),url:this.url}}processCustomLayout(e){if(!e)return;let t=e;const a=Object.keys(this.data.contentZones??{}),r=new RegExp(`{{(${a.join("|")})}}`,"g");return t=t.replace(r,'<hawksearch-content-zone name="$1"></hawksearch-content-zone>'),t=t.replace(/{{#breadcrumb#}}/g,this.data.content?.breadcrumbs??""),t=t.replace(/{{#pageheading#}}/g,this.data.content?.heading??""),t=t.replace(/{{#customhtml#}}/g,this.data.content?.customHtml??""),t}},za=class extends fa{static get observedAttributes(){return["item-id","widget-id"]}componentName="recommendations";defaultHtml='<div class="recommendations">\n {{#if headingEnabled}}\n <h2 class="heading recommendations__heading">{{{title}}}</h2>\n {{/if}}\n <div class="recommendations__content">\n {{#if (and carousel buttonsEnabled)}}\n <a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n {{/if}}\n <div class="recommendations__carousel">\n <div hawksearch-carousel class="recommendations__list{{attribute \' recommendations__list--carousel\' carousel}}" style="left: {{carouselPosition}};">\n {{#each items}}\n <div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};">\n <hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item>\n </div>\n {{/each}}\n </div>\n {{#if (and carousel paginationEnabled)}}\n <div class="recommendations__pagination">\n {{#each paginationItems}}\n <span\n hawksearch-carousel-item="{{@index}}"\n class="recommendations__pagination__item{{attribute \' recommendations__pagination__item--selected\' selected}}"\n title="{{title}}"\n ></span>\n {{/each}}\n </div>\n {{/if}}\n </div>\n {{#if (and carousel buttonsEnabled)}}\n <a\n hawksearch-next\n class="recommendations__button recommendations__button--next{{attribute \' recommendations__button--disabled\' (eq nextEnabled false)}}"\n title="{{strings.next}}"\n >\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n {{/if}}\n </div>\n</div>';bindFromEvent=!0;widgetId;itemId;requestTimer;get carousel(){return!1!==this.configuration?.carousel?.enabled&&!!this.data?.carousel&&(this.data?.items?.length??0)>this.itemsToDisplay}get carouselPosition(){return this.carousel?-1*this.selectedIndex*100/this.itemsToDisplay+"%":void 0}get paginationEnabled(){return this.data?.carouselData?.showDots??this.configuration?.carousel?.paginationEnabled??!1}get buttonsEnabled(){return this.data?.carouselData.showNextPrevButtons??this.configuration?.carousel?.buttonsEnabled??!0}get displayType(){const e=window.innerWidth;return e>=(HawkSearch.config.breakpoints?.desktop??990)?"desktop":e>=(HawkSearch.config.breakpoints?.tablet??740)?"tablet":"mobile"}get itemsToDisplay(){switch(this.displayType){case"mobile":return this.configuration?.itemsToDisplay?.mobile??1;case"tablet":return this.configuration?.itemsToDisplay?.tablet??2;case"desktop":return this.configuration?.itemsToDisplay?.desktop??3;default:return 1}}get itemWidth(){return 100/this.itemsToDisplay+"%"}selectedIndex=0;autorotationTimer;dragElement;dragOffset;dragOrigin;previousDisplayType;touchMoveEventHandler;touchEndEventHandler;windowResizeEventHandler;constructor(){super()}connectedCallback(){super.connectedCallback(),this.touchMoveEventHandler=this.onTouchMove.bind(this),this.touchEndEventHandler=this.onTouchEnd.bind(this),this.windowResizeEventHandler=la(e=>this.onWindowResize(e),100),document.addEventListener("touchmove",this.touchMoveEventHandler),document.addEventListener("touchend",this.touchEndEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("touchmove",this.touchMoveEventHandler),document.removeEventListener("touchend",this.touchEndEventHandler),window.removeEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){switch(clearTimeout(this.requestTimer),e){case"item-id":this.itemId=a||void 0;break;case"widget-id":{if(!a)return this.widgetId=void 0,void(this.eventFilter=void 0);const e=a.split(",").map(e=>e.trim());this.widgetId=e[Math.floor(Math.random()*e.length)],this.eventFilter=this.widgetId;break}}this.requestTimer=setTimeout(()=>{if(!this.widgetId)return;const e={widgetId:this.widgetId,itemId:this.itemId};HawkSearch.services.recommendations.getItems(e)},50)}renderContent(){return!!this.data?.items?.length}getContentModel(){return this.previousDisplayType=this.displayType,{...this.data,carousel:this.carousel,carouselPosition:this.carouselPosition,headingEnabled:this.configuration?.headingEnabled??!0,itemWidth:this.itemWidth,buttonsEnabled:this.buttonsEnabled,paginationEnabled:this.paginationEnabled,paginationItems:this.data.items.map((e,t)=>({selected:this.getSelected(t),title:e.title})),strings:{next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-recommendations-item").forEach((e,t)=>{e.data=this.data.items?.[t]})}onRender(){super.onRender(),this.addEventListener("mouseover",e=>{this.toggleAutorotation(!1)}),this.addEventListener("mouseleave",e=>{this.toggleAutorotation(!0)}),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.previous()})}),this.rootElement.querySelectorAll("[hawksearch-next]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.next()})}),this.rootElement.querySelectorAll("[hawksearch-carousel").forEach(e=>{e.addEventListener("touchstart",e=>{this.dragElement=e.currentTarget,this.dragOffset=e.changedTouches[0].pageX,this.dragOrigin=this.dragElement.offsetLeft,this.dragElement.style.transition="none"})}),this.rootElement.querySelectorAll("[hawksearch-carousel-item").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const a=parseInt(e.getAttribute("hawksearch-carousel-item")??"");isNaN(a)||this.displayItem(a)})}),this.displayItem(this.selectedIndex),this.toggleAutorotation(!0)}toggleAutorotation(e){this.autorotationTimer&&clearInterval(this.autorotationTimer),e&&this.contentModel?.carousel&&!1!==this.configuration?.carousel?.autorotation?.enabled&&(this.autorotationTimer=setInterval(()=>{this.next()},this.configuration?.carousel?.autorotation?.interval??5e3))}previous(){const e=0===this.selectedIndex?this.data.items.length-this.itemsToDisplay:this.selectedIndex-this.itemsToDisplay;this.displayItem(e)}next(){const e=this.selectedIndex===this.data.items.length-this.itemsToDisplay?0:this.selectedIndex+this.itemsToDisplay;this.displayItem(e)}getSelected(e){return e>=this.selectedIndex&&e<this.selectedIndex+this.itemsToDisplay}displayItem(e){const t=this.rootElement.querySelector("[hawksearch-carousel]");t&&this.data?.items?.length&&(e<0&&(e=0),e>=this.data.items.length-this.itemsToDisplay&&(e=this.data.items.length-this.itemsToDisplay),this.selectedIndex=e,t.style.left=this.carouselPosition??"",this.rootElement.querySelectorAll("[hawksearch-carousel-item]").forEach((e,t)=>{const a=parseInt(e.getAttribute("hawksearch-carousel-item")??""),r=!isNaN(a)&&this.getSelected(a),n=this.configuration?.carousel?.paginationSelectedCssClass??"recommendations__pagination__item--selected";e.classList.toggle(n,r)}))}onWindowResize(e){this.displayType!==this.previousDisplayType&&this.render()}onTouchMove(e){if(!this.dragElement||!this.carousel)return;const t=(this.dragOrigin??0)+e.changedTouches[0].pageX-(this.dragOffset??0);this.dragElement.style.left=`${t}px`}onTouchEnd(e){if(!this.dragElement||!this.carousel)return;const t=this.dragElement.parentElement.offsetWidth/this.itemsToDisplay,a=this.dragElement.offsetLeft-(this.dragOrigin??0),r=Math.round(a/t),n=this.selectedIndex-r;this.displayItem(n),this.dragElement.style.transition="",this.dragElement=void 0,this.dragOffset=void 0,this.dragOrigin=void 0}},Ya=class extends fa{componentName="recommendations-item";defaultHtml='<div class="recommendations__item">\n {{#if pinned}}\n <span class="recommendations__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="recommendations__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__price__original">{{currency price}}</span>\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="recommendations__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n</div>';bindFromEvent=!1;get widgetId(){return this.getAttribute("widget-id")||void 0}get requestId(){return this.getAttribute("request-id")||void 0}renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgA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T66MdsNpseV9SvwYbD/f29CQkADmLM15hRP6oAAPYjHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAICwal45/dQ7wQGgZjVd4/739evXr7kXAQDUwaMKACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data||!this.widgetId||!this.requestId)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackRecommendationClick(this.widgetId,this.requestId,t)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},Ja=class extends fa{bindFromEvent=!0;componentName="autocomplete";defaultHtml='<div class="autocomplete">\n <div class="row">\n {{#if products.results.length}}\n <div class="column column--12 column-md--8">\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\n <div class="row autocomplete__products">\n {{#each products.results}}\n <div class="column column--12 column-sm--4">\n <div class="autocomplete__product">\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <span class="autocomplete__product__title">\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\n </span>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="autocomplete__product__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="autocomplete__product__price__original">{{currency price}}</span>\n <span class="autocomplete__product__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="autocomplete__product__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n </div>\n </div>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{#if\n (or\n categories.results.length\n content.results.length\n queries.results.length\n productSuggestedQueries.results.length\n contentSuggestedQueries.results.length\n )\n }}\n <div class="column column--12 column-md--4">\n {{#if productSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{productSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each productSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if contentSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{contentSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each contentSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if categories.results.length}}\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\n <ul class="autocomplete__list">\n {{#each categories.results}}\n <li>\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if content.results.length}}\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\n <ul class="autocomplete__list">\n {{#each content.results}}\n <li>\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if queries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\n <ul class="autocomplete__list">\n {{#each queries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n </div>\n {{/if}}\n </div>\n <div class="autocomplete__view-all">\n <a hawksearch-view-all>{{viewAllText}}</a>\n </div>\n</div>';renderContent(){return!!(this.data&&(this.data.categories?.results?.length||this.data.content?.results?.length||this.data.products?.results?.length||this.data.contentSuggestedQueries?.results?.length||this.data.productSuggestedQueries?.results?.length||this.data.queries?.results?.length))}getContentModel(){return{...this.data,products:{...this.data.products,results:this.data.products.results.map(e=>({...e,description:e.selectedVariant?.description??e.description,imageUrl:e.selectedVariant?.imageUrl??e.imageUrl,price:e.selectedVariant?.price??e.price,rating:e.selectedVariant?.rating??e.rating,salePrice:e.selectedVariant?.salePrice??e.salePrice,sku:e.selectedVariant?.sku??e.sku,title:e.selectedVariant?.title??e.title,url:e.selectedVariant?.url??e.url}))},AutocompleteItemType:Qa}}connectedCallback(){let e=this.getAttribute("widget-id")||"";e||(e="autocomplete-"+Math.floor(1e6*Math.random()),this.setAttribute("widget-id",e)),this.eventFilter=e,super.connectedCallback()}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcI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HAQ5yo+T3hkExQAPA0bxD+1+jDwQQFABEOxfrLqMPBBAUA+xAPKf2UewGHstls0tXV1bMfY8MLAPtomiadn5+n6XT66MdsNpseV9SvwYbD/f29CQkADmLM15hRP6oAAPYjHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAICwal45/dQ7wQGgZjVd4/739evXr7kXAQDUwaMKACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-category-field"),r=t.getAttribute("hawksearch-category-value"),n=this.data.categories?.results?.find(e=>e.field===a&&e.value===r);if(!n)return;HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Category,n.title,n.url);const i={[n.field]:[n.value]};HawkSearch.services.search.query(void 0,i),this.close()})}),this.rootElement.querySelectorAll("[hawksearch-content]").forEach(e=>{e.addEventListener("click",e=>{const t=e.currentTarget.getAttribute("hawksearch-content"),a=this.data.content?.results?.find(e=>e.id===t);a&&HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Content,a.title,a.url)})}),this.rootElement.querySelectorAll("[hawksearch-product]").forEach(e=>{e.addEventListener("click",e=>{const t=e.currentTarget.getAttribute("hawksearch-product"),a=this.data.products?.results?.find(e=>e.id===t);if(!a)return;const r=(HawkSearch.config.variants?.trackUsingVariant?a.selectedVariant?.title:void 0)??a.title,n=(HawkSearch.config.variants?.trackUsingVariant?a.selectedVariant?.url:void 0)??a.url;HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Product,r,n)})}),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");if(!t)return;const a=this.data.queries?.results.find(e=>e.query===t);a&&HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Search,a.query,a.url),HawkSearch.services.search.query(t)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach((e,t)=>{const a=this.data?.products?.results?.[t];a?.variants&&(e.data={items:a.variants,selectedItem:a.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{a.selectedVariant=e.detail,this.render()}))}),this.rootElement.querySelectorAll("[hawksearch-view-all]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),HawkSearch.services.search.query(this.data.query)})})}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}},Za=class extends fa{bindFromEvent=!1;state;onRender(){super.onRender(),this.rootElement.querySelectorAll("input[hawksearch-facet-value]").forEach(e=>{e.addEventListener("change",e=>{e.stopPropagation();const t=e.currentTarget,a=this.data.field,r=t.value;t.checked?HawkSearch.services.search.addFacetValue(a,r):HawkSearch.services.search.removeFacetValue(a,r)})}),this.rootElement.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value"),a=this.data.values?.find(e=>e.value===t);a&&(a.selected?HawkSearch.services.search.removeFacetValue(this.data.field,t):HawkSearch.services.search.addFacetValue(this.data.field,t))})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-include]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field;let r=t.getAttribute("hawksearch-facet-value-include");r&&(r=`${HawkSearch.config.search?.facetExclusionPrefix||"-"}${r}`,HawkSearch.services.search.removeFacetValue(a,r))})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-exclude]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field,r=t.getAttribute("hawksearch-facet-value-exclude");r&&HawkSearch.services.search.excludeFacetValue(a,r)})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.render())})}),this.rootElement.querySelectorAll("[hawksearch-facet-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.render()})})}};function Wa(e,t){return e+t}function Xa(...e){return e.slice(0,-1).every(e=>!!e)}function Ka(e,t){return new HawkSearch.handlebars.SafeString(t?e:"")}function Ga(...e){return e.length<2?"":e.slice(0,-1).join("")}function $a(e,t){return e===t}function er(e){return e.fn()}function tr(e){return new HawkSearch.handlebars.SafeString(e)}function ar(e,t,a){return"object"==typeof t&&(t=void 0),"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),"string"==typeof e&&(e=parseFloat(e)),Ha(e??a??0,t)}function rr(e,t,a){if(e)return"object"==typeof a&&(a=void 0),e.filter(e=>{const r=ut(e,t);return a?r==a:!!r})}function nr(e,t,a){return!!e&&("object"==typeof a&&(a=void 0),e.some(e=>{const r=ut(e,t);return a?r==a:!!r}))}function ir(e,t){return e>t}function sr(e,t){return e>=t}function or(e,t,a){return e?t:a}function cr(e,t){return e<t}function lr(e,t){return e<=t}function hr(e,t,a){return"object"==typeof t&&(t=void 0),"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),"string"==typeof e&&(e=parseFloat(e)),Da(e??a??0,t)}function dr(...e){return e.slice(0,-1).some(e=>!!e)}function ur(e,t){return"object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),e??t}function pr(e,t){return e-t}function gr(e){return decodeURI(e)}function mr(e){return Ra(e)}function fr(e){return function(e){return(e=lt(e))&&da.test(e)?e.replace(ha,"\\$&"):e}(e)}var vr=class extends Za{componentName="checkbox-list-facet";defaultHtml='<div class="checkbox-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\n {{> facet-checkbox-list values}}\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\n <ul class="checkbox-list-facet__list">\n {{#each this}}\n {{#if visible}}\n <li\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\n \' checkbox-list-facet__list__item--collapsible\'\n hasChildren\n }}"\n >\n <div class="checkbox-list-facet__list__item__content">\n {{#if selected}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\n {{else}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\n {{/if}}\n <label for="{{@root.id}}-{{value}}" class="facet__value">\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\n {{#if @root.displayCount}}\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\n {{/if}}\n </label>\n {{#if toggled}}\n {{> facet-checkbox-list children}}\n {{/if}}\n </div>\n {{#if (or @root.excludeEnabled hasChildren)}}\n <div class="checkbox-list-facet__list__item__actions">\n {{#if @root.excludeEnabled}}\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}">\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}">\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{/if}}\n {{/if}}\n {{#if hasChildren}}\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}">\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n {{/if}}\n </li>\n {{/if}}\n {{/each}}\n </ul>\n{{/if}}')}renderContent(){return!!this.data?.values?.length}getContentModel(){const e=this.state.filter?new RegExp(fr(this.state.filter),"i"):void 0,t=t=>!!e&&e.test(t.title),a=e=>e.children?.some(e=>t(e))||!1,r=e=>e.children?.some(e=>e.selected||r(e))||!1,n=(i,s)=>i?.map((i,o)=>{const c={...i,visible:!s&&!e&&(this.state.toggled||!this.data.truncation||o<this.data.truncation.threshold)||t(i)||a(i)||!e&&!!s?.toggled,hasChildren:!!i.children?.length,children:void 0,toggled:!(!i.value||!i.children?.length)&&(this.state.values?.[i.value]?.toggled??!1)||a(i)||r(i)};return c.children=n(i.children,c),c});return{displayCount:this.data.displayCount??!0,expanded:this.state.toggled??!1,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?this.data.scrolling.height??200:void 0,showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,values:n(this.data.values,void 0)??[],excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{collapse:this.configuration?.strings?.collapse??"Collapse",exclude:this.configuration?.strings?.exclude??"Exclude",expand:this.configuration?.strings?.expand??"Expand",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},wr=class extends Za{componentName="color-facet";defaultHtml='<div class="color-facet">\n <div class="row row--tight color-facet__items">\n {{#each values}}\n {{#if visible}}\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n {{#if @root.excludeEnabled}}\n <span class="color-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n {{/if}}\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:this.data.values?.filter(e=>e.color).map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,expanded:this.state.toggled??!1,excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{exclude:this.configuration?.strings?.exclude??"Exclude",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},Ar=class extends Za{componentName="date-range-facet";defaultHtml='<div class="date-range-facet">\n <div class="row">\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-start\n value="{{startValue}}"\n min="{{minValue}}"\n max="{{endValue}}"\n label="{{strings.startDate}}"\n ></hawksearch-date-picker>\n </div>\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-end\n value="{{endValue}}"\n min="{{startValue}}"\n max="{{maxValue}}"\n label="{{strings.endDate}}"\n ></hawksearch-date-picker>\n </div>\n </div>\n</div>';get range(){if("date"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){return{startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString(),strings:{startDate:this.configuration?.strings?.startDate??"Start Date",endDate:this.configuration?.strings?.endDate??"End Date"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("hawksearch:date-picker-changed",e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("hawksearch:date-picker-changed",e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)})})}updateInputElements(e,t){const a=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");a&&(a.value=e?Pa(e):""),r&&(r.value=t?Pa(t):"")}setFacetValue(e,t){if(e&&t&&e>t){const a=e;e=t,t=a}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),Sa(e,this.range.start)&&Sa(t,this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e?.toISOString()??""},${t?.toISOString()??""}`)}},yr=class extends Za{componentName="link-list-facet";defaultHtml='<div class="link-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\n <ul class="link-list-facet__list">\n {{#each values}}\n {{#if visible}}\n <li class="link-list-facet__list__item">\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\n {{#if imageUrl}}\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\n {{else}}\n <span class="facet__value__title">{{title}}</span>\n {{/if}}\n {{#if @root.displayCount}}\n <span class="facet__value__count">({{count}})</span>\n {{/if}}\n </span>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter??"","i"):void 0;return{displayCount:this.data.displayCount??!0,expanded:this.state.toggled??!1,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?this.data.scrolling.height??200:void 0,showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,values:this.data.values?.map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],strings:{toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},br=class extends Za{componentName="numeric-range-facet";defaultHtml='<div class="numeric-range-facet">\n <div class="row">\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-numeric-range-start"\n hawksearch-start\n value="{{start}}"\n min="{{min}}"\n max="{{end}}"\n aria-label="{{strings.minimum}}"\n />\n </div>\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-numeric-range-end"\n hawksearch-end\n value="{{end}}"\n min="{{start}}"\n max="{{max}}"\n aria-label="{{strings.maximum}}"\n />\n </div>\n </div>\n</div>';localStart;localEnd;get range(){if("numeric"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.floor(this.range.max),strings:{minimum:this.configuration?.strings?.minimum??"Minimum",maximum:this.configuration?.strings?.maximum??"Maximum"}}}onRender(){super.onRender(),this.range&&(this.localStart=this.range.start,this.localEnd=this.range.end),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.floor(this.range.min),t.value=a.toString()),this.localStart=a,this.setFacetValue(this.localStart,this.localEnd??this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.ceil(this.range.max),t.value=a.toString()),this.localEnd=a,this.setFacetValue(this.localStart??this.range.start,this.localEnd)})})}setFacetValue(e,t){if(Number.isFinite(e)&&Number.isFinite(t)){if(e>t){const a=e;e=t,t=a}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e},${t}`)}else console.warn("NumericRangeFacet: invalid values",{start:e,end:t})}},kr=class extends Za{componentName="range-slider-facet";defaultHtml='<div class="range-slider-facet">\n <div class="row">\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-range-slider-start"\n hawksearch-start\n value="{{start}}"\n min="{{min}}"\n max="{{end}}"\n aria-label="{{strings.minimum}}"\n />\n </div>\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-range-slider-end"\n hawksearch-end\n value="{{end}}"\n min="{{start}}"\n max="{{max}}"\n aria-label="{{strings.maximum}}"\n />\n </div>\n </div>\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\n</div>';get range(){if("numeric"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){const e=Math.ceil(this.range.max)-Math.floor(this.range.min);return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/e*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/e*100),strings:{minimum:this.configuration?.strings?.minimum??"Minimum",maximum:this.configuration?.strings?.maximum??"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(a,this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(this.range.start,a)})}),this.rootElement.querySelectorAll("hawksearch-range-slider").forEach(e=>{e.addEventListener("hawksearch:range-slider-dragging",e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.updateInputElements(a.start,a.end)}),e.addEventListener("hawksearch:range-slider-changed",e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.setFacetValue(a.start,a.end)})})}getRange(e,t){const a=Math.floor(this.range.min??0),r=Math.ceil(this.range.max??0),n=r-a;return{start:Math.floor(n*e/100+a),end:Math.ceil(r*t/100)}}updateInputElements(e,t){const a=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");a&&(a.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}},_r=class extends Za{componentName="recent-searches-facet";defaultHtml='<div class="recent-searches-facet">\n <ul class="recent-searches-facet__list">\n {{#each values}}\n <li class="recent-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';renderContent(){return!!this.data?.values?.length}getContentModel(){return{values:this.data.values?.map(e=>e.title)??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},xr=class extends Za{componentName="related-searches-facet";defaultHtml='<div class="related-searches-facet">\n <ul class="related-searches-facet__list">\n {{#each values}}\n <li class="related-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';renderContent(){return!!this.data?.values?.length}getContentModel(){return{values:this.data.values?.map(e=>e.title)??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},Er=class extends Za{componentName="search-within-facet";defaultHtml='<div class="search-within-facet">\n <input\n type="text"\n name="hawksearch-search-within-facet"\n hawksearch-input\n value="{{value}}"\n class="search-within-facet__input"\n aria-label="{{strings.label}}"\n />\n</div>';renderContent(){return!!this.data}getContentModel(){return{value:this.data.searchWithin??"",strings:{label:this.configuration?.strings?.label??"Enter keywords"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget.value.trim();HawkSearch.services.search.searchWithin(t)})})}},Sr=class extends Za{componentName="size-facet";defaultHtml='<div class="size-facet">\n <div class="row row--tight size-facet__items">\n {{#each values}}\n {{#if visible}}\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\n {{title}}\n </div>\n </div>\n {{#if @root.excludeEnabled}}\n <span class="size-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n {{/if}}\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:this.data.values?.map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,expanded:this.state.toggled??!1,excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{exclude:this.configuration?.strings?.exclude??"Exclude",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},Cr=class extends fa{componentName="facet-wrapper";defaultHtml='<div class="facet">\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\n {{title}}\n {{#if tooltip}}\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\n {{/if}}\n {{#if collapsible}}\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\n {{/if}}\n </div>\n {{#unless collapsed}}\n <div class="facet__content">\n {{#if searchable}}\n <input type="text" name="hawksearch-facet-search" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\n {{/if}}\n {{#if (eq type "checkbox")}}\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\n {{/if}}\n {{#if (eq type "color")}}\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\n {{/if}}\n {{#if (eq type "date-range")}}\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\n {{/if}}\n {{#if (eq type "link")}}\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\n {{/if}}\n {{#if (eq type "numeric-range")}}\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\n {{/if}}\n {{#if (eq type "range-slider")}}\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\n {{/if}}\n {{#if (eq type "recent-searches")}}\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\n {{/if}}\n {{#if (eq type "related-searches")}}\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\n {{/if}}\n {{#if (eq type "search")}}\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\n {{/if}}\n {{#if (eq type "size")}}\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\n {{/if}}\n {{#if (eq type "unsupported-range-facet")}}\n <h1>(unsupported range facet type)</h1>\n {{/if}}\n </div>\n {{/unless}}\n</div>';bindFromEvent=!1;state;renderContent(){return!!this.data?.visible}getContentModel(){return{...this.data,collapsed:this.state.collapsed??this.data.collapsed??!1,filter:this.state.filter??"",searchable:!!this.data.search&&(this.data.values?.length??0)>this.data.search.threshold}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[hawksearch-facet]").forEach(e=>{e.data=this.data,e.state=this.state})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-heading]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.data?.collapsible&&(this.state.collapsed=!this.state.collapsed,this.render())})}),this.rootElement.querySelectorAll("[hawksearch-facet-search]").forEach(e=>{e.addEventListener("keyup",e=>{const t=e.currentTarget.value?.trim();this.state.filter=t||void 0,this.rebindChildElements()})})}rebindChildElements(){this.rootElement.querySelectorAll("[hawksearch-facet]").forEach(e=>{e.render()})}},Mr=class extends fa{componentName="facets-list";defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\n <div hawksearch-mobile-toggle class="facets__heading">\n {{strings.heading}}\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\n </div>\n <div class="facets__content">\n {{#each facets}}\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\n {{/each}}\n </div>\n</div>';bindFromEvent=!0;state={expanded:!1};renderContent(){return!!this.data}getContentModel(){const e=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size","unsupported-range-facet"];return{facets:this.data.filter(t=>e.includes(t.type)),expanded:this.state.expanded,strings:{heading:this.configuration?.strings?.heading??"Narrow Results"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach(e=>{const t=parseInt(e.getAttribute("hawksearch-facet-id")??""),a=this.data?.find(e=>e.id===t);let r;if(a?.values){r=[];const e=t=>{t?.forEach(t=>{t.value&&r.push(t.value),e(t.children)})};e(a.values)}let n=this.state[t];n||(n={id:t,toggled:!1,collapsed:a?.collapsed,values:{}},this.state[t]=n),r?.forEach(e=>{n.values[e]||(n.values[e]={toggled:!1})}),e.data=a,e.state=n})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-mobile-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.render()})})}},Hr=class extends fa{componentName="modified-query";defaultHtml='<div class="modified-query">\n <p>\n {{strings.showingResultsFor}}\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\n {{strings.searchInsteadFor}}\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\n </p>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.display&&!!this.data?.query&&!!this.data?.modifiedQuery}getContentModel(){return{query:this.data.query,modifiedQuery:this.data.modifiedQuery,strings:{showingResultsFor:this.configuration?.strings?.showingResultsFor??"Showing results for",searchInsteadFor:this.configuration?.strings?.searchInsteadFor??"Search instead for"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t,void 0,!0)})})}},Pr=class extends fa{componentName="page-size";defaultHtml='<div class="page-size">\n <select name="hawksearch-page-size" hawksearch-page-size>\n {{#each options}}\n {{#if selected}}\n <option value="{{pageSize}}" selected>{{title}}</option>\n {{else}}\n <option value="{{pageSize}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){return{options:this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page-size]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget,a=parseInt(t.value);HawkSearch.services.search.setPageSize(a)})})}},Ir=class extends fa{componentName="pagination";defaultHtml='<div class="pagination">\n {{#if strings.summary}}\n <div class="pagination__summary">{{strings.summary}}</div>\n {{/if}}\n <div class="pagination__pages">\n {{#if displayFirstLink}}\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if displayPreviousLink}}\n <a\n hawksearch-page="{{subtract page 1}}"\n rel="prev"\n href="{{pageUrl (subtract page 1)}}"\n class="pagination__page pagination__page--previous"\n title="{{strings.previous}}"\n >\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#each pages}}\n {{#if (eq this @root.page)}}\n <span class="pagination__page pagination__page--selected">{{this}}</span>\n {{else}}\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\n {{/if}}\n {{/each}}\n {{#if displayNextLink}}\n <a\n hawksearch-page="{{add page 1}}"\n rel="next"\n href="{{pageUrl (add page 1)}}"\n class="pagination__page pagination__page--next"\n title="{{strings.next}}"\n >\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#if displayLastLink}}\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n</div>';bindFromEvent=!0;defaultMaxPageLinks=9;registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",e=>{const t=new URLSearchParams;1===e?t.delete(HawkSearch.services.search.queryStringParams.page):t.set(HawkSearch.services.search.queryStringParams.page,e.toString());const a=new URLSearchParams(window.location.search);return a.size>0?`?${a}&${t}`:`?${t}`})}renderContent(){return!!this.data?.totalResults}getContentModel(){const e=(this.data.page-1)*this.data.pageSize+1;let t=e+this.data.pageSize-1;return t>this.data.totalResults&&(t=this.data.totalResults),{page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:e,lastRecord:t,totalRecords:this.data.totalResults??0,totalPages:this.data.totalPages??1,maxPageLinks:this.data.maxPageLinks??this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,strings:{first:this.configuration?.strings?.first??"First",last:this.configuration?.strings?.last??"Last",next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous",summary:this.interpolate(this.configuration?.strings?.summary??"Showing ${first}-${last} of ${total}",{first:Da(e,0),last:Da(t,0),total:Da(this.data.totalResults,0)})}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page]").forEach(e=>{const t=e.getAttribute("hawksearch-page");if(t){const a=parseInt(t);e.addEventListener("click",e=>{e.preventDefault(),this.setPage(a)})}})}async setPage(e){await HawkSearch.services.search.paginate(e)}getPages(){const e=[];if(this.data&&this.data.totalPages>1){const t=this.data.maxPageLinks??this.defaultMaxPageLinks;let a=this.data.page-Math.floor(t/2);a<1&&(a=1);let r=a+t-1;r>this.data.totalPages&&(r=this.data.totalPages);for(let n=a;n<=r;n++)e.push(n)}return e}},Dr=class extends fa{componentName="query-suggestions";defaultHtml='<div class="query-suggestions">\n <p>{{query-suggestions querySuggestions}}</p>\n</div>';bindFromEvent=!0;registerHelpers(){super.registerHelpers();const e=this.configuration?.strings?.orDelimeter??"or",t=this.configuration?.strings?.prompt??"Did you mean to search for ${suggestions}?";this.handlebars.registerHelper("query-suggestions",function(a){function r(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}const n=`, ${e} `;let i;i=a.length<=2?a.map(r).join(` ${e} `):a.slice(0,a.length-1).map(r).join(", ")+n+r(a[a.length-1]);const s=t.replace("${suggestions}",i);return new HawkSearch.handlebars.SafeString(s)})}renderContent(){return!!this.data&&!!this.data.display&&!!this.data.querySuggestions?.length}getContentModel(){return{querySuggestions:this.data.querySuggestions??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},Tr=class extends fa{componentName="search-field";defaultHtml='<div class="search-field">\n <input type="text" name="hawksearch-search-field" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>';bindFromEvent=!0;clickEventHandler;defaultAutocompleteResponse;previousAutocompleteResponse;previousValue="";get autocompleteMinCharacterCount(){return HawkSearch.config.autocomplete?.minCharacterCount??1}get recommendationsEnabled(){return HawkSearch.config.autocomplete?.recommendationsEnabled??!1}get searchDebounceValue(){return this.configuration?.searchDebounceValue??250}get disableAutofill(){return HawkSearch.config.components?.["search-field"]?.disableAutofill??!1}get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}get autocompleteWidgetId(){return this.rootElement.querySelector("hawksearch-autocomplete")?.getAttribute("widget-id")||""}placeholderAnimationAbortController;connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.clickEventHandler)}getContentModel(){const e="Enter keywords";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender(),this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{if(this.disableAutofill){e.value=""}e.addEventListener("focus",t=>{const a=e.value.trim();a&&this.previousAutocompleteResponse?HawkSearch.services.autocomplete.bindComponent(this.previousAutocompleteResponse,this.autocompleteWidgetId):a||this.displayDefaultAutocomplete()}),e.addEventListener("keyup",e=>{if(!["Enter","NumpadEnter"].includes(e.code))return;const t=e.currentTarget.value.trim();t||this.animatePlaceholder(),this.toggleAutocomplete(!1),HawkSearch.services.search.query(t)});e.addEventListener("input",la(async()=>{const t=e.value.trim();t!==this.previousValue&&(this.previousValue=t,this.toggleAutocomplete(!!t),t&&t.length>this.autocompleteMinCharacterCount?this.previousAutocompleteResponse=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId,t):this.displayDefaultAutocomplete())},this.searchDebounceValue))}),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(e=>{e.addEventListener("hawksearch:close-autocomplete",e=>{this.toggleAutocomplete(!1)})})}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(t=>{t.style.display=e?"block":"none"})}async displayDefaultAutocomplete(){if(this.recommendationsEnabled&&!1!==this.defaultAutocompleteResponse){if(void 0===this.defaultAutocompleteResponse){const e=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId);this.defaultAutocompleteResponse=e||!1}this.defaultAutocompleteResponse&&HawkSearch.services.autocomplete.bindComponent(this.defaultAutocompleteResponse,this.autocompleteWidgetId)}}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Rr=class extends fa{componentName="conceptsearch-field";defaultHtml='<div class="search-field">\n <input\n type="text"\n name="hawksearch-concept-search-field"\n hawksearch-input\n hawksearch-concept-search\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n</div>';bindFromEvent=!0;get searchOnKeyPress(){return this.configuration?.searchOnKeyPress??!1}get searchMinCharacterCount(){return this.configuration?.searchMinCharacterCount??10}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}previousValue="";placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Enter Keyword";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>{t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.handleSearchRequest(a)});t.addEventListener("keyup",la(e=>{const a=t.value.trim();this.searchOnKeyPress&&a!==this.previousValue&&a&&a.length>this.searchMinCharacterCount&&this.handleSearchRequest(a)},this.searchDebounceValue))})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"ConceptSearch"})}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Br=class extends fa{componentName="conversationalsearch";defaultHtml='<div class="conversationalsearch">\n <div class="conversationalsearch__body">\n <ul class="conversationalsearch__message-list" hawksearch-message-list>\n {{#each messages}}\n {{#if (eq role "user")}}\n <li hawksearch-message-item class="conversationalsearch__message message--sent">\n <p>{{content}}</p>\n </li>\n {{else if (eq role "assistant")}}\n <li hawksearch-message-item class="conversationalsearch__message message--received">\n <span class="message__icon">\n <hawksearch-icon name="sparkles" size="16"></hawksearch-icon>\n </span>\n <p>{{content}}</p>\n </li>\n {{/if}}\n {{/each}}\n {{#if busy}}\n <li class="conversationalsearch__message message--received">\n <div class="spinner"></div>\n <p>...</p>\n </li>\n {{/if}}\n </ul>\n </div>\n <div class="conversationalsearch__footer">\n <textarea name="hawksearch-message" hawksearch-message-input rows="0" cols="17" placeholder="Enter a message..."></textarea>\n <button hawksearch-message-submit class="conversationalsearch__send-button" type="submit">\n <hawksearch-icon name="send" size="16"></hawksearch-icon>\n </button>\n <button hawksearch-message-reset class="conversationalsearch__reset-button" type="reset">\n <hawksearch-icon name="reset" size="16"></hawksearch-icon>\n </button>\n </div>\n</div>';bindFromEvent=!0;firstMessage=!0;emptySearch=!1;busy=!1;currentQuery="";currentSearchResponse=[];currentMessages=[];get promptInstructions(){return this.configuration?.prompt?.instructions||"\n You are a recommendation agent, specialized in finding the perfect match for a user.\n Answer the question from the user extensivelly.\n You will be provided with an array of products as DATA.\n Create 2 suggested questions that a user could ask about this data that follows.\n Use new lines to seperate them. Make them short.\n Say something like 'Try one of these suggested questions:' followed by the questions you generate.\n Only use the information passed to you as DATA to answer the questions asked.\n Do not provide any information on amount of DATA you currently have.\n "}afterSearchExecutedEventHandler;connectedCallback(){super.connectedCallback(),this.afterSearchExecutedEventHandler=e=>{HawkSearch.searchResponse?.results&&HawkSearch.searchResponse?.results.length>0&&(this.currentSearchResponse=this.composeResponseObject(HawkSearch.searchResponse?.results))},window.addEventListener("hawksearch:after-search-executed",this.afterSearchExecutedEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("hawksearch:after-search-executed",this.afterSearchExecutedEventHandler)}getContentModel(){return{query:this.data?.query,strings:{placeholder:this.configuration?.strings?.placeholder??"Enter a message..."},busy:this.busy||!1,messages:this.currentMessages||[]}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.currentQuery="",this.rootElement.querySelectorAll('[hawksearch-message-reset][type="reset"]').forEach(e=>{e.addEventListener("click",e=>{0!==this.currentMessages.length&&this.resetConversation()})}),this.rootElement.querySelectorAll('[hawksearch-message-submit][type="submit"]').forEach(e=>{e.addEventListener("click",e=>{!this.currentQuery||this.currentQuery.length<2||this.sendMessage()})}),this.rootElement.querySelectorAll("[hawksearch-message-list]").forEach(e=>{e.scrollTo(0,e.scrollHeight)}),this.rootElement.querySelectorAll("[hawksearch-message-input]").forEach(t=>{t.focus(),t.addEventListener("change",e=>{const a=t.value.trim();this.currentQuery=a}),t.addEventListener("keydown",t=>{e.includes(t.code)&&!t.shiftKey&&t.preventDefault()});t.addEventListener("keyup",la(a=>{const r=t.value.trim();this.currentQuery=r,e.includes(a.code)&&(e.includes(a.code)&&!a.shiftKey?(a.preventDefault(),this.handleMessageSubmit()):e.includes(a.code)&&a.shiftKey)},250))})}appendMessage(e){this.currentMessages.push(e)}handleMessageSubmit(){!this.currentQuery||this.currentQuery.length<3||this.sendMessage()}blankQuerySearch(){this.sendMessage()}async sendMessage(){if(!this.currentQuery&&this.emptySearch)return;this.firstMessage?(this.appendMessage({role:"system",content:this.promptInstructions}),this.appendMessage({role:"system",content:`DATA: ${JSON.stringify(this.currentSearchResponse)}`}),this.firstMessage=!1):this.appendMessage({role:"system",content:`Include this DATA as well: ${JSON.stringify(this.currentSearchResponse)}`}),this.currentQuery&&this.appendMessage({role:"user",content:this.currentQuery}),this.busy=!0;const e=await HawkSearch.services.conversational.query(this.currentMessages).then(e=>e).catch(e=>!1);e?this.currentMessages.push(e):this.appendMessage({role:"assistant",content:"Sorry, something went wrong."}),this.busy=!1,this.emptySearch=!0,this.render()}resetConversation(){this.currentMessages=[],this.firstMessage=!0,this.render()}composeResponseObject=e=>e.map(e=>{const{attributes:t,selectedVariant:a,variants:r,...n}=e;return{...n}})},qr=class extends fa{componentName="imagesearch-field";defaultHtml='<div class="search-field">\n <input\n type="text"\n name="hawksearch-image-search-field"\n hawksearch-input\n hawksearch-imagesearch-field\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n</div>';bindFromEvent=!0;get searchOnKeyPress(){return this.configuration?.searchOnKeyPress??!1}get searchMinCharacterCount(){return this.configuration?.searchMinCharacterCount??10}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}previousValue="";placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Describe an image you want to find";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>{t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.handleSearchRequest(a)});t.addEventListener("keyup",la(e=>{const a=t.value.trim();this.searchOnKeyPress&&a!==this.previousValue&&a&&a.length>this.searchMinCharacterCount&&this.handleSearchRequest(a)},this.searchDebounceValue))})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"ImageSearch"})}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Lr=class extends fa{componentName="search-results-item";defaultHtml='<div class="search-results-list__item search-results-list__item--{{type}}">\n {{#if pinned}}\n <span class="search-results-list__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if brand}}\n <div class="search-results-list__item__price__current" style="margin-bottom:8px;">\n {{brand}}\n </div>\n {{/if}}\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__price__original">{{currency price}}</span>\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx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oAOrjRM3XEw4vYIICoF7uGL+OcNiTCQqA+nnr6MsJhz2YoAAYDvHwMsIhyAQFwPA4UXN/wiHA8zCA4XKi5n6EQ8D5+bkduAAD5kTNOOHwjNlslu7v73MvA4ADc6JmjHB4wnK5NEEBMCJO1HyecHjEZrOxGRJghByK9TTh8ICmadLFxUXuZQCQiXh4nHD4Qdu2aT6fm6AAGDknaj5MOPzg/PzcXxQAUkpO1HyIcPiGCQoAvuVEzf8SDn8zQQHAQ5yo+T3hkExQAPA0bxD+1+jDwQQFABEOxfrLqMPBBAUA+xAPKf2UewGHstls0tXV1bMfY8MLAPtomiadn5+n6XT66MdsNpseV9SvwYbD/f29CQkADmLM15hRP6oAAPYjHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAICwal45/dQ7wQGgZjVd4/739evXr7kXAQDUwaMKACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackSearchResultClick(t,this.data.url,e)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},Or=class extends fa{componentName="search-results-list";defaultHtml='<div class="row search-results-list">\n {{#each items}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{/if}}\n {{/each}}\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){return{items:this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-search-results-item").forEach((e,t)=>{e.data=this.data?.[t]})}},Fr=class extends fa{componentName="search-results";defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\n<div class="row">\n <div class="column column--12 column-md--4">\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\n <hawksearch-facets-list></hawksearch-facets-list>\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\n </div>\n <div class="column column--12 column-md--8">\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\n <hawksearch-tabs></hawksearch-tabs>\n <hawksearch-selected-facets></hawksearch-selected-facets>\n {{#if results.length}}\n <div class="row">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-pagination></hawksearch-pagination>\n </div>\n <div class="column column--12 column-md--6">\n <div class="row row--tight">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-page-size></hawksearch-page-size>\n </div>\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-sorting></hawksearch-sorting>\n </div>\n </div>\n </div>\n </div>\n {{/if}}\n <hawksearch-search-results-list></hawksearch-search-results-list>\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\n <hawksearch-noresult></hawksearch-noresult>\n </div>\n</div>';bindFromEvent=!0;get mode(){return"landing-page"===this.getAttribute("mode")?"landing-page":"search-results"}get url(){return this.getAttribute("url")??window.location.pathname}constructor(){if(super(),"search-results"===this.mode){HawkSearch.services.tracking.trackPageLoad(Ua.Custom);const e=HawkSearch.services.search.getRequestFromUrl();HawkSearch.services.search.search(e)}}getContentModel(){return{...this.data}}},Qr=class extends fa{componentName="selected-facets";defaultHtml='<div class="flex-gap flex-gap--xs selected-facets">\n {{#each selections}}\n <span class="selected-facets__item">\n <span class="selected-facets__item__field">{{title}}</span>\n <span class="selected-facets__item__value{{attribute \' selected-facets__item__value--excluded\' excluded}}">{{selectionTitle}}</span>\n <a\n hawksearch-facet-field="{{field}}"\n hawksearch-facet-value="{{selectionValue}}"\n class="selected-facets__item__remove"\n title="{{@root.strings.remove}}"\n >\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\n </a>\n </span>\n {{/each}}\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){const e=[];return this.data.forEach(t=>{t.values.forEach(a=>{let r=a.title;const n=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(a.value),i=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(a.value);if(n){const e=void 0!==n.groups?.min?new Date(n.groups.min):void 0,t=void 0!==n.groups?.max?new Date(n.groups.max):void 0;e&&t&&Sa(e,t)?r=Ia(e):e&&t?r=`${Ia(e)} - ${Ia(t)}`:e?r=`After ${Ia(e)}`:t&&(r=`Before ${Ia(t)}`)}if(i){const e=void 0!==i.groups?.min?parseFloat(i.groups.min):void 0,a=void 0!==i.groups?.max?parseFloat(i.groups.max):void 0,n=t.currency?Ha:Da;void 0!==e&&void 0!==a?r=e===a?n(e,0):`${n(e,0)} - ${n(a,0)}`:void 0!==e?r=`${n(e,0)} and up`:void 0!==a&&(r=`${n(a,0)} and below`)}e.push({field:t.field,title:t.title,selectionTitle:r,selectionValue:a.value,excluded:a.excluded})})}),e.sort((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title)),{selections:e,strings:{remove:this.configuration?.strings?.remove??"Remove"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-facet-field"),r=t.getAttribute("hawksearch-facet-value");a&&r&&HawkSearch.services.search.removeFacetValue(a,r)})})}},Nr=class extends fa{componentName="smartresponse";defaultHtml='<span class="smartresponse" hawksearch-smartresponse>\n <div class="smartresponse__icon">\n {{#if busy}}\n <div class="spinner"></div>\n {{else}}\n <hawksearch-icon name="sparkles"></hawksearch-icon>\n {{/if}}\n </div>\n <div class="smartresponse__info {{attribute \' busy\' busy}}">\n {{#if strings.header}}\n <h4 class="smartresponse__info__header">\n {{strings.header}}\n </h4>\n {{/if}}\n <div class="smartresponse__info__summary">\n {{#if summary}}\n {{#if summary.recommendation}}\n <div class="row">\n {{html summary.recommendation}}\n </div>\n {{/if}}\n {{#if summary.products}}\n <ul class="row">\n {{#each summary.products}}\n <li>\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{name}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{name}}</a>\n </div>\n </li>\n {{/each}}\n </ul>\n {{else}}\n {{#if summary.nosources}}\n <p>{{strings.nosources}}</p>\n {{/if}}\n {{/if}}\n {{/if}}\n </div>\n </div>\n <div class="smartresponse__actions">\n <div class="switch{{attribute \' on\' active}}" smartresponse-switch></div>\n </div>\n</span>';bindFromEvent=!1;afterSearchExecutedEventHandler;active=!0;busy=!1;summary={recommendation:"",products:[],nosources:!1};currentQuery=HawkSearch.searchResponse?.query||"";get smartConfig(){return this.configuration?.config||{agentId:"",clientGroupId:""}}get defaultQueryInput(){return this.configuration?.defaultQuery?.input||""}connectedCallback(){super.connectedCallback(),this.afterSearchExecutedEventHandler=()=>{this.busy=!0,this.render(),this.currentQuery=HawkSearch.searchRequest?.query?.trim()||this.defaultQueryInput.trim()||"";const e=this.currentQuery.trim();this.active&&e?this.updateSummary(e):this.clearSummary()},window.addEventListener("hawksearch:before-search-executed",this.afterSearchExecutedEventHandler);const e=HawkSearch.searchRequest?.query?.trim()||this.defaultQueryInput?.trim()||"";""!==e&&(this.busy=!0,this.render(),this.updateSummary(e))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("hawksearch:before-search-executed",this.afterSearchExecutedEventHandler)}getContentModel(){return{summary:this.summary,strings:{header:this.configuration?.strings?.header||"SmartResponse",noresults:this.configuration?.strings?.noresults||"No Results found"},active:this.active,busy:this.busy}}onRender(){super.onRender(),this.busy=!0,this.rootElement.querySelectorAll("[smartresponse-switch]").forEach(e=>{e.addEventListener("click",()=>{this.active=!this.active,e.classList.toggle("on",this.active),this.active||this.clearSummary()})})}async updateSummary(e){const t=HawkSearch.config.clientId,a=HawkSearch.rawSearchRequest,{agentId:r,clientGroupId:n,apiUrl:i,searchEndpoint:s}=this.smartConfig,o={clientGroupId:n,agentId:r,clientGuid:t,query:e,searchEndpoint:s,searchRequestJson:a};if(!r||!n)return this.summary={recommendation:"Missing configuration",products:[],nosources:!0},this.busy=!1,void this.render();try{const e=new Headers({"Content-Type":"application/json"}),t=new AbortController,a=setTimeout(()=>t.abort(),2e4),r=await fetch(i||"https://genai.bridgeline.com/api/SmartResponse",{method:"POST",headers:e,body:JSON.stringify(o),signal:t.signal});if(clearTimeout(a),!r.ok)throw new Error(`SmartResponse failed: ${r.statusText}`);const n=await r.json();if(!n.recommendation)throw new Error("Missing recommendation in SmartResponse.");const s=this.convertSmartResponseRequest(n.product||[]);this.summary={recommendation:n.recommendation,products:s.slice(0,3),nosources:0===s.length}}catch(c){console.error("SmartResponseComponent: Failed to update summary",c),this.summary={recommendation:"We could not generate a response at this time.Please check your configuration.",products:[],nosources:!0}}this.busy=!1,this.render()}clearSummary(){this.summary={recommendation:"",products:[],nosources:!1},this.busy=!1,this.render()}convertSmartResponseRequest(e,t=3){return e.map(e=>({name:e.name,description:e.description,url:e.url,price:e.price,imageUrl:e.image_url||e.imageUrl})).slice(0,t)}},Ur=class extends fa{componentName="sorting";defaultHtml='<div class="sorting">\n <select name="hawksearch-sort" hawksearch-sort>\n {{#each options}}\n {{#if selected}}\n <option value="{{value}}" selected>{{title}}</option>\n {{else}}\n <option value="{{value}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.options?.length}getContentModel(){return{options:this.data.options}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-sort]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget.value;HawkSearch.services.search.sort(t)})})}},Vr=class extends fa{componentName="tabs";defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt tabs.length 4)}}">\n {{#each tabs}}\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">\n {{title}}\n {{#if @root.displayCount}}({{count}}){{/if}}\n </li>\n {{/each}}\n</ul>';bindFromEvent=!0;renderContent(){return!!this.data?.values?.length}getContentModel(){return{displayCount:this.data.displayCount??!0,tabs:this.data.values??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-tab-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");HawkSearch.services.search.selectTab(t??void 0)})})}},jr=class extends fa{componentName="unifiedsearch-field";defaultHtml='<div class="unifiedsearch-field">\n <input\n type="text"\n name="hawksearch-unified-search-field"\n hawksearch-input\n hawksearch-unified-search\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>';bindFromEvent=!0;clickEventHandler;defaultAutocompleteResponse;previousAutocompleteResponse;previousValue="";get autocompleteMinCharacterCount(){return HawkSearch.config.autocomplete?.minCharacterCount??1}get recommendationsEnabled(){return HawkSearch.config.autocomplete?.recommendationsEnabled??!1}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}get disableAutofill(){return HawkSearch.config.components?.["unifiedsearch-field"]?.disableAutofill??!1}get autocompleteWidgetId(){return this.rootElement.querySelector("hawksearch-autocomplete")?.getAttribute("widget-id")||""}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-unifiedsearch-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Search by concept";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input][hawksearch-unified-search]").forEach(t=>{if(this.disableAutofill){t.value=""}t.addEventListener("focus",e=>{const a=t.value.trim();a&&this.previousAutocompleteResponse?HawkSearch.services.autocomplete.bindComponent(this.previousAutocompleteResponse,this.autocompleteWidgetId):a||this.displayDefaultAutocomplete()}),t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.toggleAutocomplete(!1),this.handleSearchRequest(a)});t.addEventListener("keyup",la(async a=>{const r=t.value.trim();e.includes(a.code)||r===this.previousValue||(this.previousValue=r,this.toggleAutocomplete(!!r),r&&r.length>this.autocompleteMinCharacterCount?this.previousAutocompleteResponse=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId,r):this.displayDefaultAutocomplete())},this.searchDebounceValue))}),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(e=>{e.addEventListener("hawksearch:close-autocomplete",e=>{this.toggleAutocomplete(!1)})})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"UnifiedSearch"})}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(t=>{t.style.display=e?"block":"none"})}async displayDefaultAutocomplete(){if(this.recommendationsEnabled&&!1!==this.defaultAutocompleteResponse){if(void 0===this.defaultAutocompleteResponse){const e=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId);this.defaultAutocompleteResponse=e||!1}this.defaultAutocompleteResponse&&HawkSearch.services.autocomplete.bindComponent(this.defaultAutocompleteResponse,this.autocompleteWidgetId)}}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},zr=class extends fa{componentName="visualsearch-field";defaultHtml='<div class="visualsearch-field">\n <div class="visualsearch-field__drop-area" hawksearch-visualsearch-droparea>\n <div class="visualsearch-field__drop-area__image-display" hawksearch-visualsearch-display></div>\n <p class="visualsearch-field__drop-area__prompt-msg">\n {{strings.dragImageMessage}}\n <label class="visualsearch-field__drop-area__upload-button">\n <input name="hawksearch-visualsearch-file" hawksearch-visualsearch-fileinput type="file" accept="image/*" capture="environment" />\n {{strings.uploadImageMessage}}\n </label>\n </p>\n <p class="visualsearch-field__drop-area__drop-msg">{{strings.dropImageMessage}}</p>\n </div>\n</div>';bindFromEvent=!0;clickEventHandler;previousValue="";maxSize=4194304;allowedExtensions=["jpg","jpeg","png","webp","avif","jfif"];handleFiles(e){const t=e[0],a=t.name.split(".").pop()?.toLowerCase();if(!this.isValidFile(t,a))return;const r=new FileReader;r.onload=e=>{const a=new Image,n=new Image;n.onload=()=>{if(t&&"image/avif"===t.type){const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const t=e.getContext("2d");t&&(t.drawImage(n,0,0),a.src=e.toDataURL("image/jpeg",.95))}else a.src=r.result;const e=a.src;e&&(this.previousValue=e,HawkSearch.config.search?.url&&window.location.pathname!==HawkSearch.config.search?.url&&localStorage.setItem("hawkimagedata",this.previousValue),HawkSearch.services.search.query({queryString:e,requestType:"ImageData"}))},n.src=r.result,this.rootElement.querySelectorAll("[hawksearch-visualsearch-display]").forEach(e=>{e.lastChild&&e.removeChild(e.lastChild),e.appendChild(a)})},r.onerror=e=>{this.triggerUploadFailed("file_read_unsuccessful",{error:e})},r.readAsDataURL(t)}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-visualsearch-droparea")},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){return{query:this.data?.query,strings:{dragImageMessage:this.configuration?.strings?.dragImageMessage??"Drag an image here or ",uploadImageMessage:this.configuration?.strings?.uploadImageMessage??"upload an image",dropImageMessage:this.configuration?.strings?.dropImageMessage??"Drop an image here",errorMessage:this.configuration?.strings?.errorMessage??"Drop an image here"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-visualsearch-fileinput]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.files;this.handleFiles(t)})}),this.rootElement.querySelectorAll("[hawksearch-visualsearch-droparea]").forEach(e=>{e.addEventListener("drop",t=>{t.preventDefault(),t.stopPropagation();const a=t.dataTransfer.files;this.handleFiles(a),e.classList.remove("dragging-state")}),e.addEventListener("dragover",e=>{e.preventDefault()}),e.addEventListener("dragenter",t=>{t.preventDefault(),t.stopPropagation(),e.classList.add("dragging-state")}),e.addEventListener("dragleave",t=>{t.preventDefault(),t.stopPropagation(),e.classList.remove("dragging-state")})})}isValidFile(e,t){return e.type.startsWith("image/")?e.size>this.maxSize?(this.triggerUploadFailed("file_too_large",{size:`${Math.round(e.size/1024/1024)}MB`}),!1):!!this.allowedExtensions.includes(t)||(this.triggerUploadFailed("file_extension_unsupported",{extension:t}),!1):(this.triggerUploadFailed("file_type_unsupported",{type:e.type}),!1)}triggerUploadFailed(e,t){this.triggerEvent("hawksearch:visualsearch-upload-failed",{reason:e,...t})}},Yr=class extends fa{componentName="noresult";defaultHtml='<div class="hawksearch-no-results" style="text-align: center; padding-bottom:12px;">\n <h2>{{message}} "<strong>{{query}}</strong>"</h2>\n {{#if suggestion}}\n <h3 style="margin-top: 4px;">{{suggestion}}</h3>\n {{/if}}\n</div>';bindFromEvent=!0;renderContent(){return!!HawkSearch?.searchResponse&&(this.data||(this.data=HawkSearch.searchResponse),0===(this.data?.results?.length??0))}getContentModel(){!this.data&&HawkSearch?.searchResponse&&(this.data=HawkSearch.searchResponse);const e=this.configuration?.strings?.message||"No results found for",t=this.configuration?.strings?.suggestion||"Try different keywords or check your spelling.";let a="";try{a=HawkSearch.services.search.getRequestFromUrl()?.query||""}catch(r){console.warn("Unable to get query from search request:",r)}return{message:e,query:a??"",suggestion:t}}},Jr=class extends fa{componentName="variant-selector";defaultHtml='{{#if (arrayHasObjectsWithValue items "color")}}\n <div class="variant-selector-list">\n {{#each (arrayFilterObjects items "color")}}\n <div\n hawksearch-variant="{{id}}"\n class="variant-selector-list__item{{attribute \' variant-selector-list__item--selected\' (eq id @root.selectedItem.id)}}"\n title="{{color.name}}"\n >\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="variant-selector-list__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="variant-selector-list__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n </div>\n {{/each}}\n </div>\n{{/if}}';bindFromEvent=!1;renderContent(){return!!this.data&&this.data.items.length>1}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-variant]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data)return;const t=e.currentTarget.getAttribute("hawksearch-variant")??void 0;if(void 0===t)return;const a=this.data.items.find(e=>e.id===t);a&&this.dispatchEvent(new CustomEvent("hawksearch:variant-selected",{detail:a}))})})}},Zr=[];for(let sn=0;sn<256;++sn)Zr.push((sn+256).toString(16).slice(1));var Wr=new Uint8Array(16);function Xr(e,t,a){return t||e||!crypto.randomUUID?function(e,t,a){e=e||{};const r=e.random??e.rng?.()??crypto.getRandomValues(Wr);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((a=a||0)<0||a+16>t.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[a+e]=r[e];return t}return function(e,t=0){return(Zr[e[t+0]]+Zr[e[t+1]]+Zr[e[t+2]]+Zr[e[t+3]]+"-"+Zr[e[t+4]]+Zr[e[t+5]]+"-"+Zr[e[t+6]]+Zr[e[t+7]]+"-"+Zr[e[t+8]]+Zr[e[t+9]]+"-"+Zr[e[t+10]]+Zr[e[t+11]]+Zr[e[t+12]]+Zr[e[t+13]]+Zr[e[t+14]]+Zr[e[t+15]]).toLowerCase()}(r)}(e,t,a):crypto.randomUUID()}var Kr=class{fieldMappings;variantFieldMappings;queryStringParams={disableSpellcheck:HawkSearch.config.search?.queryStringMappings?.disableSpellcheck||"disableSpellcheck",page:HawkSearch.config.search?.queryStringMappings?.page||"page",pageSize:HawkSearch.config.search?.queryStringMappings?.pageSize||"pageSize",query:HawkSearch.config.search?.queryStringMappings?.query||"query",searchWithin:HawkSearch.config.search?.queryStringMappings?.searchWithin||"searchWithin",sort:HawkSearch.config.search?.queryStringMappings?.sort||"sort",requestType:HawkSearch.config.search?.queryStringMappings?.requestType||"requestType"};searchUrl=HawkSearch.config.search?.url??"/search";get onSearchPage(){const e=/\/+$/;return window.location.pathname.replace(e,"")===this.searchUrl.replace(e,"")}constructor(){this.fieldMappings={description:this.getFieldMappings(HawkSearch.config.fieldMappings?.description,["description","longdescription"]),imageUrl:this.getFieldMappings(HawkSearch.config.fieldMappings?.imageUrl,["imageurl","image"]),price:this.getFieldMappings(HawkSearch.config.fieldMappings?.price,["price"]),rating:this.getFieldMappings(HawkSearch.config.fieldMappings?.rating,["rating"]),salePrice:this.getFieldMappings(HawkSearch.config.fieldMappings?.salePrice,["saleprice"]),sku:this.getFieldMappings(HawkSearch.config.fieldMappings?.sku,["sku"]),title:this.getFieldMappings(HawkSearch.config.fieldMappings?.title,["title","name","itemname"]),type:this.getFieldMappings(HawkSearch.config.fieldMappings?.type,["type"]),url:this.getFieldMappings(HawkSearch.config.fieldMappings?.url,["url"]),brand:this.getFieldMappings(HawkSearch.config.fieldMappings?.brand,["brand"])},this.variantFieldMappings={color:{name:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.name,["colorname","color"],HawkSearch.config.variants?.fieldPrefix),hex:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.hex,["colorhex","colorvalue"],HawkSearch.config.variants?.fieldPrefix),imageUrl:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.imageUrl,["colorimageurl","colorimage"],HawkSearch.config.variants?.fieldPrefix)},id:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.id,["id"],HawkSearch.config.variants?.fieldPrefix),imageUrl:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.imageUrl,["imageurl","image"],HawkSearch.config.variants?.fieldPrefix),price:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.price,["price"],HawkSearch.config.variants?.fieldPrefix),rating:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.rating,["rating"],HawkSearch.config.variants?.fieldPrefix),salePrice:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.salePrice,["salePrice","saleprice"],HawkSearch.config.variants?.fieldPrefix),sku:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.sku,["title","name","itemname"],HawkSearch.config.variants?.fieldPrefix),title:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.title,["title","name","itemname"],HawkSearch.config.variants?.fieldPrefix),description:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.description,["description","longdescription"],HawkSearch.config.variants?.fieldPrefix),url:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.url,["url"],HawkSearch.config.variants?.fieldPrefix)}}async httpPost(e,t,a,r){const n=r?e:this.baseUrl+e,i=a||this.getHeaders(),s=await fetch(n,{method:"POST",headers:i,body:JSON.stringify(t)});return s.headers.get("content-type")?.startsWith("application/json")?s.json():void 0}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getApiHeaders(){const e=this.getHeadersSafe();return this.setUserAgentHeaderSafe(e),this.setForwardedForHeaderSafe(e),this.setClientGuidHeaderSafe(e),e}getHeadersSafe(){try{return this.getHeaders()}catch(e){let a;this.debugWarn("hawksearch: getHeaders failed while building API headers",e);try{a=new Headers}catch(t){return this.debugWarn("hawksearch: failed to construct Headers() fallback",t),new Headers}return this.safeHeaderSet(a,"Content-Type","application/json"),this.safeHeaderSet(a,"X-Requested-With","XMLHttpRequest"),a}}safeHeaderSet(e,t,a){try{e.set(t,a)}catch(r){this.debugWarn(`hawksearch: failed to set header "${t}"`,r)}}setUserAgentHeaderSafe(e){try{const t="undefined"!=typeof window&&window.navigator?.userAgent||"undefined"!=typeof navigator&&navigator.userAgent||"unknown-user-agent";"string"==typeof t&&t.trim()&&e.set("User-Agent",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set User-Agent header",t)}}setForwardedForHeaderSafe(e){try{const t="undefined"!=typeof window&&window.__CLIENT_IP__||"undefined"!=typeof HawkSearch&&HawkSearch.config?.clientIp;"string"==typeof t&&t.trim()&&e.set("X-Forwarded-For",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set X-Forwarded-For header",t)}}setClientGuidHeaderSafe(e){try{const t="undefined"!=typeof HawkSearch?HawkSearch.config?.clientId:void 0;"string"==typeof t&&t.trim()&&e.set("X-HawkSearch-ClientGuid",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set X-HawkSearch-ClientGuid header",t)}}debugWarn(e,t){try{if("undefined"!=typeof HawkSearch&&HawkSearch.config?.debug){const a=t instanceof Error?t:new Error(String(t));console.warn(e,a)}}catch(a){console.warn(e)}}getFieldMappings(e,t,a){return"string"==typeof e&&(e=[e]),e?.length||(e=t),a&&(e=e.map(e=>a+e)),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return Xr()}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=function(e){return(e=lt(e))&&ma.test(e)?e.replace(ga,pa):e}(t),t=decodeURIComponent(t.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25")),t}getValue(e,t){for(const a of t){let t=ut(e,a);if(t){if("string"==typeof t&&(t=t.split("|^|")),0===t.length)continue;return t}}}getString(e,t,a){return this.getValue(e,t)?.[0]??a}getNumber(e,t,a){const r=this.getValue(e,t)?.[0];let n=r?parseFloat(r):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),n??a}getUrl(e,t,a){const r=this.getValue(e,t)?.[0];return this.getFullUrl(r,a)}getFullUrl(e,t){if(e)return t&&!/^(?:https?:)?\/\//.test(e)?`${t}/${e.replace(/^\/+/,"")}`:e}getVariants(e){if(!1===HawkSearch.config.variants?.enabled)return{items:void 0,selectedItem:void 0};const t=HawkSearch.config.variants?.fieldPrefix,a=t?new RegExp("^"+t):void 0,r=e=>{const t=this.getString(e,this.variantFieldMappings.color.name),a=this.getString(e,this.variantFieldMappings.color.imageUrl);let r=this.getString(e,this.variantFieldMappings.color.hex);if(!r&&t&&(r=Ea(t)),r||a)return{name:t,hex:r,imageUrl:a}},n=e.hawk_child_attributes_hits?.[0]?.Items?.reduce((e,t)=>{const a=this.getString(t,this.variantFieldMappings.id);return a&&e.push(a),e},[])??[];let i,s=e.hawk_child_attributes?.map((e,t)=>{const i=this.getString(e,this.variantFieldMappings.id)??"";return{attributes:Object.fromEntries(Object.entries(e).map(([e,t])=>(a&&(e=e.replace(a,"")),[e,t]))),color:r(e),description:this.getString(e,this.variantFieldMappings.description),id:i,imageUrl:this.getString(e,this.variantFieldMappings.imageUrl),price:this.getNumber(e,this.variantFieldMappings.price)||void 0,queryMatch:n.includes(i),rating:this.getNumber(e,this.variantFieldMappings.rating),salePrice:this.getNumber(e,this.variantFieldMappings.salePrice)||void 0,title:this.getString(e,this.variantFieldMappings.title),url:this.getString(e,this.variantFieldMappings.url)}}).filter(e=>!!e.id);s?.length||(s=void 0);for(const o of n){const e=s?.find(e=>e.id===o);if(e){i=e;break}}return i||(i=s?.[0]),{items:s,selectedItem:i}}triggerBindEvent(e,t,a){let r=`hawksearch:bind-${e}`;a&&(r=`${r}:${a}`),this.triggerEvent(r,t)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},Gr=class extends Kr{baseUrl=HawkSearch.config.autocomplete?.endpointUrl||HawkSearch.config.search?.endpointUrl||"https://searchapi-dev.hawksearch.net";decodeQuery=HawkSearch.config.autocomplete?.decodeQuery||!0;async query(e,t){const a={query:t};return await this.executeAutocomplete(a,e)}async executeAutocomplete(e,t){this.decodeQuery&&e.query&&(e.query=Ra(e.query));const a={IndexName:HawkSearch.config.index,Keyword:e.query,DisplayFullResponse:!0};try{this.triggerEvent("hawksearch:before-autocomplete-executed",a);const r=await this.httpPost("/api/v2/autocomplete",a,this.getApiHeaders());this.triggerEvent("hawksearch:after-autocomplete-executed",r);const n=this.convertResponse(e.query,r);return this.triggerEvent("hawksearch:autocomplete-completed",n),this.bindComponent(n,t),n}catch{throw new Error("Error retrieving autocomplete response")}}convertResponse(e,t){const a=e=>{const t=this.getVariants(e.Results.Document);return{attributes:Object.fromEntries(Object.entries(e.Results.Document).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e))),description:this.getString(e.Results.Document,this.fieldMappings.description),id:e.Results.DocId,imageUrl:e.Thumb?.Url||this.getUrl(e.Results.Document,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),pinned:e.Results.IsPin,price:this.getNumber(e.Results.Document,this.fieldMappings.price)||void 0,rating:this.getNumber(e.Results.Document,this.fieldMappings.rating),salePrice:this.getNumber(e.Results.Document,this.fieldMappings.salePrice)||void 0,score:e.Results.Score,selectedVariant:t.selectedItem,sku:e.Sku||this.getString(e.Results.Document,this.fieldMappings.sku),title:this.stripHtml(e.ProductName)||this.getString(e.Results.Document,this.fieldMappings.title),url:e.Url||this.getUrl(e.Results.Document,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:t.items}};return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map(e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:Ra(e.FieldQSValue),url:`${this.searchUrl}?${e.FieldQSName}=${Ra(encodeURIComponent(e.FieldQSValue))}`}))},content:{title:t.ContentHeading,results:t.Content.map(e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url})),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))},contentSuggestedQueries:{title:t.DYMContentHeading,results:t.DymContentSearch?.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))??[]},productSuggestedQueries:{title:t.DYMProductHeading,results:t.DymProductsSearch?.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))??[]},products:{title:t.ProductHeading,results:t.Products.map(e=>a(e)),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e,t){this.triggerBindEvent("autocomplete",e,t)}},$r=class extends Kr{baseUrl="https://genai.bridgeline.com/api";API_KEY="ba0279e8-6df6-11ee-a9fd-9df2e7adae60";async query(e,t){return e?await this.executeSearch(e,t):[]}async executeSearch(e,t){this.bindComponents(e);const a={api_key:this.API_KEY,messages:e,...t};HawkSearch.config.debug&&console.log("hawksearch:debug",{rawConversationalSearchRequest:a.messages});try{this.triggerEvent("hawksearch:before-send-message-executed",e);const t=new Headers;t.set("Content-Type","application/json");const r=await this.httpPost(this.baseUrl,a,t,!0);if(this.triggerEvent("hawksearch:after-send-message-executed",r),!r.success)throw new Error("Network response was not ok");this.triggerEvent("hawksearch:before-received-message-executed",r);const n=this.convertResponse(r);return this.triggerEvent("hawksearch:after-receive-message-executed",n),this.bindComponents(n),n}catch{throw new Error("Error retrieving search response")}}convertResponse(e){return e.response.choices[0].message}bindComponents(e){this.triggerBindEvent("conversationalsearch",{conversationResponse:e})}},en=class extends Kr{baseUrl=HawkSearch.config.recommendations?.endpointUrl||"https://recs-dev.hawksearch.net";useTitle=HawkSearch.config.recommendations?.useTitle||!1;getItems(e){return this.executeRecommendations(e)}async executeRecommendations(e){const t={indexName:HawkSearch.config.index,landingPageUrl:e.url,renderHTML:!1,visitId:this.getVisitId(),visitorId:this.getVisitorId(),widgetUids:[{widgetGuid:e.widgetId,uniqueid:e.itemId}]};try{this.triggerEvent("hawksearch:before-recommendations-executed",t);const a=await this.httpPost("/api/recommendation/v2/getwidgetitems",t,this.getApiHeaders());this.triggerEvent("hawksearch:after-recommendations-executed",a);const r=this.convertResponse(a);this.triggerEvent("hawksearch:recommendations-completed",r);const n=e.itemId?`${e.widgetId}:${e.itemId}`:e.widgetId;return HawkSearch.recommendationsResponses={...HawkSearch.recommendationsResponses??{},[n]:r},this.bindComponents(r),r}catch{throw new Error("Error retrieving recommendations response")}}convertResponse(e){const t=e=>{if(e)return"string"==typeof e?e.split("|^|"):e},a=e=>{const a=this.getVariants(e.customDict);return{attributes:Object.fromEntries(Object.entries(e.customDict).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e)).map(([e,a])=>[e,t(a)])),description:e.shortDescription||this.getString(e.customDict,this.fieldMappings.description),id:e.id,imageUrl:e.imageUrl||this.getUrl(e.customDict,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),price:parseFloat(e.price)||this.getNumber(e.customDict,this.fieldMappings.price)||void 0,rating:parseFloat(e.rating)||this.getNumber(e.customDict,this.fieldMappings.rating)||void 0,salePrice:parseFloat(e.salePrice)||this.getNumber(e.customDict,this.fieldMappings.salePrice)||void 0,selectedVariant:a.selectedItem,sku:e.Sku||this.getString(e.customDict,this.fieldMappings.sku),title:e.itemName||this.getString(e.customDict,this.fieldMappings.title),url:e.url||this.getUrl(e.customDict,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:a.items}};return{requestId:e.requestId,widgets:e?.widgetItems?.map(t=>({id:t.widgetGuid,requestId:e.requestId,title:this.useTitle?t.widgeTitle:t.widgetName,carousel:t.isCarousel,carouselData:t.carouselData,items:t.recommendationItems?.map(e=>a(e))}))}}bindComponents(e){e.widgets?.forEach(e=>{this.triggerBindEvent("recommendations",e,e.id)})}},tn=class extends Kr{baseUrl=HawkSearch.config.search?.endpointUrl||"https://searchapi-dev.hawksearch.net";facetExclusionPrefix=HawkSearch.config.search?.facetExclusionPrefix||"-";decodeQuery=HawkSearch.config.search?.decodeQuery??!0;decodeFacetValues=HawkSearch.config.search?.decodeFacetValues??!0;desktopOnlyBanner=HawkSearch.config.search?.desktopOnlyBanner??!0;shouldRenderUI=!0;async search(e){const t=await this.executeSearch(e,!0,!1);return this.shouldRenderUI&&this.bindComponents(t),t}async query(e,t=void 0,a=!1){const r="string"==typeof e?{queryString:e,requestType:"DefaultSearch"}:e,n=r?.queryString,i={disableSpellcheck:!!a||void 0,facets:t,newRequest:!0,query:n,requestType:r?.requestType};if(!this.onSearchPage){const e=this.getSearchUrl(i);return window.location.assign(e),Promise.resolve()}if(n&&!Ta(n)){const e=this.getRecentQueries(),t=5;e.includes(n)||(e.length>=t&&e.splice(t-1),e.unshift(n),this.saveRecentQueries(e))}const s=await this.executeSearch(i,!0,!1);return this.shouldRenderUI&&this.bindComponents(s),s}async addFacetValue(e,t){this.ensureSearchRequest();const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),this.clearExistingFacetValue(a,e,t),a.facets[e]=[...a.facets[e]?.filter(e=>e!==t)??[],t];const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async removeFacetValue(e,t){if(this.ensureSearchRequest(),"searchWithin"===e)return await this.searchWithin("");const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,this.clearExistingFacetValue(a,e,t);const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}includeFacetValue(e,t){const a=`${this.facetExclusionPrefix}${t}`;return this.removeFacetValue(e,a)}async excludeFacetValue(e,t){this.ensureSearchRequest();const a=`${this.facetExclusionPrefix}${t}`,r=ia(HawkSearch.searchRequest);r.newRequest=!1,r.page=void 0,r.facets||(r.facets={}),this.clearExistingFacetValue(r,e,t),r.facets={...r.facets,[e]:[...r.facets[e]??[],a]};const n=await this.executeSearch(r,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}clearExistingFacetValue(e,t,a){a=a.replace(new RegExp("^"+this.facetExclusionPrefix),"");const r=`${this.facetExclusionPrefix}${a}`;e.facets||(e.facets={}),e.facets={...e.facets,[t]:[...e.facets[t]?.filter(e=>e!==a&&e!==r)??[]]},e.facets[t]?.length||delete e.facets[t]}async setFacetValue(e,t){this.ensureSearchRequest();const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),a.facets[e]=[t];const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async searchWithin(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const a=await this.executeSearch(t,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}async selectTab(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.facets||(t.facets={});const a=HawkSearch.searchResponse?.facets?.find(e=>"tabs"===e.type)?.field;a&&(e?t.facets[a]=[e]:delete t.facets[a]);const r=await this.executeSearch(t,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async paginate(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=e;const a=await this.executeSearch(t,!1);return this.bindPaginationComponent(a),a}async setPageSize(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.pageSize=e;const a=await this.executeSearch(t,!1);return this.bindPageSizeComponent(a),this.bindPaginationComponent(a),a}async sort(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const a=await this.executeSearch(t,!1);return this.bindPaginationComponent(a),this.bindSortingComponent(a),a}async executeSearch(e,t,a=!0){if(this.decodeQuery&&e.query&&(e.query=Ra(e.query)),this.decodeFacetValues&&e.facets)for(const c in e.facets)if(Object.prototype.hasOwnProperty.call(e.facets,c)){const t=[],a=e.facets[c];for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.push(Ra(a[parseInt(e)]));e.facets[c]=t}HawkSearch.searchRequest=e;const r="ImageData"===e.requestType,n=r?"ImageData":"ImageSearch"===e.requestType?"ImageText":"Keyword",i=r?"ImageSearch":e.requestType;"ImageSearch"===i&&localStorage.getItem("hawkimagedata")&&(e.query=String(localStorage.getItem("hawkimagedata")??""),localStorage.removeItem("hawkimagedata"));const s={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},CustomURL:e.url,RequestType:i||"DefaultSearch",IgnoreSpellcheck:e.disableSpellcheck,IndexName:HawkSearch.config.index,kValue:HawkSearch.config.search?.kValue,[n||"Keyword"]:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort,Variants:{CountFacetHitOnChild:HawkSearch.config.variants?.baseFacetCountOnVariants}};HawkSearch.config.debug&&console.log("hawksearch:debug",{rawSearchRequest:s});try{this.triggerEvent("hawksearch:before-search-executed",s);const n=await this.httpPost("/api/v2/search",s,this.getApiHeaders()),i=this.convertResponse(e,n);return HawkSearch.searchResponse=i,this.triggerEvent("hawksearch:after-search-executed",n),HawkSearch.services.tracking.trackSearch(r?"image-upload":e.query,t),r||this.setQueryString(i),this.setSeoElements(i),t&&i.redirect&&i.redirect.url&&("_blank"!==i.redirect.target&&(this.shouldRenderUI=!1),"_blank"===i.redirect.target?window.open(i.redirect.url,"_blank"):"_parent"===i.redirect.target?window.open(i.redirect.url,"_parent"):"_top"===i.redirect.target?window.open(i.redirect.url,"_top"):window.open(i.redirect.url,"_self")),a&&this.shouldRenderUI&&(this.bindModifiedQueryComponent(i),this.bindQuerySuggestionsComponent(i),this.bindSearchFieldComponent(i),this.bindConceptSearchFieldComponent(i),this.bindUnifiedSearchFieldComponent(i),this.bindSearchResultsListComponent(i),this.bindImageSearchFieldComponent(i)),this.triggerEvent("hawksearch:search-completed",i),i}catch(o){throw this.triggerEvent("hawksearch:search-failed",o||"Error retrieving search response"),new Error("Error retrieving search response",{cause:o})}}ensureSearchRequest(){if(!HawkSearch.searchRequest)throw this.triggerEvent("hawksearch:search-failed","You cannot refine search results until an initial search has been executed"),new Error("You cannot refine search results until an initial search has been executed")}convertResponse(e,t){const a=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":case"swatch":return"color";case"link":return"link";case"openrange":return"datetime"===e.DataType?"date-range":e.IsCurrency||e.IsNumeric?"numeric-range":"unsupported";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";default:return"unsupported"}},r=e=>{if("scrolling"===e.DisplayType)return{height:e.ScrollHeight||void 0,threshold:e.ScrollThreshold||0}},n=["date-range","numeric-range","range-slider"],i=e=>{const t=a(e);if(n.includes(t)&&e.Values?.length)return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}},s=(e,t)=>{const a=e.Ranges?.find(e=>e.Value.toLowerCase()===t.Value.toLowerCase());if(a?.AssetFullUrl)return this.getFullUrl(a.AssetFullUrl,HawkSearch.config.urlPrefixes?.assets)},o=(e,t)=>{let a=e.SwatchData?.find(e=>e.Value.toLowerCase()===t.Value.toLowerCase());if(a||(a=e.SwatchData?.find(e=>e.IsDefault)),!a)return;const r="string"==typeof a.AssetUrl&&/^https?:\/\//i.test(a.AssetUrl);return{name:t.Label,hex:a.Color||a.Value,imageUrl:r?a.AssetUrl:this.getFullUrl(a.AssetUrl||a.AssetName,HawkSearch.config.urlPrefixes?.assets)}},c=(e,t,r)=>"recent-searches"===a(e)?this.getRecentQueries().map(e=>({title:this.decodeFacetValues?Ra(e):e})):t?.map(t=>({title:t.Label,imageUrl:s(e,t),value:t.Value,color:o(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:r?.Items?.some(e=>e.Value===`${this.facetExclusionPrefix}${t.Value}`),children:c(e,t.Children,r)})),l=e=>{if("truncating"===e.DisplayType)return{threshold:parseFloat(e.TruncateThreshold)||0}},h=e=>{const t=this.getVariants(e.Document);return{attributes:Object.fromEntries(Object.entries(e.Document).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e))),description:this.getString(e.Document,this.fieldMappings.description),id:e.DocId,imageUrl:this.getUrl(e.Document,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),pinned:e.IsPin??!1,price:this.getNumber(e.Document,this.fieldMappings.price)||void 0,rating:this.getNumber(e.Document,this.fieldMappings.rating),salePrice:this.getNumber(e.Document,this.fieldMappings.salePrice)||void 0,score:e.Score,sku:this.getString(e.Document,this.fieldMappings.sku),selectedVariant:t.selectedItem,title:this.getString(e.Document,this.fieldMappings.title),type:((e,t)=>{"string"==typeof t&&(t=[t]);const a=(HawkSearch.config.search?.itemTypes?.productValues??["item","product"]).map(e=>e.toLowerCase());for(const r of t){let t=ut(e,r);if(t&&t instanceof Array&&(t=t[0]),t&&a.includes(t.toLowerCase()))return"product"}return HawkSearch.config.search?.itemTypes?.default??"content"})(e.Document,this.fieldMappings.type),url:this.getUrl(e.Document,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:t.items,visible:e.IsVisible??!0}},d=e=>{if(e.IsSearch)return{threshold:parseFloat(e.SearchThreshold)||0}},u=()=>{const a="searchWithin",r=t.Facets?.find(e=>e.Field===a);return e.searchWithin&&r?[{field:a,title:r.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},p=(e,t,a)=>{("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&this.desktopOnlyBanner&&(t="");const r={campaignId:e.CampaignId,id:e.BannerId,title:e.Title,trackingEnabled:e.IsTrackingEnabled??!0,type:e[t+"ContentType"],zone:a??e.Zone,trigger:e.Trigger?{BannerGroupId:e.Trigger.BannerGroupId,Name:e.Trigger.Name,Rule:function e(t){return{Field:t.FieldName,Condition:t.Condition,Value:t.Value,Rules:(t.Rules||[]).map(e)}}(e.Trigger.Rule)}:void 0};switch(r.type){case"custom":r.content=e[t+"Output"];break;case"featured":{const t=r;t.type="featured-items",t.items=[...(e.Items??[]).map(h),...(e.FeaturedItems??[]).map(h)];break}case"image":{const a=r;a.image={url:this.getFullUrl(e[t+"ImageUrl"],HawkSearch.config.urlPrefixes?.assets),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},a.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const a=r;a.type="popular-queries";const n=e[t+"Output"]??[],i=Math.min(...n.map(e=>e.count)),s=Math.max(...n.map(e=>e.count))-i,o=5,c=new Array(o).fill(0);c.forEach((e,t)=>{c[t]=t===o-1?0:Math.floor(s/(t+1))+i}),a.items=n.map(e=>({query:e.keyword,count:e.count,weight:o-c.findIndex(t=>e.count>=t)})).sort((e,t)=>e.query.localeCompare(t.query));break}default:{const t=r;t.type="custom-widget",t.data=e.AltTag}}}return r},g={content:{breadcrumbs:t.Breadcrumb||void 0,customHtml:t.CustomHtml||void 0,heading:t.PageHeading||void 0},contentZones:(()=>{const e={};return t.FeaturedItems?.Items.forEach(t=>{const a=e[t.Zone]??{name:t.Zone},r={mobile:p(t,""),tablet:p(t,""),desktop:p(t,"")};a.items=[...a.items??[],r],e[t.Zone]=a}),t.Merchandising?.Items.forEach(t=>{const a=e[t.Zone]??{name:t.Zone},r={mobile:p(t,"Mobile"),tablet:p(t,"Tablet"),desktop:p(t,"")};a.items=[...a.items??[],r],e[t.Zone]=a}),t.PageContent?.forEach(t=>{const a=e[t.ZoneName]??{name:t.ZoneName};t.Items.forEach(e=>{const t={mobile:p(e,"Mobile",a.name),tablet:p(e,"Tablet",a.name),desktop:p(e,"",a.name)};a.items=[...a.items??[],t]}),e[t.ZoneName]=a}),e})(),customLayout:t.PageLayoutHtml||void 0,facets:t.Facets?.map(n=>{return{id:n.FacetId,type:a(n),title:n.Name,field:n.ParamName||n.Field,collapsible:n.IsCollapsible??!1,collapsed:n.IsCollapsedDefault,displayCount:n.ShowItemsCount,range:i(n),scrolling:r(n),search:d(n),searchWithin:e.searchWithin,tooltip:this.stripHtml(n.Tooltip??"")||void 0,truncation:l(n),values:c(n,n.Values,t.Selections?.[n.ParamName||n.Field]),visible:(s=n,"recent-searches"===a(s)?!!c(s,void 0,void 0)?.length:s.IsVisible??!0)};var s}).filter(e=>"unsupported"!==e.type&&!(n.includes(e.type)&&!e.range)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:t.Pagination.Items.map(e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))??[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:t.Results?.map(h),selectedFacets:(()=>[...Object.keys(t.Selections??[]).map(e=>{const a=t.Selections[e],r=t.Facets?.find(t=>(t.ParamName||t.Field)===e),n=new RegExp("^"+this.facetExclusionPrefix);return{field:e,currency:r?.IsCurrency??!1,title:a.Label,values:a.Items.map(e=>({title:e.Label.replace(n,""),value:e.Value,excluded:n.test(e.Value)}))}}),...u()])(),seo:{canonicalUrl:t.RelCanonical,description:t.MetaDescription,keywords:t.MetaKeywords,robots:t.MetaRobots,title:t.HeaderTitle},success:t.Success,sorting:{value:t.Sorting?.Value,options:t.Sorting?.Items.map(e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))??[]},trackingId:t.TrackingId},m=new URL(this.getSearchUrl(e));return g.seo||(g.seo={}),g.seo.canonicalUrl=(g.seo.canonicalUrl?.replace(/\?.*$/,"")||m.origin+m.pathname)+m.search,g}bindComponents(e){this.bindLandingPageComponent(e),this.bindSearchResultsComponent(e),setTimeout(()=>{this.bindConceptSearchFieldComponent(e),this.bindFacetsListComponent(e),this.bindImageSearchFieldComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindUnifiedSearchFieldComponent(e),this.bindSmartResponseComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)})}bindFacetsListComponent(e){this.triggerBindEvent("facets-list",e?.facets)}bindLandingPageComponent(e){this.triggerBindEvent("landing-page",e)}bindModifiedQueryComponent(e){const t={display:!!e?.query&&!!e?.modifiedQuery&&HawkSearch.searchRequest.newRequest,query:e?.query,modifiedQuery:e?.modifiedQuery};this.triggerBindEvent("modified-query",t)}bindPageSizeComponent(e){this.triggerBindEvent("page-size",e?.pagination?.options)}bindPaginationComponent(e){this.triggerBindEvent("pagination",e?.pagination)}bindSearchFieldComponent(e){this.triggerBindEvent("search-field",e)}bindConceptSearchFieldComponent(e){this.triggerBindEvent("conceptsearch-field",e)}bindImageSearchFieldComponent(e){this.triggerBindEvent("imagesearch-field",e)}bindUnifiedSearchFieldComponent(e){this.triggerBindEvent("unifiedsearch-field",e)}bindSearchResultsComponent(e){this.triggerBindEvent("search-results",e)}bindSearchResultsListComponent(e){this.triggerBindEvent("search-results-list",e?.results)}bindQuerySuggestionsComponent(e){const t={display:!!e?.querySuggestions?.length&&HawkSearch.searchRequest.newRequest,querySuggestions:e?.querySuggestions};this.triggerBindEvent("query-suggestions",t)}bindSmartResponseComponent(e){this.triggerBindEvent("smartresponse",e)}bindSortingComponent(e){this.triggerBindEvent("sorting",e?.sorting)}bindSelectedFacetsComponent(e){this.triggerBindEvent("selected-facets",e?.selectedFacets)}bindTabsComponent(e){this.triggerBindEvent("tabs",e?.facets?.find(e=>"tabs"===e.type))}bindZoneComponent(e){this.triggerBindEvent("content-zone",e)}getRequestFromUrl(){const e=new URL(window.location.href),t=Object.values(this.queryStringParams),a={};for(const r of Array.from(e.searchParams.keys()).filter(e=>!t.includes(e))){a[r]=e.searchParams.getAll(r)}return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:a,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort)),requestType:this.getStringParameter(e.searchParams.get(this.queryStringParams.requestType))}}setQueryString(e){if(!HawkSearch.searchRequest)return;const t=this.getSearchUrl(HawkSearch.searchRequest),a={searchRequest:HawkSearch.searchRequest,searchResponse:e};t.toString()===window.location.href?window.history.replaceState(a,""):window.history.pushState(a,"",t.toString())}getSearchUrl(e){const t=window.location.pathname===this.searchUrl||!!e.url,a=new URL(t?window.location.href:this.searchUrl,window.location.origin),r=Object.values(this.queryStringParams);return a.searchParams.delete(this.queryStringParams.query),e.query&&!Ta(e.query)&&a.searchParams.set(this.queryStringParams.query,e.query),Array.from(a.searchParams.keys()).filter(e=>!r.includes(e)).forEach(e=>a.searchParams.delete(e)),e.disableSpellcheck&&a.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).sort((e,t)=>e>t?1:-1).forEach(t=>{e.facets[t]?.forEach(e=>a.searchParams.append(t,e))}),a.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&a.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),a.searchParams.delete(this.queryStringParams.sort),e.sort&&a.searchParams.set(this.queryStringParams.sort,e.sort),a.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&a.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),a.searchParams.delete(this.queryStringParams.page),e.page&&a.searchParams.set(this.queryStringParams.page,e.page.toString()),a.searchParams.delete(this.queryStringParams.requestType),e.requestType&&a.searchParams.set(this.queryStringParams.requestType,e.requestType.toString()),a.toString()}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}setSeoElements(e){if(!e?.seo)return;let t=e.seo.title;t&&HawkSearch.config.seo?.title?.prefix&&(t=`${HawkSearch.config.seo.title.prefix}${t}`),t&&HawkSearch.config.seo?.title?.suffix&&(t=`${t}${HawkSearch.config.seo.title.suffix}`),this.setTitle(t),this.setLinkTag("canonical",e.seo.canonicalUrl),this.setMetaTag("description",e.seo.description),this.setMetaTag("keywords",e.seo.keywords),this.setMetaTag("robots",e.seo.robots)}removeElement(e){const t=document.head.querySelector(e);t&&t.remove()}setLinkTag(e,t){if(!t)return;this.removeElement(`link[rel="${e}"]`);const a=document.createElement("link");a.rel=e,a.href=t,document.head.append(a)}setMetaTag(e,t){if(!t)return;this.removeElement(`meta[name="${e}"]`);const a=document.createElement("meta");a.name=e,a.content=t,document.head.append(a)}setTitle(e){e&&(document.title=e)}},an=class extends Kr{baseUrl=HawkSearch.config.tracking?.endpointUrl||"https://tracking-dev.hawksearch.net";trackAddToCart(e,t,a,r){const n={UniqueId:e,Quantity:t,Price:a,Currency:r};return this.trackEvent(Na.AddToCart,n)}trackAddToCartMultiple(e){const t={ItemsList:e.map(e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price,Currency:e.currencyIsoCode}))};return this.trackEvent(Na.AddToCartMultiple,t)}trackAutocompleteClick(e,t,a,r){const n={Keyword:e,Name:a,SuggestType:t,Url:r};return this.trackEvent(Na.AutocompleteClick,n)}trackBannerClick(e,t){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const a={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(Na.BannerClick,a)}trackBannerImpression(e,t){if(!HawkSearch.searchResponse?.trackingId||!e||!t)return Promise.resolve();const a={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(Na.BannerImpression,a)}trackOrder(e,t,a,r,n,i){const s={OrderNo:e,ItemList:t.map(e=>({UniqueId:e.productId,Quantity:e.quantity,ItemPrice:e.price})),SubTotal:a,Tax:r,Total:n,Currency:i};return this.trackEvent(Na.Sale,s)}trackPageLoad(e,t){if(e===Ua.Item&&!t)throw new Error("productId is required for tracking product detail page requests");const a={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,UniqueId:t,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(Na.PageLoad,a)}trackRating(e,t){const a={UniqueId:e,Value:t};return this.trackEvent(Na.Rate,a)}trackRecommendationClick(e,t,a){const r={WidgetGuid:e,RequestId:t,UniqueId:a};return this.trackEvent(Na.RecommendationClick,r)}trackSearchResultClick(e,t,a){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const r={UniqueId:e,Url:t,TrackingId:HawkSearch.searchResponse.trackingId,ElementNo:this.getElementNo(e),RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:a?.pageX,MouseY:a?.pageY};return this.trackEvent(Na.Click,r)}trackSearch(e,t){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const a={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:HawkSearch.searchResponse.trackingId,TypeId:t?Va.Initial:Va.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(Na.Search,a)}async trackEvent(e,t){if(!1===HawkSearch.config.tracking?.enabled)return;const a={EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};try{await this.httpPost("/api/trackevent",a,this.getApiHeaders())}catch{throw new Error("Error recording search activity")}}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}getElementNo(e){const t=HawkSearch.searchResponse;if(!t||!t.results)return 0;const a=t.results.findIndex(t=>t.id===e);if(-1===a)return 0;return a+1+(t.pagination?.pageSize??1)*((t.pagination?.page??1)-1)}},rn=s(o());window.HawkSearch||(window.HawkSearch={});var nn=window.HawkSearch;nn.init=e=>{nn.config=e,nn.handlebars=rn.noConflict(),nn.handlebars.registerHelper("add",Wa),nn.handlebars.registerHelper("and",Xa),nn.handlebars.registerHelper("arrayFilterObjects",rr),nn.handlebars.registerHelper("arrayHasObjectsWithValue",nr),nn.handlebars.registerHelper("attribute",Ka),nn.handlebars.registerHelper("concat",Ga),nn.handlebars.registerHelper("currency",ar),nn.handlebars.registerHelper("decode",gr),nn.handlebars.registerHelper("decodeNested",mr),nn.handlebars.registerHelper("eq",$a),nn.handlebars.registerHelper("exclude",er),nn.handlebars.registerHelper("html",tr),nn.handlebars.registerHelper("number",hr),nn.handlebars.registerHelper("if-else",or),nn.handlebars.registerHelper("lt",cr),nn.handlebars.registerHelper("lte",lr),nn.handlebars.registerHelper("gt",ir),nn.handlebars.registerHelper("gte",sr),nn.handlebars.registerHelper("or",dr),nn.handlebars.registerHelper("string",ur),nn.handlebars.registerHelper("subtract",pr),nn.services={autocomplete:new Gr,conversational:new $r,recommendations:new en,search:new tn,tracking:new an},Object.entries({autocomplete:Ja,"bubble-content":wa,"checkbox-list-facet":vr,"color-facet":wr,"conceptsearch-field":Rr,"content-zone":xa,conversationalsearch:Br,"custom-content":Aa,"date-picker":Ba,"date-range-facet":Ar,"facet-wrapper":Cr,"facets-list":Mr,"featured-items-content":ya,"featured-items-content-item":ba,icon:qa,"image-content":ka,"imagesearch-field":qr,"landing-page":ja,"link-list-facet":yr,"modified-query":Hr,noresult:Yr,"numeric-range-facet":br,"page-size":Pr,pagination:Ir,"popular-queries-content":_a,"query-suggestions":Dr,"range-slider":La,"range-slider-facet":kr,rating:Oa,recommendations:za,"recommendations-item":Ya,"recent-searches-facet":_r,"related-searches-facet":xr,"search-field":Tr,"search-results":Fr,"search-results-item":Lr,"search-results-list":Or,"search-within-facet":Er,"selected-facets":Qr,"size-facet":Sr,smartresponse:Nr,sorting:Ur,tabs:Vr,tooltip:Fa,"unifiedsearch-field":jr,"variant-selector":Jr,"visualsearch-field":zr}).forEach(([e,t])=>{const a=`hawksearch-${e}`;customElements.get(a)||customElements.define(a,t)}),window.addEventListener("popstate",e=>{const t=e.state;nn.searchRequest=t.searchRequest,nn.searchResponse=t.searchResponse,nn.services.search.bindComponents(t.searchResponse)}),window.dispatchEvent(new CustomEvent("hawksearch:initialized"))},window.dispatchEvent(new CustomEvent("hawksearch:loaded")),module.exports=nn;
10
+ var e=Object.create,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,s=(s,o,c)=>(c=null!=s?e(n(s)):{},((e,n,s,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(var c,l=r(n),h=0,d=l.length;h<d;h++)c=l[h],i.call(e,c)||c===s||t(e,c,{get:(e=>n[e]).bind(null,c),enumerable:!(o=a(n,c))||o.enumerable});return e})(!o&&s&&s.__esModule?c:t(c,"default",{value:s,enumerable:!0}),s)),o=((e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports))((e,t)=>{!function(a,r){"object"==typeof e&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof e?e.Handlebars=r():a.Handlebars=r()}(e,function(){return function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={exports:{},id:r,loaded:!1};return e[r].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}return a.m=e,a.c=t,a.p="",a(0)}([function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(2)),i=r(a(83)),s=a(84),o=a(89),c=r(a(90)),l=r(a(87)),h=r(a(82)),d=n.default.create;function u(){var e=d();return e.compile=function(t,a){return o.compile(t,a,e)},e.precompile=function(t,a){return o.precompile(t,a,e)},e.AST=i.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=c.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var p=u();p.create=u,h.default(p),p.Visitor=l.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,a){"use strict";var r=a(3).default,n=a(1).default;t.__esModule=!0;var i=r(a(4)),s=n(a(76)),o=n(a(6)),c=r(a(5)),l=r(a(77)),h=n(a(82));function d(){var e=new i.HandlebarsEnvironment;return c.extend(e,i),e.SafeString=s.default,e.Exception=o.default,e.Utils=c,e.escapeExpression=c.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var u=d();u.create=d,h.default(u),u.default=u,t.default=u,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},t.__esModule=!0},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.HandlebarsEnvironment=d;var n=a(5),i=r(a(6)),s=a(10),o=a(70),c=r(a(72)),l=a(73);t.VERSION="4.7.9",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var h="[object Object]";function d(e,t,a){this.helpers=e||{},this.partials=t||{},this.decorators=a||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(n.toString.call(e)===h){if(t)throw new i.default("Arg not supported with multiple helpers");n.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(n.toString.call(e)===h)n.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(n.toString.call(e)===h){if(t)throw new i.default("Arg not supported with multiple decorators");n.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}},t.log=c.default.log,t.createFrame=n.createFrame,t.logger=c.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var a=0,r=e.length;a<r;a++)if(e[a]===t)return a;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return n.test(e)?e.replace(r,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,n=/[&<>"'`=]/;function i(e){return a[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var a in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],a)&&(e[a]=arguments[t][a]);return e}var o=Object.prototype.toString;t.toString=o;var c=function(e){return"function"==typeof e};c(/x/)&&(t.isFunction=c=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=c;var l=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=l},function(e,t,a){"use strict";var r=a(7).default;t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var a=t&&t.loc,s=void 0,o=void 0,c=void 0,l=void 0;a&&(s=a.start.line,o=a.end.line,c=a.start.column,l=a.end.column,e+=" - "+s+":"+c);for(var h=Error.prototype.constructor.call(this,e),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{a&&(this.lineNumber=s,this.endLineNumber=o,r?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=c,this.endColumn=l))}catch(u){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,a){e.exports={default:a(8),__esModule:!0}},function(e,t,a){var r=a(9);e.exports=function(e,t,a){return r.setDesc(e,t,a)}},function(e,t){var a=Object;e.exports={create:a.create,getProto:a.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:a.getOwnPropertyDescriptor,setDesc:a.defineProperty,setDescs:a.defineProperties,getKeys:a.keys,getNames:a.getOwnPropertyNames,getSymbols:a.getOwnPropertySymbols,each:[].forEach}},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){n.default(e),i.default(e),s.default(e),o.default(e),c.default(e),l.default(e),h.default(e)},t.moveHelperToHooks=function(e,t,a){e.helpers[t]&&(e.hooks[t]=e.helpers[t],a||(e.helpers[t]=void 0))};var n=r(a(11)),i=r(a(12)),s=r(a(65)),o=r(a(66)),c=r(a(67)),l=r(a(68)),h=r(a(69))},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,a){var n=a.inverse,i=a.fn;if(!0===t)return i(this);if(!1===t||null==t)return n(this);if(r.isArray(t))return t.length>0?(a.ids&&(a.ids=[a.name]),e.helpers.each(t,a)):n(this);if(a.data&&a.ids){var s=r.createFrame(a.data);s.contextPath=r.appendContextPath(a.data.contextPath,a.name),a={data:s}}return i(t,a)})},e.exports=t.default},function(e,t,a){"use strict";var r=a(13).default,n=a(43).default,i=a(55).default,s=a(60).default,o=a(1).default;t.__esModule=!0;var c=a(5),l=o(a(6));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new l.default("Must pass iterator to #each");var a,o=t.fn,h=t.inverse,d=0,u="",p=void 0,g=void 0;function m(t,a,r){p&&(p.key=t,p.index=a,p.first=0===a,p.last=!!r,g&&(p.contextPath=g+t)),u+=o(e[t],{data:p,blockParams:c.blockParams([e[t],t],[g+t,null])})}if(t.data&&t.ids&&(g=c.appendContextPath(t.data.contextPath,t.ids[0])+"."),c.isFunction(e)&&(e=e.call(this)),t.data&&(p=c.createFrame(t.data)),e&&"object"==typeof e)if(c.isArray(e))for(var f=e.length;d<f;d++)d in e&&m(d,d,d===e.length-1);else if("function"==typeof r&&e[n]){for(var v=[],w=i(e),A=w.next();!A.done;A=w.next())v.push(A.value);for(f=(e=v).length;d<f;d++)m(d,d,d===e.length-1)}else a=void 0,s(e).forEach(function(e){void 0!==a&&m(a,d-1),a=e,d++}),void 0!==a&&m(a,d-1,!0);return 0===d&&(u=h(this)),u})},e.exports=t.default},function(e,t,a){e.exports={default:a(14),__esModule:!0}},function(e,t,a){a(15),a(42),e.exports=a(21).Symbol},function(e,t,a){"use strict";var r=a(9),n=a(16),i=a(17),s=a(18),o=a(20),c=a(24),l=a(19),h=a(27),d=a(28),u=a(30),p=a(29),g=a(31),m=a(36),f=a(37),v=a(38),w=a(39),A=a(32),y=a(26),b=r.getDesc,k=r.setDesc,_=r.create,x=m.get,E=n.Symbol,S=n.JSON,C=S&&S.stringify,M=!1,H=p("_hidden"),P=r.isEnum,I=h("symbol-registry"),D=h("symbols"),T="function"==typeof E,R=Object.prototype,B=s&&l(function(){return 7!=_(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,a){var r=b(R,t);r&&delete R[t],k(e,t,a),r&&e!==R&&k(R,t,r)}:k,q=function(e){var t=D[e]=_(E.prototype);return t._k=e,s&&M&&B(R,e,{configurable:!0,set:function(t){i(this,H)&&i(this[H],e)&&(this[H][e]=!1),B(this,e,y(1,t))}}),t},L=function(e){return"symbol"==typeof e},O=function(e,t,a){return a&&i(D,t)?(a.enumerable?(i(e,H)&&e[H][t]&&(e[H][t]=!1),a=_(a,{enumerable:y(0,!1)})):(i(e,H)||k(e,H,y(1,{})),e[H][t]=!0),B(e,t,a)):k(e,t,a)},F=function(e,t){w(e);for(var a,r=f(t=A(t)),n=0,i=r.length;i>n;)O(e,a=r[n++],t[a]);return e},Q=function(e,t){return void 0===t?_(e):F(_(e),t)},N=function(e){var t=P.call(this,e);return!(t||!i(this,e)||!i(D,e)||i(this,H)&&this[H][e])||t},U=function(e,t){var a=b(e=A(e),t);return!a||!i(D,t)||i(e,H)&&e[H][t]||(a.enumerable=!0),a},V=function(e){for(var t,a=x(A(e)),r=[],n=0;a.length>n;)i(D,t=a[n++])||t==H||r.push(t);return r},j=function(e){for(var t,a=x(A(e)),r=[],n=0;a.length>n;)i(D,t=a[n++])&&r.push(D[t]);return r},z=l(function(){var e=E();return"[null]"!=C([e])||"{}"!=C({a:e})||"{}"!=C(Object(e))});T||(E=function(){if(L(this))throw TypeError("Symbol is not a constructor");return q(u(arguments.length>0?arguments[0]:void 0))},c(E.prototype,"toString",function(){return this._k}),L=function(e){return e instanceof E},r.create=Q,r.isEnum=N,r.getDesc=U,r.setDesc=O,r.setDescs=F,r.getNames=m.get=V,r.getSymbols=j,s&&!a(41)&&c(R,"propertyIsEnumerable",N,!0));var Y={for:function(e){return i(I,e+="")?I[e]:I[e]=E(e)},keyFor:function(e){return g(I,e)},useSetter:function(){M=!0},useSimple:function(){M=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=p(e);Y[e]=T?t:q(t)}),M=!0,o(o.G+o.W,{Symbol:E}),o(o.S,"Symbol",Y),o(o.S+o.F*!T,"Object",{create:Q,defineProperty:O,defineProperties:F,getOwnPropertyDescriptor:U,getOwnPropertyNames:V,getOwnPropertySymbols:j}),S&&o(o.S+o.F*(!T||z),"JSON",{stringify:function(e){if(void 0!==e&&!L(e)){for(var t,a,r=[e],n=1,i=arguments;i.length>n;)r.push(i[n++]);return"function"==typeof(t=r[1])&&(a=t),!a&&v(t)||(t=function(e,t){if(a&&(t=a.call(this,e,t)),!L(t))return t}),r[1]=t,C.apply(S,r)}}}),d(E,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(e,t){var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t,a){e.exports=!a(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,a){var r=a(16),n=a(21),i=a(22),s="prototype",o=function(e,t,a){var c,l,h,d=e&o.F,u=e&o.G,p=e&o.S,g=e&o.P,m=e&o.B,f=e&o.W,v=u?n:n[t]||(n[t]={}),w=u?r:p?r[t]:(r[t]||{})[s];for(c in u&&(a=t),a)(l=!d&&w&&c in w)&&c in v||(h=l?w[c]:a[c],v[c]=u&&"function"!=typeof w[c]?a[c]:m&&l?i(h,r):f&&w[c]==h?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[s]=e[s],t}(h):g&&"function"==typeof h?i(Function.call,h):h,g&&((v[s]||(v[s]={}))[c]=h))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,e.exports=o},function(e,t){var a=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=a)},function(e,t,a){var r=a(23);e.exports=function(e,t,a){if(r(e),void 0===t)return e;switch(a){case 1:return function(a){return e.call(t,a)};case 2:return function(a,r){return e.call(t,a,r)};case 3:return function(a,r,n){return e.call(t,a,r,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,a){e.exports=a(25)},function(e,t,a){var r=a(9),n=a(26);e.exports=a(18)?function(e,t,a){return r.setDesc(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,a){var r=a(16),n="__core-js_shared__",i=r[n]||(r[n]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,a){var r=a(9).setDesc,n=a(17),i=a(29)("toStringTag");e.exports=function(e,t,a){e&&!n(e=a?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,a){var r=a(27)("wks"),n=a(30),i=a(16).Symbol;e.exports=function(e){return r[e]||(r[e]=i&&i[e]||(i||n)("Symbol."+e))}},function(e,t){var a=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+r).toString(36))}},function(e,t,a){var r=a(9),n=a(32);e.exports=function(e,t){for(var a,i=n(e),s=r.getKeys(i),o=s.length,c=0;o>c;)if(i[a=s[c++]]===t)return a}},function(e,t,a){var r=a(33),n=a(35);e.exports=function(e){return r(n(e))}},function(e,t,a){var r=a(34);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,a){var r=a(32),n=a(9).getNames,i={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.get=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return n(e)}catch(t){return s.slice()}}(e):n(r(e))}},function(e,t,a){var r=a(9);e.exports=function(e){var t=r.getKeys(e),a=r.getSymbols;if(a)for(var n,i=a(e),s=r.isEnum,o=0;i.length>o;)s.call(e,n=i[o++])&&t.push(n);return t}},function(e,t,a){var r=a(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,a){var r=a(40);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=!0},function(e,t){},function(e,t,a){e.exports={default:a(44),__esModule:!0}},function(e,t,a){a(45),a(51),e.exports=a(29)("iterator")},function(e,t,a){"use strict";var r=a(46)(!0);a(48)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,a=this._i;return a>=t.length?{value:void 0,done:!0}:(e=r(t,a),this._i+=e.length,{value:e,done:!1})})},function(e,t,a){var r=a(47),n=a(35);e.exports=function(e){return function(t,a){var i,s,o=String(n(t)),c=r(a),l=o.length;return c<0||c>=l?e?"":void 0:(i=o.charCodeAt(c))<55296||i>56319||c+1===l||(s=o.charCodeAt(c+1))<56320||s>57343?e?o.charAt(c):i:e?o.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t){var a=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:a)(e)}},function(e,t,a){"use strict";var r=a(41),n=a(20),i=a(24),s=a(25),o=a(17),c=a(49),l=a(50),h=a(28),d=a(9).getProto,u=a(29)("iterator"),p=!([].keys&&"next"in[].keys()),g="@@iterator",m="keys",f="values",v=function(){return this};e.exports=function(e,t,a,w,A,y,b){l(a,t,w);var k,_,x=function(e){if(!p&&e in M)return M[e];switch(e){case m:case f:return function(){return new a(this,e)}}return function(){return new a(this,e)}},E=t+" Iterator",S=A==f,C=!1,M=e.prototype,H=M[u]||M[g]||A&&M[A],P=H||x(A);if(H){var I=d(P.call(new e));h(I,E,!0),!r&&o(M,g)&&s(I,u,v),S&&H.name!==f&&(C=!0,P=function(){return H.call(this)})}if(r&&!b||!p&&!C&&M[u]||s(M,u,P),c[t]=P,c[E]=v,A)if(k={values:S?P:x(f),keys:y?P:x(m),entries:S?x("entries"):P},b)for(_ in k)_ in M||i(M,_,k[_]);else n(n.P+n.F*(p||C),t,k);return k}},function(e,t){e.exports={}},function(e,t,a){"use strict";var r=a(9),n=a(26),i=a(28),s={};a(25)(s,a(29)("iterator"),function(){return this}),e.exports=function(e,t,a){e.prototype=r.create(s,{next:n(1,a)}),i(e,t+" Iterator")}},function(e,t,a){a(52);var r=a(49);r.NodeList=r.HTMLCollection=r.Array},function(e,t,a){"use strict";var r=a(53),n=a(54),i=a(49),s=a(32);e.exports=a(48)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,a=this._i++;return!e||a>=e.length?(this._t=void 0,n(1)):n(0,"keys"==t?a:"values"==t?e[a]:[a,e[a]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,a){e.exports={default:a(56),__esModule:!0}},function(e,t,a){a(51),a(45),e.exports=a(57)},function(e,t,a){var r=a(39),n=a(58);e.exports=a(21).getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,a){var r=a(59),n=a(29)("iterator"),i=a(49);e.exports=a(21).getIteratorMethod=function(e){if(null!=e)return e[n]||e["@@iterator"]||i[r(e)]}},function(e,t,a){var r=a(34),n=a(29)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,a,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=(t=Object(e))[n])?a:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,a){e.exports={default:a(61),__esModule:!0}},function(e,t,a){a(62),e.exports=a(21).Object.keys},function(e,t,a){var r=a(63);a(64)("keys",function(e){return function(t){return e(r(t))}})},function(e,t,a){var r=a(35);e.exports=function(e){return Object(r(e))}},function(e,t,a){var r=a(20),n=a(21),i=a(19);e.exports=function(e,t){var a=(n.Object||{})[e]||Object[e],s={};s[e]=t(a),r(r.S+r.F*i(function(){a(1)}),"Object",s)}},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(6));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new n.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=a(5),i=r(a(6));t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return n.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||n.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,a){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],a=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var n=1;null!=a.hash.level?n=a.hash.level:a.data&&null!=a.data.level&&(n=a.data.level),t[0]=n,e.log.apply(e,t)})},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,a){return e?a.lookupProperty(e,t):e})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=a(5),i=r(a(6));t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");n.isFunction(e)&&(e=e.call(this));var a=t.fn;if(n.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=n.createFrame(t.data)).contextPath=n.appendContextPath(t.data.contextPath,t.ids[0])),a(e,{data:r,blockParams:n.blockParams([e],[r&&r.contextPath])})})},e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){n.default(e)};var n=r(a(71))},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5);t.default=function(e){e.registerDecorator("inline",function(e,t,a,n){var i=e;return t.partials||(t.partials={},i=function(n,i){var s=a.partials;a.partials=r.extend({},s,t.partials);var o=e(n,i);return a.partials=s,o}),t.partials[n.args[0]]=n.fn,i})},e.exports=t.default},function(e,t,a){"use strict";t.__esModule=!0;var r=a(5),n={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(n.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=n.lookupLevel(e),"undefined"!=typeof console&&n.lookupLevel(n.level)<=e){var t=n.methodMap[e];console[t]||(t="log");for(var a=arguments.length,r=Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];console[t].apply(console,r)}}};t.default=n,e.exports=t.default},function(e,t,a){"use strict";var r=a(74).default,n=a(60).default,i=a(1).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=r(null);t.__proto__=!1,s.extend(t,e.allowedProtoProperties);var a=r(null);return a.constructor=!1,a.__defineGetter__=!1,a.__defineSetter__=!1,a.__lookupGetter__=!1,a.__lookupSetter__=!1,s.extend(a,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:a,defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,a){return l("function"==typeof e?t.methods:t.properties,a)},t.resetLoggedProperties=function(){n(c).forEach(function(e){delete c[e]})};var s=a(5),o=i(a(72)),c=r(null);function l(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==c[e]&&(c[e]=!0,o.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,a){e.exports={default:a(75),__esModule:!0}},function(e,t,a){var r=a(9);e.exports=function(e,t){return r.create(e,t)}},function(e,t){"use strict";function a(e){this.string=e}t.__esModule=!0,a.prototype.toString=a.prototype.toHTML=function(){return""+this.string},t.default=a,e.exports=t.default},function(e,t,a){"use strict";var r=a(78).default,n=a(60).default,i=a(3).default,s=a(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,a=l.COMPILER_REVISION;if(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)return;if(t<l.LAST_COMPATIBLE_COMPILER_REVISION){var r=l.REVISION_CHANGES[a],n=l.REVISION_CHANGES[t];throw new c.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+n+").")}throw new c.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new c.default("No environment passed to template");if(!e||!e.main)throw new c.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var a=e.compiler&&7===e.compiler[0];var n={strict:function(e,t,a){if(!e||!(t in e))throw new c.default('"'+t+'" not defined in '+e,{loc:a});return n.lookupProperty(e,t)},lookupProperty:function(e,t){var a=e[t];return null==a||Object.prototype.hasOwnProperty.call(e,t)||u.resultIsAllowed(a,n.protoAccessControl,t)?a:void 0},lookup:function(e,t){for(var a=e.length,r=0;r<a;r++){var i=e[r]&&n.lookupProperty(e[r],t);if(null!=i)return i}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(a,r,n){n.hash&&(r=o.extend({},r,n.hash),n.ids&&(n.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,r,n),n.hooks=this.hooks,n.protoAccessControl=this.protoAccessControl;var i=t.VM.invokePartial.call(this,a,r,n);if(null==i&&t.compile&&(n.partials[n.name]=t.compile(a,e.compilerOptions,t),i=n.partials[n.name](r,n)),null!=i){if(n.indent){for(var s=i.split("\n"),l=0,h=s.length;l<h&&(s[l]||l+1!==h);l++)s[l]=n.indent+s[l];i=s.join("\n")}return i}throw new c.default("The partial "+n.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var a=e[t];return a.decorator=e[t+"_d"],a},programs:[],program:function(e,t,a,r,n){var i=this.programs[e],s=this.fn(e);return t||n||r||a?i=p(this,e,s,t,a,r,n):i||(i=this.programs[e]=p(this,e,s)),i},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var a=e||t;return e&&t&&e!==t&&(a=o.extend({},t,e)),a},nullContext:r({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=a.data;i._setup(a),!a.partial&&e.useData&&(r=function(e,t){t&&"root"in t||((t=t?l.createFrame(t):{}).root=e);return t}(t,r));var s=void 0,o=e.useBlockParams?[]:void 0;function c(t){return""+e.main(n,t,n.helpers,n.partials,r,o,s)}return e.useDepths&&(s=a.depths?t!=a.depths[0]?[t].concat(a.depths):a.depths:[t]),(c=f(e.main,c,n,a.depths||[],r,o))(t,a)}return i.isTop=!0,i._setup=function(r){if(r.partial)n.protoAccessControl=r.protoAccessControl,n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators,n.hooks=r.hooks;else{var i={};v(i,t.helpers,n),v(i,r.helpers,n),n.helpers=i,e.usePartial&&(n.partials=n.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=o.extend({},t.decorators,r.decorators)),n.hooks={},n.protoAccessControl=u.createProtoAccessControl(r);var s=r.allowCallsToHelperMissing||a;h.moveHelperToHooks(n,"helperMissing",s),h.moveHelperToHooks(n,"blockHelperMissing",s)}},i._child=function(t,a,r,i){if(e.useBlockParams&&!r)throw new c.default("must pass block params");if(e.useDepths&&!i)throw new c.default("must pass parent depths");return p(n,t,e[t],a,0,r,i)},i},t.wrapProgram=p,t.resolvePartial=function(e,t,a){e?e.call||a.name||(a.name=e,e=m(a.partials,e)):e="@partial-block"===a.name?m(a.data,"partial-block"):m(a.partials,a.name);return e},t.invokePartial=function(e,t,a){var r=m(a.data,"partial-block");a.partial=!0,a.ids&&(a.data.contextPath=a.ids[0]||a.data.contextPath);var n=void 0;a.fn&&a.fn!==g&&function(){a.data=l.createFrame(a.data);var e=a.fn;n=a.data["partial-block"]=function(t){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a.data=l.createFrame(a.data),a.data["partial-block"]=r,e(t,a)},e.partials&&(a.partials=o.extend({},a.partials,e.partials))}();void 0===e&&n&&(e=n);if(void 0===e)throw new c.default("The partial "+a.name+" could not be found");if(e instanceof Function)return e(t,a)},t.noop=g;var o=i(a(5)),c=s(a(6)),l=a(4),h=a(10),d=a(81),u=a(73);function p(e,t,a,r,n,i,s){function o(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),a(e,t,e.helpers,e.partials,n.data||r,i&&[n.blockParams].concat(i),o)}return(o=f(a,o,e,s,r,i)).program=t,o.depth=s?s.length:0,o.blockParams=n||0,o}function g(){return""}function m(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function f(e,t,a,r,n,i){if(e.decorator){var s={};t=e.decorator(t,s,a,r&&r[0],n,i,r),o.extend(t,s)}return t}function v(e,t,a){t&&n(t).forEach(function(r){var n=t[r];e[r]=function(e,t){var a=t.lookupProperty;return d.wrapHelper(e,function(e){return e.lookupProperty=a,e})}(n,a)})}},function(e,t,a){e.exports={default:a(79),__esModule:!0}},function(e,t,a){a(80),e.exports=a(21).Object.seal},function(e,t,a){var r=a(40);a(64)("seal",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0;var a={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!a.helpers.scopedId(e)&&!e.depth}}};t.default=a,e.exports=t.default},function(e,t,a){"use strict";var r=a(60).default,n=a(1).default,i=a(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var a=u(e,t);return new o.default(t).accept(a)};var s=n(a(85)),o=n(a(86)),c=i(a(88)),l=n(a(6)),h=a(5);t.parser=s.default;var d={};function u(e,t){return"Program"===e.type?(p(e),e):(s.default.yy=d,d.locInfo=function(e){return new d.SourceLocation(t&&t.srcName,e)},s.default.parse(e))}function p(e){if(null!=e)if(Array.isArray(e))e.forEach(p);else if("object"==typeof e){if("PathExpression"===e.type){if(!("number"==typeof(a=e.depth)&&isFinite(a)&&Math.floor(a)===a&&a>=0))throw new l.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new l.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if("string"!=typeof e.parts[t])throw new l.default("Invalid AST: PathExpression.parts must only contain strings")}else if("NumberLiteral"===e.type){if("number"!=typeof e.value||!isFinite(e.value))throw new l.default("Invalid AST: NumberLiteral.value must be a number")}else if("BooleanLiteral"===e.type&&"boolean"!=typeof e.value)throw new l.default("Invalid AST: BooleanLiteral.value must be a boolean");var a;r(e).forEach(function(t){"loc"!==t&&p(e[t])})}}h.extend(d,c)},function(e,t){"use strict";t.__esModule=!0,t.default=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,a,r,n,i,s){var o=i.length-1;switch(n){case 1:return i[o-1];case 2:this.$=r.prepareProgram(i[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=i[o];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(i[o]),strip:r.stripFlags(i[o],i[o]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[o],value:i[o],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(i[o-2],i[o-1],i[o],this._$);break;case 12:this.$={path:i[o-3],params:i[o-2],hash:i[o-1]};break;case 13:this.$=r.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!1,this._$);break;case 14:this.$=r.prepareBlock(i[o-3],i[o-2],i[o-1],i[o],!0,this._$);break;case 15:this.$={open:i[o-5],path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:r.stripFlags(i[o-5],i[o])};break;case 16:case 17:this.$={path:i[o-4],params:i[o-3],hash:i[o-2],blockParams:i[o-1],strip:r.stripFlags(i[o-5],i[o])};break;case 18:this.$={strip:r.stripFlags(i[o-1],i[o-1]),program:i[o]};break;case 19:var c=r.prepareBlock(i[o-2],i[o-1],i[o],i[o],!1,this._$),l=r.prepareProgram([c],i[o-1].loc);l.chained=!0,this.$={strip:i[o-2].strip,program:l,chain:!0};break;case 21:this.$={path:i[o-1],strip:r.stripFlags(i[o-2],i[o])};break;case 22:case 23:this.$=r.prepareMustache(i[o-3],i[o-2],i[o-1],i[o-4],r.stripFlags(i[o-4],i[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[o-3],params:i[o-2],hash:i[o-1],indent:"",strip:r.stripFlags(i[o-4],i[o]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(i[o-2],i[o-1],i[o],this._$);break;case 26:this.$={path:i[o-3],params:i[o-2],hash:i[o-1],strip:r.stripFlags(i[o-4],i[o])};break;case 29:this.$={type:"SubExpression",path:i[o-3],params:i[o-2],hash:i[o-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[o],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(i[o-2]),value:i[o],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(i[o-1]);break;case 35:this.$={type:"StringLiteral",value:i[o],original:i[o],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[o]),original:Number(i[o]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[o],original:"true"===i[o],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,i[o],this._$);break;case 43:this.$=r.preparePath(!1,i[o],this._$);break;case 44:i[o-2].push({part:r.id(i[o]),original:i[o],separator:i[o-1]}),this.$=i[o-2];break;case 45:this.$=[{part:r.id(i[o]),original:i[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:i[o-1].push(i[o]);break;case 98:case 100:this.$=[i[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,a=[0],r=[null],n=[],i=this.table,s="",o=0,c=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;n.push(h);var d=this.lexer.options&&this.lexer.options.ranges;function u(){var e=t.lexer.lex()||1;return"number"!=typeof e&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,g,m,f,v,w,A,y,b,k={};;){if(m=a[a.length-1],this.defaultActions[m]?f=this.defaultActions[m]:(null==p&&(p=u()),f=i[m]&&i[m][p]),void 0===f||!f.length||!f[0]){var _="";if(!l){for(w in b=[],i[m])this.terminals_[w]&&w>2&&b.push("'"+this.terminals_[w]+"'");_=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:h,expected:b})}}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(f[0]){case 1:a.push(p),r.push(this.lexer.yytext),n.push(this.lexer.yylloc),a.push(f[1]),p=null,g?(p=g,g=null):(c=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,h=this.lexer.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[f[1]][1],k.$=r[r.length-A],k._$={first_line:n[n.length-(A||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(A||1)].first_column,last_column:n[n.length-1].last_column},d&&(k._$.range=[n[n.length-(A||1)].range[0],n[n.length-1].range[1]]),void 0!==(v=this.performAction.call(k,s,c,o,this.yy,f[1],r,n)))return v;A&&(a=a.slice(0,-1*A*2),r=r.slice(0,-1*A),n=n.slice(0,-1*A)),a.push(this.productions_[f[1]][0]),r.push(k.$),n.push(k._$),y=i[a[a.length-2]][a[a.length-1]],a.push(y);break;case 3:return!0}}return!0}};function t(){this.yy={}}return e.lexer={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,a=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,a,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length&&(!(a=this._input.match(this.rules[i[s]]))||t&&!(a[0].length>t[0].length)||(t=a,r=s,this.options.flex));s++);return t?((n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,a,r){function n(e,a){return t.yytext=t.yytext.substring(e,t.yyleng-a+e)}switch(a){case 0:if("\\\\"===t.yytext.slice(-2)?(n(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(n(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(n(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=n(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=n(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}},t.prototype=e,e.Parser=t,new t}(),e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(87));function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,a){void 0===t&&(t=e.length);var r=e[t-1],n=e[t-2];return r?"ContentStatement"===r.type?(n||!a?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:a}function o(e,t,a){void 0===t&&(t=-1);var r=e[t+1],n=e[t+2];return r?"ContentStatement"===r.type?(n||!a?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:a}function c(e,t,a){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(a||!r.rightStripped)){var n=r.value;r.value=r.value.replace(a?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==n}}function l(e,t,a){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(a||!r.leftStripped)){var n=r.value;return r.value=r.value.replace(a?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==n,r.leftStripped}}i.prototype=new n.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,a=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,n=0,i=r.length;n<i;n++){var h=r[n],d=this.accept(h);if(d){var u=s(r,n,a),p=o(r,n,a),g=d.openStandalone&&u,m=d.closeStandalone&&p,f=d.inlineStandalone&&u&&p;d.close&&c(r,n,!0),d.open&&l(r,n,!0),t&&f&&(c(r,n),l(r,n)&&"PartialStatement"===h.type&&(h.indent=/([ \t]+$)/.exec(r[n-1].original)[1])),t&&g&&(c((h.program||h.inverse).body),l(r,n)),t&&m&&(c(r,n),l((h.inverse||h.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,a=e.program&&e.inverse,r=a,n=a;if(a&&a.chained)for(r=a.body[0].program;n.chained;)n=n.body[n.body.length-1].program;var i={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((r||t).body)};if(e.openStrip.close&&c(t.body,null,!0),a){var h=e.inverseStrip;h.open&&l(t.body,null,!0),h.close&&c(r.body,null,!0),e.closeStrip.open&&l(n.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(r.body)&&(l(t.body),c(r.body))}else e.closeStrip.open&&l(t.body,null,!0);return i},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0;var n=r(a(6));function i(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function c(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var a=this.accept(e[t]);if(this.mutating){if(a&&!i.prototype[a.type])throw new n.default('Unexpected node type "'+a.type+'" found when accepting '+t+" on "+e.type);e[t]=a}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new n.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,a=e.length;t<a;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,a--)},accept:function(e){if(e){if(!this[e.type])throw new n.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:c,PartialBlockStatement:function(e){c.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default},function(e,t,a){"use strict";var r=a(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,a){a=this.locInfo(a);for(var r=e?"@":"",i=[],s=0,o=0,c=t.length;o<c;o++){var l=t[o].part,h=t[o].original!==l;if(r+=(t[o].separator||"")+l,h||".."!==l&&"."!==l&&"this"!==l)i.push(l);else{if(i.length>0)throw new n.default("Invalid path: "+r,{loc:a});".."===l&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:r,loc:a}},t.prepareMustache=function(e,t,a,r,n,i){var s=r.charAt(3)||r.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:a,escaped:o,strip:n,loc:this.locInfo(i)}},t.prepareRawBlock=function(e,t,a,r){i(e,a),r=this.locInfo(r);var n={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:n,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,a,r,s,o){r&&r.path&&i(e,r);var c=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,h=void 0;if(a){if(c)throw new n.default("Unexpected inverse block on decorator",a);a.chain&&(a.program.body[0].closeStrip=r.strip),h=a.strip,l=a.program}s&&(s=l,l=t,t=s);return{type:c?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:h,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var a=e[0].loc,r=e[e.length-1].loc;a&&r&&(t={source:a.source,start:{line:a.start.line,column:a.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,a,r){return i(e,a),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:a&&a.strip,loc:this.locInfo(r)}};var n=r(a(6));function i(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var a={loc:e.path.loc};throw new n.default(e.path.original+" doesn't match "+t,a)}}},function(e,t,a){"use strict";var r=a(74).default,n=a(1).default;t.__esModule=!0,t.Compiler=l,t.precompile=function(e,t,a){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0);t.compat&&(t.useDepths=!0);var r=a.parse(e,t),n=(new a.Compiler).compile(r,t);return(new a.JavaScriptCompiler).compile(n,t)},t.compile=function(e,t,a){void 0===t&&(t={});if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0);t.compat&&(t.useDepths=!0);var r=void 0;function n(){var r=a.parse(e,t),n=(new a.Compiler).compile(r,t),i=(new a.JavaScriptCompiler).compile(n,t,void 0,!0);return a.template(i)}function o(e,t){return r||(r=n()),r.call(this,e,t)}return o._setup=function(e){return r||(r=n()),r._setup(e)},o._child=function(e,t,a,i){return r||(r=n()),r._child(e,t,a,i)},o};var i=n(a(6)),s=a(5),o=n(a(83)),c=[].slice;function l(){}function h(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var a=0;a<e.length;a++)if(!h(e[a],t[a]))return!1;return!0}}function d(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}l.prototype={compiler:l,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var a=0;a<t;a++){var r=this.opcodes[a],n=e.opcodes[a];if(r.opcode!==n.opcode||!h(r.args,n.args))return!1}t=this.children.length;for(a=0;a<t;a++)if(!this.children[a].equals(e.children[a]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(r(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),a=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[a]=t,this.useDepths=this.useDepths||t.useDepths,a},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,a=t.length,r=0;r<a;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===a,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){d(e);var t=e.program,a=e.inverse;t=t&&this.compileProgram(t),a=a&&this.compileProgram(a);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,a):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,a),this.opcode("pushProgram",t),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),a=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",a.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var a=e.params;if(a.length>1)throw new i.default("Unsupported number of partial arguments: "+a.length,e);a.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):a.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,n="SubExpression"===e.name.type;n&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",n,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){d(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,a){var r=e.path,n=r.parts[0],i=null!=t||null!=a;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",a),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",n,i)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,a){var r=this.setupFullMustacheParams(e,t,a),n=e.path,s=n.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",r.length,s);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);n.strict=!0,n.falsy=!0,this.accept(n),this.opcode("invokeHelper",r.length,n.original,o.default.helpers.simpleId(n))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],a=o.default.helpers.scopedId(e),r=!e.depth&&!a&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,a):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,a=0,r=t.length;for(this.opcode("pushHash");a<r;a++)this.pushParam(t[a].value);for(;a--;)this.opcode("assignToHash",t[a].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:c.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),a=t&&!!this.blockParamIndex(e.path.parts[0]),r=!a&&o.default.helpers.helperExpression(e),n=!a&&(r||t);if(n&&!r){var i=e.path.parts[0],s=this.options;s.knownHelpers[i]?r=!0:s.knownHelpersOnly&&(n=!1)}return r?"helper":n?"ambiguous":"simple"},pushParams:function(e){for(var t=0,a=e.length;t<a;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var a=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(a=this.blockParamIndex(e.parts[0])),a){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",a,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,a,r){var n=e.params;return this.pushParams(n),this.opcode("pushProgram",t),this.opcode("pushProgram",a),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),n},blockParamIndex:function(e){for(var t=0,a=this.options.blockParams.length;t<a;t++){var r=this.options.blockParams[t],n=r&&s.indexOf(r,e);if(r&&n>=0)return[t,n]}}}},function(e,t,a){"use strict";var r=a(60).default,n=a(1).default;t.__esModule=!0;var i=a(4),s=n(a(6)),o=a(5),c=n(a(91));function l(e){this.value=e}function h(){}h.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,a){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:a?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,a,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!a,this.context=a||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,i=void 0,o=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)i=n[c],this.source.currentLocation=i.loc,o=o||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(r);if(this.isChild)return h;var d={compiler:this.compilerInfo(),main:h};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var u=this.context,p=u.programs,g=u.decorators;for(c=0,l=p.length;c<l;c++)d[c]=p[c],g[c]&&(d[c+"_d"]=g[c],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),r?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),t.srcName?(d=d.toStringWithSourceMap({file:t.destName})).map=d.map&&d.map.toString():d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new c.default(this.options.srcName),this.decorators=new c.default(this.options.srcName)},createFunctionContext:function(e){var t=this,a="",n=this.stackVars.concat(this.registers.list);n.length>0&&(a+=", "+n.join(", "));var i=0;r(this.aliases).forEach(function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(a+=", alias"+ ++i+"="+e,r.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(a+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(a);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,a=!this.forceBuffer,r=void 0,n=void 0,i=void 0,s=void 0;return this.source.each(function(e){e.appendToBuffer?(i?e.prepend(" + "):i=e,s=e):(i&&(n?i.prepend("buffer += "):r=!0,s.add(";"),i=s=void 0),n=!0,t||(a=!1))}),a?i?(i.prepend("return "),s.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),a=[this.contextName(0)];this.setupHelperArgs(e,0,a);var r=this.popStack();a.splice(1,0,r),this.push(this.source.functionCall(t,"call",a))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var a=this.topStack();t.splice(1,0,a),this.pushSource(["if (!",this.lastHelper,") { ",a," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,a,r){var n=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[n++])),this.resolvePath("context",e,n,t,a)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,a){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,a)},resolvePath:function(e,t,a,r,n){var i=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,a,r,n){var i=t.popStack(),s=a.length;e&&s--;for(var o=r;o<s;o++)i=t.nameLookup(i,a[o],n);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(a[s]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&n,this,t,a,e));else for(var s=t.length,o=function(a){i.replaceStack(function(n){var s=i.nameLookup(n,t[a],e);return r?[" && ",s]:[" != null ? ",s," : ",n]})},c=a;c<s;c++)o(c)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var a=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["var decorator = ",a,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+t+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,a){var r=this.popStack(),n=this.setupHelper(e,t),i=[];a&&i.push(n.name),i.push(r),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(i,"||"),")"],o=this.source.functionCall(s,"call",n.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var a=[];a.push(e[0]);for(var r=1;r<e.length;r++)a.push(t,e[r]);return a},invokeKnownHelper:function(e,t){var a=this.setupHelper(e,t);this.push(this.source.functionCall(a.name,"call",a.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var a=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),n=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",a,")"];this.options.strict||(n[0]="(helper = ",n.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",n,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,a){var r=[],n=this.setupParams(t,1,r);e&&(t=this.popStack(),delete n.name),a&&(n.indent=JSON.stringify(a)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),r.push(n),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),a=void 0,r=void 0,n=void 0;this.trackIds&&(n=this.popStack()),this.stringParams&&(r=this.popStack(),a=this.popStack());var i=this.hash;a&&(i.contexts[e]=a),r&&(i.types[e]=r),n&&(i.ids[e]=n),i.values[e]=t},pushId:function(e,t,a){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(a?" + "+JSON.stringify("."+a):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:h,compileChildren:function(e,t){for(var a=e.children,r=void 0,n=void 0,i=0,s=a.length;i<s;i++){r=a[i],n=new this.compiler;var o=this.matchExistingProgram(r);if(null==o){var c=this.context.programs.push("")-1;r.index=c,r.name="program"+c,this.context.programs[c]=n.compile(r,t,this.context,!this.precompile),this.context.decorators[c]=n.decorators,this.context.environments[c]=r,this.useDepths=this.useDepths||n.useDepths,this.useBlockParams=this.useBlockParams||n.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=o.index,r.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,a=this.context.environments.length;t<a;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],a=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths"),"container.program("+a.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof l||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new l(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],a=void 0,r=void 0,n=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var i=this.popStack(!0);if(i instanceof l)t=["(",a=[i.value]],n=!0;else{r=!0;var o=this.incrStack();t=["((",this.push(o)," = ",i,")"],a=this.topStack()}var c=e.call(this,a);n||this.popStack(),r&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,a=e.length;t<a;t++){var r=e[t];if(r instanceof l)this.compileStack.push(r);else{var n=this.incrStack();this.pushSource([n," = ",r,";"]),this.compileStack.push(n)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),a=(t?this.inlineStack:this.compileStack).pop();if(!e&&a instanceof l)return a.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return a},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof l?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,a){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,a),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,a){var r={},n=[],i=[],s=[],o=!a,c=void 0;o&&(a=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var l=this.popStack(),h=this.popStack();(h||l)&&(r.fn=h||"container.noop",r.inverse=l||"container.noop");for(var d=t;d--;)c=this.popStack(),a[d]=c,this.trackIds&&(s[d]=this.popStack()),this.stringParams&&(i[d]=this.popStack(),n[d]=this.popStack());return o&&(r.args=this.source.generateArray(a)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(i),r.contexts=this.source.generateArray(n)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,a,r){var n=this.setupParams(e,t,a);return n.loc=JSON.stringify(this.source.currentLocation),n=this.objectLiteral(n),r?(this.useRegister("options"),a.push("options"),["options=",n]):a?(a.push(n),""):n}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=h.RESERVED_WORDS={},a=0,r=e.length;a<r;a++)t[e[a]]=!0}(),h.isValidJavaScriptVariableName=function(e){return!h.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=h,e.exports=t.default},function(e,t,a){"use strict";var r=a(60).default;t.__esModule=!0;var n=a(5),i=void 0;function s(e,t,a){if(n.isArray(e)){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t.wrap(e[i],a));return r}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,a,r){this.src="",r&&this.add(r)}).prototype={add:function(e){n.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){n.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add([" ",t,"\n"])}),e},each:function(e){for(var t=0,a=this.source.length;t<a;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=s(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,a){return a=this.generateList(a),this.wrap([e,t?"."+t+"(":"(",a,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,a=[];r(e).forEach(function(r){var n=s(e[r],t);"undefined"!==n&&a.push([t.quotedString(r),":",n])});var n=this.generateList(a);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var t=this.empty(),a=0,r=e.length;a<r;a++)a&&t.add(","),t.add(s(e[a],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])})}),c="object"==typeof global&&global&&global.Object===Object&&global,l="object"==typeof self&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),d=h.Symbol,u=Object.prototype,p=u.hasOwnProperty,g=u.toString,m=d?d.toStringTag:void 0;var f=Object.prototype.toString;var v=d?d.toStringTag:void 0;function w(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=p.call(e,m),a=e[m];try{e[m]=void 0;var r=!0}catch(i){}var n=g.call(e);return r&&(t?e[m]=a:delete e[m]),n}(e):function(e){return f.call(e)}(e)}function A(e){return null!=e&&"object"==typeof e}function y(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==w(e)}var b=Array.isArray,k=d?d.prototype:void 0,_=k?k.toString:void 0;function x(e){if("string"==typeof e)return e;if(b(e))return function(e,t){for(var a=-1,r=null==e?0:e.length,n=Array(r);++a<r;)n[a]=t(e[a],a,e);return n}(e,x)+"";if(y(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var E=/\s/;var S=/^\s+/;function C(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&E.test(e.charAt(t)););return t}(e)+1).replace(S,""):e}function M(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var H=/^[-+]0x[0-9a-f]+$/i,P=/^0b[01]+$/i,I=/^0o[0-7]+$/i,D=parseInt;function T(e){if("number"==typeof e)return e;if(y(e))return NaN;if(M(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=M(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=C(e);var a=P.test(e);return a||I.test(e)?D(e.slice(2),a?2:8):H.test(e)?NaN:+e}function R(e){return e}function B(e){if(!M(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var q,L=h["__core-js_shared__"],O=(q=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"";var F=Function.prototype.toString;function Q(e){if(null!=e){try{return F.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var N=/^\[object .+?Constructor\]$/,U=Function.prototype,V=Object.prototype,j=U.toString,z=V.hasOwnProperty,Y=RegExp("^"+j.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J(e){return!(!M(e)||(t=e,O&&O in t))&&(B(e)?Y:N).test(Q(e));var t}function Z(e,t){var a=function(e,t){return null==e?void 0:e[t]}(e,t);return J(a)?a:void 0}var W=Z(h,"WeakMap"),X=Object.create,K=function(){function e(){}return function(t){if(!M(t))return{};if(X)return X(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();var G=Date.now;var $,ee,te,ae=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),re=ae?function(e,t){return ae(e,"toString",{configurable:!0,enumerable:!1,value:(a=t,function(){return a}),writable:!0});var a}:R,ne=($=re,ee=0,te=0,function(){var e=G(),t=16-(e-te);if(te=e,t>0){if(++ee>=800)return arguments[0]}else ee=0;return $.apply(void 0,arguments)});var ie=/^(?:0|[1-9]\d*)$/;function se(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&ie.test(e))&&e>-1&&e%1==0&&e<t}function oe(e,t,a){"__proto__"==t&&ae?ae(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}function ce(e,t){return e===t||e!=e&&t!=t}var le=Object.prototype.hasOwnProperty;function he(e,t,a){var r=e[t];le.call(e,t)&&ce(r,a)&&(void 0!==a||t in e)||oe(e,t,a)}function de(e,t,a,r){var n=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var o=t[i],c=r?r(a[o],e[o],o,a,e):void 0;void 0===c&&(c=e[o]),n?oe(a,o,c):he(a,o,c)}return a}var ue=Math.max;function pe(e,t){return ne(function(e,t,a){return t=ue(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=ue(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=r[n];return o[t]=a(s),function(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}(e,this,o)}}(e,t,R),e+"")}function ge(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function me(e){return null!=e&&ge(e.length)&&!B(e)}var fe=Object.prototype;function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fe)}function we(e){return A(e)&&"[object Arguments]"==w(e)}var Ae=Object.prototype,ye=Ae.hasOwnProperty,be=Ae.propertyIsEnumerable,ke=we(function(){return arguments}())?we:function(e){return A(e)&&ye.call(e,"callee")&&!be.call(e,"callee")};var _e="object"==typeof exports&&exports&&!exports.nodeType&&exports,xe=_e&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=xe&&xe.exports===_e?h.Buffer:void 0,Se=(Ee?Ee.isBuffer:void 0)||function(){return!1},Ce={};function Me(e){return function(t){return e(t)}}Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;var He="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=He&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Pe&&Pe.exports===He&&c.process,De=function(){try{var e=Pe&&Pe.require&&Pe.require("util").types;return e||Ie&&Ie.binding&&Ie.binding("util")}catch(t){}}(),Te=De&&De.isTypedArray,Re=Te?Me(Te):function(e){return A(e)&&ge(e.length)&&!!Ce[w(e)]},Be=Object.prototype.hasOwnProperty;function qe(e,t){var a=b(e),r=!a&&ke(e),n=!a&&!r&&Se(e),i=!a&&!r&&!n&&Re(e),s=a||r||n||i,o=s?function(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}(e.length,String):[],c=o.length;for(var l in e)!t&&!Be.call(e,l)||s&&("length"==l||n&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||se(l,c))||o.push(l);return o}function Le(e,t){return function(a){return e(t(a))}}var Oe=Le(Object.keys,Object),Fe=Object.prototype.hasOwnProperty;function Qe(e){return me(e)?qe(e):function(e){if(!ve(e))return Oe(e);var t=[];for(var a in Object(e))Fe.call(e,a)&&"constructor"!=a&&t.push(a);return t}(e)}var Ne,Ue=Object.prototype.hasOwnProperty,Ve=(Ne=function(e,t){if(ve(t)||me(t))de(t,Qe(t),e);else for(var a in t)Ue.call(t,a)&&he(e,a,t[a])},pe(function(e,t){var a=-1,r=t.length,n=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(n=Ne.length>3&&"function"==typeof n?(r--,n):void 0,i&&function(e,t,a){if(!M(a))return!1;var r=typeof t;return!!("number"==r?me(a)&&se(t,a.length):"string"==r&&t in a)&&ce(a[t],e)}(t[0],t[1],i)&&(n=r<3?void 0:n,r=1),e=Object(e);++a<r;){var s=t[a];s&&Ne(e,s,a,n)}return e}));var je=Object.prototype.hasOwnProperty;function ze(e){if(!M(e))return function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}(e);var t=ve(e),a=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&a.push(r);return a}function Ye(e){return me(e)?qe(e,!0):ze(e)}var Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ze=/^\w*$/;var We=Z(Object,"create");var Xe=Object.prototype.hasOwnProperty;var Ke=Object.prototype.hasOwnProperty;function Ge(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}function $e(e,t){for(var a=e.length;a--;)if(ce(e[a][0],t))return a;return-1}Ge.prototype.clear=function(){this.__data__=We?We(null):{},this.size=0},Ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ge.prototype.get=function(e){var t=this.__data__;if(We){var a=t[e];return"__lodash_hash_undefined__"===a?void 0:a}return Xe.call(t,e)?t[e]:void 0},Ge.prototype.has=function(e){var t=this.__data__;return We?void 0!==t[e]:Ke.call(t,e)},Ge.prototype.set=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=We&&void 0===t?"__lodash_hash_undefined__":t,this};var et=Array.prototype.splice;function tt(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,a=$e(t,e);return!(a<0)&&(a==t.length-1?t.pop():et.call(t,a,1),--this.size,!0)},tt.prototype.get=function(e){var t=this.__data__,a=$e(t,e);return a<0?void 0:t[a][1]},tt.prototype.has=function(e){return $e(this.__data__,e)>-1},tt.prototype.set=function(e,t){var a=this.__data__,r=$e(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this};var at=Z(h,"Map");function rt(e,t){var a,r,n=e.__data__;return("string"==(r=typeof(a=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==a:null===a)?n["string"==typeof t?"string":"hash"]:n.map}function nt(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}nt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ge,map:new(at||tt),string:new Ge}},nt.prototype.delete=function(e){var t=rt(this,e).delete(e);return this.size-=t?1:0,t},nt.prototype.get=function(e){return rt(this,e).get(e)},nt.prototype.has=function(e){return rt(this,e).has(e)},nt.prototype.set=function(e,t){var a=rt(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this};function it(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var a=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=a.cache;if(i.has(n))return i.get(n);var s=e.apply(this,r);return a.cache=i.set(n,s)||i,s};return a.cache=new(it.Cache||nt),a}it.Cache=nt;var st=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/\\(\\)?/g,ct=function(e){var t=it(e,function(e){return 500===a.size&&a.clear(),e}),a=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(st,function(e,a,r,n){t.push(r?n.replace(ot,"$1"):a||e)}),t});function lt(e){return null==e?"":x(e)}function ht(e,t){return b(e)?e:function(e,t){if(b(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!y(e))||Ze.test(e)||!Je.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:ct(lt(e))}function dt(e){if("string"==typeof e||y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ut(e,t,a){var r=null==e?void 0:function(e,t){for(var a=0,r=(t=ht(t,e)).length;null!=e&&a<r;)e=e[dt(t[a++])];return a&&a==r?e:void 0}(e,t);return void 0===r?a:r}function pt(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}var gt=Le(Object.getPrototypeOf,Object);function mt(e){var t=this.__data__=new tt(e);this.size=t.size}mt.prototype.clear=function(){this.__data__=new tt,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var a=this.__data__;if(a instanceof tt){var r=a.__data__;if(!at||r.length<199)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new nt(r)}return a.set(e,t),this.size=a.size,this};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=ft&&"object"==typeof module&&module&&!module.nodeType&&module,wt=vt&&vt.exports===ft?h.Buffer:void 0,At=wt?wt.allocUnsafe:void 0;function yt(){return[]}var bt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,_t=kt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var a=-1,r=null==e?0:e.length,n=0,i=[];++a<r;){var s=e[a];t(s,a,e)&&(i[n++]=s)}return i}(kt(e),function(t){return bt.call(e,t)}))}:yt;var xt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)pt(t,_t(e)),e=gt(e);return t}:yt;function Et(e,t,a){var r=t(e);return b(e)?r:pt(r,a(e))}function St(e){return Et(e,Qe,_t)}function Ct(e){return Et(e,Ye,xt)}var Mt=Z(h,"DataView"),Ht=Z(h,"Promise"),Pt=Z(h,"Set"),It="[object Map]",Dt="[object Promise]",Tt="[object Set]",Rt="[object WeakMap]",Bt="[object DataView]",qt=Q(Mt),Lt=Q(at),Ot=Q(Ht),Ft=Q(Pt),Qt=Q(W),Nt=w;(Mt&&Nt(new Mt(new ArrayBuffer(1)))!=Bt||at&&Nt(new at)!=It||Ht&&Nt(Ht.resolve())!=Dt||Pt&&Nt(new Pt)!=Tt||W&&Nt(new W)!=Rt)&&(Nt=function(e){var t=w(e),a="[object Object]"==t?e.constructor:void 0,r=a?Q(a):"";if(r)switch(r){case qt:return Bt;case Lt:return It;case Ot:return Dt;case Ft:return Tt;case Qt:return Rt}return t});var Ut=Nt,Vt=Object.prototype.hasOwnProperty;var jt=h.Uint8Array;function zt(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t}var Yt=/\w*$/;var Jt=d?d.prototype:void 0,Zt=Jt?Jt.valueOf:void 0;function Wt(e,t,a){var r,n,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return zt(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var a=t?zt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}(e,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var a=t?zt(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}(e,a);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(n=e).constructor(n.source,Yt.exec(n))).lastIndex=n.lastIndex,i;case"[object Symbol]":return r=e,Zt?Object(Zt.call(r)):{}}}var Xt=De&&De.isMap,Kt=Xt?Me(Xt):function(e){return A(e)&&"[object Map]"==Ut(e)};var Gt=De&&De.isSet,$t=Gt?Me(Gt):function(e){return A(e)&&"[object Set]"==Ut(e)},ea="[object Arguments]",ta="[object Function]",aa="[object Object]",ra={};function na(e,t,a,r,n,i){var s,o=1&t,c=2&t,l=4&t;if(a&&(s=n?a(e,r,n,i):a(e)),void 0!==s)return s;if(!M(e))return e;var h=b(e);if(h){if(s=function(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&Vt.call(e,"index")&&(a.index=e.index,a.input=e.input),a}(e),!o)return function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}(e,s)}else{var d=Ut(e),u=d==ta||"[object GeneratorFunction]"==d;if(Se(e))return function(e,t){if(t)return e.slice();var a=e.length,r=At?At(a):new e.constructor(a);return e.copy(r),r}(e,o);if(d==aa||d==ea||u&&!n){if(s=c||u?{}:function(e){return"function"!=typeof e.constructor||ve(e)?{}:K(gt(e))}(e),!o)return c?function(e,t){return de(e,xt(e),t)}(e,function(e,t){return e&&de(t,Ye(t),e)}(s,e)):function(e,t){return de(e,_t(e),t)}(e,function(e,t){return e&&de(t,Qe(t),e)}(s,e))}else{if(!ra[d])return n?e:{};s=Wt(e,d,o)}}i||(i=new mt);var p=i.get(e);if(p)return p;i.set(e,s),$t(e)?e.forEach(function(r){s.add(na(r,t,a,r,e,i))}):Kt(e)&&e.forEach(function(r,n){s.set(n,na(r,t,a,n,e,i))});var g=h?void 0:(l?c?Ct:St:c?Ye:Qe)(e);return function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););}(g||e,function(r,n){g&&(r=e[n=r]),he(s,n,na(r,t,a,n,e,i))}),s}ra[ea]=ra["[object Array]"]=ra["[object ArrayBuffer]"]=ra["[object DataView]"]=ra["[object Boolean]"]=ra["[object Date]"]=ra["[object Float32Array]"]=ra["[object Float64Array]"]=ra["[object Int8Array]"]=ra["[object Int16Array]"]=ra["[object Int32Array]"]=ra["[object Map]"]=ra["[object Number]"]=ra[aa]=ra["[object RegExp]"]=ra["[object Set]"]=ra["[object String]"]=ra["[object Symbol]"]=ra["[object Uint8Array]"]=ra["[object Uint8ClampedArray]"]=ra["[object Uint16Array]"]=ra["[object Uint32Array]"]=!0,ra["[object Error]"]=ra[ta]=ra["[object WeakMap]"]=!1;function ia(e){return na(e,5)}var sa=function(){return h.Date.now()},oa=Math.max,ca=Math.min;function la(e,t,a){var r,n,i,s,o,c,l=0,h=!1,d=!1,u=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var a=r,i=n;return r=n=void 0,l=t,s=e.apply(i,a)}function g(e){var a=e-c;return void 0===c||a>=t||a<0||d&&e-l>=i}function m(){var e=sa();if(g(e))return f(e);o=setTimeout(m,function(e){var a=t-(e-c);return d?ca(a,i-(e-l)):a}(e))}function f(e){return o=void 0,u&&r?p(e):(r=n=void 0,s)}function v(){var e=sa(),a=g(e);if(r=arguments,n=this,c=e,a){if(void 0===o)return function(e){return l=e,o=setTimeout(m,t),h?p(e):s}(c);if(d)return clearTimeout(o),o=setTimeout(m,t),p(c)}return void 0===o&&(o=setTimeout(m,t)),s}return t=T(t)||0,M(a)&&(h=!!a.leading,i=(d="maxWait"in a)?oa(T(a.maxWait)||0,t):i,u="trailing"in a?!!a.trailing:u),v.cancel=function(){void 0!==o&&clearTimeout(o),l=0,r=c=n=o=void 0},v.flush=function(){return void 0===o?s:f(sa())},v}var ha=/[\\^$.*+?()[\]{}|]/g,da=RegExp(ha.source);var ua,pa=(ua={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==ua?void 0:ua[e]}),ga=/&(?:amp|lt|gt|quot|#39);/g,ma=RegExp(ga.source);var fa=class extends HTMLElement{configOverride;data;handlebars=HawkSearch.handlebars;eventFilter;contentModel;get configuration(){const e=HawkSearch.config.components?.[this.componentName],t=this.getAttribute("config");if(!t&&!this.configOverride)return e;let a;return t?a=ut(window,t)??void 0:this.configOverride&&(a=this.configOverride),Ve({},e??{},a)}get useCustomStyle(){return void 0!==this.configuration?.useCustomStyle?this.configuration.useCustomStyle:HawkSearch.config.useCustomStyle??!1}get shadowDom(){return void 0!==this.configuration?.shadowDom?this.configuration.shadowDom:HawkSearch.config.shadowDom??!0}get rootElement(){return this.shadowRoot??this}get eventName(){if(!this.bindFromEvent)return;let e=`hawksearch:bind-${this.componentName}`;return this.eventFilter&&(e=`${e}:${this.eventFilter}`),e}bindEventHandler;template;connectedCallback(){this.shadowDom&&this.attachShadow({mode:"open"}),this.registerHelpers();const e=/\[\[((?!\[).+?)\]\]/g;let t=this.getCustomTemplateHtml()??this.defaultHtml;for(;e.test(t);)t=t.replace(e,"{{$1}}");this.template=this.handlebars.compile(t),setTimeout(()=>{this.render()}),this.eventName&&(this.bindEventHandler=e=>{this.data=e.detail,this.render()},window.addEventListener(this.eventName,this.bindEventHandler))}disconnectedCallback(){this.eventName&&this.bindEventHandler&&window.removeEventListener(this.eventName,this.bindEventHandler)}registerHelpers(){}render(){if(!this.template||!this.renderContent())return this.rootElement.replaceChildren(),this.style.display="none",void this.dispatchEvent(new CustomEvent("hawksearch:skipped-render"));const e=this.getContentModel();window.dispatchEvent(new CustomEvent(`hawksearch:before-${this.componentName}-rendered`,{detail:{component:this,contentModel:e}})),this.dispatchEvent(new CustomEvent("hawksearch:before-render",{detail:{contentModel:e}}));const t=[];let a=[];if(!1!==HawkSearch.config.css?.defaultStyles&&a.push('html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{box-shadow:none;font-size:100%;font-weight:400;font:inherit;vertical-align:baseline;color:inherit;text-transform:none;text-shadow:none;background:0 0;border:0;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{width:auto;list-style:none}ol li,ul li{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}img{display:inline-block}.clearfix:after{content:"";clear:both;display:table}*,:before,:after{transition:none;box-sizing:border-box!important}b,strong{font-weight:700}i,em{font-style:italic}u{text-decoration:underline}sup{vertical-align:super;font-size:75%}sub{vertical-align:sub;font-size:75%}a{cursor:pointer}.label{text-align:left;margin:0 0 5px;display:block}input[type=text],input[type=number],input[type=search],textarea,select{border:var(--form-element-border);border-radius:var(--form-element-border-radius);width:100%;height:45px;padding:var(--padding-sm);background:var(--form-element-background);font-family:var(--default-font-family);color:var(--default-font-color);outline:none;font-size:16px;line-height:1;display:block}input[type=text]:hover,input[type=text]:focus,input[type=number]:hover,input[type=number]:focus,input[type=search]:hover,input[type=search]:focus,textarea:hover,textarea:focus,select:hover,select:focus{border:var(--form-element-border--focus)}select{padding-right:var(--padding)}::placeholder{color:var(--form-element-placeholder-color)}input[type=checkbox]{display:none}input[type=checkbox]+label{padding-left:calc(16px + var(--padding-sm));cursor:pointer;margin:0 0 5px;display:block;position:relative}input[type=checkbox]+label:before{content:"";border:var(--form-element-border);background:var(--form-element-background);width:16px;height:16px;position:absolute;top:1px;left:0}input[type=checkbox]:checked+label:before{background:var(--color-accent)}.row,.smartresponse__info__summary ul{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row:last-child,.smartresponse__info__summary ul:last-child{margin-bottom:0}.row--reverse{flex-direction:row-reverse}.row--tight{--gap:var(--padding-xs)}@media (width>=740px){.row-sm{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-sm:last-child{margin-bottom:0}.row-sm--reverse{flex-direction:row-reverse}.row-sm--tight{--gap:var(--padding-xs)}}@media (width>=990px){.row-md{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-md:last-child{margin-bottom:0}.row-md--reverse{flex-direction:row-reverse}.row-md--tight{--gap:var(--padding-xs)}}@media (width>=1260px){.row-lg{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-lg:last-child{margin-bottom:0}.row-lg--reverse{flex-direction:row-reverse}.row-lg--tight{--gap:var(--padding-xs)}}@media (width>=1800px){.row-xl{--gap:var(--padding);gap:var(--gap);margin:0 0 var(--margin) 0;flex-flow:wrap;display:flex}.row-xl:last-child{margin-bottom:0}.row-xl--reverse{flex-direction:row-reverse}.row-xl--tight{--gap:var(--padding-xs)}}.column,.smartresponse__info__summary li{flex-grow:0;flex-shrink:0;width:100%}.column--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column--3{flex-basis:calc(25% - .75 * var(--gap))}.column--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column--6{flex-basis:calc(50% - .5 * var(--gap))}.column--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column--9{flex-basis:calc(75% - .25 * var(--gap))}.column--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column--12,.smartresponse__info__summary li{flex-basis:calc(100% - 0 * var(--gap))}.column--pull-right{margin-left:auto}@media (width>=740px){.column-sm{flex-grow:0;flex-shrink:0;width:100%}.column-sm--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-sm--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-sm--3{flex-basis:calc(25% - .75 * var(--gap))}.column-sm--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-sm--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-sm--6,.smartresponse__info__summary li{flex-basis:calc(50% - .5 * var(--gap))}.column-sm--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-sm--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-sm--9{flex-basis:calc(75% - .25 * var(--gap))}.column-sm--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-sm--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-sm--12{flex-basis:calc(100% - 0 * var(--gap))}.column-sm--pull-right{margin-left:auto}}@media (width>=990px){.column-md{flex-grow:0;flex-shrink:0;width:100%}.column-md--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-md--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-md--3{flex-basis:calc(25% - .75 * var(--gap))}.column-md--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-md--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-md--6{flex-basis:calc(50% - .5 * var(--gap))}.column-md--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-md--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-md--9{flex-basis:calc(75% - .25 * var(--gap))}.column-md--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-md--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-md--12{flex-basis:calc(100% - 0 * var(--gap))}.column-md--pull-right{margin-left:auto}}@media (width>=1260px){.column-lg{flex-grow:0;flex-shrink:0;width:100%}.column-lg--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-lg--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-lg--3{flex-basis:calc(25% - .75 * var(--gap))}.column-lg--4,.smartresponse__info__summary li{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-lg--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-lg--6{flex-basis:calc(50% - .5 * var(--gap))}.column-lg--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-lg--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-lg--9{flex-basis:calc(75% - .25 * var(--gap))}.column-lg--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-lg--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-lg--12{flex-basis:calc(100% - 0 * var(--gap))}.column-lg--pull-right{margin-left:auto}}@media (width>=1800px){.column-xl{flex-grow:0;flex-shrink:0;width:100%}.column-xl--1{flex-basis:calc(8.33333% - .916667 * var(--gap))}.column-xl--2{flex-basis:calc(16.6667% - .833333 * var(--gap))}.column-xl--3{flex-basis:calc(25% - .75 * var(--gap))}.column-xl--4{flex-basis:calc(33.3333% - .666667 * var(--gap))}.column-xl--5{flex-basis:calc(41.6667% - .583333 * var(--gap))}.column-xl--6{flex-basis:calc(50% - .5 * var(--gap))}.column-xl--7{flex-basis:calc(58.3333% - .416667 * var(--gap))}.column-xl--8{flex-basis:calc(66.6667% - .333333 * var(--gap))}.column-xl--9{flex-basis:calc(75% - .25 * var(--gap))}.column-xl--10{flex-basis:calc(83.3333% - .166667 * var(--gap))}.column-xl--11{flex-basis:calc(91.6667% - .0833333 * var(--gap))}.column-xl--12{flex-basis:calc(100% - 0 * var(--gap))}.column-xl--pull-right{margin-left:auto}}img{max-width:100%;height:auto}.spinner{width:var(--default-font-size);height:var(--default-font-size);border:2px solid var(--container-background--alternate);border-top-color:var(--color-accent);border-radius:50%;animation:.5s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.heading{margin:0 0 var(--padding) 0;font-size:1.375rem;font-weight:700;display:block}p{margin:0 0 var(--padding) 0}p:last-child{margin-bottom:0}a,.link{cursor:pointer;text-decoration:none}a:hover,.link:hover{color:var(--color-accent)}.autocomplete{border:var(--container-border);padding:var(--padding);background:var(--container-background);z-index:1;margin-top:-1px;position:absolute;left:0;right:0;box-shadow:0 2px 5px #0000001a}.autocomplete__title{margin:0 0 var(--padding) 0;font-size:1.1rem;font-weight:700;display:block}.autocomplete__list:not(:last-child){margin-bottom:var(--margin)}.autocomplete__product{text-align:center;height:100%}.autocomplete__product__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:150px;display:flex}.autocomplete__product__image a{display:block}.autocomplete__product__image img{max-height:100%;margin:0}.autocomplete__product__title{margin:0 0 var(--padding-sm) 0;font-weight:700;display:block}.autocomplete__product__title:last-child{margin-bottom:0}.autocomplete__product__price{margin:0 0 var(--padding-sm) 0;display:block}.autocomplete__product__price__original{text-decoration:line-through}.autocomplete__product__price:last-child{margin-bottom:0}.autocomplete__view-all{text-align:center}.button{border-radius:var(--button-border-radius);height:45px;padding:var(--padding-sm) var(--padding);background:var(--button-background);color:var(--button-font-color);text-align:center;cursor:pointer;border:none;outline:none;font-weight:700;display:inline-block}.button:hover{outline:solid 2px var(--button-background)}.button--full-width{width:100%;display:block}hawksearch-featured-items-content-item{height:100%;display:block}.custom-content{margin:0 0 var(--margin) 0}.featured-items-content__item{position:relative}.featured-items-content__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.featured-items-content__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.featured-items-content__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.featured-items-content__item__image img{max-height:100%;margin:0}.featured-items-content__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.featured-items-content__item__title:last-child{margin-bottom:0}.featured-items-content__item__price{margin:0 0 var(--padding-sm) 0;display:block}.featured-items-content__item__price__original{text-decoration:line-through}.featured-items-content__item__price:last-child{margin-bottom:0}.featured-items-content__item--content{border-bottom:var(--container-border);padding:0 0 var(--padding) 0}.featured-items-content__item--product{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.featured-items-content__item--product:hover{border-color:var(--color-accent)}.image-content{margin:0 0 var(--margin) 0}.image-content__image{margin:0 auto;display:block}.popular-queries-content{margin:0 0 var(--margin) 0;text-align:center;line-height:1}.popular-queries-content__item{vertical-align:middle;margin:0 5px;display:inline-block}.popular-queries-content__item--1{font-size:100%}.popular-queries-content__item--2{font-size:150%}.popular-queries-content__item--3{font-size:200%}.popular-queries-content__item--4{font-size:250%}.popular-queries-content__item--5{font-size:300%}.content-zone{margin:0 0 var(--margin) 0}.conversationalsearch{position:relative}.conversationalsearch__body{border:var(--form-element-border);border-radius:var(--form-element-border-radius);margin:0 0 var(--padding-sm) 0;padding:0;overflow:hidden}.conversationalsearch__message-list{padding:var(--padding-sm) var(--padding) 0;overscroll-behavior-y:contain;flex-direction:column;width:100%;height:270px;margin:0;list-style:none;display:flex;overflow:hidden auto}.conversationalsearch__message-list p{margin:0}.conversationalsearch__message{align-items:flex-start;gap:var(--padding-xs);width:100%;margin:0 0 var(--margin) 0;word-wrap:break-word;white-space:pre-wrap;border-radius:0;min-width:150px;max-width:70%;display:flex}.conversationalsearch__message .message__icon{color:var(--color-accent)}.conversationalsearch__message.message--sent{justify-content:flex-end;align-self:flex-end}.conversationalsearch__message.message--sent p{background-color:var(--container-background--alternate);border-radius:var(--form-element-border-radius);padding:var(--padding-sm) var(--padding)}.conversationalsearch__message.message--received *{display:flex}.conversationalsearch__message.message--received .message-icon{color:var(--color-accent)}.conversationalsearch__message.message--received p{align-self:flex-start}.conversationalsearch__footer{gap:var(--padding-xs);display:flex}.conversationalsearch textarea{resize:none;min-height:45px;line-height:1.2}.conversationalsearch button{padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);border:var(--container-border);align-items:center;display:flex}.conversationalsearch button:hover{border-color:var(--color-accent)}.date-picker{position:relative}.date-picker__modal{border:var(--container-border);width:310px;padding:var(--padding-sm);background:var(--container-background);z-index:10;position:absolute}.date-picker__modal__header{align-items:center;gap:var(--padding-sm);margin:0 0 var(--padding-sm) 0;padding:var(--padding-sm);background:var(--container-background--alternate);text-align:center;font-weight:700;display:flex}.date-picker__modal__header__previous,.date-picker__modal__header__next{flex-grow:0;font-size:1.5rem;display:inline-flex}.date-picker__modal__header__month{flex-grow:1}.date-picker__calendar{width:100%}.date-picker__calendar thead th{width:14.286%;padding:var(--padding-xs);background:var(--container-background);text-align:center;font-weight:700}.date-picker__calendar tbody td{border:var(--container-border);padding:var(--padding-xs);text-align:center}.date-picker__calendar tbody td:hover{color:var(--color-accent)}.date-picker__calendar__day{background:var(--container-background);cursor:pointer}.date-picker__calendar__day--alternate{background:var(--color-secondary-light)}.date-picker__calendar__day--selected{background:var(--color-accent);color:var(--default-font-color--inverse)!important}.date-picker__calendar__day--disabled{cursor:no-drop;opacity:.5}hawksearch-facets-list{margin:0 0 var(--margin-sm) 0;display:block}hawksearch-facets-list:last-child{margin-bottom:0}.facets{border:var(--container-border);background:var(--container-background)}.facets__heading{padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);cursor:pointer;align-items:center;font-size:1.2rem;font-weight:700;display:flex}.facets__heading__mobile-toggle{margin-left:auto}.facets__heading:hover{color:var(--color-accent)}.facets__content{display:none}.facets--expanded .facets__content{display:block}@media (width>=990px){.facets__heading{cursor:default}.facets__heading__mobile-toggle{display:none}.facets__heading:hover{color:var(--default-font-color)}.facets__content{display:block}}.facet__heading{padding:var(--padding-sm) var(--padding);cursor:default;align-items:center;font-size:1.125rem;display:flex}.facet__heading__tooltip{margin-left:5px;font-size:1.2em}.facet__heading__toggle{margin-left:auto}.facet__heading--collapsible{cursor:pointer}.facet__heading--collapsible:hover{--icon-color:var(--color-accent);color:var(--color-accent)}.facet__search{margin:0 0 var(--padding) 0}.facet__content{padding:0 var(--padding) var(--padding) var(--padding)}.facet__value{flex-wrap:wrap;align-items:center;display:flex}.facet__value__image{margin-right:5px}.facet__value__count{color:var(--secondary-font-color)}.checkbox-list-facet{overflow-y:auto}.checkbox-list-facet__list{margin:0 0 var(--padding-xs) 0}.checkbox-list-facet__list__item{margin:0 0 var(--padding-xs) 0;display:flex}.checkbox-list-facet__list__item__content{flex-grow:1}.checkbox-list-facet__list__item__actions{white-space:nowrap;flex-grow:0;margin-left:auto;line-height:1;position:relative;top:-2px}.checkbox-list-facet__list__item__actions__item{cursor:pointer;font-size:1.3em}.checkbox-list-facet__list__item__actions__item:hover{color:var(--color-accent)}.checkbox-list-facet__list__item--excluded>.checkbox-list-facet__item__content>label .facet__value__title{text-decoration:line-through}.checkbox-list-facet__list__item:last-child{margin-bottom:0}.checkbox-list-facet__list__item .checkbox-list-facet__list{margin-left:calc(16px + var(--padding-sm))}.checkbox-list-facet__list:last-child{margin-bottom:0}.color-facet__items{margin-bottom:var(--padding-xs)}.color-facet__item{border:var(--container-border);cursor:pointer;position:relative}.color-facet__item__box{padding:0 0 100%}.color-facet__item__image{width:100%;height:100%;display:block}.color-facet__item__actions{display:none}.color-facet__item--selected,.color-facet__item:hover{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.color-facet__item:hover .color-facet__item__actions{border:var(--container-border);background:var(--container-background);font-size:1rem;line-height:1;display:block;position:absolute;top:0;right:0}.color-facet__item:hover .color-facet__item__actions:hover{color:var(--color-accent)}.link-list-facet{overflow-y:auto}.link-list-facet__list__item,.recent-searches-facet__list__item,.related-searches-facet__list__item,.size-facet__items{margin-bottom:var(--padding-xs)}.size-facet__item{border:var(--container-border);position:relative}.size-facet__item__outer{cursor:pointer;padding:0 0 100%;position:relative}.size-facet__item__inner{padding:var(--padding-xs);background:var(--container-background--alternate);justify-content:center;align-items:center;font-size:.6875rem;display:flex;position:absolute;inset:0}.size-facet__item__actions{display:none}.size-facet__item--selected{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.size-facet__item:hover{border-color:var(--color-accent)}.size-facet__item:hover .size-facet__item__actions{border:var(--container-border);background:var(--container-background);cursor:pointer;font-size:1rem;line-height:1;display:block;position:absolute;top:0;right:0}.size-facet__item:hover .size-facet__item__actions:hover{color:var(--color-accent)}hawksearch-icon{font-size:var(--icon-font-size,1em);color:var(--icon-color,currentColor);align-items:center;display:inline-flex}.icon{fill:currentColor;vertical-align:middle;align-items:center;max-width:none;margin:0 .5em 0 0;display:inline-flex}.icon:last-child{margin:0}.modified-query{margin:0 0 var(--margin) 0}.modified-query__modified{font-style:italic}.modified-query__original{font-weight:700}.pagination{align-items:center;gap:var(--padding);line-height:1;display:flex}.pagination__pages{align-items:center;gap:var(--padding-xs);display:flex}.pagination__page--selected{color:var(--color-accent);font-weight:700}.query-suggestions{margin:0 0 var(--margin) 0}.query-suggestions a{font-style:italic}.range-slider{padding:0 12px}.range-slider__container{padding:8px 0;position:relative}.range-slider__bar{border:var(--container-border);background:var(--container-background);height:8px;position:relative}.range-slider__bar__active{background:var(--color-accent);height:100%;position:absolute;left:0;right:0}.range-slider__handle{outline:solid 1px var(--color-accent);border:solid 3px var(--color-background);background:var(--color-accent);cursor:pointer;touch-action:none;border-radius:100%;width:24px;height:24px;margin-left:-12px;padding:4px;display:block;position:absolute;top:0}.range-slider__handle--start{left:0}.range-slider__handle--end{left:100%}.range-slider__handle:hover{outline-width:2px}hawksearch-rating{margin:0 0 var(--padding-sm) 0;font-size:var(--icon-font-size,1em);color:var(--icon-color,currentColor);align-items:center;display:inline-flex}hawksearch-rating:last-child{margin:0}.rating{margin:0 0 var(--padding-sm) 0;fill:currentColor;vertical-align:middle;max-width:none;color:var(--color-accent);align-items:center;font-size:1.2em;display:inline-flex}.rating:last-child{margin:0}hawksearch-recommendations-item{height:100%;display:block}.recommendations{margin:0 0 var(--margin) 0}.recommendations__content{display:flex}.recommendations__button{flex-shrink:0;align-self:center;font-size:2.5em}.recommendations__carousel{flex-grow:1;position:relative;overflow:hidden}.recommendations__carousel__item{margin-bottom:var(--padding);padding:0 calc(.5 * var(--padding));flex-grow:0;flex-shrink:0}.recommendations__list{margin:0 calc(-.5 * var(--padding)) calc(-1 * var(--padding)) calc(-.5 * var(--padding));flex-wrap:wrap;transition:left .5s;display:flex;position:relative}.recommendations__list--carousel{flex-wrap:nowrap;margin:0}.recommendations__item{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.recommendations__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.recommendations__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.recommendations__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.recommendations__item__image img{max-height:100%;margin:0}.recommendations__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.recommendations__item__title:last-child{margin-bottom:0}.recommendations__item__price{margin:0 0 var(--padding-sm) 0;display:block}.recommendations__item__price__original{text-decoration:line-through}.recommendations__item__price:last-child{margin-bottom:0}.recommendations__item:hover{border-color:var(--color-accent)}.recommendations__pagination{justify-content:center;gap:var(--padding-xs);display:flex}.recommendations__pagination__item{background:var(--color-secondary);cursor:pointer;border-radius:100%;width:10px;height:10px;display:block}.recommendations__pagination__item--selected{background:var(--color-secondary-dark)}.recommendations__pagination__item:hover{background:var(--color-accent)}.recommendations:last-child{margin-bottom:0}.search-field{position:relative}hawksearch-search-results-list{margin:0 0 var(--margin) 0;display:block}hawksearch-search-results-list:last-child{margin:0}hawksearch-search-results-item{height:100%;display:block}.search-results-list{margin:0 0 var(--margin) 0}.search-results-list__item{position:relative}.search-results-list__item__sale-indicator{background:var(--container-background--alternate);padding:5px;position:absolute;top:0;left:0}.search-results-list__item__pin{top:var(--padding-xs);right:var(--padding-xs);font-size:1.2rem;position:absolute}.search-results-list__item__image{padding:0 var(--padding) var(--padding) var(--padding);justify-content:center;align-items:center;height:200px;display:flex}.search-results-list__item__image img{max-height:100%;margin:0}.search-results-list__item__title{margin:0 0 var(--padding-sm) 0;font-size:1.125rem;font-weight:700;display:block}.search-results-list__item__title:last-child{margin-bottom:0}.search-results-list__item__price{margin:0 0 var(--padding-sm) 0;display:block}.search-results-list__item__price__original{text-decoration:line-through}.search-results-list__item__price:last-child{margin-bottom:0}.search-results-list__item--content{border-bottom:var(--container-border);padding:0 0 var(--padding) 0}.search-results-list__item--product{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.search-results-list__item--product:hover{border-color:var(--color-accent)}.search-results-list:last-child{margin:0}.selected-facets{margin:0 0 var(--padding) 0}.selected-facets__item{align-items:center;gap:var(--padding-xs);padding:var(--padding-xs);background:var(--container-background--alternate);white-space:nowrap;display:flex}.selected-facets__item__field{font-weight:700}.selected-facets__item__field:after{content:":"}.selected-facets__item__value--excluded{text-decoration:line-through}.selected-facets__item__remove{margin-top:2px;line-height:1}.smartresponse{justify-content:space-between;align-items:start;column-gap:var(--padding-xs);padding:var(--padding-sm);border:var(--container-border);border-left-color:var(--color-accent);border-left-width:var(--padding-xs);display:flex}.smartresponse__icon{color:var(--color-accent)}.smartresponse__info{gap:var(--padding-xs);flex-direction:column;flex-grow:1;display:flex}.smartresponse__info.busy .smartresponse__info__summary{opacity:.2}.smartresponse__info__header{font-weight:700}.smartresponse__info__summary{transition:max-height .5s ease-out,opacity .5s ease-out;overflow:hidden}.smartresponse__info__summary p{padding:var(--padding) var(--padding) var(--padding) 0}.smartresponse__info__summary ul{gap:8px;display:flex}.smartresponse__info__summary li{height:100%;padding:var(--padding);border:var(--container-border);background:var(--container-background);text-align:center;position:relative}.smartresponse__info__summary li *{flex-direction:column;display:flex}.smartresponse__info__summary li:hover{border-color:var(--color-accent)}.smartresponse__actions .switch{cursor:pointer;background-color:#ccc;border-radius:25px;width:50px;height:25px;transition:background-color .3s;position:relative}.smartresponse__actions .switch:before{content:"";background-color:#fff;border-radius:50%;width:23px;height:23px;transition:transform .3s;position:absolute;top:1px;left:1px}.smartresponse__actions .switch.on{background-color:#3498db}.smartresponse__actions .switch.on:before{transform:translate(25px)}.tabs{gap:var(--padding-xs);margin:0 0 var(--padding) 0;flex-flow:column wrap;display:flex}.tabs__item{border:var(--container-border);padding:var(--padding-sm) var(--padding);background:var(--container-background--alternate);white-space:nowrap;cursor:pointer;margin:0 0 -1px;display:block}.tabs__item--selected{background:var(--container-background)}.tabs__item:hover{color:var(--color-accent)}@media (width>=740px){.tabs{flex-direction:row}}@media (width>=990px){.tabs:not(.tabs--list){border-bottom:var(--container-border);border-bottom-color:var(--container-background--alternate);padding:0 var(--padding)}.tabs:not(.tabs--list) .tabs__item--selected{border-bottom-color:var(--container-background)}}.tooltip{cursor:pointer;display:inline-flex}.tooltip__content{display:none}.tooltip:hover .tooltip__content{margin:calc(-.5 * var(--padding) - 1px) 0 0 2rem;border:var(--container-border);max-width:350px;padding:calc(var(--padding) / 2);background:var(--container-background);z-index:1;display:block;position:fixed;box-shadow:0 0 5px #0000001a}.unifiedsearch-field{position:relative}.variant-selector-list{gap:var(--padding-xs);margin:0 0 var(--padding-sm) 0;flex-wrap:wrap;display:flex}.variant-selector-list:last-child{margin-bottom:0}.variant-selector-list__item{border:var(--container-border);cursor:pointer;width:25px;height:25px}.variant-selector-list__item__box{height:100%}.variant-selector-list__item__image{width:100%;height:100%;display:block}.variant-selector-list__item--selected,.variant-selector-list__item:hover{outline:solid 1px var(--color-accent);border-color:var(--color-accent)}.visualsearch-field{position:relative}.visualsearch-field__drop-area{padding:var(--padding-sm) 0;border:var(--container-border);background:var(--container-background);margin-bottom:var(--padding-sm);flex-direction:column;align-self:stretch;align-items:center;display:flex}.visualsearch-field__drop-area input[type=file]{display:none}.visualsearch-field__drop-area.error-state{border-style:dashed;border-color:var(--color-accent);background-color:var(--color-accent-light)}.visualsearch-field__drop-area.error-state .visualsearch-field__drop-area__dragging-state{display:none}.visualsearch-field__drop-area.dragging-state{border-style:dashed;border-color:var(--color-accent);background-color:var(--container-background--alternate)}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__normal-state{visibility:hidden}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__dragging-state,.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__drop-msg{display:block}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__prompt-msg{display:none}.visualsearch-field__drop-area.dragging-state .visualsearch-field__drop-area__image-display{opacity:.1}.visualsearch-field__drop-area__prompt-msg{margin:0;display:block}.visualsearch-field__drop-area__prompt-msg .visualsearch-field__drop-area__upload-button{color:var(--color-accent);cursor:pointer}.visualsearch-field__drop-area__drop-msg{pointer-events:none;margin:0;display:none;color:var(--color-accent)!important}.visualsearch-field__drop-area__image-display{pointer-events:none;text-align:center;width:220px;height:auto}.visualsearch-field__drop-area__image-display img{width:auto;max-width:100%;height:auto;max-height:100%;display:block}.display-block{display:block!important}.display-none{display:none!important}@media (width>=740px){.display-sm-block{display:block!important}.display-sm-none{display:none!important}}@media (width>=990px){.display-md-block{display:block!important}.display-md-none{display:none!important}}@media (width>=1260px){.display-lg-block{display:block!important}.display-lg-none{display:none!important}}@media (width>=1800px){.display-xl-block{display:block!important}.display-xl-none{display:none!important}}.flex-align-self-center{align-self:center}@media (width>=740px){.flex-align-self-sm-center{align-self:center}}@media (width>=990px){.flex-align-self-md-center{align-self:center}}@media (width>=1260px){.flex-align-self-lg-center{align-self:center}}@media (width>=1800px){.flex-align-self-xl-center{align-self:center}}.flex-vertical-center{flex-direction:column;justify-content:center;display:flex}@media (width>=740px){.flex-vertical-sm-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=990px){.flex-vertical-md-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=1260px){.flex-vertical-lg-center{flex-direction:column;justify-content:center;display:flex}}@media (width>=1800px){.flex-vertical-xl-center{flex-direction:column;justify-content:center;display:flex}}.flex-gap{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap--none{gap:0}.flex-gap--sm{gap:var(--padding-sm)}.flex-gap--xs{gap:var(--padding-xs)}@media (width>=740px){.flex-gap-sm{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-sm--none{gap:0}.flex-gap-sm--sm{gap:var(--padding-sm)}.flex-gap-sm--xs{gap:var(--padding-xs)}}@media (width>=990px){.flex-gap-md{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-md--none{gap:0}.flex-gap-md--sm{gap:var(--padding-sm)}.flex-gap-md--xs{gap:var(--padding-xs)}}@media (width>=1260px){.flex-gap-lg{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-lg--none{gap:0}.flex-gap-lg--sm{gap:var(--padding-sm)}.flex-gap-lg--xs{gap:var(--padding-xs)}}@media (width>=1800px){.flex-gap-xl{gap:var(--padding);flex-wrap:wrap;display:flex}.flex-gap-xl--none{gap:0}.flex-gap-xl--sm{gap:var(--padding-sm)}.flex-gap-xl--xs{gap:var(--padding-xs)}}.margin{margin-bottom:var(--margin)!important}.margin-small{margin-bottom:var(--margin-sm)!important}.margin-none{margin-bottom:0!important}@media (width>=740px){.margin-sm{margin-bottom:var(--margin)!important}.margin-sm-small{margin-bottom:var(--margin-sm)!important}.margin-sm-none{margin-bottom:0!important}}@media (width>=990px){.margin-md{margin-bottom:var(--margin)!important}.margin-md-small{margin-bottom:var(--margin-sm)!important}.margin-md-none{margin-bottom:0!important}}@media (width>=1260px){.margin-lg{margin-bottom:var(--margin)!important}.margin-lg-small{margin-bottom:var(--margin-sm)!important}.margin-lg-none{margin-bottom:0!important}}@media (width>=1800px){.margin-xl{margin-bottom:var(--margin)!important}.margin-xl-small{margin-bottom:var(--margin-sm)!important}.margin-xl-none{margin-bottom:0!important}}.width-auto{width:auto}.width-full{width:100%}@media (width>=740px){.width-sm-auto{width:auto}.width-sm-full{width:100%}}@media (width>=990px){.width-md-auto{width:auto}.width-md-full{width:100%}}@media (width>=1260px){.width-lg-auto{width:auto}.width-lg-full{width:100%}}@media (width>=1800px){.width-xl-auto{width:auto}.width-xl-full{width:100%}}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}@media (width>=740px){.text-align-sm-left{text-align:left}.text-align-sm-center{text-align:center}.text-align-sm-right{text-align:right}}@media (width>=990px){.text-align-md-left{text-align:left}.text-align-md-center{text-align:center}.text-align-md-right{text-align:right}}@media (width>=1260px){.text-align-lg-left{text-align:left}.text-align-lg-center{text-align:center}.text-align-lg-right{text-align:right}}@media (width>=1800px){.text-align-xl-left{text-align:left}.text-align-xl-center{text-align:center}.text-align-xl-right{text-align:right}}:host,:root{--color-accent:var(--hawksearch-color-accent,#119ff7);--color-secondary:var(--hawksearch-color-secondary,#ccc);--color-secondary-light:var(--hawksearch-color-secondary-light,#f1f1f1);--color-secondary-dark:var(--hawksearch-color-secondary-dark,#757575);--color-background:var(--hawksearch-color-background,#fff);--container-background:var(--hawksearch-container-background,var(--color-background));--container-background--alternate:var(--hawksearch-container-background--alternate,var(--color-secondary-light));--container-border:var(--hawksearch-container-border,solid 1px var(--color-secondary));--default-line-height:var(--hawksearch-default-line-height,1.25);--default-font-color:var(--hawksearch-default-font-color,#2e2e2e);--default-font-color--inverse:var(--hawksearch-default-font-color--inverse,#fff);--default-font-family:var(--hawksearch-default-font-family,Arial, sans-serif);--default-font-size:var(--hawksearch-default-font-size,16px);--button-background:var(--hawksearch-button-background,var(--color-accent));--button-border-radius:var(--hawksearch-button-border-radius,5px);--button-font-color:var(--hawksearch-button-font-color,#fff);--form-element-background:var(--hawksearch-form-element-background,var(--color-background));--form-element-border:var(--hawksearch-form-element-border,solid 1px var(--color-secondary));--form-element-border--focus:var(--hawksearch-form-element-border--focus,solid 1px var(--color-accent));--form-element-border-radius:var(--hawksearch-form-element-border-radius,0);--form-element-placeholder-color:var(--hawksearch-form-element-placeholder-color,var(--color-secondary-dark));--margin:var(--hawksearch-margin,32px);--margin-sm:var(--hawksearch-margin-sm,calc(var(--margin) / 2));--padding:var(--hawksearch-padding,24px);--padding-xs:var(--hawksearch-padding-xs,calc(var(--padding) / 4));--padding-sm:var(--hawksearch-padding-sm,calc(var(--padding) / 2));--secondary-font-color:var(--hawksearch-secondary-font-color,var(--color-secondary-dark));font-family:var(--default-font-family);font-size:var(--default-font-size);color:var(--default-font-color);line-height:var(--default-line-height)}'),HawkSearch.config.css?.customStyles){const e="string"==typeof HawkSearch.config.css.customStyles?[HawkSearch.config.css.customStyles]:HawkSearch.config.css.customStyles;a=a.concat(e)}a.forEach((e,a)=>{const r=`hawksearch-handlebars-ui-css-${a}`;if(!this.shadowDom&&document.head.querySelector(`[id="${r}"]`))return;let n;if(/^.*?.css$/.test(e)){const t=document.createElement("link");t.id=r,t.type="text/css",t.rel="stylesheet",t.href=e,n=t}else{const t=document.getElementById(e);if(t instanceof HTMLTemplateElement){const e=t.content.cloneNode(!0).querySelector("style");e&&(e.id=r,n=e)}else{const t=document.createElement("style");t.id=r,t.innerHTML=e,n=t}}n&&(this.shadowDom?t.push(n):this.useCustomStyle||document.head.append(n))});const r=document.createElement("template");r.innerHTML=this.template(e);const n=r.content.cloneNode(!0);t.push(n),this.rootElement.replaceChildren(...t),this.style.display=r.innerHTML?"":"none",this.contentModel=e,this.bindChildElements(),this.onRender(),window.dispatchEvent(new CustomEvent(`hawksearch:after-${this.componentName}-rendered`,{detail:{component:this,contentModel:e}})),this.dispatchEvent(new CustomEvent("hawksearch:after-render",{detail:{contentModel:e}}))}renderContent(){return!0}bindChildElements(){}onRender(){}getCustomTemplateHtml(){let e=this.configuration?.template;if(e){const t=document.getElementById(e);(t instanceof HTMLTemplateElement||t instanceof HTMLScriptElement)&&(e=t.innerHTML),Object.entries({"{{&gt;":"{{>"}).forEach(([t,a])=>{const r=new RegExp(t,"g");e=e.replace(r,a)})}return e}interpolate(e,t){let a=e;return Object.entries(t).forEach(([e,t])=>{a=a.replace("${"+e+"}",t)}),a}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},va=class extends fa{bindFromEvent=!1},wa=class extends fa{componentName="bubble-content";defaultHtml='<div class="content-zone-banner">\n <div class="bubble-banner">\n <button class="hs-banner-help" type="button" aria-label="Banner information" aria-haspopup="true" aria-expanded="false">?</button>\n <div class="hs-banner-tooltip">\n <div class="hs-trigger-title">Triggered by</div>\n <div class="hs-trigger-name">\n <a target="_top" href="/settings/ads/rules/edit.aspx?BannerGroupId={{BannerGroupId}}">\n {{addBrBeforeParen Name}}\n </a>\n </div>\n <div class="hs-trigger__rule">\n <div class="hs-trigger__rule-items">\n {{#each Rule.Rules}}\n <span class="hs-trigger__rule-item">\n <span class="hs-trigger__field">{{Field}}</span>\n <span class="hs-trigger__condition">{{Condition}}</span>\n <span class="hs-trigger__value">{{Value}}</span>\n {{#unless @last}}\n <span class="hs-trigger__connector">OR</span>\n {{/unless}}\n </span>\n {{/each}}\n </div>\n </div>\n </div>\n </div>\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data}}},Aa=class extends va{componentName="custom-content";defaultHtml='<div class="custom-content">\n {{html content}}\n</div>';renderContent(){return!!this.data}getContentModel(){return{...this.data}}},ya=class extends va{componentName="featured-items-content";defaultHtml='<div class="row featured-items-content">\n {{#each items}}\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n </div>\n {{/if}}\n {{else}}\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\n {{/if}}\n {{/each}}\n</div>';renderContent(){return!!this.data?.items?.length}getContentModel(){return{...this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-featured-items-content-item").forEach((e,t)=>{e.data=this.data.items?.[t],e.trackingEnabled=this.data.trackingEnabled})}},ba=class extends fa{trackingEnabled=!0;componentName="featured-items-content-item";defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\n {{#if pinned}}\n <span class="featured-items-content__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="featured-items-content__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACPsp9wKiNptN2mw2uZcBAJ2bTqdpOp3mXkZIVeFwfX2dexkAcBC1hINHFQBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwqp55fS+Tk5Oqnl9JwDDstls0v39fe5lHMRgw2E6nabT09PcywBghK6urgYbDh5VAABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACPsp9wIAurLZbFLbtqlpmkc/Zjqdpslkko6Pj3tcGQyHcACq1TRNWi6XqWmadH9/H/pvrq+vU0opTSaTdHJykqbTaXr//n2aTCaHXCoMhnAAqtK2bVoul+n29jZtt9tX/Tnr9Tqt1+t0eXmZ3rx5k37++ec0nU47XC0Mj3AAqtC2bbq5uUm3t7epbdvO//xd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0EOFEzcMQDh2ZzWYmKOBAvo1ybwxkHw7F6p5w6MDNzY0JCjig3WPA7XYrGtibeOiWcHil1WplMyT0oGma9Mcff4gGXsSJmt0RDq9gdhygHu5WdUM4vJAJCoC62B/TDeHwQiYoAOrjRM3XEw4vYIICoF7uGL+OcNiTCQqA+nnr6MsJhz2YoAAYDvHwMsIhyAQFwPA4UXN/wiHA8zCA4XKi5n6EQ8D5+bkduAAD5kTNOOHwjNlslu7v73MvA4ADc6JmjHB4wnK5NEEBMCJO1HyecHjEZrOxGRJghByK9TTh8ICmadLFxUXuZQCQiXh4nHD4Qdu2aT6fm6AAGDknaj5MOPzg/PzcXxQAUkpO1HyIcPiGCQoAvuVEzf8SDn8zQQHAQ5yo+T3hkExQAPA0bxD+1+jDwQQFABEOxfrLqMPBBAUA+xAPKf2UewGHstls0tXV1bMfY8MLAPtomiadn5+n6XT66MdsNpseV9SvwYbD/f29CQkADmLM15hRP6oAAPYjHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAICwal45/dQ7wQGgZjVd4/739evXr7kXAQDUwaMKACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data||!this.trackingEnabled)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackSearchResultClick(t,this.data.url,e)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},ka=class extends va{componentName="image-content";defaultHtml='<div class="image-content">\n {{#if link}}\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n </a>\n {{else}}\n <img\n src="{{image.url}}"\n class="image-content__image"\n height="{{image.height}}"\n width="{{image.width}}"\n alt="{{image.altText}}"\n title="{{image.title}}"\n />\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{HawkSearch.services.tracking.trackBannerClick(this.data.id,this.data.campaignId)})}),HawkSearch.services.tracking.trackBannerImpression(this.data.id,this.data.campaignId)}},_a=class extends va{componentName="popular-queries-content";defaultHtml='<div class="popular-queries-content">\n {{#each items}}\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\n {{/each}}\n</div>';renderContent(){return!!this.data?.items?.length}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},xa=class extends fa{componentName="content-zone";defaultHtml='<div class="content-zone">\n {{#each items}}\n {{#if (eq type "custom")}}\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\n {{/if}}\n {{#if (eq type "featured-items")}}\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\n {{/if}}\n {{#if (eq type "image")}}\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\n {{/if}}\n {{#if (eq type "popular-queries")}}\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\n {{/if}}\n {{/each}}\n</div>';bindFromEvent=!0;get name(){return this.getAttribute("name")||void 0}get zone(){return this.name?this.data?.contentZones?.[this.name]:void 0}get displayType(){const e=window.innerWidth;return e>=(HawkSearch.config.breakpoints?.desktop??990)?"desktop":e>=(HawkSearch.config.breakpoints?.tablet??740)?"tablet":"mobile"}previousDisplayType;windowResizeEventHandler;connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=la(e=>{this.displayType!==this.previousDisplayType&&this.render()},100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){return!!this.zone?.items?.length}getContentModel(){return this.previousDisplayType=this.displayType,{...this.zone,items:this.zone?.items.map(e=>e[this.displayType])??[]}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[index]").forEach(e=>{const t=e,a=parseInt(t.getAttribute("index")||"-1");isNaN(a)||a<0||a>=(this.zone?.items.length||-1)||(t.data=this.zone?.items[a]?.[this.displayType])}),this.rootElement.querySelectorAll("hawksearch-bubble-content").forEach((e,t)=>{e.data=this.zone?.items[t]?.[this.displayType]?.trigger})}};function Ea(e){e=e.toLowerCase().replace(/[^a-z]/g,"");const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}function Sa(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function Ca(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleDateString(t,{month:"long"})}function Ma(){const e=HawkSearch.config.formatting?.cultureIsoCode||"en-US",t=(new Date).getFullYear(),a=[];for(let r=0;r<12;r++){const n=new Date(t,r,1).toLocaleDateString(e,{month:"long"});a.push(n)}return a}function Ha(e,t=2){const a=HawkSearch.config.formatting?.cultureIsoCode||"en-US",r=HawkSearch.config.formatting?.currencyIsoCode?.toUpperCase()||"USD";return e.toLocaleString(a,{style:"currency",currency:r,minimumFractionDigits:t,maximumFractionDigits:t})}function Pa(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function Ia(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleString(t,{year:"numeric",month:"short",day:"2-digit"})}function Da(e,t=2){const a=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return e.toLocaleString(a,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}function Ta(e){return!!e&&e.includes("data:image/")}function Ra(e){let t=decodeURIComponent(e);return t!==e&&(t=Ra(t)),t}var Ba=class extends fa{static get observedAttributes(){return["label","max","min","value"]}componentName="date-picker";defaultHtml='<div class="date-picker">\n <input type="text" name="hawksearch-date-picker" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}" />\n {{#if modalVisible}}\n <div hawksearch-modal class="date-picker__modal">\n {{#if monthSelectorVisible}}\n <div class="date-picker__modal__header">\n <span class="date-picker__modal__header__month">{{strings.selectMonth}}</span>\n </div>\n <div class="row">\n <div class="column column--12">\n <select name="hawksearch-date-picker-month" hawksearch-month>\n {{#each months}}\n {{#if (eq this @root.currentMonth)}}\n <option value="{{@index}}" selected>{{this}}</option>\n {{else}}\n <option value="{{@index}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <select name="hawksearch-date-picker-year" hawksearch-year>\n {{#each years}}\n {{#if (eq this @root.currentYear)}}\n <option value="{{this}}" selected>{{this}}</option>\n {{else}}\n <option value="{{this}}">{{this}}</option>\n {{/if}}\n {{/each}}\n </select>\n </div>\n <div class="column column--12">\n <button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button>\n </div>\n </div>\n {{else}}\n <div class="date-picker__modal__header">\n <a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a>\n <a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}">\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n </div>\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\n <thead>\n <tr>\n <th scope="col">{{dayAbbreviation 0}}</th>\n <th scope="col">{{dayAbbreviation 1}}</th>\n <th scope="col">{{dayAbbreviation 2}}</th>\n <th scope="col">{{dayAbbreviation 3}}</th>\n <th scope="col">{{dayAbbreviation 4}}</th>\n <th scope="col">{{dayAbbreviation 5}}</th>\n <th scope="col">{{dayAbbreviation 6}}</th>\n </tr>\n </thead>\n <tbody>\n {{#each weeks}}\n <tr>\n {{#each this}}\n <td\n hawksearch-date="{{value}}"\n class="date-picker__calendar__day\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\n {{attribute \' date-picker__calendar__day--selected\' selected}}\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\n >\n <span>{{dayOfMonth date}}</span>\n </td>\n {{/each}}\n </tr>\n {{/each}}\n </tbody>\n </table>\n {{/if}}\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;label;minDate;maxDate;selectedDate;modalVisible=!1;modalDate=new Date;monthSelectorVisible=!1;documentClickEventHandler;windowResizeEventHandler;connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout(()=>this.render()))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=la(e=>{this.positionModal()},100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){if("label"===e)this.label=a||void 0;else{const t=a?new Date(a):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.render()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayAbbreviation",e=>function(e){const t=HawkSearch.config.formatting?.cultureIsoCode||"en-US";return new Date(2023,0,e+1).toLocaleDateString(t,{weekday:"short"})}(e)),this.handlebars.registerHelper("dayOfMonth",e=>e.getDate().toString().padStart(2,"0"))}getContentModel(){return{value:this.selectedDate?Pa(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,years:this.getYears(),months:Ma(),weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:Ca(this.modalDate),strings:{heading:`${Ca(this.modalDate)} ${this.modalDate.getFullYear()}`,label:this.label??this.configuration?.strings?.defaultLabel??"Selected Date",next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous",selectMonth:this.configuration?.strings?.selectMonth??"Select Month",viewCalendar:this.configuration?.strings?.viewCalendar??"View Calendar"}}}onRender(){super.onRender(),this.positionModal(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{e.addEventListener("click",e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.render()})}),this.rootElement.querySelectorAll("[hawksearch-next]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.render()})}),this.rootElement.querySelectorAll("[hawksearch-month-selector]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-select-month]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=this.rootElement.querySelector("[hawksearch-month]")?.value,a=this.rootElement.querySelector("[hawksearch-year]")?.value;if(void 0===t)throw new Error("Unable to get month value");if(void 0===a)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(a),parseInt(t),1),this.monthSelectorVisible=!1,this.render()})}),this.rootElement.querySelectorAll("[hawksearch-date]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const a=e.getAttribute("hawksearch-date")||void 0;if(!a)return;const r=new Date(a);if(this.minDate&&!(r>=this.minDate)||this.maxDate&&!(r<=this.maxDate))return;this.selectedDate=r,this.modalVisible=!1,this.render();const n=new CustomEvent("hawksearch:date-picker-changed",{detail:r});this.dispatchEvent(n)})})}positionModal(){const e=this.rootElement.querySelector("[hawksearch-modal]");if(!e||!e.offsetWidth||!this.modalVisible)return;e.style.left="",e.style.right="";const t=window.innerWidth,a=e.getBoundingClientRect();e.offsetWidth+a.x>=t&&t>=e.offsetWidth&&(e.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),a=t<1900?t:1900,r=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let n=a;n<=r;n++)e.push(n);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const a=[];do{const e=this.getWeek(t);a.push(e),t=new Date(a[a.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(a.length<6);return a}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let a=0;a<7;a++){const r=new Date(e.getTime());r.setDate(r.getDate()+a),r.setHours(0,0,0,0);const n={date:r,value:r.toISOString(),currentMonth:r.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||r>=this.minDate)&&(!this.maxDate||r<=this.maxDate),selected:!!this.selectedDate&&Sa(r,this.selectedDate)};t.push(n)}return t}},qa=class extends fa{componentName="icon";defaultHtml='{{html svg}}\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\n <use href="{{url}}"></use>\n</svg>';bindFromEvent=!1;get name(){return this.getAttribute("name")??void 0}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}renderContent(){return!!this.name}getContentModel(){return{svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs><symbol id="chevron-back"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z" fill="#000"/></g></symbol><symbol id="chevron-down"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z" fill="#000"/></g></symbol><symbol id="chevron-forward"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z" fill="#000"/></g></symbol><symbol id="chevron-left"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z" fill="#000"/></g></symbol><symbol id="chevron-right"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z" fill="#000"/></g></symbol><symbol id="chevron-up"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z" fill="#000"/></g></symbol><symbol id="cross"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z" fill="#000"/></g></symbol><symbol id="drop-image" viewBox="0 0 100 100"><path d="M55.875 25.375H52.75v9h3.125v-9Zm0-5.375v-1.125c0-4.125-3.375-7.5-7.5-7.5H47.25V14.5h1.125c2.375 0 4.375 2 4.375 4.375V20h3.125Zm-14 39.875h-9V63h9v-3.125Zm-14.5 0h-9V63h9v-3.125Zm-19.875-20H4.375v9H7.5v-9Zm0-14.5H4.375v9H7.5v-9ZM11.875 63H13v-3.125h-1.125c-2.375 0-4.375-2-4.375-4.375v-1.125H4.375V55.5c0 4.125 3.375 7.5 7.5 7.5Zm0-48.5H13v-3.125h-1.125c-4.125 0-7.5 3.375-7.5 7.5V20H7.5v-1.125c0-2.375 2-4.375 4.375-4.375Zm15.5-3.125h-9V14.5h9v-3.125Zm14.5 0h-9V14.5h9v-3.125ZM36.625 36.5c.875 0 1.5-.625 1.5-1.5 0-.5-.25-1-.625-1.25L31.25 29c-.5-.5-1.375-.5-1.875 0l-6.25 4.75c-.625.5-.75 1.5-.25 2.125s1.5.75 2.125.25l3.875-2.75v11.25c0 .875.625 1.5 1.5 1.625h.25c.75-.125 1.375-.75 1.375-1.5V33.5l3.875 2.75s.375.25.75.25Zm52.75 1.5H51.25c-1.625 0-3.25.625-4.375 1.875-1.25 1-1.875 2.625-1.875 4.25V82.25c0 1.625.625 3.25 1.875 4.375C48 87.75 49.625 88.5 51.25 88.5h38.125c1.625 0 3.25-.625 4.375-1.875s1.875-2.75 1.875-4.375V44.125c0-1.625-.625-3.25-1.875-4.375S91.125 38 89.375 38Zm3.375 44.375a3.415 3.415 0 0 1-3.375 3.375H51.25a3.415 3.415 0 0 1-3.375-3.375v-6.5l5.75-5.75 6.125 6.125c.125.125.25.25.5.375.5.25 1.125.125 1.625-.375L77.5 60.5l15.25 15.25v6.625Zm0-10.75L78.5 57.5c-.125-.125-.25-.25-.5-.375a1.734 1.734 0 0 0-1.125 0c-.125.125-.375.125-.5.375L60.75 73.125 54.625 67c-.25-.25-.625-.375-1-.375s-.75.125-1 .375l-4.75 4.75v-27.5a3.415 3.415 0 0 1 3.375-3.375h38.125a3.415 3.415 0 0 1 3.375 3.375v27.375Z"/><path d="M64.625 54.125c.125-.875-.125-1.75-.625-2.5s-1.25-1.25-2.125-1.5C61.5 50 61.125 50 60.75 50c-.5 0-1 .125-1.5.25-.875.375-1.5 1-1.875 1.75s-.5 1.75-.375 2.5c.125.875.625 1.625 1.375 2.25.625.5 1.5.875 2.375.875 1 0 2-.375 2.75-1.125.625-.75 1-1.5 1.125-2.375Z"/></symbol><symbol id="help"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z" fill="#000"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z" fill="#000"/></g></symbol><symbol id="image" viewBox="0 0 20 20"><path d="M17.27 20H2.727A2.726 2.726 0 0 1 0 17.273V2.727A2.728 2.728 0 0 1 2.727 0H17.27a2.726 2.726 0 0 1 2.727 2.727v14.546A2.728 2.728 0 0 1 17.27 20ZM2.727 1.818a.909.909 0 0 0-.909.91v14.545a.91.91 0 0 0 .91.909H17.27a.91.91 0 0 0 .91-.91V2.728a.909.909 0 0 0-.91-.909H2.727Z"/><path d="M.91 15.455A.91.91 0 0 1 .269 13.9l2.727-2.727a.909.909 0 0 1 1.281.004l2.086 2.082 5.722-5.718a.908.908 0 0 1 1.286 0l6.363 6.364a.91.91 0 0 1-1.287 1.286l-5.721-5.723-5.722 5.719a.909.909 0 0 1-1.286 0l-2.082-2.082L1.55 15.19c-.17.17-.4.264-.64.264Zm5.453-7.273a1.818 1.818 0 1 1 .003-3.636 1.818 1.818 0 0 1-.003 3.636Z"/></symbol><symbol id="message" viewBox="0 0 20 21"><path fill-rule="evenodd" d="M14.84 7.946H5.01a1 1 0 0 1-.998-.998 1 1 0 0 1 .998-.998h9.83a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Zm-6.407 3.992H5a1 1 0 0 1-.998-.998A1 1 0 0 1 5 9.942h3.433a1 1 0 0 1 .998.998 1 1 0 0 1-.998.998Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M2.016.96A2.002 2.002 0 0 0 .02 2.956v11.976c0 1.098.898 1.996 1.996 1.996h8.094c-.21-.41-.34-.878-.34-1.377 0-.21.02-.42.07-.62H2.016V2.957h15.968v11.976h-2.216c.04.2.07.409.07.619 0 .499-.13.958-.339 1.377h2.495a2.002 2.002 0 0 0 1.996-1.996V2.956A2.002 2.002 0 0 0 17.994.96H2.016Z" clip-rule="evenodd"/><path d="m17.545 19.413-1.367-1.677a3.85 3.85 0 0 0 .778-2.315 3.897 3.897 0 0 0-3.892-3.892 3.897 3.897 0 0 0-3.892 3.892 3.897 3.897 0 0 0 3.892 3.892 3.89 3.89 0 0 0 1.647-.38l1.367 1.677c.18.22.449.35.738.35a.95.95 0 0 0 .738-1.547h-.009Zm-2.266-3.992a2.217 2.217 0 0 1-2.215 2.215 2.21 2.21 0 0 1-2.216-2.215 2.21 2.21 0 0 1 2.216-2.216 2.21 2.21 0 0 1 2.216 2.216Z"/></symbol><symbol id="minus"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z" fill="#000"/></g></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="reset" viewBox="0 0 16 16"><path d="M14.923 3.988A7.977 7.977 0 0 0 10.459.39a7.98 7.98 0 0 0-5.73.32 8.026 8.026 0 0 0-2.77 2.06V1.765a.976.976 0 0 0-1.951 0V5.86h4.097a.976.976 0 0 0 0-1.95H3.56a6.029 6.029 0 0 1 4.41-1.952h.078a6.003 6.003 0 0 1 4.16 1.694l.187.187a5.99 5.99 0 0 1 1.663 4.082v.187a6.022 6.022 0 0 1-1.647 4.05c-.078.087-.164.165-.25.25a6.042 6.042 0 0 1-4.059 1.647H7.93a6.039 6.039 0 0 1-5.682-4.214C2.1 9.374 1.623 9.1 1.116 9.21a.989.989 0 0 0-.64.46.946.946 0 0 0-.086.78 7.944 7.944 0 0 0 1.678 2.912A7.965 7.965 0 0 0 8.016 16a7.95 7.95 0 0 0 4.706-1.538 7.996 7.996 0 0 0 3.114-4.815 8.026 8.026 0 0 0-.905-5.667l-.008.008Z"/></symbol><symbol id="search" viewBox="0 0 20 20"><g clip-path="url(#a)"><path fill-rule="evenodd" d="m18.678 16.322-3.299-3.3a7.85 7.85 0 0 0 1.265-4.284 7.85 7.85 0 0 0-2.316-5.589A7.854 7.854 0 0 0 8.738.833 7.853 7.853 0 0 0 3.15 3.148a7.855 7.855 0 0 0-2.316 5.59c0 2.112.823 4.098 2.316 5.59a7.85 7.85 0 0 0 5.59 2.315 7.84 7.84 0 0 0 4.283-1.264l3.3 3.3c.315.314.733.488 1.178.488.445 0 .863-.174 1.178-.489.315-.314.489-.732.489-1.178 0-.446-.174-.864-.489-1.178Zm-14.35-3.174A6.193 6.193 0 0 1 2.5 8.738a6.2 6.2 0 0 1 1.827-4.41A6.194 6.194 0 0 1 8.738 2.5c1.667 0 3.233.65 4.411 1.828a6.193 6.193 0 0 1 1.828 4.41c0 1.667-.65 3.233-1.828 4.411a6.193 6.193 0 0 1-4.41 1.828 6.19 6.19 0 0 1-4.412-1.829Z" clip-rule="evenodd"/></g></symbol><symbol id="send"><path d="M1.635 19a.635.635 0 0 1-.595-.856l2.608-7.03a.629.629 0 0 1 .483-.403l3.985-.704-3.98-.685a.63.63 0 0 1-.488-.405L1.04 1.853a.636.636 0 0 1 .88-.786l16.73 8.367a.634.634 0 0 1 0 1.132L1.918 18.933a.634.634 0 0 1-.282.067Z"/></symbol><symbol id="sparkles" viewBox="0 0 20 20"><path d="m12.263 16.353-.855 2.646-.855-2.646a4.086 4.086 0 0 0-2.636-2.635l-2.646-.855 2.646-.855a4.086 4.086 0 0 0 2.636-2.635l.855-2.646.855 2.646a4.086 4.086 0 0 0 2.635 2.635l2.646.855-2.646.855a4.09 4.09 0 0 0-2.635 2.635ZM5.75 9.342l-.478 1.478-.477-1.478a2.047 2.047 0 0 0-1.317-1.317L2 7.545l1.478-.476A2.047 2.047 0 0 0 4.795 5.75l.477-1.478.477 1.478a2.047 2.047 0 0 0 1.318 1.32l1.478.477-1.478.477a2.053 2.053 0 0 0-1.318 1.32Zm4.313-5.151-.29.899-.29-.899a1.33 1.33 0 0 0-.856-.856l-.898-.29.898-.29a1.33 1.33 0 0 0 .857-.857L9.774 1l.29.898c.13.407.45.726.856.857l.898.29-.898.29a1.337 1.337 0 0 0-.857.856Z"/></symbol><symbol id="star-empty"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m18.333 7.7-5.991-.517L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392l5.15 3.108-1.359-5.858L18.334 7.7ZM10 12.833l-3.133 1.892.833-3.567-2.767-2.4 3.65-.316L10 5.083l1.425 3.367 3.65.317-2.767 2.4.834 3.566-3.142-1.9Z" fill="#000"/></g></symbol><symbol id="star-half" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><style>.st0{fill-rule:evenodd;clip-rule:evenodd}</style><path class="st0" d="m18.3 7.7-6-.5L10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.1-3.1 5.1 3.1-1.4-5.9 4.7-3.9zM10 12.8l-3.1 1.9.8-3.6-2.8-2.3 3.7-.3L10 5.1l1.4 3.4 3.6.3-2.8 2.4.8 3.6-3-2z"/><path class="st0" d="M10 1.7 7.7 7.2l-6 .5 4.5 3.9-1.4 5.9 5.2-3.1z"/></g></symbol><symbol id="star"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z" fill="#000"/></g></symbol><symbol id="upload" viewBox="0 0 21 20"><path fill-rule="evenodd" d="M5.825 6.67C3.422 6.762 1.5 8.72 1.5 11.119c0 2.457 2.016 4.45 4.498 4.45h1.196v-1.187H5.998c-1.82 0-3.297-1.462-3.297-3.263 0-1.8 1.477-3.263 3.297-3.263.286 0 .572.037.857.06.276-2.277 1.645-4.227 4.24-4.227 2.32 0 4.203 1.863 4.203 4.158 0 .614.03.6 0 1.36.428 0 3.001.39 3.001 2.799 0 1.311-1.075 2.376-2.4 2.376h-1.802v1.188h1.801c1.988 0 3.602-1.598 3.602-3.564 0-1.778-1.318-3.254-3.04-3.521.025-.21.038-.422.038-.638 0-2.95-2.42-5.346-5.402-5.346-2.574 0-4.73 1.785-5.271 4.17Z" clip-rule="evenodd"/><path d="m7.78 12.622-.845-.809 3.574-3.398 3.556 3.4-.848.807-2.105-2.013-.006 7.09H9.893l.007-7.094-2.12 2.017Z"/><path fill-rule="evenodd" d="M5.705 6.527c.598-2.398 2.786-4.177 5.39-4.177 3.064 0 5.553 2.462 5.553 5.496 0 .174-.008.345-.024.514 1.723.335 3.026 1.84 3.026 3.645 0 2.05-1.683 3.714-3.752 3.714h-1.95V14.23h1.95c1.244 0 2.251-.999 2.251-2.226 0-1.138-.602-1.794-1.264-2.173-.671-.383-1.395-.476-1.587-.476h-.156l.006-.156c.019-.476.014-.64.008-.85a15.228 15.228 0 0 1-.008-.504c0-2.21-1.815-4.008-4.052-4.008-1.257 0-2.207.47-2.88 1.21-.675.744-1.077 1.77-1.212 2.885l-.018.144-.144-.012-.226-.02a6.558 6.558 0 0 0-.618-.04c-1.739 0-3.147 1.397-3.147 3.113 0 1.717 1.408 3.113 3.147 3.113h1.346v1.488H5.998c-2.564 0-4.648-2.06-4.648-4.6 0-2.444 1.927-4.442 4.355-4.592Zm5.39-3.877c-2.503 0-4.598 1.736-5.124 4.054l-.026.112-.115.005c-2.323.087-4.18 1.98-4.18 4.297 0 2.372 1.947 4.3 4.348 4.3h1.046v-.887H5.998c-1.901 0-3.447-1.528-3.447-3.413 0-1.885 1.546-3.413 3.447-3.413a7.03 7.03 0 0 1 .727.048c.157-1.107.572-2.139 1.27-2.906.73-.804 1.761-1.309 3.1-1.309 2.401 0 4.353 1.93 4.353 4.308 0 .219.004.358.007.484.006.196.01.36-.002.735.332.033.975.16 1.58.507.732.418 1.416 1.162 1.416 2.433 0 1.396-1.144 2.526-2.55 2.526h-1.652v.888h1.651c1.906 0 3.452-1.532 3.452-3.414 0-1.702-1.262-3.117-2.913-3.373l-.143-.022.017-.144c.025-.203.038-.41.038-.62 0-2.866-2.353-5.196-5.253-5.196Zm-.586 5.557 3.774 3.609-1.066 1.013-1.955-1.869-.006 6.89-1.513-.002.007-6.893-1.97 1.874-1.063-1.016 3.792-3.606Zm-3.357 3.607.629.6 2.27-2.159-.008 7.294h.913l.007-7.29 2.255 2.156.63-.6-3.34-3.193-3.356 3.192Z" clip-rule="evenodd"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${this.name}`,height:this.size,width:this.size}}},La=class extends fa{static get observedAttributes(){return["end","start"]}componentName="range-slider";defaultHtml='<div class="range-slider">\n <div class="range-slider__container">\n <div class="range-slider__bar">\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\n </div>\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\n </div>\n</div>';bindFromEvent=!1;dragging=!1;activeHandle;startX;startOffsetPercentage;mouseUpEventHandler;mouseMoveEventHandler;start=0;end=100;connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach(e=>document.addEventListener(e,this.mouseUpEventHandler)),["mousemove","touchmove"].forEach(e=>document.addEventListener(e,this.mouseMoveEventHandler),{passive:!0})}attributeChangedCallback(e,t,a){switch(e){case"end":this.setEnd(a);break;case"start":this.setStart(a)}this.render()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach(e=>document.removeEventListener(e,this.mouseUpEventHandler)),["mousemove","touchmove"].forEach(e=>document.removeEventListener(e,this.mouseMoveEventHandler))}setStart(e){let t=parseInt(e??"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(e??"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentModel(){return{start:this.start,end:this.end,strings:{start:this.configuration?.strings?.start??"Start",end:this.configuration?.strings?.end??"End"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-handle]").forEach(e=>{["mousedown","touchstart"].forEach(t=>e.addEventListener(t,t=>{if(!e.getAttribute("hawksearch-handle"))return;const a=t.currentTarget;this.activeHandle=a,this.startOffsetPercentage=parseFloat(a.style.left??0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,this.rootElement.querySelectorAll("[hawksearch-handle]").forEach(e=>e.style.zIndex=""),a.style.zIndex="1"},{passive:!0}))})}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},a=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(a)}onMouseMove(e){if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const t=this.activeHandle.getAttribute("hawksearch-handle"),a=this.rootElement.querySelector('[hawksearch-handle="start"]'),r=this.rootElement.querySelector('[hawksearch-handle="end"]'),n=this.rootElement.querySelector("[hawksearch-bar]"),i=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,s=this.activeHandle.parentElement.offsetWidth;let o=Math.round(i/s*100)+this.startOffsetPercentage,c=0,l=100;"start"===t?l=parseFloat(r.style.left??100):"end"===t&&(c=parseFloat(a.style.left??0)),o<=c?o=c:o>=l&&(o=l),"start"===t?c=o:"end"===t&&(l=o),this.activeHandle.style.left=`${o}%`,n.style.left=`${c}%`,n.style.right=100-l+"%","start"===t?this.start=o:"end"===t&&(this.end=o);const h={start:this.start,end:this.end},d=new CustomEvent("hawksearch:range-slider-dragging",{detail:h});this.dispatchEvent(d)}},Oa=class extends fa{componentName="rating";defaultHtml='<div class="rating" title="{{rating}}">\n <hawksearch-icon name="{{ratingIcon rating 0}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 1}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 2}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 3}}" class="rating__icon"></hawksearch-icon>\n <hawksearch-icon name="{{ratingIcon rating 4}}" class="rating__icon"></hawksearch-icon>\n</div>';bindFromEvent=!1;registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("ratingIcon",(e,t)=>{const a=e-t;return a>=1?"star":a>=.5?"star-half":"star-empty"})}get rating(){return parseFloat(this.getAttribute("rating")??"0")||void 0}renderContent(){return!!this.rating}getContentModel(){return{rating:this.rating}}onRender(){super.onRender(),this.rootElement.querySelector("[hawksearch-tooltip]")?.addEventListener("mouseover",e=>{const t=e.currentTarget,a=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!a)return;a.style.removeProperty("top"),a.style.removeProperty("right");const r=window.innerWidth,n=t.getBoundingClientRect(),i=n.x+n.width;a.style.top=`${n.top}px`,r-i<370&&(a.style.right="20px")})}},Fa=class extends fa{componentName="tooltip";defaultHtml='<span class="tooltip" hawksearch-tooltip>\n <span class="tooltip__icon">\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\n </span>\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\n</span>';bindFromEvent=!1;get text(){return this.getAttribute("text")??void 0}renderContent(){return!!this.text}getContentModel(){return{text:this.text}}onRender(){super.onRender(),this.rootElement.querySelector("[hawksearch-tooltip]")?.addEventListener("mouseover",e=>{const t=e.currentTarget,a=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!a)return;a.style.removeProperty("top"),a.style.removeProperty("right");const r=window.innerWidth,n=t.getBoundingClientRect(),i=n.x+n.width;a.style.top=`${n.top}px`,r-i<370&&(a.style.right="20px")})}},Qa=function(e){return e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content",e}({}),Na=function(e){return e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple",e}({}),Ua=function(e){return e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom",e}({}),Va=function(e){return e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement",e}({}),ja=class extends fa{componentName="landing-page";defaultHtml='{{#if customLayout}}\n {{html customLayout}}\n{{else}}\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\n{{/if}}';bindFromEvent=!0;get url(){return this.getAttribute("url")??window.location.pathname}constructor(){super(),HawkSearch.services.tracking.trackPageLoad(Ua.Landing);const e=HawkSearch.services.search.getRequestFromUrl();e.url=this.url,HawkSearch.services.search.search(e)}renderContent(){return!!this.data}getContentModel(){return{...this.data,customLayout:this.processCustomLayout(this.data.customLayout),url:this.url}}processCustomLayout(e){if(!e)return;let t=e;const a=Object.keys(this.data.contentZones??{}),r=new RegExp(`{{(${a.join("|")})}}`,"g");return t=t.replace(r,'<hawksearch-content-zone name="$1"></hawksearch-content-zone>'),t=t.replace(/{{#breadcrumb#}}/g,this.data.content?.breadcrumbs??""),t=t.replace(/{{#pageheading#}}/g,this.data.content?.heading??""),t=t.replace(/{{#customhtml#}}/g,this.data.content?.customHtml??""),t}},za=class extends fa{static get observedAttributes(){return["item-id","widget-id"]}componentName="recommendations";defaultHtml='<div class="recommendations">\n {{#if headingEnabled}}\n <h2 class="heading recommendations__heading">{{{title}}}</h2>\n {{/if}}\n <div class="recommendations__content">\n {{#if (and carousel buttonsEnabled)}}\n <a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}">\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\n </a>\n {{/if}}\n <div class="recommendations__carousel">\n <div hawksearch-carousel class="recommendations__list{{attribute \' recommendations__list--carousel\' carousel}}" style="left: {{carouselPosition}};">\n {{#each items}}\n <div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};">\n <hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item>\n </div>\n {{/each}}\n </div>\n {{#if (and carousel paginationEnabled)}}\n <div class="recommendations__pagination">\n {{#each paginationItems}}\n <span\n hawksearch-carousel-item="{{@index}}"\n class="recommendations__pagination__item{{attribute \' recommendations__pagination__item--selected\' selected}}"\n title="{{title}}"\n ></span>\n {{/each}}\n </div>\n {{/if}}\n </div>\n {{#if (and carousel buttonsEnabled)}}\n <a\n hawksearch-next\n class="recommendations__button recommendations__button--next{{attribute \' recommendations__button--disabled\' (eq nextEnabled false)}}"\n title="{{strings.next}}"\n >\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\n </a>\n {{/if}}\n </div>\n</div>';bindFromEvent=!0;widgetId;itemId;requestTimer;get carousel(){return!1!==this.configuration?.carousel?.enabled&&!!this.data?.carousel&&(this.data?.items?.length??0)>this.itemsToDisplay}get carouselPosition(){return this.carousel?-1*this.selectedIndex*100/this.itemsToDisplay+"%":void 0}get paginationEnabled(){return this.data?.carouselData?.showDots??this.configuration?.carousel?.paginationEnabled??!1}get buttonsEnabled(){return this.data?.carouselData.showNextPrevButtons??this.configuration?.carousel?.buttonsEnabled??!0}get displayType(){const e=window.innerWidth;return e>=(HawkSearch.config.breakpoints?.desktop??990)?"desktop":e>=(HawkSearch.config.breakpoints?.tablet??740)?"tablet":"mobile"}get itemsToDisplay(){switch(this.displayType){case"mobile":return this.configuration?.itemsToDisplay?.mobile??1;case"tablet":return this.configuration?.itemsToDisplay?.tablet??2;case"desktop":return this.configuration?.itemsToDisplay?.desktop??3;default:return 1}}get itemWidth(){return 100/this.itemsToDisplay+"%"}selectedIndex=0;autorotationTimer;dragElement;dragOffset;dragOrigin;previousDisplayType;touchMoveEventHandler;touchEndEventHandler;windowResizeEventHandler;constructor(){super()}connectedCallback(){super.connectedCallback(),this.touchMoveEventHandler=this.onTouchMove.bind(this),this.touchEndEventHandler=this.onTouchEnd.bind(this),this.windowResizeEventHandler=la(e=>this.onWindowResize(e),100),document.addEventListener("touchmove",this.touchMoveEventHandler),document.addEventListener("touchend",this.touchEndEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("touchmove",this.touchMoveEventHandler),document.removeEventListener("touchend",this.touchEndEventHandler),window.removeEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,a){switch(clearTimeout(this.requestTimer),e){case"item-id":this.itemId=a||void 0;break;case"widget-id":{if(!a)return this.widgetId=void 0,void(this.eventFilter=void 0);const e=a.split(",").map(e=>e.trim());this.widgetId=e[Math.floor(Math.random()*e.length)],this.eventFilter=this.widgetId;break}}this.requestTimer=setTimeout(()=>{if(!this.widgetId)return;const e={widgetId:this.widgetId,itemId:this.itemId};HawkSearch.services.recommendations.getItems(e)},50)}renderContent(){return!!this.data?.items?.length}getContentModel(){return this.previousDisplayType=this.displayType,{...this.data,carousel:this.carousel,carouselPosition:this.carouselPosition,headingEnabled:this.configuration?.headingEnabled??!0,itemWidth:this.itemWidth,buttonsEnabled:this.buttonsEnabled,paginationEnabled:this.paginationEnabled,paginationItems:this.data.items.map((e,t)=>({selected:this.getSelected(t),title:e.title})),strings:{next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-recommendations-item").forEach((e,t)=>{e.data=this.data.items?.[t]})}onRender(){super.onRender(),this.addEventListener("mouseover",e=>{this.toggleAutorotation(!1)}),this.addEventListener("mouseleave",e=>{this.toggleAutorotation(!0)}),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.previous()})}),this.rootElement.querySelectorAll("[hawksearch-next]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.next()})}),this.rootElement.querySelectorAll("[hawksearch-carousel").forEach(e=>{e.addEventListener("touchstart",e=>{this.dragElement=e.currentTarget,this.dragOffset=e.changedTouches[0].pageX,this.dragOrigin=this.dragElement.offsetLeft,this.dragElement.style.transition="none"})}),this.rootElement.querySelectorAll("[hawksearch-carousel-item").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const a=parseInt(e.getAttribute("hawksearch-carousel-item")??"");isNaN(a)||this.displayItem(a)})}),this.displayItem(this.selectedIndex),this.toggleAutorotation(!0)}toggleAutorotation(e){this.autorotationTimer&&clearInterval(this.autorotationTimer),e&&this.contentModel?.carousel&&!1!==this.configuration?.carousel?.autorotation?.enabled&&(this.autorotationTimer=setInterval(()=>{this.next()},this.configuration?.carousel?.autorotation?.interval??5e3))}previous(){const e=0===this.selectedIndex?this.data.items.length-this.itemsToDisplay:this.selectedIndex-this.itemsToDisplay;this.displayItem(e)}next(){const e=this.selectedIndex===this.data.items.length-this.itemsToDisplay?0:this.selectedIndex+this.itemsToDisplay;this.displayItem(e)}getSelected(e){return e>=this.selectedIndex&&e<this.selectedIndex+this.itemsToDisplay}displayItem(e){const t=this.rootElement.querySelector("[hawksearch-carousel]");t&&this.data?.items?.length&&(e<0&&(e=0),e>=this.data.items.length-this.itemsToDisplay&&(e=this.data.items.length-this.itemsToDisplay),this.selectedIndex=e,t.style.left=this.carouselPosition??"",this.rootElement.querySelectorAll("[hawksearch-carousel-item]").forEach((e,t)=>{const a=parseInt(e.getAttribute("hawksearch-carousel-item")??""),r=!isNaN(a)&&this.getSelected(a),n=this.configuration?.carousel?.paginationSelectedCssClass??"recommendations__pagination__item--selected";e.classList.toggle(n,r)}))}onWindowResize(e){this.displayType!==this.previousDisplayType&&this.render()}onTouchMove(e){if(!this.dragElement||!this.carousel)return;const t=(this.dragOrigin??0)+e.changedTouches[0].pageX-(this.dragOffset??0);this.dragElement.style.left=`${t}px`}onTouchEnd(e){if(!this.dragElement||!this.carousel)return;const t=this.dragElement.parentElement.offsetWidth/this.itemsToDisplay,a=this.dragElement.offsetLeft-(this.dragOrigin??0),r=Math.round(a/t),n=this.selectedIndex-r;this.displayItem(n),this.dragElement.style.transition="",this.dragElement=void 0,this.dragOffset=void 0,this.dragOrigin=void 0}},Ya=class extends fa{componentName="recommendations-item";defaultHtml='<div class="recommendations__item">\n {{#if pinned}}\n <span class="recommendations__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="recommendations__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="recommendations__item__price__original">{{currency price}}</span>\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="recommendations__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n</div>';bindFromEvent=!1;get widgetId(){return this.getAttribute("widget-id")||void 0}get requestId(){return this.getAttribute("request-id")||void 0}renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACPsp9wKiNptN2mw2uZcBAJ2bTqdpOp3mXkZIVeFwfX2dexkAcBC1hINHFQBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwqp55fS+Tk5Oqnl9JwDDstls0v39fe5lHMRgw2E6nabT09PcywBghK6urgYbDh5VAABhwgEACBMOAECYcAA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KEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data||!this.widgetId||!this.requestId)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackRecommendationClick(this.widgetId,this.requestId,t)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},Ja=class extends fa{bindFromEvent=!0;componentName="autocomplete";defaultHtml='<div class="autocomplete">\n <div class="row">\n {{#if products.results.length}}\n <div class="column column--12 column-md--8">\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\n <div class="row autocomplete__products">\n {{#each products.results}}\n <div class="column column--12 column-sm--4">\n <div class="autocomplete__product">\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <span class="autocomplete__product__title">\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\n </span>\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="autocomplete__product__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="autocomplete__product__price__original">{{currency price}}</span>\n <span class="autocomplete__product__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="autocomplete__product__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n </div>\n </div>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{#if\n (or\n categories.results.length\n content.results.length\n queries.results.length\n productSuggestedQueries.results.length\n contentSuggestedQueries.results.length\n )\n }}\n <div class="column column--12 column-md--4">\n {{#if productSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{productSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each productSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if contentSuggestedQueries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{contentSuggestedQueries.title}}</span>\n <ul class="autocomplete__list">\n {{#each contentSuggestedQueries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if categories.results.length}}\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\n <ul class="autocomplete__list">\n {{#each categories.results}}\n <li>\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if content.results.length}}\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\n <ul class="autocomplete__list">\n {{#each content.results}}\n <li>\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n {{#if queries.results.length}}\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\n <ul class="autocomplete__list">\n {{#each queries.results}}\n <li>\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\n </li>\n {{/each}}\n </ul>\n {{/if}}\n </div>\n {{/if}}\n </div>\n <div class="autocomplete__view-all">\n <a hawksearch-view-all>{{viewAllText}}</a>\n </div>\n</div>';renderContent(){return!!(this.data&&(this.data.categories?.results?.length||this.data.content?.results?.length||this.data.products?.results?.length||this.data.contentSuggestedQueries?.results?.length||this.data.productSuggestedQueries?.results?.length||this.data.queries?.results?.length))}getContentModel(){return{...this.data,products:{...this.data.products,results:this.data.products.results.map(e=>({...e,description:e.selectedVariant?.description??e.description,imageUrl:e.selectedVariant?.imageUrl??e.imageUrl,price:e.selectedVariant?.price??e.price,rating:e.selectedVariant?.rating??e.rating,salePrice:e.selectedVariant?.salePrice??e.salePrice,sku:e.selectedVariant?.sku??e.sku,title:e.selectedVariant?.title??e.title,url:e.selectedVariant?.url??e.url}))},AutocompleteItemType:Qa}}connectedCallback(){let e=this.getAttribute("widget-id")||"";e||(e="autocomplete-"+Math.floor(1e6*Math.random()),this.setAttribute("widget-id",e)),this.eventFilter=e,super.connectedCallback()}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/t3Xl2/vf169evCQAg4P9yLwAAqIdwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACPsp9wKiNptN2mw2uZcBAJ2bTqdpOp3mXkZIVeFwfX2dexkAcBC1hINHFQBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACB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mHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-category-field"),r=t.getAttribute("hawksearch-category-value"),n=this.data.categories?.results?.find(e=>e.field===a&&e.value===r);if(!n)return;HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Category,n.title,n.url);const i={[n.field]:[n.value]};HawkSearch.services.search.query(void 0,i),this.close()})}),this.rootElement.querySelectorAll("[hawksearch-content]").forEach(e=>{e.addEventListener("click",e=>{const t=e.currentTarget.getAttribute("hawksearch-content"),a=this.data.content?.results?.find(e=>e.id===t);a&&HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Content,a.title,a.url)})}),this.rootElement.querySelectorAll("[hawksearch-product]").forEach(e=>{e.addEventListener("click",e=>{const t=e.currentTarget.getAttribute("hawksearch-product"),a=this.data.products?.results?.find(e=>e.id===t);if(!a)return;const r=(HawkSearch.config.variants?.trackUsingVariant?a.selectedVariant?.title:void 0)??a.title,n=(HawkSearch.config.variants?.trackUsingVariant?a.selectedVariant?.url:void 0)??a.url;HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Product,r,n)})}),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");if(!t)return;const a=this.data.queries?.results.find(e=>e.query===t);a&&HawkSearch.services.tracking.trackAutocompleteClick(this.data.query,Qa.Search,a.query,a.url),HawkSearch.services.search.query(t)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach((e,t)=>{const a=this.data?.products?.results?.[t];a?.variants&&(e.data={items:a.variants,selectedItem:a.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{a.selectedVariant=e.detail,this.render()}))}),this.rootElement.querySelectorAll("[hawksearch-view-all]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),HawkSearch.services.search.query(this.data.query)})})}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}},Za=class extends fa{bindFromEvent=!1;state;onRender(){super.onRender(),this.rootElement.querySelectorAll("input[hawksearch-facet-value]").forEach(e=>{e.addEventListener("change",e=>{e.stopPropagation();const t=e.currentTarget,a=this.data.field,r=t.value;t.checked?HawkSearch.services.search.addFacetValue(a,r):HawkSearch.services.search.removeFacetValue(a,r)})}),this.rootElement.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value"),a=this.data.values?.find(e=>e.value===t);a&&(a.selected?HawkSearch.services.search.removeFacetValue(this.data.field,t):HawkSearch.services.search.addFacetValue(this.data.field,t))})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-include]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field;let r=t.getAttribute("hawksearch-facet-value-include");r&&(r=`${HawkSearch.config.search?.facetExclusionPrefix||"-"}${r}`,HawkSearch.services.search.removeFacetValue(a,r))})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-exclude]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,a=this.data.field,r=t.getAttribute("hawksearch-facet-value-exclude");r&&HawkSearch.services.search.excludeFacetValue(a,r)})}),this.rootElement.querySelectorAll("[hawksearch-facet-value-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.render())})}),this.rootElement.querySelectorAll("[hawksearch-facet-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.render()})})}};function Wa(e,t){return e+t}function Xa(...e){return e.slice(0,-1).every(e=>!!e)}function Ka(e,t){return new HawkSearch.handlebars.SafeString(t?e:"")}function Ga(...e){return e.length<2?"":e.slice(0,-1).join("")}function $a(e,t){return e===t}function er(e){return e.fn()}function tr(e){return new HawkSearch.handlebars.SafeString(e)}function ar(e,t,a){return"object"==typeof t&&(t=void 0),"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),"string"==typeof e&&(e=parseFloat(e)),Ha(e??a??0,t)}function rr(e,t,a){if(e)return"object"==typeof a&&(a=void 0),e.filter(e=>{const r=ut(e,t);return a?r==a:!!r})}function nr(e,t,a){return!!e&&("object"==typeof a&&(a=void 0),e.some(e=>{const r=ut(e,t);return a?r==a:!!r}))}function ir(e,t){return e>t}function sr(e,t){return e>=t}function or(e,t,a){return e?t:a}function cr(e,t){return e<t}function lr(e,t){return e<=t}function hr(e,t,a){return"object"==typeof t&&(t=void 0),"object"==typeof a&&(a=void 0),e instanceof Array&&(e=e[0]),"string"==typeof e&&(e=parseFloat(e)),Da(e??a??0,t)}function dr(...e){return e.slice(0,-1).some(e=>!!e)}function ur(e,t){return"object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),e??t}function pr(e,t){return e-t}function gr(e){return decodeURI(e)}function mr(e){return Ra(e)}function fr(e){return function(e){return(e=lt(e))&&da.test(e)?e.replace(ha,"\\$&"):e}(e)}var vr=class extends Za{componentName="checkbox-list-facet";defaultHtml='<div class="checkbox-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\n {{> facet-checkbox-list values}}\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\n <ul class="checkbox-list-facet__list">\n {{#each this}}\n {{#if visible}}\n <li\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\n \' checkbox-list-facet__list__item--collapsible\'\n hasChildren\n }}"\n >\n <div class="checkbox-list-facet__list__item__content">\n {{#if selected}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\n {{else}}\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\n {{/if}}\n <label for="{{@root.id}}-{{value}}" class="facet__value">\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\n {{#if @root.displayCount}}\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\n {{/if}}\n </label>\n {{#if toggled}}\n {{> facet-checkbox-list children}}\n {{/if}}\n </div>\n {{#if (or @root.excludeEnabled hasChildren)}}\n <div class="checkbox-list-facet__list__item__actions">\n {{#if @root.excludeEnabled}}\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}">\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}">\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\n </span>\n {{/if}}\n {{/if}}\n {{#if hasChildren}}\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}">\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n {{/if}}\n </li>\n {{/if}}\n {{/each}}\n </ul>\n{{/if}}')}renderContent(){return!!this.data?.values?.length}getContentModel(){const e=this.state.filter?new RegExp(fr(this.state.filter),"i"):void 0,t=t=>!!e&&e.test(t.title),a=e=>e.children?.some(e=>t(e))||!1,r=e=>e.children?.some(e=>e.selected||r(e))||!1,n=(i,s)=>i?.map((i,o)=>{const c={...i,visible:!s&&!e&&(this.state.toggled||!this.data.truncation||o<this.data.truncation.threshold)||t(i)||a(i)||!e&&!!s?.toggled,hasChildren:!!i.children?.length,children:void 0,toggled:!(!i.value||!i.children?.length)&&(this.state.values?.[i.value]?.toggled??!1)||a(i)||r(i)};return c.children=n(i.children,c),c});return{displayCount:this.data.displayCount??!0,expanded:this.state.toggled??!1,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?this.data.scrolling.height??200:void 0,showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,values:n(this.data.values,void 0)??[],excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{collapse:this.configuration?.strings?.collapse??"Collapse",exclude:this.configuration?.strings?.exclude??"Exclude",expand:this.configuration?.strings?.expand??"Expand",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},wr=class extends Za{componentName="color-facet";defaultHtml='<div class="color-facet">\n <div class="row row--tight color-facet__items">\n {{#each values}}\n {{#if visible}}\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n {{#if @root.excludeEnabled}}\n <span class="color-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n {{/if}}\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:this.data.values?.filter(e=>e.color).map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,expanded:this.state.toggled??!1,excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{exclude:this.configuration?.strings?.exclude??"Exclude",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},Ar=class extends Za{componentName="date-range-facet";defaultHtml='<div class="date-range-facet">\n <div class="row">\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-start\n value="{{startValue}}"\n min="{{minValue}}"\n max="{{endValue}}"\n label="{{strings.startDate}}"\n ></hawksearch-date-picker>\n </div>\n <div class="column column--6">\n <hawksearch-date-picker\n hawksearch-end\n value="{{endValue}}"\n min="{{startValue}}"\n max="{{maxValue}}"\n label="{{strings.endDate}}"\n ></hawksearch-date-picker>\n </div>\n </div>\n</div>';get range(){if("date"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){return{startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString(),strings:{startDate:this.configuration?.strings?.startDate??"Start Date",endDate:this.configuration?.strings?.endDate??"End Date"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("hawksearch:date-picker-changed",e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("hawksearch:date-picker-changed",e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)})})}updateInputElements(e,t){const a=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");a&&(a.value=e?Pa(e):""),r&&(r.value=t?Pa(t):"")}setFacetValue(e,t){if(e&&t&&e>t){const a=e;e=t,t=a}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),Sa(e,this.range.start)&&Sa(t,this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e?.toISOString()??""},${t?.toISOString()??""}`)}},yr=class extends Za{componentName="link-list-facet";defaultHtml='<div class="link-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\n <ul class="link-list-facet__list">\n {{#each values}}\n {{#if visible}}\n <li class="link-list-facet__list__item">\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\n {{#if imageUrl}}\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\n {{else}}\n <span class="facet__value__title">{{title}}</span>\n {{/if}}\n {{#if @root.displayCount}}\n <span class="facet__value__count">({{count}})</span>\n {{/if}}\n </span>\n </li>\n {{/if}}\n {{/each}}\n </ul>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter??"","i"):void 0;return{displayCount:this.data.displayCount??!0,expanded:this.state.toggled??!1,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?this.data.scrolling.height??200:void 0,showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,values:this.data.values?.map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],strings:{toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},br=class extends Za{componentName="numeric-range-facet";defaultHtml='<div class="numeric-range-facet">\n <div class="row">\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-numeric-range-start"\n hawksearch-start\n value="{{start}}"\n min="{{min}}"\n max="{{end}}"\n aria-label="{{strings.minimum}}"\n />\n </div>\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-numeric-range-end"\n hawksearch-end\n value="{{end}}"\n min="{{start}}"\n max="{{max}}"\n aria-label="{{strings.maximum}}"\n />\n </div>\n </div>\n</div>';localStart;localEnd;get range(){if("numeric"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.floor(this.range.max),strings:{minimum:this.configuration?.strings?.minimum??"Minimum",maximum:this.configuration?.strings?.maximum??"Maximum"}}}onRender(){super.onRender(),this.range&&(this.localStart=this.range.start,this.localEnd=this.range.end),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.floor(this.range.min),t.value=a.toString()),this.localStart=a,this.setFacetValue(this.localStart,this.localEnd??this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=Math.ceil(this.range.max),t.value=a.toString()),this.localEnd=a,this.setFacetValue(this.localStart??this.range.start,this.localEnd)})})}setFacetValue(e,t){if(Number.isFinite(e)&&Number.isFinite(t)){if(e>t){const a=e;e=t,t=a}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e},${t}`)}else console.warn("NumericRangeFacet: invalid values",{start:e,end:t})}},kr=class extends Za{componentName="range-slider-facet";defaultHtml='<div class="range-slider-facet">\n <div class="row">\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-range-slider-start"\n hawksearch-start\n value="{{start}}"\n min="{{min}}"\n max="{{end}}"\n aria-label="{{strings.minimum}}"\n />\n </div>\n <div class="column column--6">\n <input\n type="number"\n name="hawksearch-range-slider-end"\n hawksearch-end\n value="{{end}}"\n min="{{start}}"\n max="{{max}}"\n aria-label="{{strings.maximum}}"\n />\n </div>\n </div>\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\n</div>';get range(){if("numeric"===this.data?.range?.type)return this.data.range}renderContent(){return!!this.range}getContentModel(){const e=Math.ceil(this.range.max)-Math.floor(this.range.min);return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/e*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/e*100),strings:{minimum:this.configuration?.strings?.minimum??"Minimum",maximum:this.configuration?.strings?.maximum??"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(a,this.range.end)})}),this.rootElement.querySelectorAll("[hawksearch-end]").forEach(e=>{e.addEventListener("blur",e=>{const t=e.currentTarget;let a=parseFloat(t.value);isNaN(a)&&(a=0),this.setFacetValue(this.range.start,a)})}),this.rootElement.querySelectorAll("hawksearch-range-slider").forEach(e=>{e.addEventListener("hawksearch:range-slider-dragging",e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.updateInputElements(a.start,a.end)}),e.addEventListener("hawksearch:range-slider-changed",e=>{const t=e.detail,a=this.getRange(t.start,t.end);this.setFacetValue(a.start,a.end)})})}getRange(e,t){const a=Math.floor(this.range.min??0),r=Math.ceil(this.range.max??0),n=r-a;return{start:Math.floor(n*e/100+a),end:Math.ceil(r*t/100)}}updateInputElements(e,t){const a=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");a&&(a.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||HawkSearch.services.search.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}},_r=class extends Za{componentName="recent-searches-facet";defaultHtml='<div class="recent-searches-facet">\n <ul class="recent-searches-facet__list">\n {{#each values}}\n <li class="recent-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';renderContent(){return!!this.data?.values?.length}getContentModel(){return{values:this.data.values?.map(e=>e.title)??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},xr=class extends Za{componentName="related-searches-facet";defaultHtml='<div class="related-searches-facet">\n <ul class="related-searches-facet__list">\n {{#each values}}\n <li class="related-searches-facet__list__item">\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\n </li>\n {{/each}}\n </ul>\n</div>';renderContent(){return!!this.data?.values?.length}getContentModel(){return{values:this.data.values?.map(e=>e.title)??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},Er=class extends Za{componentName="search-within-facet";defaultHtml='<div class="search-within-facet">\n <input\n type="text"\n name="hawksearch-search-within-facet"\n hawksearch-input\n value="{{value}}"\n class="search-within-facet__input"\n aria-label="{{strings.label}}"\n />\n</div>';renderContent(){return!!this.data}getContentModel(){return{value:this.data.searchWithin??"",strings:{label:this.configuration?.strings?.label??"Enter keywords"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget.value.trim();HawkSearch.services.search.searchWithin(t)})})}},Sr=class extends Za{componentName="size-facet";defaultHtml='<div class="size-facet">\n <div class="row row--tight size-facet__items">\n {{#each values}}\n {{#if visible}}\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\n {{title}}\n </div>\n </div>\n {{#if @root.excludeEnabled}}\n <span class="size-facet__item__actions">\n {{#if excluded}}\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}">\n <hawksearch-icon name="plus"></hawksearch-icon>\n </span>\n {{else}}\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}">\n <hawksearch-icon name="minus"></hawksearch-icon>\n </span>\n {{/if}}\n </span>\n {{/if}}\n </div>\n {{/if}}\n {{/each}}\n </div>\n {{#if showToggle}}\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\n {{/if}}\n</div>';renderContent(){return!!this.data}getContentModel(){const e=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:this.data.values?.map((t,a)=>({...t,visible:!e&&(this.state.toggled||!this.data.truncation||a<this.data.truncation.threshold)||!!e&&e.test(t.title??"")}))??[],showToggle:!!this.data.truncation&&(this.data.values?.length??0)>this.data.truncation.threshold&&!this.state.filter,expanded:this.state.toggled??!1,excludeEnabled:this.configuration?.excludeEnabled??!1,strings:{exclude:this.configuration?.strings?.exclude??"Exclude",include:this.configuration?.strings?.include??"Include",toggle:this.state.toggled?this.configuration?.strings?.showFewer??"Show fewer":this.configuration?.strings?.showMore??"Show more"}}}},Cr=class extends fa{componentName="facet-wrapper";defaultHtml='<div class="facet">\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\n {{title}}\n {{#if tooltip}}\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\n {{/if}}\n {{#if collapsible}}\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\n {{/if}}\n </div>\n {{#unless collapsed}}\n <div class="facet__content">\n {{#if searchable}}\n <input type="text" name="hawksearch-facet-search" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\n {{/if}}\n {{#if (eq type "checkbox")}}\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\n {{/if}}\n {{#if (eq type "color")}}\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\n {{/if}}\n {{#if (eq type "date-range")}}\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\n {{/if}}\n {{#if (eq type "link")}}\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\n {{/if}}\n {{#if (eq type "numeric-range")}}\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\n {{/if}}\n {{#if (eq type "range-slider")}}\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\n {{/if}}\n {{#if (eq type "recent-searches")}}\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\n {{/if}}\n {{#if (eq type "related-searches")}}\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\n {{/if}}\n {{#if (eq type "search")}}\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\n {{/if}}\n {{#if (eq type "size")}}\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\n {{/if}}\n {{#if (eq type "unsupported-range-facet")}}\n <h1>(unsupported range facet type)</h1>\n {{/if}}\n </div>\n {{/unless}}\n</div>';bindFromEvent=!1;state;renderContent(){return!!this.data?.visible}getContentModel(){return{...this.data,collapsed:this.state.collapsed??this.data.collapsed??!1,filter:this.state.filter??"",searchable:!!this.data.search&&(this.data.values?.length??0)>this.data.search.threshold}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[hawksearch-facet]").forEach(e=>{e.data=this.data,e.state=this.state})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-heading]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.data?.collapsible&&(this.state.collapsed=!this.state.collapsed,this.render())})}),this.rootElement.querySelectorAll("[hawksearch-facet-search]").forEach(e=>{e.addEventListener("keyup",e=>{const t=e.currentTarget.value?.trim();this.state.filter=t||void 0,this.rebindChildElements()})})}rebindChildElements(){this.rootElement.querySelectorAll("[hawksearch-facet]").forEach(e=>{e.render()})}},Mr=class extends fa{componentName="facets-list";defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\n <div hawksearch-mobile-toggle class="facets__heading">\n {{strings.heading}}\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\n </div>\n <div class="facets__content">\n {{#each facets}}\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\n {{/each}}\n </div>\n</div>';bindFromEvent=!0;state={expanded:!1};renderContent(){return!!this.data}getContentModel(){const e=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size","unsupported-range-facet"];return{facets:this.data.filter(t=>e.includes(t.type)),expanded:this.state.expanded,strings:{heading:this.configuration?.strings?.heading??"Narrow Results"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach(e=>{const t=parseInt(e.getAttribute("hawksearch-facet-id")??""),a=this.data?.find(e=>e.id===t);let r;if(a?.values){r=[];const e=t=>{t?.forEach(t=>{t.value&&r.push(t.value),e(t.children)})};e(a.values)}let n=this.state[t];n||(n={id:t,toggled:!1,collapsed:a?.collapsed,values:{}},this.state[t]=n),r?.forEach(e=>{n.values[e]||(n.values[e]={toggled:!1})}),e.data=a,e.state=n})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-mobile-toggle]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.render()})})}},Hr=class extends fa{componentName="modified-query";defaultHtml='<div class="modified-query">\n <p>\n {{strings.showingResultsFor}}\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\n {{strings.searchInsteadFor}}\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\n </p>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.display&&!!this.data?.query&&!!this.data?.modifiedQuery}getContentModel(){return{query:this.data.query,modifiedQuery:this.data.modifiedQuery,strings:{showingResultsFor:this.configuration?.strings?.showingResultsFor??"Showing results for",searchInsteadFor:this.configuration?.strings?.searchInsteadFor??"Search instead for"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t,void 0,!0)})})}},Pr=class extends fa{componentName="page-size";defaultHtml='<div class="page-size">\n <select name="hawksearch-page-size" hawksearch-page-size>\n {{#each options}}\n {{#if selected}}\n <option value="{{pageSize}}" selected>{{title}}</option>\n {{else}}\n <option value="{{pageSize}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){return{options:this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page-size]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget,a=parseInt(t.value);HawkSearch.services.search.setPageSize(a)})})}},Ir=class extends fa{componentName="pagination";defaultHtml='<div class="pagination">\n {{#if strings.summary}}\n <div class="pagination__summary">{{strings.summary}}</div>\n {{/if}}\n <div class="pagination__pages">\n {{#if displayFirstLink}}\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if displayPreviousLink}}\n <a\n hawksearch-page="{{subtract page 1}}"\n rel="prev"\n href="{{pageUrl (subtract page 1)}}"\n class="pagination__page pagination__page--previous"\n title="{{strings.previous}}"\n >\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#each pages}}\n {{#if (eq this @root.page)}}\n <span class="pagination__page pagination__page--selected">{{this}}</span>\n {{else}}\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\n {{/if}}\n {{/each}}\n {{#if displayNextLink}}\n <a\n hawksearch-page="{{add page 1}}"\n rel="next"\n href="{{pageUrl (add page 1)}}"\n class="pagination__page pagination__page--next"\n title="{{strings.next}}"\n >\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\n </a>\n {{/if}}\n {{#if displayLastLink}}\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\n </span>\n {{/if}}\n </div>\n</div>';bindFromEvent=!0;defaultMaxPageLinks=9;registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",e=>{const t=new URLSearchParams;1===e?t.delete(HawkSearch.services.search.queryStringParams.page):t.set(HawkSearch.services.search.queryStringParams.page,e.toString());const a=new URLSearchParams(window.location.search);return a.size>0?`?${a}&${t}`:`?${t}`})}renderContent(){return!!this.data?.totalResults}getContentModel(){const e=(this.data.page-1)*this.data.pageSize+1;let t=e+this.data.pageSize-1;return t>this.data.totalResults&&(t=this.data.totalResults),{page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:e,lastRecord:t,totalRecords:this.data.totalResults??0,totalPages:this.data.totalPages??1,maxPageLinks:this.data.maxPageLinks??this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,strings:{first:this.configuration?.strings?.first??"First",last:this.configuration?.strings?.last??"Last",next:this.configuration?.strings?.next??"Next",previous:this.configuration?.strings?.previous??"Previous",summary:this.interpolate(this.configuration?.strings?.summary??"Showing ${first}-${last} of ${total}",{first:Da(e,0),last:Da(t,0),total:Da(this.data.totalResults,0)})}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page]").forEach(e=>{const t=e.getAttribute("hawksearch-page");if(t){const a=parseInt(t);e.addEventListener("click",e=>{e.preventDefault(),this.setPage(a)})}})}async setPage(e){await HawkSearch.services.search.paginate(e)}getPages(){const e=[];if(this.data&&this.data.totalPages>1){const t=this.data.maxPageLinks??this.defaultMaxPageLinks;let a=this.data.page-Math.floor(t/2);a<1&&(a=1);let r=a+t-1;r>this.data.totalPages&&(r=this.data.totalPages);for(let n=a;n<=r;n++)e.push(n)}return e}},Dr=class extends fa{componentName="query-suggestions";defaultHtml='<div class="query-suggestions">\n <p>{{query-suggestions querySuggestions}}</p>\n</div>';bindFromEvent=!0;registerHelpers(){super.registerHelpers();const e=this.configuration?.strings?.orDelimeter??"or",t=this.configuration?.strings?.prompt??"Did you mean to search for ${suggestions}?";this.handlebars.registerHelper("query-suggestions",function(a){function r(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}const n=`, ${e} `;let i;i=a.length<=2?a.map(r).join(` ${e} `):a.slice(0,a.length-1).map(r).join(", ")+n+r(a[a.length-1]);const s=t.replace("${suggestions}",i);return new HawkSearch.handlebars.SafeString(s)})}renderContent(){return!!this.data&&!!this.data.display&&!!this.data.querySuggestions?.length}getContentModel(){return{querySuggestions:this.data.querySuggestions??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&HawkSearch.services.search.query(t)})})}},Tr=class extends fa{componentName="search-field";defaultHtml='<div class="search-field">\n <input type="text" name="hawksearch-search-field" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>';bindFromEvent=!0;clickEventHandler;defaultAutocompleteResponse;previousAutocompleteResponse;previousValue="";get autocompleteMinCharacterCount(){return HawkSearch.config.autocomplete?.minCharacterCount??1}get recommendationsEnabled(){return HawkSearch.config.autocomplete?.recommendationsEnabled??!1}get searchDebounceValue(){return this.configuration?.searchDebounceValue??250}get disableAutofill(){return HawkSearch.config.components?.["search-field"]?.disableAutofill??!1}get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}get autocompleteWidgetId(){return this.rootElement.querySelector("hawksearch-autocomplete")?.getAttribute("widget-id")||""}placeholderAnimationAbortController;connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.clickEventHandler)}getContentModel(){const e="Enter keywords";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender(),this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(e=>{if(this.disableAutofill){e.value=""}e.addEventListener("focus",t=>{const a=e.value.trim();a&&this.previousAutocompleteResponse?HawkSearch.services.autocomplete.bindComponent(this.previousAutocompleteResponse,this.autocompleteWidgetId):a||this.displayDefaultAutocomplete()}),e.addEventListener("keyup",e=>{if(!["Enter","NumpadEnter"].includes(e.code))return;const t=e.currentTarget.value.trim();t||this.animatePlaceholder(),this.toggleAutocomplete(!1),HawkSearch.services.search.query(t)});e.addEventListener("input",la(async()=>{const t=e.value.trim();t!==this.previousValue&&(this.previousValue=t,this.toggleAutocomplete(!!t),t&&t.length>this.autocompleteMinCharacterCount?this.previousAutocompleteResponse=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId,t):this.displayDefaultAutocomplete())},this.searchDebounceValue))}),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(e=>{e.addEventListener("hawksearch:close-autocomplete",e=>{this.toggleAutocomplete(!1)})})}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(t=>{t.style.display=e?"block":"none"})}async displayDefaultAutocomplete(){if(this.recommendationsEnabled&&!1!==this.defaultAutocompleteResponse){if(void 0===this.defaultAutocompleteResponse){const e=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId);this.defaultAutocompleteResponse=e||!1}this.defaultAutocompleteResponse&&HawkSearch.services.autocomplete.bindComponent(this.defaultAutocompleteResponse,this.autocompleteWidgetId)}}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){this.setInputPlaceholder("");try{await a(1e3)}catch{return}const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Rr=class extends fa{componentName="conceptsearch-field";defaultHtml='<div class="search-field">\n <input\n type="text"\n name="hawksearch-concept-search-field"\n hawksearch-input\n hawksearch-concept-search\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n</div>';bindFromEvent=!0;get searchOnKeyPress(){return this.configuration?.searchOnKeyPress??!1}get searchMinCharacterCount(){return this.configuration?.searchMinCharacterCount??10}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}previousValue="";placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Enter Keyword";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>{t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.handleSearchRequest(a)});t.addEventListener("keyup",la(e=>{const a=t.value.trim();this.searchOnKeyPress&&a!==this.previousValue&&a&&a.length>this.searchMinCharacterCount&&this.handleSearchRequest(a)},this.searchDebounceValue))})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"ConceptSearch"})}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){this.setInputPlaceholder("");try{await a(1e3)}catch{return}const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Br=class extends fa{componentName="conversationalsearch";defaultHtml='<div class="conversationalsearch">\n <div class="conversationalsearch__body">\n <ul class="conversationalsearch__message-list" hawksearch-message-list>\n {{#each messages}}\n {{#if (eq role "user")}}\n <li hawksearch-message-item class="conversationalsearch__message message--sent">\n <p>{{content}}</p>\n </li>\n {{else if (eq role "assistant")}}\n <li hawksearch-message-item class="conversationalsearch__message message--received">\n <span class="message__icon">\n <hawksearch-icon name="sparkles" size="16"></hawksearch-icon>\n </span>\n <p>{{content}}</p>\n </li>\n {{/if}}\n {{/each}}\n {{#if busy}}\n <li class="conversationalsearch__message message--received">\n <div class="spinner"></div>\n <p>...</p>\n </li>\n {{/if}}\n </ul>\n </div>\n <div class="conversationalsearch__footer">\n <textarea name="hawksearch-message" hawksearch-message-input rows="0" cols="17" placeholder="Enter a message..."></textarea>\n <button hawksearch-message-submit class="conversationalsearch__send-button" type="submit">\n <hawksearch-icon name="send" size="16"></hawksearch-icon>\n </button>\n <button hawksearch-message-reset class="conversationalsearch__reset-button" type="reset">\n <hawksearch-icon name="reset" size="16"></hawksearch-icon>\n </button>\n </div>\n</div>';bindFromEvent=!0;firstMessage=!0;emptySearch=!1;busy=!1;currentQuery="";currentSearchResponse=[];currentMessages=[];get promptInstructions(){return this.configuration?.prompt?.instructions||"\n You are a recommendation agent, specialized in finding the perfect match for a user.\n Answer the question from the user extensivelly.\n You will be provided with an array of products as DATA.\n Create 2 suggested questions that a user could ask about this data that follows.\n Use new lines to seperate them. Make them short.\n Say something like 'Try one of these suggested questions:' followed by the questions you generate.\n Only use the information passed to you as DATA to answer the questions asked.\n Do not provide any information on amount of DATA you currently have.\n "}afterSearchExecutedEventHandler;connectedCallback(){super.connectedCallback(),this.afterSearchExecutedEventHandler=e=>{HawkSearch.searchResponse?.results&&HawkSearch.searchResponse?.results.length>0&&(this.currentSearchResponse=this.composeResponseObject(HawkSearch.searchResponse?.results))},window.addEventListener("hawksearch:after-search-executed",this.afterSearchExecutedEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("hawksearch:after-search-executed",this.afterSearchExecutedEventHandler)}getContentModel(){return{query:this.data?.query,strings:{placeholder:this.configuration?.strings?.placeholder??"Enter a message..."},busy:this.busy||!1,messages:this.currentMessages||[]}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.currentQuery="",this.rootElement.querySelectorAll('[hawksearch-message-reset][type="reset"]').forEach(e=>{e.addEventListener("click",e=>{0!==this.currentMessages.length&&this.resetConversation()})}),this.rootElement.querySelectorAll('[hawksearch-message-submit][type="submit"]').forEach(e=>{e.addEventListener("click",e=>{!this.currentQuery||this.currentQuery.length<2||this.sendMessage()})}),this.rootElement.querySelectorAll("[hawksearch-message-list]").forEach(e=>{e.scrollTo(0,e.scrollHeight)}),this.rootElement.querySelectorAll("[hawksearch-message-input]").forEach(t=>{t.focus(),t.addEventListener("change",e=>{const a=t.value.trim();this.currentQuery=a}),t.addEventListener("keydown",t=>{e.includes(t.code)&&!t.shiftKey&&t.preventDefault()});t.addEventListener("keyup",la(a=>{const r=t.value.trim();this.currentQuery=r,e.includes(a.code)&&(e.includes(a.code)&&!a.shiftKey?(a.preventDefault(),this.handleMessageSubmit()):e.includes(a.code)&&a.shiftKey)},250))})}appendMessage(e){this.currentMessages.push(e)}handleMessageSubmit(){!this.currentQuery||this.currentQuery.length<3||this.sendMessage()}blankQuerySearch(){this.sendMessage()}async sendMessage(){if(!this.currentQuery&&this.emptySearch)return;this.firstMessage?(this.appendMessage({role:"system",content:this.promptInstructions}),this.appendMessage({role:"system",content:`DATA: ${JSON.stringify(this.currentSearchResponse)}`}),this.firstMessage=!1):this.appendMessage({role:"system",content:`Include this DATA as well: ${JSON.stringify(this.currentSearchResponse)}`}),this.currentQuery&&this.appendMessage({role:"user",content:this.currentQuery}),this.busy=!0;const e=await HawkSearch.services.conversational.query(this.currentMessages).then(e=>e).catch(e=>!1);e?this.currentMessages.push(e):this.appendMessage({role:"assistant",content:"Sorry, something went wrong."}),this.busy=!1,this.emptySearch=!0,this.render()}resetConversation(){this.currentMessages=[],this.firstMessage=!0,this.render()}composeResponseObject=e=>e.map(e=>{const{attributes:t,selectedVariant:a,variants:r,...n}=e;return{...n}})},qr=class extends fa{componentName="imagesearch-field";defaultHtml='<div class="search-field">\n <input\n type="text"\n name="hawksearch-image-search-field"\n hawksearch-input\n hawksearch-imagesearch-field\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n</div>';bindFromEvent=!0;get searchOnKeyPress(){return this.configuration?.searchOnKeyPress??!1}get searchMinCharacterCount(){return this.configuration?.searchMinCharacterCount??10}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}previousValue="";placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Describe an image you want to find";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>{t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.handleSearchRequest(a)});t.addEventListener("keyup",la(e=>{const a=t.value.trim();this.searchOnKeyPress&&a!==this.previousValue&&a&&a.length>this.searchMinCharacterCount&&this.handleSearchRequest(a)},this.searchDebounceValue))})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"ImageSearch"})}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){this.setInputPlaceholder("");try{await a(1e3)}catch{return}const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},Lr=class extends fa{componentName="search-results-item";defaultHtml='<div class="search-results-list__item search-results-list__item--{{type}}">\n {{#if pinned}}\n <span class="search-results-list__item__pin">\n <hawksearch-icon name="star"></hawksearch-icon>\n </span>\n {{/if}}\n {{#if (eq type "product")}}\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\n {{/if}}\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if brand}}\n <div class="search-results-list__item__price__current" style="margin-bottom:8px;">\n {{brand}}\n </div>\n {{/if}}\n {{#if rating}}\n <hawksearch-rating rating="{{rating}}"></hawksearch-rating>\n {{/if}}\n {{#unless (eq price undefined)}}\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\n {{#if (lt salePrice price)}}\n <span class="search-results-list__item__price__original">{{currency price}}</span>\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\n {{else}}\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency price}}</span>\n {{/if}}\n </div>\n {{/unless}}\n <hawksearch-variant-selector></hawksearch-variant-selector>\n {{else}}\n <div class="row">\n {{#if imageUrl}}\n <div class="column column--12 column-sm--4">\n <a hawksearch-link href="{{url}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n </div>\n {{/if}}\n <div class="column column--12 column-sm--8 flex-align-self-sm-center">\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{title}}</a>\n </div>\n {{#if description}}\n <p>{{description}}</p>\n {{/if}}\n </div>\n </div>\n {{/if}}\n</div>';bindFromEvent=!1;renderContent(){return!!this.data}getContentModel(){return{...this.data,description:this.data.selectedVariant?.description??this.data.description,imageUrl:this.data.selectedVariant?.imageUrl??this.data.imageUrl,price:this.data.selectedVariant?.price??this.data.price,rating:this.data.selectedVariant?.rating??this.data.rating,salePrice:this.data.selectedVariant?.salePrice??this.data.salePrice,sku:this.data.selectedVariant?.sku??this.data.sku,title:this.data.selectedVariant?.title??this.data.title,url:this.data.selectedVariant?.url??this.data.url,strings:{sale:this.configuration?.strings?.sale??"Sale"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach(e=>{e.addEventListener("error",e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg4AAAFoCAYAAAA//nPjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDcvMTkvMjJHKrx6AAARvklEQVR4nO3dL3cbx9uA4fm9p0fIyMQiCUlISmqSkAaVBPWjFhWZ2EQiMrGJTWQiEZksElqSF7Rqk9R/HtmrnZnd64KtG497Yu/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2aT6fm6AAGDknaj5MOPzg/PzcXxQAUkpO1HyIcPiGCQoAvuVEzf8SDn8zQQHAQ5yo+T3hkExQAPA0bxD+1+jDwQQFABEOxfrLqMPBBAUA+xAPKf2UewGHstls0tXV1bMfY8MLAPtomiadn5+n6XT66MdsNpseV9SvwYbD/f29CQkADmLM15hRP6oAAPYjHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAICwal45/dQ7wQGgZjVd4/739evXr7kXAQDUwaMKACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIQJBwAgTDgAAGHCAQAIEw4AQJhwAADChAMAECYcAIAw4QAAhAkHACBMOAAAYcIBAAgTDgBAmHAAAMKEAwAQJhwAgDDhAACECQcAIEw4AABhwgEACBMOAECYcAAAwoQDABAmHACAMOEAAIT9PxPk4S8yUXfxAAAAAElFTkSuQmCC"})}),this.rootElement.querySelectorAll("[hawksearch-link]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data)return;const t=(HawkSearch.config.variants?.trackUsingVariant?this.data.selectedVariant?.id:void 0)??this.data.id;HawkSearch.services.tracking.trackSearchResultClick(t,this.data.url,e)})}),this.rootElement.querySelectorAll("hawksearch-variant-selector").forEach(e=>{this.data?.variants&&(e.data={items:this.data.variants,selectedItem:this.data.selectedVariant},e.addEventListener("hawksearch:variant-selected",e=>{const t=e.detail;this.data.selectedVariant=t,this.render()}))})}},Or=class extends fa{componentName="search-results-list";defaultHtml='<div class="row search-results-list">\n {{#each items}}\n {{#if (eq type "content")}}\n <div class="column column--12">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{else}}\n <div class="column column--12 column-sm--6 column-lg--4">\n <hawksearch-search-results-item></hawksearch-search-results-item>\n </div>\n {{/if}}\n {{/each}}\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){return{items:this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-search-results-item").forEach((e,t)=>{e.data=this.data?.[t]})}},Fr=class extends fa{componentName="search-results";defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\n<div class="row">\n <div class="column column--12 column-md--4">\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\n <hawksearch-facets-list></hawksearch-facets-list>\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\n </div>\n <div class="column column--12 column-md--8">\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\n <hawksearch-tabs></hawksearch-tabs>\n <hawksearch-selected-facets></hawksearch-selected-facets>\n {{#if results.length}}\n <div class="row">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-pagination></hawksearch-pagination>\n </div>\n <div class="column column--12 column-md--6">\n <div class="row row--tight">\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-page-size></hawksearch-page-size>\n </div>\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\n <hawksearch-sorting></hawksearch-sorting>\n </div>\n </div>\n </div>\n </div>\n {{/if}}\n <hawksearch-search-results-list></hawksearch-search-results-list>\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\n <hawksearch-noresult></hawksearch-noresult>\n </div>\n</div>';bindFromEvent=!0;get mode(){return"landing-page"===this.getAttribute("mode")?"landing-page":"search-results"}get url(){return this.getAttribute("url")??window.location.pathname}constructor(){if(super(),"search-results"===this.mode){HawkSearch.services.tracking.trackPageLoad(Ua.Custom);const e=HawkSearch.services.search.getRequestFromUrl();HawkSearch.services.search.search(e)}}getContentModel(){return{...this.data}}},Qr=class extends fa{componentName="selected-facets";defaultHtml='<div class="flex-gap flex-gap--xs selected-facets">\n {{#each selections}}\n <span class="selected-facets__item">\n <span class="selected-facets__item__field">{{title}}</span>\n <span class="selected-facets__item__value{{attribute \' selected-facets__item__value--excluded\' excluded}}">{{selectionTitle}}</span>\n <a\n hawksearch-facet-field="{{field}}"\n hawksearch-facet-value="{{selectionValue}}"\n class="selected-facets__item__remove"\n title="{{@root.strings.remove}}"\n >\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\n </a>\n </span>\n {{/each}}\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.length}getContentModel(){const e=[];return this.data.forEach(t=>{t.values.forEach(a=>{let r=a.title;const n=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(a.value),i=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(a.value);if(n){const e=void 0!==n.groups?.min?new Date(n.groups.min):void 0,t=void 0!==n.groups?.max?new Date(n.groups.max):void 0;e&&t&&Sa(e,t)?r=Ia(e):e&&t?r=`${Ia(e)} - ${Ia(t)}`:e?r=`After ${Ia(e)}`:t&&(r=`Before ${Ia(t)}`)}if(i){const e=void 0!==i.groups?.min?parseFloat(i.groups.min):void 0,a=void 0!==i.groups?.max?parseFloat(i.groups.max):void 0,n=t.currency?Ha:Da;void 0!==e&&void 0!==a?r=e===a?n(e,0):`${n(e,0)} - ${n(a,0)}`:void 0!==e?r=`${n(e,0)} and up`:void 0!==a&&(r=`${n(a,0)} and below`)}e.push({field:t.field,title:t.title,selectionTitle:r,selectionValue:a.value,excluded:a.excluded})})}),e.sort((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title)),{selections:e,strings:{remove:this.configuration?.strings?.remove??"Remove"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget,a=t.getAttribute("hawksearch-facet-field"),r=t.getAttribute("hawksearch-facet-value");a&&r&&HawkSearch.services.search.removeFacetValue(a,r)})})}},Nr=class extends fa{componentName="smartresponse";defaultHtml='<span class="smartresponse" hawksearch-smartresponse>\n <div class="smartresponse__icon">\n {{#if busy}}\n <div class="spinner"></div>\n {{else}}\n <hawksearch-icon name="sparkles"></hawksearch-icon>\n {{/if}}\n </div>\n <div class="smartresponse__info {{attribute \' busy\' busy}}">\n {{#if strings.header}}\n <h4 class="smartresponse__info__header">\n {{strings.header}}\n </h4>\n {{/if}}\n <div class="smartresponse__info__summary">\n {{#if summary}}\n {{#if summary.recommendation}}\n <div class="row">\n {{html summary.recommendation}}\n </div>\n {{/if}}\n {{#if summary.products}}\n <ul class="row">\n {{#each summary.products}}\n <li>\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{name}}">\n <img hawksearch-image src="{{imageUrl}}" alt="" />\n </a>\n <div class="search-results-list__item__title">\n <a hawksearch-link href="{{url}}">{{name}}</a>\n </div>\n </li>\n {{/each}}\n </ul>\n {{else}}\n {{#if summary.nosources}}\n <p>{{strings.nosources}}</p>\n {{/if}}\n {{/if}}\n {{/if}}\n </div>\n </div>\n <div class="smartresponse__actions">\n <div class="switch{{attribute \' on\' active}}" smartresponse-switch></div>\n </div>\n</span>';bindFromEvent=!1;afterSearchExecutedEventHandler;active=!0;busy=!1;summary={recommendation:"",products:[],nosources:!1};currentQuery=HawkSearch.searchResponse?.query||"";get smartConfig(){return this.configuration?.config||{agentId:"",clientGroupId:""}}get defaultQueryInput(){return this.configuration?.defaultQuery?.input||""}connectedCallback(){super.connectedCallback(),this.afterSearchExecutedEventHandler=()=>{this.busy=!0,this.render(),this.currentQuery=HawkSearch.searchRequest?.query?.trim()||this.defaultQueryInput.trim()||"";const e=this.currentQuery.trim();this.active&&e?this.updateSummary(e):this.clearSummary()},window.addEventListener("hawksearch:before-search-executed",this.afterSearchExecutedEventHandler);const e=HawkSearch.searchRequest?.query?.trim()||this.defaultQueryInput?.trim()||"";""!==e&&(this.busy=!0,this.render(),this.updateSummary(e))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("hawksearch:before-search-executed",this.afterSearchExecutedEventHandler)}getContentModel(){return{summary:this.summary,strings:{header:this.configuration?.strings?.header||"SmartResponse",noresults:this.configuration?.strings?.noresults||"No Results found"},active:this.active,busy:this.busy}}onRender(){super.onRender(),this.busy=!0,this.rootElement.querySelectorAll("[smartresponse-switch]").forEach(e=>{e.addEventListener("click",()=>{this.active=!this.active,e.classList.toggle("on",this.active),this.active||this.clearSummary()})})}async updateSummary(e){const t=HawkSearch.config.clientId,a=HawkSearch.rawSearchRequest,{agentId:r,clientGroupId:n,apiUrl:i,searchEndpoint:s}=this.smartConfig,o={clientGroupId:n,agentId:r,clientGuid:t,query:e,searchEndpoint:s,searchRequestJson:a};if(!r||!n)return this.summary={recommendation:"Missing configuration",products:[],nosources:!0},this.busy=!1,void this.render();try{const e=new Headers({"Content-Type":"application/json"}),t=new AbortController,a=setTimeout(()=>t.abort(),2e4),r=await fetch(i||"https://genai.bridgeline.com/api/SmartResponse",{method:"POST",headers:e,body:JSON.stringify(o),signal:t.signal});if(clearTimeout(a),!r.ok)throw new Error(`SmartResponse failed: ${r.statusText}`);const n=await r.json();if(!n.recommendation)throw new Error("Missing recommendation in SmartResponse.");const s=this.convertSmartResponseRequest(n.product||[]);this.summary={recommendation:n.recommendation,products:s.slice(0,3),nosources:0===s.length}}catch(c){console.error("SmartResponseComponent: Failed to update summary",c),this.summary={recommendation:"We could not generate a response at this time.Please check your configuration.",products:[],nosources:!0}}this.busy=!1,this.render()}clearSummary(){this.summary={recommendation:"",products:[],nosources:!1},this.busy=!1,this.render()}convertSmartResponseRequest(e,t=3){return e.map(e=>({name:e.name,description:e.description,url:e.url,price:e.price,imageUrl:e.image_url||e.imageUrl})).slice(0,t)}},Ur=class extends fa{componentName="sorting";defaultHtml='<div class="sorting">\n <select name="hawksearch-sort" hawksearch-sort>\n {{#each options}}\n {{#if selected}}\n <option value="{{value}}" selected>{{title}}</option>\n {{else}}\n <option value="{{value}}">{{title}}</option>\n {{/if}}\n {{/each}}\n </select>\n</div>';bindFromEvent=!0;renderContent(){return!!this.data?.options?.length}getContentModel(){return{options:this.data.options}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-sort]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault();const t=e.currentTarget.value;HawkSearch.services.search.sort(t)})})}},Vr=class extends fa{componentName="tabs";defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt tabs.length 4)}}">\n {{#each tabs}}\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">\n {{title}}\n {{#if @root.displayCount}}({{count}}){{/if}}\n </li>\n {{/each}}\n</ul>';bindFromEvent=!0;renderContent(){return!!this.data?.values?.length}getContentModel(){return{displayCount:this.data.displayCount??!0,tabs:this.data.values??[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-tab-value]").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");HawkSearch.services.search.selectTab(t??void 0)})})}},jr=class extends fa{componentName="unifiedsearch-field";defaultHtml='<div class="unifiedsearch-field">\n <input\n type="text"\n name="hawksearch-unified-search-field"\n hawksearch-input\n hawksearch-unified-search\n value="{{query}}"\n placeholder="{{strings.placeholder}}"\n />\n <hawksearch-autocomplete></hawksearch-autocomplete>\n</div>';bindFromEvent=!0;clickEventHandler;defaultAutocompleteResponse;previousAutocompleteResponse;previousValue="";get autocompleteMinCharacterCount(){return HawkSearch.config.autocomplete?.minCharacterCount??1}get recommendationsEnabled(){return HawkSearch.config.autocomplete?.recommendationsEnabled??!1}get searchDebounceValue(){return this.configuration?.searchDebounceValue??350}placeholderAnimationAbortController;get disablePlaceholderAnimation(){return this.configuration?.disablePlaceholderAnimation??!1}get disableAutofill(){return HawkSearch.config.components?.["unifiedsearch-field"]?.disableAutofill??!1}get autocompleteWidgetId(){return this.rootElement.querySelector("hawksearch-autocomplete")?.getAttribute("widget-id")||""}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-unifiedsearch-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){const e="Search by concept";let t=this.configuration?.strings?.placeholder??e;return Array.isArray(t)&&(t=this.disablePlaceholderAnimation?t[Math.floor(Math.random()*t.length)]:t[0]??e),{query:this.data?.query,strings:{placeholder:t}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.animatePlaceholder(),this.rootElement.querySelectorAll("[hawksearch-input][hawksearch-unified-search]").forEach(t=>{if(this.disableAutofill){t.value=""}t.addEventListener("focus",e=>{const a=t.value.trim();a&&this.previousAutocompleteResponse?HawkSearch.services.autocomplete.bindComponent(this.previousAutocompleteResponse,this.autocompleteWidgetId):a||this.displayDefaultAutocomplete()}),t.addEventListener("keyup",t=>{if(!e.includes(t.code))return;const a=t.currentTarget.value.trim();a||this.animatePlaceholder(),this.toggleAutocomplete(!1),this.handleSearchRequest(a)});t.addEventListener("keyup",la(async a=>{const r=t.value.trim();e.includes(a.code)||r===this.previousValue||(this.previousValue=r,this.toggleAutocomplete(!!r),r&&r.length>this.autocompleteMinCharacterCount?this.previousAutocompleteResponse=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId,r):this.displayDefaultAutocomplete())},this.searchDebounceValue))}),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(e=>{e.addEventListener("hawksearch:close-autocomplete",e=>{this.toggleAutocomplete(!1)})})}handleSearchRequest(e){this.previousValue=e,HawkSearch.services.search.query({queryString:e,requestType:"UnifiedSearch"})}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach(t=>{t.style.display=e?"block":"none"})}async displayDefaultAutocomplete(){if(this.recommendationsEnabled&&!1!==this.defaultAutocompleteResponse){if(void 0===this.defaultAutocompleteResponse){const e=await HawkSearch.services.autocomplete.query(this.autocompleteWidgetId);this.defaultAutocompleteResponse=e||!1}this.defaultAutocompleteResponse&&HawkSearch.services.autocomplete.bindComponent(this.defaultAutocompleteResponse,this.autocompleteWidgetId)}}async animatePlaceholder(){this.placeholderAnimationAbortController?.abort();const e=this.configuration?.strings?.placeholder;if(!Array.isArray(e)||e.length<2||this.disablePlaceholderAnimation)return;this.placeholderAnimationAbortController=new AbortController;const t=this.placeholderAnimationAbortController.signal,a=e=>new Promise((a,r)=>{const n=setTimeout(a,e);t.addEventListener("abort",()=>{clearTimeout(n),r()},{once:!0})});let r=0;for(;!t.aborted;){this.setInputPlaceholder("");try{await a(1e3)}catch{return}const t=e[r];for(let e=1;e<=t.length;e++){try{await a(50)}catch{return}this.setInputPlaceholder(t.substring(0,e))}try{await a(1e3)}catch{return}for(let e=t.length-1;e>=0;e--){try{await a(100)}catch{return}this.setInputPlaceholder(t.substring(0,e))}r=(r+1)%e.length}}setInputPlaceholder(e){this.rootElement.querySelectorAll("[hawksearch-input]").forEach(t=>t.setAttribute("placeholder",e))}},zr=class extends fa{componentName="visualsearch-field";defaultHtml='<div class="visualsearch-field">\n <div class="visualsearch-field__drop-area" hawksearch-visualsearch-droparea>\n <div class="visualsearch-field__drop-area__image-display" hawksearch-visualsearch-display></div>\n <p class="visualsearch-field__drop-area__prompt-msg">\n {{strings.dragImageMessage}}\n <label class="visualsearch-field__drop-area__upload-button">\n <input name="hawksearch-visualsearch-file" hawksearch-visualsearch-fileinput type="file" accept="image/*" capture="environment" />\n {{strings.uploadImageMessage}}\n </label>\n </p>\n <p class="visualsearch-field__drop-area__drop-msg">{{strings.dropImageMessage}}</p>\n </div>\n</div>';bindFromEvent=!0;clickEventHandler;previousValue="";maxSize=4194304;allowedExtensions=["jpg","jpeg","png","webp","avif","jfif"];handleFiles(e){const t=e[0],a=t.name.split(".").pop()?.toLowerCase();if(!this.isValidFile(t,a))return;const r=new FileReader;r.onload=e=>{const a=new Image,n=new Image;n.onload=()=>{if(t&&"image/avif"===t.type){const e=document.createElement("canvas");e.width=n.width,e.height=n.height;const t=e.getContext("2d");t&&(t.drawImage(n,0,0),a.src=e.toDataURL("image/jpeg",.95))}else a.src=r.result;const e=a.src;e&&(this.previousValue=e,HawkSearch.config.search?.url&&window.location.pathname!==HawkSearch.config.search?.url&&localStorage.setItem("hawkimagedata",this.previousValue),HawkSearch.services.search.query({queryString:e,requestType:"ImageData"}))},n.src=r.result,this.rootElement.querySelectorAll("[hawksearch-visualsearch-display]").forEach(e=>{e.lastChild&&e.removeChild(e.lastChild),e.appendChild(a)})},r.onerror=e=>{this.triggerUploadFailed("file_read_unsuccessful",{error:e})},r.readAsDataURL(t)}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-visualsearch-droparea")},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){return{query:this.data?.query,strings:{dragImageMessage:this.configuration?.strings?.dragImageMessage??"Drag an image here or ",uploadImageMessage:this.configuration?.strings?.uploadImageMessage??"upload an image",dropImageMessage:this.configuration?.strings?.dropImageMessage??"Drop an image here",errorMessage:this.configuration?.strings?.errorMessage??"Drop an image here"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-visualsearch-fileinput]").forEach(e=>{e.addEventListener("change",e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.files;this.handleFiles(t)})}),this.rootElement.querySelectorAll("[hawksearch-visualsearch-droparea]").forEach(e=>{e.addEventListener("drop",t=>{t.preventDefault(),t.stopPropagation();const a=t.dataTransfer.files;this.handleFiles(a),e.classList.remove("dragging-state")}),e.addEventListener("dragover",e=>{e.preventDefault()}),e.addEventListener("dragenter",t=>{t.preventDefault(),t.stopPropagation(),e.classList.add("dragging-state")}),e.addEventListener("dragleave",t=>{t.preventDefault(),t.stopPropagation(),e.classList.remove("dragging-state")})})}isValidFile(e,t){return e.type.startsWith("image/")?e.size>this.maxSize?(this.triggerUploadFailed("file_too_large",{size:`${Math.round(e.size/1024/1024)}MB`}),!1):!!this.allowedExtensions.includes(t)||(this.triggerUploadFailed("file_extension_unsupported",{extension:t}),!1):(this.triggerUploadFailed("file_type_unsupported",{type:e.type}),!1)}triggerUploadFailed(e,t){this.triggerEvent("hawksearch:visualsearch-upload-failed",{reason:e,...t})}},Yr=class extends fa{componentName="noresult";defaultHtml='<div class="hawksearch-no-results" style="text-align: center; padding-bottom:12px;">\n <h2>{{message}} "<strong>{{query}}</strong>"</h2>\n {{#if suggestion}}\n <h3 style="margin-top: 4px;">{{suggestion}}</h3>\n {{/if}}\n</div>';bindFromEvent=!0;renderContent(){return!!HawkSearch?.searchResponse&&(this.data||(this.data=HawkSearch.searchResponse),0===(this.data?.results?.length??0))}getContentModel(){!this.data&&HawkSearch?.searchResponse&&(this.data=HawkSearch.searchResponse);const e=this.configuration?.strings?.message||"No results found for",t=this.configuration?.strings?.suggestion||"Try different keywords or check your spelling.";let a="";try{a=HawkSearch.services.search.getRequestFromUrl()?.query||""}catch(r){console.warn("Unable to get query from search request:",r)}return{message:e,query:a??"",suggestion:t}}},Jr=class extends fa{componentName="variant-selector";defaultHtml='{{#if (arrayHasObjectsWithValue items "color")}}\n <div class="variant-selector-list">\n {{#each (arrayFilterObjects items "color")}}\n <div\n hawksearch-variant="{{id}}"\n class="variant-selector-list__item{{attribute \' variant-selector-list__item--selected\' (eq id @root.selectedItem.id)}}"\n title="{{color.name}}"\n >\n {{#if color.imageUrl}}\n <img src="{{color.imageUrl}}" class="variant-selector-list__item__image" alt="{{color.name}}" title="{{color.name}}" />\n {{else}}\n <div class="variant-selector-list__item__box" style="background: {{color.hex}};"></div>\n {{/if}}\n </div>\n {{/each}}\n </div>\n{{/if}}';bindFromEvent=!1;renderContent(){return!!this.data&&this.data.items.length>1}getContentModel(){return{...this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-variant]").forEach(e=>{e.addEventListener("click",e=>{if(!this.data)return;const t=e.currentTarget.getAttribute("hawksearch-variant")??void 0;if(void 0===t)return;const a=this.data.items.find(e=>e.id===t);a&&this.dispatchEvent(new CustomEvent("hawksearch:variant-selected",{detail:a}))})})}},Zr=[];for(let sn=0;sn<256;++sn)Zr.push((sn+256).toString(16).slice(1));var Wr=new Uint8Array(16);function Xr(e,t,a){return t||e||!crypto.randomUUID?function(e,t,a){e=e||{};const r=e.random??e.rng?.()??crypto.getRandomValues(Wr);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((a=a||0)<0||a+16>t.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[a+e]=r[e];return t}return function(e,t=0){return(Zr[e[t+0]]+Zr[e[t+1]]+Zr[e[t+2]]+Zr[e[t+3]]+"-"+Zr[e[t+4]]+Zr[e[t+5]]+"-"+Zr[e[t+6]]+Zr[e[t+7]]+"-"+Zr[e[t+8]]+Zr[e[t+9]]+"-"+Zr[e[t+10]]+Zr[e[t+11]]+Zr[e[t+12]]+Zr[e[t+13]]+Zr[e[t+14]]+Zr[e[t+15]]).toLowerCase()}(r)}(e,t,a):crypto.randomUUID()}var Kr=class{fieldMappings;variantFieldMappings;queryStringParams={disableSpellcheck:HawkSearch.config.search?.queryStringMappings?.disableSpellcheck||"disableSpellcheck",page:HawkSearch.config.search?.queryStringMappings?.page||"page",pageSize:HawkSearch.config.search?.queryStringMappings?.pageSize||"pageSize",query:HawkSearch.config.search?.queryStringMappings?.query||"query",searchWithin:HawkSearch.config.search?.queryStringMappings?.searchWithin||"searchWithin",sort:HawkSearch.config.search?.queryStringMappings?.sort||"sort",requestType:HawkSearch.config.search?.queryStringMappings?.requestType||"requestType"};searchUrl=HawkSearch.config.search?.url??"/search";get onSearchPage(){const e=/\/+$/;return window.location.pathname.replace(e,"")===this.searchUrl.replace(e,"")}constructor(){this.fieldMappings={description:this.getFieldMappings(HawkSearch.config.fieldMappings?.description,["description","longdescription"]),imageUrl:this.getFieldMappings(HawkSearch.config.fieldMappings?.imageUrl,["imageurl","image"]),price:this.getFieldMappings(HawkSearch.config.fieldMappings?.price,["price"]),rating:this.getFieldMappings(HawkSearch.config.fieldMappings?.rating,["rating"]),salePrice:this.getFieldMappings(HawkSearch.config.fieldMappings?.salePrice,["saleprice"]),sku:this.getFieldMappings(HawkSearch.config.fieldMappings?.sku,["sku"]),title:this.getFieldMappings(HawkSearch.config.fieldMappings?.title,["title","name","itemname"]),type:this.getFieldMappings(HawkSearch.config.fieldMappings?.type,["type"]),url:this.getFieldMappings(HawkSearch.config.fieldMappings?.url,["url"]),brand:this.getFieldMappings(HawkSearch.config.fieldMappings?.brand,["brand"])},this.variantFieldMappings={color:{name:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.name,["colorname","color"],HawkSearch.config.variants?.fieldPrefix),hex:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.hex,["colorhex","colorvalue"],HawkSearch.config.variants?.fieldPrefix),imageUrl:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.color?.imageUrl,["colorimageurl","colorimage"],HawkSearch.config.variants?.fieldPrefix)},id:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.id,["id"],HawkSearch.config.variants?.fieldPrefix),imageUrl:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.imageUrl,["imageurl","image"],HawkSearch.config.variants?.fieldPrefix),price:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.price,["price"],HawkSearch.config.variants?.fieldPrefix),rating:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.rating,["rating"],HawkSearch.config.variants?.fieldPrefix),salePrice:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.salePrice,["salePrice","saleprice"],HawkSearch.config.variants?.fieldPrefix),sku:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.sku,["title","name","itemname"],HawkSearch.config.variants?.fieldPrefix),title:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.title,["title","name","itemname"],HawkSearch.config.variants?.fieldPrefix),description:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.description,["description","longdescription"],HawkSearch.config.variants?.fieldPrefix),url:this.getFieldMappings(HawkSearch.config.variants?.fieldMappings?.url,["url"],HawkSearch.config.variants?.fieldPrefix)}}async httpPost(e,t,a,r){const n=r?e:this.baseUrl+e,i=a||this.getHeaders(),s=await fetch(n,{method:"POST",headers:i,body:JSON.stringify(t)});return s.headers.get("content-type")?.startsWith("application/json")?s.json():void 0}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getApiHeaders(){const e=this.getHeadersSafe();return this.setUserAgentHeaderSafe(e),this.setForwardedForHeaderSafe(e),this.setClientGuidHeaderSafe(e),e}getHeadersSafe(){try{return this.getHeaders()}catch(e){let a;this.debugWarn("hawksearch: getHeaders failed while building API headers",e);try{a=new Headers}catch(t){return this.debugWarn("hawksearch: failed to construct Headers() fallback",t),new Headers}return this.safeHeaderSet(a,"Content-Type","application/json"),this.safeHeaderSet(a,"X-Requested-With","XMLHttpRequest"),a}}safeHeaderSet(e,t,a){try{e.set(t,a)}catch(r){this.debugWarn(`hawksearch: failed to set header "${t}"`,r)}}setUserAgentHeaderSafe(e){try{const t="undefined"!=typeof window&&window.navigator?.userAgent||"undefined"!=typeof navigator&&navigator.userAgent||"unknown-user-agent";"string"==typeof t&&t.trim()&&e.set("User-Agent",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set User-Agent header",t)}}setForwardedForHeaderSafe(e){try{const t="undefined"!=typeof window&&window.__CLIENT_IP__||"undefined"!=typeof HawkSearch&&HawkSearch.config?.clientIp;"string"==typeof t&&t.trim()&&e.set("X-Forwarded-For",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set X-Forwarded-For header",t)}}setClientGuidHeaderSafe(e){try{const t="undefined"!=typeof HawkSearch?HawkSearch.config?.clientId:void 0;"string"==typeof t&&t.trim()&&e.set("X-HawkSearch-ClientGuid",t.trim())}catch(t){this.debugWarn("hawksearch: failed to set X-HawkSearch-ClientGuid header",t)}}debugWarn(e,t){try{if("undefined"!=typeof HawkSearch&&HawkSearch.config?.debug){const a=t instanceof Error?t:new Error(String(t));console.warn(e,a)}}catch(a){console.warn(e)}}getFieldMappings(e,t,a){return"string"==typeof e&&(e=[e]),e?.length||(e=t),a&&(e=e.map(e=>a+e)),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return Xr()}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=function(e){return(e=lt(e))&&ma.test(e)?e.replace(ga,pa):e}(t),t=decodeURIComponent(t.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25")),t}getValue(e,t){for(const a of t){let t=ut(e,a);if(t){if("string"==typeof t&&(t=t.split("|^|")),0===t.length)continue;return t}}}getString(e,t,a){return this.getValue(e,t)?.[0]??a}getNumber(e,t,a){const r=this.getValue(e,t)?.[0];let n=r?parseFloat(r):void 0;return void 0!==n&&isNaN(n)&&(n=void 0),n??a}getUrl(e,t,a){const r=this.getValue(e,t)?.[0];return this.getFullUrl(r,a)}getFullUrl(e,t){if(e)return t&&!/^(?:https?:)?\/\//.test(e)?`${t}/${e.replace(/^\/+/,"")}`:e}getVariants(e){if(!1===HawkSearch.config.variants?.enabled)return{items:void 0,selectedItem:void 0};const t=HawkSearch.config.variants?.fieldPrefix,a=t?new RegExp("^"+t):void 0,r=e=>{const t=this.getString(e,this.variantFieldMappings.color.name),a=this.getString(e,this.variantFieldMappings.color.imageUrl);let r=this.getString(e,this.variantFieldMappings.color.hex);if(!r&&t&&(r=Ea(t)),r||a)return{name:t,hex:r,imageUrl:a}},n=e.hawk_child_attributes_hits?.[0]?.Items?.reduce((e,t)=>{const a=this.getString(t,this.variantFieldMappings.id);return a&&e.push(a),e},[])??[];let i,s=e.hawk_child_attributes?.map((e,t)=>{const i=this.getString(e,this.variantFieldMappings.id)??"";return{attributes:Object.fromEntries(Object.entries(e).map(([e,t])=>(a&&(e=e.replace(a,"")),[e,t]))),color:r(e),description:this.getString(e,this.variantFieldMappings.description),id:i,imageUrl:this.getString(e,this.variantFieldMappings.imageUrl),price:this.getNumber(e,this.variantFieldMappings.price)||void 0,queryMatch:n.includes(i),rating:this.getNumber(e,this.variantFieldMappings.rating),salePrice:this.getNumber(e,this.variantFieldMappings.salePrice)||void 0,title:this.getString(e,this.variantFieldMappings.title),url:this.getString(e,this.variantFieldMappings.url)}}).filter(e=>!!e.id);s?.length||(s=void 0);for(const o of n){const e=s?.find(e=>e.id===o);if(e){i=e;break}}return i||(i=s?.[0]),{items:s,selectedItem:i}}triggerBindEvent(e,t,a){let r=`hawksearch:bind-${e}`;a&&(r=`${r}:${a}`),this.triggerEvent(r,t)}triggerEvent(e,t){const a=new CustomEvent(e,{detail:t});window.dispatchEvent(a)}},Gr=class extends Kr{baseUrl=HawkSearch.config.autocomplete?.endpointUrl||HawkSearch.config.search?.endpointUrl||"https://searchapi-dev.hawksearch.net";decodeQuery=HawkSearch.config.autocomplete?.decodeQuery||!0;async query(e,t){const a={query:t};return await this.executeAutocomplete(a,e)}async executeAutocomplete(e,t){this.decodeQuery&&e.query&&(e.query=Ra(e.query));const a={IndexName:HawkSearch.config.index,Keyword:e.query,DisplayFullResponse:!0};try{this.triggerEvent("hawksearch:before-autocomplete-executed",a);const r=await this.httpPost("/api/v2/autocomplete",a,this.getApiHeaders());this.triggerEvent("hawksearch:after-autocomplete-executed",r);const n=this.convertResponse(e.query,r);return this.triggerEvent("hawksearch:autocomplete-completed",n),this.bindComponent(n,t),n}catch{throw new Error("Error retrieving autocomplete response")}}convertResponse(e,t){const a=e=>{const t=this.getVariants(e.Results.Document);return{attributes:Object.fromEntries(Object.entries(e.Results.Document).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e))),description:this.getString(e.Results.Document,this.fieldMappings.description),id:e.Results.DocId,imageUrl:e.Thumb?.Url||this.getUrl(e.Results.Document,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),pinned:e.Results.IsPin,price:this.getNumber(e.Results.Document,this.fieldMappings.price)||void 0,rating:this.getNumber(e.Results.Document,this.fieldMappings.rating),salePrice:this.getNumber(e.Results.Document,this.fieldMappings.salePrice)||void 0,score:e.Results.Score,selectedVariant:t.selectedItem,sku:e.Sku||this.getString(e.Results.Document,this.fieldMappings.sku),title:this.stripHtml(e.ProductName)||this.getString(e.Results.Document,this.fieldMappings.title),url:e.Url||this.getUrl(e.Results.Document,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:t.items}};return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map(e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:Ra(e.FieldQSValue),url:`${this.searchUrl}?${e.FieldQSName}=${Ra(encodeURIComponent(e.FieldQSValue))}`}))},content:{title:t.ContentHeading,results:t.Content.map(e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url})),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))},contentSuggestedQueries:{title:t.DYMContentHeading,results:t.DymContentSearch?.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))??[]},productSuggestedQueries:{title:t.DYMProductHeading,results:t.DymProductsSearch?.map(e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`}))??[]},products:{title:t.ProductHeading,results:t.Products.map(e=>a(e)),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e,t){this.triggerBindEvent("autocomplete",e,t)}},$r=class extends Kr{baseUrl="https://genai.bridgeline.com/api";API_KEY="ba0279e8-6df6-11ee-a9fd-9df2e7adae60";async query(e,t){return e?await this.executeSearch(e,t):[]}async executeSearch(e,t){this.bindComponents(e);const a={api_key:this.API_KEY,messages:e,...t};HawkSearch.config.debug&&console.log("hawksearch:debug",{rawConversationalSearchRequest:a.messages});try{this.triggerEvent("hawksearch:before-send-message-executed",e);const t=new Headers;t.set("Content-Type","application/json");const r=await this.httpPost(this.baseUrl,a,t,!0);if(this.triggerEvent("hawksearch:after-send-message-executed",r),!r.success)throw new Error("Network response was not ok");this.triggerEvent("hawksearch:before-received-message-executed",r);const n=this.convertResponse(r);return this.triggerEvent("hawksearch:after-receive-message-executed",n),this.bindComponents(n),n}catch{throw new Error("Error retrieving search response")}}convertResponse(e){return e.response.choices[0].message}bindComponents(e){this.triggerBindEvent("conversationalsearch",{conversationResponse:e})}},en=class extends Kr{baseUrl=HawkSearch.config.recommendations?.endpointUrl||"https://recs-dev.hawksearch.net";useTitle=HawkSearch.config.recommendations?.useTitle||!1;getItems(e){return this.executeRecommendations(e)}async executeRecommendations(e){const t={indexName:HawkSearch.config.index,landingPageUrl:e.url,renderHTML:!1,visitId:this.getVisitId(),visitorId:this.getVisitorId(),widgetUids:[{widgetGuid:e.widgetId,uniqueid:e.itemId}]};try{this.triggerEvent("hawksearch:before-recommendations-executed",t);const a=await this.httpPost("/api/recommendation/v2/getwidgetitems",t,this.getApiHeaders());this.triggerEvent("hawksearch:after-recommendations-executed",a);const r=this.convertResponse(a);this.triggerEvent("hawksearch:recommendations-completed",r);const n=e.itemId?`${e.widgetId}:${e.itemId}`:e.widgetId;return HawkSearch.recommendationsResponses={...HawkSearch.recommendationsResponses??{},[n]:r},this.bindComponents(r),r}catch{throw new Error("Error retrieving recommendations response")}}convertResponse(e){const t=e=>{if(e)return"string"==typeof e?e.split("|^|"):e},a=e=>{const a=this.getVariants(e.customDict);return{attributes:Object.fromEntries(Object.entries(e.customDict).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e)).map(([e,a])=>[e,t(a)])),description:e.shortDescription||this.getString(e.customDict,this.fieldMappings.description),id:e.id,imageUrl:e.imageUrl||this.getUrl(e.customDict,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),price:parseFloat(e.price)||this.getNumber(e.customDict,this.fieldMappings.price)||void 0,rating:parseFloat(e.rating)||this.getNumber(e.customDict,this.fieldMappings.rating)||void 0,salePrice:parseFloat(e.salePrice)||this.getNumber(e.customDict,this.fieldMappings.salePrice)||void 0,selectedVariant:a.selectedItem,sku:e.Sku||this.getString(e.customDict,this.fieldMappings.sku),title:e.itemName||this.getString(e.customDict,this.fieldMappings.title),url:e.url||this.getUrl(e.customDict,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:a.items}};return{requestId:e.requestId,widgets:e?.widgetItems?.map(t=>({id:t.widgetGuid,requestId:e.requestId,title:this.useTitle?t.widgeTitle:t.widgetName,carousel:t.isCarousel,carouselData:t.carouselData,items:t.recommendationItems?.map(e=>a(e))}))}}bindComponents(e){e.widgets?.forEach(e=>{this.triggerBindEvent("recommendations",e,e.id)})}},tn=class extends Kr{baseUrl=HawkSearch.config.search?.endpointUrl||"https://searchapi-dev.hawksearch.net";facetExclusionPrefix=HawkSearch.config.search?.facetExclusionPrefix||"-";decodeQuery=HawkSearch.config.search?.decodeQuery??!0;decodeFacetValues=HawkSearch.config.search?.decodeFacetValues??!0;desktopOnlyBanner=HawkSearch.config.search?.desktopOnlyBanner??!0;shouldRenderUI=!0;async search(e){const t=await this.executeSearch(e,!0,!1);return this.shouldRenderUI&&this.bindComponents(t),t}async query(e,t=void 0,a=!1){const r="string"==typeof e?{queryString:e,requestType:"DefaultSearch"}:e,n=r?.queryString,i={disableSpellcheck:!!a||void 0,facets:t,newRequest:!0,query:n,requestType:r?.requestType};if(!this.onSearchPage){const e=this.getSearchUrl(i);return window.location.assign(e),Promise.resolve()}if(n&&!Ta(n)){const e=this.getRecentQueries(),t=5;e.includes(n)||(e.length>=t&&e.splice(t-1),e.unshift(n),this.saveRecentQueries(e))}const s=await this.executeSearch(i,!0,!1);return this.shouldRenderUI&&this.bindComponents(s),s}async addFacetValue(e,t){this.ensureSearchRequest();const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),this.clearExistingFacetValue(a,e,t),a.facets[e]=[...a.facets[e]?.filter(e=>e!==t)??[],t];const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async removeFacetValue(e,t){if(this.ensureSearchRequest(),"searchWithin"===e)return await this.searchWithin("");const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,this.clearExistingFacetValue(a,e,t);const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}includeFacetValue(e,t){const a=`${this.facetExclusionPrefix}${t}`;return this.removeFacetValue(e,a)}async excludeFacetValue(e,t){this.ensureSearchRequest();const a=`${this.facetExclusionPrefix}${t}`,r=ia(HawkSearch.searchRequest);r.newRequest=!1,r.page=void 0,r.facets||(r.facets={}),this.clearExistingFacetValue(r,e,t),r.facets={...r.facets,[e]:[...r.facets[e]??[],a]};const n=await this.executeSearch(r,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}clearExistingFacetValue(e,t,a){a=a.replace(new RegExp("^"+this.facetExclusionPrefix),"");const r=`${this.facetExclusionPrefix}${a}`;e.facets||(e.facets={}),e.facets={...e.facets,[t]:[...e.facets[t]?.filter(e=>e!==a&&e!==r)??[]]},e.facets[t]?.length||delete e.facets[t]}async setFacetValue(e,t){this.ensureSearchRequest();const a=ia(HawkSearch.searchRequest);a.newRequest=!1,a.page=void 0,a.facets||(a.facets={}),a.facets[e]=[t];const r=await this.executeSearch(a,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async searchWithin(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const a=await this.executeSearch(t,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}async selectTab(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.facets||(t.facets={});const a=HawkSearch.searchResponse?.facets?.find(e=>"tabs"===e.type)?.field;a&&(e?t.facets[a]=[e]:delete t.facets[a]);const r=await this.executeSearch(t,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}async paginate(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=e;const a=await this.executeSearch(t,!1);return this.bindPaginationComponent(a),a}async setPageSize(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.pageSize=e;const a=await this.executeSearch(t,!1);return this.bindPageSizeComponent(a),this.bindPaginationComponent(a),a}async sort(e){this.ensureSearchRequest();const t=ia(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const a=await this.executeSearch(t,!1);return this.bindPaginationComponent(a),this.bindSortingComponent(a),a}async executeSearch(e,t,a=!0){if(this.decodeQuery&&e.query&&(e.query=Ra(e.query)),this.decodeFacetValues&&e.facets)for(const c in e.facets)if(Object.prototype.hasOwnProperty.call(e.facets,c)){const t=[],a=e.facets[c];for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&t.push(Ra(a[parseInt(e)]));e.facets[c]=t}HawkSearch.searchRequest=e;const r="ImageData"===e.requestType,n=r?"ImageData":"ImageSearch"===e.requestType?"ImageText":"Keyword",i=r?"ImageSearch":e.requestType;"ImageSearch"===i&&localStorage.getItem("hawkimagedata")&&(e.query=String(localStorage.getItem("hawkimagedata")??""),localStorage.removeItem("hawkimagedata"));const s={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},CustomURL:e.url,RequestType:i||"DefaultSearch",IgnoreSpellcheck:e.disableSpellcheck,IndexName:HawkSearch.config.index,kValue:HawkSearch.config.search?.kValue,[n||"Keyword"]:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort,Variants:{CountFacetHitOnChild:HawkSearch.config.variants?.baseFacetCountOnVariants}};HawkSearch.config.debug&&console.log("hawksearch:debug",{rawSearchRequest:s});try{this.triggerEvent("hawksearch:before-search-executed",s);const n=await this.httpPost("/api/v2/search",s,this.getApiHeaders()),i=this.convertResponse(e,n);return HawkSearch.searchResponse=i,this.triggerEvent("hawksearch:after-search-executed",n),HawkSearch.services.tracking.trackSearch(r?"image-upload":e.query,t),r||this.setQueryString(i),this.setSeoElements(i),t&&i.redirect&&i.redirect.url&&("_blank"!==i.redirect.target&&(this.shouldRenderUI=!1),"_blank"===i.redirect.target?window.open(i.redirect.url,"_blank"):"_parent"===i.redirect.target?window.open(i.redirect.url,"_parent"):"_top"===i.redirect.target?window.open(i.redirect.url,"_top"):window.open(i.redirect.url,"_self")),a&&this.shouldRenderUI&&(this.bindModifiedQueryComponent(i),this.bindQuerySuggestionsComponent(i),this.bindSearchFieldComponent(i),this.bindConceptSearchFieldComponent(i),this.bindUnifiedSearchFieldComponent(i),this.bindSearchResultsListComponent(i),this.bindImageSearchFieldComponent(i)),this.triggerEvent("hawksearch:search-completed",i),i}catch(o){throw this.triggerEvent("hawksearch:search-failed",o||"Error retrieving search response"),new Error("Error retrieving search response",{cause:o})}}ensureSearchRequest(){if(!HawkSearch.searchRequest)throw this.triggerEvent("hawksearch:search-failed","You cannot refine search results until an initial search has been executed"),new Error("You cannot refine search results until an initial search has been executed")}convertResponse(e,t){const a=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":case"swatch":return"color";case"link":return"link";case"openrange":return"datetime"===e.DataType?"date-range":e.IsCurrency||e.IsNumeric?"numeric-range":"unsupported";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";default:return"unsupported"}},r=e=>{if("scrolling"===e.DisplayType)return{height:e.ScrollHeight||void 0,threshold:e.ScrollThreshold||0}},n=["date-range","numeric-range","range-slider"],i=e=>{const t=a(e);if(n.includes(t)&&e.Values?.length)return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}},s=(e,t)=>{const a=e.Ranges?.find(e=>e.Value.toLowerCase()===t.Value.toLowerCase());if(a?.AssetFullUrl)return this.getFullUrl(a.AssetFullUrl,HawkSearch.config.urlPrefixes?.assets)},o=(e,t)=>{let a=e.SwatchData?.find(e=>e.Value.toLowerCase()===t.Value.toLowerCase());if(a||(a=e.SwatchData?.find(e=>e.IsDefault)),!a)return;const r="string"==typeof a.AssetUrl&&/^https?:\/\//i.test(a.AssetUrl);return{name:t.Label,hex:a.Color||a.Value,imageUrl:r?a.AssetUrl:this.getFullUrl(a.AssetUrl||a.AssetName,HawkSearch.config.urlPrefixes?.assets)}},c=(e,t,r)=>"recent-searches"===a(e)?this.getRecentQueries().map(e=>({title:this.decodeFacetValues?Ra(e):e})):t?.map(t=>({title:t.Label,imageUrl:s(e,t),value:t.Value,color:o(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:r?.Items?.some(e=>e.Value===`${this.facetExclusionPrefix}${t.Value}`),children:c(e,t.Children,r)})),l=e=>{if("truncating"===e.DisplayType)return{threshold:parseFloat(e.TruncateThreshold)||0}},h=e=>{const t=this.getVariants(e.Document);return{attributes:Object.fromEntries(Object.entries(e.Document).filter(([e,t])=>!["hawk_child_attributes","hawk_child_attributes_hits"].includes(e))),description:this.getString(e.Document,this.fieldMappings.description),id:e.DocId,imageUrl:this.getUrl(e.Document,this.fieldMappings.imageUrl,HawkSearch.config.urlPrefixes?.content),pinned:e.IsPin??!1,price:this.getNumber(e.Document,this.fieldMappings.price)||void 0,rating:this.getNumber(e.Document,this.fieldMappings.rating),salePrice:this.getNumber(e.Document,this.fieldMappings.salePrice)||void 0,score:e.Score,sku:this.getString(e.Document,this.fieldMappings.sku),selectedVariant:t.selectedItem,title:this.getString(e.Document,this.fieldMappings.title),type:((e,t)=>{"string"==typeof t&&(t=[t]);const a=(HawkSearch.config.search?.itemTypes?.productValues??["item","product"]).map(e=>e.toLowerCase());for(const r of t){let t=ut(e,r);if(t&&t instanceof Array&&(t=t[0]),t&&a.includes(t.toLowerCase()))return"product"}return HawkSearch.config.search?.itemTypes?.default??"content"})(e.Document,this.fieldMappings.type),url:this.getUrl(e.Document,this.fieldMappings.url,HawkSearch.config.urlPrefixes?.content),variants:t.items,visible:e.IsVisible??!0}},d=e=>{if(e.IsSearch)return{threshold:parseFloat(e.SearchThreshold)||0}},u=()=>{const a="searchWithin",r=t.Facets?.find(e=>e.Field===a);return e.searchWithin&&r?[{field:a,title:r.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},p=(e,t,a)=>{("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&this.desktopOnlyBanner&&(t="");const r={campaignId:e.CampaignId,id:e.BannerId,title:e.Title,trackingEnabled:e.IsTrackingEnabled??!0,type:e[t+"ContentType"],zone:a??e.Zone,trigger:e.Trigger?{BannerGroupId:e.Trigger.BannerGroupId,Name:e.Trigger.Name,Rule:function e(t){return{Field:t.FieldName,Condition:t.Condition,Value:t.Value,Rules:(t.Rules||[]).map(e)}}(e.Trigger.Rule)}:void 0};switch(r.type){case"custom":r.content=e[t+"Output"];break;case"featured":{const t=r;t.type="featured-items",t.items=[...(e.Items??[]).map(h),...(e.FeaturedItems??[]).map(h)];break}case"image":{const a=r;a.image={url:this.getFullUrl(e[t+"ImageUrl"],HawkSearch.config.urlPrefixes?.assets),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},a.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const a=r;a.type="popular-queries";const n=e[t+"Output"]||[],i=Math.min(...n.map(e=>e.count)),s=Math.max(...n.map(e=>e.count))-i,o=5,c=new Array(o).fill(0);c.forEach((e,t)=>{c[t]=t===o-1?0:Math.floor(s/(t+1))+i}),a.items=n.map(e=>({query:e.keyword,count:e.count,weight:o-c.findIndex(t=>e.count>=t)})).sort((e,t)=>e.query.localeCompare(t.query));break}default:{const t=r;t.type="custom-widget",t.data=e.AltTag}}}return r},g={content:{breadcrumbs:t.Breadcrumb||void 0,customHtml:t.CustomHtml||void 0,heading:t.PageHeading||void 0},contentZones:(()=>{const e={};return t.FeaturedItems?.Items.forEach(t=>{const a=e[t.Zone]??{name:t.Zone},r={mobile:p(t,""),tablet:p(t,""),desktop:p(t,"")};a.items=[...a.items??[],r],e[t.Zone]=a}),t.Merchandising?.Items.forEach(t=>{const a=e[t.Zone]??{name:t.Zone},r={mobile:p(t,"Mobile"),tablet:p(t,"Tablet"),desktop:p(t,"")};a.items=[...a.items??[],r],e[t.Zone]=a}),t.PageContent?.forEach(t=>{const a=e[t.ZoneName]??{name:t.ZoneName};t.Items.forEach(e=>{const t={mobile:p(e,"Mobile",a.name),tablet:p(e,"Tablet",a.name),desktop:p(e,"",a.name)};a.items=[...a.items??[],t]}),e[t.ZoneName]=a}),e})(),customLayout:t.PageLayoutHtml||void 0,facets:t.Facets?.map(n=>{return{id:n.FacetId,type:a(n),title:n.Name,field:n.ParamName||n.Field,collapsible:n.IsCollapsible??!1,collapsed:n.IsCollapsedDefault,displayCount:n.ShowItemsCount,range:i(n),scrolling:r(n),search:d(n),searchWithin:e.searchWithin,tooltip:this.stripHtml(n.Tooltip??"")||void 0,truncation:l(n),values:c(n,n.Values,t.Selections?.[n.ParamName||n.Field]),visible:(s=n,"recent-searches"===a(s)?!!c(s,void 0,void 0)?.length:s.IsVisible??!0)};var s}).filter(e=>"unsupported"!==e.type&&!(n.includes(e.type)&&!e.range)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:t.Pagination.Items.map(e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))??[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:t.Results?.map(h),selectedFacets:(()=>[...Object.keys(t.Selections??[]).map(e=>{const a=t.Selections[e],r=t.Facets?.find(t=>(t.ParamName||t.Field)===e),n=new RegExp("^"+this.facetExclusionPrefix);return{field:e,currency:r?.IsCurrency??!1,title:a.Label,values:a.Items.map(e=>({title:e.Label.replace(n,""),value:e.Value,excluded:n.test(e.Value)}))}}),...u()])(),seo:{canonicalUrl:t.RelCanonical,description:t.MetaDescription,keywords:t.MetaKeywords,robots:t.MetaRobots,title:t.HeaderTitle},success:t.Success,sorting:{value:t.Sorting?.Value,options:t.Sorting?.Items.map(e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))??[]},trackingId:t.TrackingId},m=new URL(this.getSearchUrl(e));return g.seo||(g.seo={}),g.seo.canonicalUrl=(g.seo.canonicalUrl?.replace(/\?.*$/,"")||m.origin+m.pathname)+m.search,g}bindComponents(e){this.bindLandingPageComponent(e),this.bindSearchResultsComponent(e),setTimeout(()=>{this.bindConceptSearchFieldComponent(e),this.bindFacetsListComponent(e),this.bindImageSearchFieldComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindUnifiedSearchFieldComponent(e),this.bindSmartResponseComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)})}bindFacetsListComponent(e){this.triggerBindEvent("facets-list",e?.facets)}bindLandingPageComponent(e){this.triggerBindEvent("landing-page",e)}bindModifiedQueryComponent(e){const t={display:!!e?.query&&!!e?.modifiedQuery&&HawkSearch.searchRequest.newRequest,query:e?.query,modifiedQuery:e?.modifiedQuery};this.triggerBindEvent("modified-query",t)}bindPageSizeComponent(e){this.triggerBindEvent("page-size",e?.pagination?.options)}bindPaginationComponent(e){this.triggerBindEvent("pagination",e?.pagination)}bindSearchFieldComponent(e){this.triggerBindEvent("search-field",e)}bindConceptSearchFieldComponent(e){this.triggerBindEvent("conceptsearch-field",e)}bindImageSearchFieldComponent(e){this.triggerBindEvent("imagesearch-field",e)}bindUnifiedSearchFieldComponent(e){this.triggerBindEvent("unifiedsearch-field",e)}bindSearchResultsComponent(e){this.triggerBindEvent("search-results",e)}bindSearchResultsListComponent(e){this.triggerBindEvent("search-results-list",e?.results)}bindQuerySuggestionsComponent(e){const t={display:!!e?.querySuggestions?.length&&HawkSearch.searchRequest.newRequest,querySuggestions:e?.querySuggestions};this.triggerBindEvent("query-suggestions",t)}bindSmartResponseComponent(e){this.triggerBindEvent("smartresponse",e)}bindSortingComponent(e){this.triggerBindEvent("sorting",e?.sorting)}bindSelectedFacetsComponent(e){this.triggerBindEvent("selected-facets",e?.selectedFacets)}bindTabsComponent(e){this.triggerBindEvent("tabs",e?.facets?.find(e=>"tabs"===e.type))}bindZoneComponent(e){this.triggerBindEvent("content-zone",e)}getRequestFromUrl(){const e=new URL(window.location.href),t=Object.values(this.queryStringParams),a={};for(const r of Array.from(e.searchParams.keys()).filter(e=>!t.includes(e))){a[r]=e.searchParams.getAll(r)}return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:a,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort)),requestType:this.getStringParameter(e.searchParams.get(this.queryStringParams.requestType))}}setQueryString(e){if(!HawkSearch.searchRequest)return;const t=this.getSearchUrl(HawkSearch.searchRequest),a={searchRequest:HawkSearch.searchRequest,searchResponse:e};t.toString()===window.location.href?window.history.replaceState(a,""):window.history.pushState(a,"",t.toString())}getSearchUrl(e){const t=window.location.pathname===this.searchUrl||!!e.url,a=new URL(t?window.location.href:this.searchUrl,window.location.origin),r=Object.values(this.queryStringParams);return a.searchParams.delete(this.queryStringParams.query),e.query&&!Ta(e.query)&&a.searchParams.set(this.queryStringParams.query,e.query),Array.from(a.searchParams.keys()).filter(e=>!r.includes(e)).forEach(e=>a.searchParams.delete(e)),e.disableSpellcheck&&a.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).sort((e,t)=>e>t?1:-1).forEach(t=>{e.facets[t]?.forEach(e=>a.searchParams.append(t,e))}),a.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&a.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),a.searchParams.delete(this.queryStringParams.sort),e.sort&&a.searchParams.set(this.queryStringParams.sort,e.sort),a.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&a.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),a.searchParams.delete(this.queryStringParams.page),e.page&&a.searchParams.set(this.queryStringParams.page,e.page.toString()),a.searchParams.delete(this.queryStringParams.requestType),e.requestType&&a.searchParams.set(this.queryStringParams.requestType,e.requestType.toString()),a.toString()}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}setSeoElements(e){if(!e?.seo)return;let t=e.seo.title;t&&HawkSearch.config.seo?.title?.prefix&&(t=`${HawkSearch.config.seo.title.prefix}${t}`),t&&HawkSearch.config.seo?.title?.suffix&&(t=`${t}${HawkSearch.config.seo.title.suffix}`),this.setTitle(t),this.setLinkTag("canonical",e.seo.canonicalUrl),this.setMetaTag("description",e.seo.description),this.setMetaTag("keywords",e.seo.keywords),this.setMetaTag("robots",e.seo.robots)}removeElement(e){const t=document.head.querySelector(e);t&&t.remove()}setLinkTag(e,t){if(!t)return;this.removeElement(`link[rel="${e}"]`);const a=document.createElement("link");a.rel=e,a.href=t,document.head.append(a)}setMetaTag(e,t){if(!t)return;this.removeElement(`meta[name="${e}"]`);const a=document.createElement("meta");a.name=e,a.content=t,document.head.append(a)}setTitle(e){e&&(document.title=e)}},an=class extends Kr{baseUrl=HawkSearch.config.tracking?.endpointUrl||"https://tracking-dev.hawksearch.net";trackAddToCart(e,t,a,r){const n={UniqueId:e,Quantity:t,Price:a,Currency:r};return this.trackEvent(Na.AddToCart,n)}trackAddToCartMultiple(e){const t={ItemsList:e.map(e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price,Currency:e.currencyIsoCode}))};return this.trackEvent(Na.AddToCartMultiple,t)}trackAutocompleteClick(e,t,a,r){const n={Keyword:e,Name:a,SuggestType:t,Url:r};return this.trackEvent(Na.AutocompleteClick,n)}trackBannerClick(e,t){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const a={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(Na.BannerClick,a)}trackBannerImpression(e,t){if(!HawkSearch.searchResponse?.trackingId||!e||!t)return Promise.resolve();const a={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(Na.BannerImpression,a)}trackOrder(e,t,a,r,n,i){const s={OrderNo:e,ItemList:t.map(e=>({UniqueId:e.productId,Quantity:e.quantity,ItemPrice:e.price})),SubTotal:a,Tax:r,Total:n,Currency:i};return this.trackEvent(Na.Sale,s)}trackPageLoad(e,t){if(e===Ua.Item&&!t)throw new Error("productId is required for tracking product detail page requests");const a={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,UniqueId:t,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(Na.PageLoad,a)}trackRating(e,t){const a={UniqueId:e,Value:t};return this.trackEvent(Na.Rate,a)}trackRecommendationClick(e,t,a){const r={WidgetGuid:e,RequestId:t,UniqueId:a};return this.trackEvent(Na.RecommendationClick,r)}trackSearchResultClick(e,t,a){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const r={UniqueId:e,Url:t,TrackingId:HawkSearch.searchResponse.trackingId,ElementNo:this.getElementNo(e),RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:a?.pageX,MouseY:a?.pageY};return this.trackEvent(Na.Click,r)}trackSearch(e,t){if(!HawkSearch.searchResponse?.trackingId)return Promise.resolve();const a={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:HawkSearch.searchResponse.trackingId,TypeId:t?Va.Initial:Va.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(Na.Search,a)}async trackEvent(e,t){if(!1===HawkSearch.config.tracking?.enabled)return;const a={EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};try{await this.httpPost("/api/trackevent",a,this.getApiHeaders())}catch{throw new Error("Error recording search activity")}}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}getElementNo(e){const t=HawkSearch.searchResponse;if(!t||!t.results)return 0;const a=t.results.findIndex(t=>t.id===e);if(-1===a)return 0;return a+1+(t.pagination?.pageSize??1)*((t.pagination?.page??1)-1)}},rn=s(o());window.HawkSearch||(window.HawkSearch={});var nn=window.HawkSearch;nn.init=e=>{nn.config=e,nn.handlebars=rn.noConflict(),nn.handlebars.registerHelper("add",Wa),nn.handlebars.registerHelper("and",Xa),nn.handlebars.registerHelper("arrayFilterObjects",rr),nn.handlebars.registerHelper("arrayHasObjectsWithValue",nr),nn.handlebars.registerHelper("attribute",Ka),nn.handlebars.registerHelper("concat",Ga),nn.handlebars.registerHelper("currency",ar),nn.handlebars.registerHelper("decode",gr),nn.handlebars.registerHelper("decodeNested",mr),nn.handlebars.registerHelper("eq",$a),nn.handlebars.registerHelper("exclude",er),nn.handlebars.registerHelper("html",tr),nn.handlebars.registerHelper("number",hr),nn.handlebars.registerHelper("if-else",or),nn.handlebars.registerHelper("lt",cr),nn.handlebars.registerHelper("lte",lr),nn.handlebars.registerHelper("gt",ir),nn.handlebars.registerHelper("gte",sr),nn.handlebars.registerHelper("or",dr),nn.handlebars.registerHelper("string",ur),nn.handlebars.registerHelper("subtract",pr),nn.services={autocomplete:new Gr,conversational:new $r,recommendations:new en,search:new tn,tracking:new an},Object.entries({autocomplete:Ja,"bubble-content":wa,"checkbox-list-facet":vr,"color-facet":wr,"conceptsearch-field":Rr,"content-zone":xa,conversationalsearch:Br,"custom-content":Aa,"date-picker":Ba,"date-range-facet":Ar,"facet-wrapper":Cr,"facets-list":Mr,"featured-items-content":ya,"featured-items-content-item":ba,icon:qa,"image-content":ka,"imagesearch-field":qr,"landing-page":ja,"link-list-facet":yr,"modified-query":Hr,noresult:Yr,"numeric-range-facet":br,"page-size":Pr,pagination:Ir,"popular-queries-content":_a,"query-suggestions":Dr,"range-slider":La,"range-slider-facet":kr,rating:Oa,recommendations:za,"recommendations-item":Ya,"recent-searches-facet":_r,"related-searches-facet":xr,"search-field":Tr,"search-results":Fr,"search-results-item":Lr,"search-results-list":Or,"search-within-facet":Er,"selected-facets":Qr,"size-facet":Sr,smartresponse:Nr,sorting:Ur,tabs:Vr,tooltip:Fa,"unifiedsearch-field":jr,"variant-selector":Jr,"visualsearch-field":zr}).forEach(([e,t])=>{const a=`hawksearch-${e}`;customElements.get(a)||customElements.define(a,t)}),window.addEventListener("popstate",e=>{const t=e.state;nn.searchRequest=t.searchRequest,nn.searchResponse=t.searchResponse,nn.services.search.bindComponents(t.searchResponse)}),window.dispatchEvent(new CustomEvent("hawksearch:initialized"))},window.dispatchEvent(new CustomEvent("hawksearch:loaded")),module.exports=nn;