1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,80102,(e,t,r)=>{e.e,t.exports=function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){var e="u">typeof globalThis?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch(function(e){return console.error("Failed to yield to main: ",e),new Promise(function(e){return setTimeout(e,0)})}):new Promise(function(e){return setTimeout(e,0)})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(r);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var o=n(),s=a&&a.miss||function(){return Promise.resolve()};return o.then(function(e){return s(e)}).then(function(){return o})},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function s(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===f.WithinHeaders?n:{}},queryParameters:function(){return e===f.WithinQueryParameters?n:{}}}}function u(e){var t=0;return e(function r(){return t++,new Promise(function(n){setTimeout(function(){n(e(r))},Math.min(100*t,1e3))})})}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(r){return c(e.then(function(e){return Promise.all([t(e,r),e])}).then(function(e){return e[1]}))}})}function l(e,t){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function d(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[a++])})}var f={WithinQueryParameters:0,WithinHeaders:1};function h(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var p={Read:1,Write:2,Any:3};function m(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;
1return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function g(e){return"string"==typeof e?{protocol:"https",url:e,accept:p.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var y="DELETE",v="POST";function b(e,r,n,i){var o,s,u,c=[],l=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),r.data))}(n,i),d=(o=t(t({},e.headers),i.headers),s={},Object.keys(o).forEach(function(e){var t=o[e];s[e.toLowerCase()]=t}),s),f=n.method,h="GET"!==n.method?{}:t(t({},n.data),i.data),p=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),h),i.queryParameters),y=0,v=function t(r,a){var o,s,u,h,g=r.pop();if(void 0===g)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:T(c)};var v={data:l,headers:d,method:f,url:(o=g,s=n.path,u=P(p),h="".concat(o.protocol,"://").concat(o.url,"/").concat("/"===s.charAt(0)?s.substr(1):s),u.length&&(h+="?".concat(u)),h),connectTimeout:a(y,e.timeouts.connect),responseTimeout:a(y,i.timeout)},b=function(e){var t={request:v,response:e,host:g,triesLeft:r.length};return c.push(t),t},w={onSuccess:function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}},onRetry:function(n){var i=b(n);return n.isTimedOut&&y++,Promise.all([e.logger.info("Retryable failure",I(i)),e.hostsCache.set(g,m(g,n.isTimedOut?3:2))]).then(function(){return t(r,a)})},onFail:function(e){throw b(e),function(e,t){var r=e.content,n=e.status,a=r;try{a=JSON.parse(r).message}catch(e){}return{name:"ApiError",message:a,status:n,transporterStackTrace:t}}(e,T(c))}};return e.requester.send(v).then(function(e){var t,r,n;return(t=e.status,e.isTimedOut||(r=e.isTimedOut,n=e.status,!r&&0==~~n)||2!=~~(t/100)&&4!=~~(t/100))?w.onRetry(e):2==~~(e.status/100)?w.onSuccess(e):w.onFail(e)})};return(u=e.hostsCache,Promise.all(r.map(function(e){return u.get(e,function(){return Promise.resolve(m(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),n=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),i=[].concat(a(t),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map(function(e){return g(e)}):r}})).then(function(e){return v(a(e.statelessHosts).reverse(),e.getTimeout)})}function w(e){var t=e.hostsCache,r=e.logger,a=e.requester,i=e.requestsCache,o=e.responsesCache,s=e.timeouts,u=e.userAgent,c=e.hosts,l=e.queryParameters,d={hostsCache:t,logger:r,requester:a,requestsCache:i,responsesCache:o,timeouts:s,userAgent:u,headers:e.headers,queryParameters:l,hosts:c.map(function(e){return g(e)}),read:function(e,t){var r=h(t,d.timeouts.read),a=function(){return b(d,d.hosts.filter(function(e){return 0!=(e.accept&p.Read)}),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return a();var i={request:e,mappedRequestOptions:r,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,function(){return d.requestsCache.get(i,function(){return d.requestsCache.set(i,a()).then(function(e){return Promise.all([d.requestsCache.delete(i),e])},function(e){return Promise.all([d.requestsCache.delete(i),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,t){return b(d,d.hosts.filter(function(e){return 0!=(e.accept&p.Write)}),e,h(t,d.timeouts.write))}};return d}function P(e){return Object.keys(e).map(function(t){var r;return d("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]))}).join("&")}function T(e){return e.map(function(e){return I(e)})}function I(e){var r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),r)})})}var R=function(e){return function(t,r){return e.transporter.write({method:v,path:"2/abtests",data:t},r)}},O=function(e){return function(t,r){return e.transporter.write({method:y,path:d("2/abtests/%s",t)},r)}},x=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("2/abtests/%s",t)},r)}},j=function(e){return function(t){return e.transporter.read({method:"GET",path:"2/abtests"},t)}},A=function(e){return function(t,r){return e.transporter.write({method:v,path:d("2/abtests/%s/stop",t)},r)}},S=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/strategies/personalization"},t)}},k=function(e){return function(t,r){return e.transporter.write({method:v,path:"1/strategies/personalization",data:t},r)}};function E(e){return function t(r){return e.request(r).then(function(n){if(void 0!==e.batch&&e.batch(n.hits),!e.shouldStop(n))return n.cursor?t({cursor:n.cursor}):t({page:(r.page||0)+1})})}({})}var D=function(e){return function(n,a){var i=a||{},o=i.queryParameters,s=r(i,["queryParameters"]),l=t({acl:n},void 0!==o?{queryParameters:o}:{});return c(e.transporter.write({method:v,path:"1/keys",data:l},s),function(t,r){return u(function(n){return U(e)(t.key,r).catch(function(e){if(404!==e.status)throw e;return n()})})})}},N=function(e){return function(t,r,n){var a=h(n);return a.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:v,path:"1/clusters/mapping",data:{cluster:r}},a)}},C=function(e){return function(t,r,n){return e.transporter.write({method:v,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},n)}},q=function(e){return function(t,r){return c(e.transporter.write({method:v,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),function(t,r){return ep(e)(t.taskID,r)})}},$=function(e){return function(t,r,n){return c(e.transporter.write({method:v,path:d("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},n),function(r,n){return Q(e)(t,{methods:{waitTask:e0}}).waitTask(r.taskID,n)})}},B=function(e){return function(r,n,a){return $(e)(r,n,t(t({},a),{},{scope:[e2.Rules]}))}},_=function(e){return function(r,n,a){return $(e)(r,n,t(t({},a),{},{scope:[e2.Settings]}))}},G=function(e){return function(r,n,a){return $(e)(r,n,t(t({},a),{},{scope:[e2.Synonyms]}))}},V=function(e){return function(t,r){return"GET"===t.method?e.transporter.read(t,r):e.transporter.write(t,r)}},L=function(e){return function(t,r){return c(e.transporter.write({method:y,path:d("1/keys/%s",t)},r),function(r,n){return u(function(r){return U(e)(t,n).then(r).catch(function(e){if(404!==e.status)throw e})})})}},F=function(e){return function(t,r,n){var a=r.map(function(e){return{action:"deleteEntry",body:{objectID:e}}});return c(e.transporter.write({method:v,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},n),function(t,r){return ep(e)(t.taskID,r)})}},U=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/keys/%s",t)},r)}},z=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/task/%s",t.toString())},r)}},H=function(e){return function(t){return e.transporter.read({method:"GET",path:"/1/dictionaries/*/settings"},t)}},M=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/logs"},t)}},W=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping/top"},t)}},K=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/clusters/mapping/%s",t)},r)}},J=function(e){return function(t){var n=t||{},a=n.retrieveMappings,i=r(n,["retrieveMappings"]);return!0===a&&(i.getClusters=!0),e.transporter.read({method:"GET",path:"1/clusters/mapping/pending"},i)}},Q=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},X=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/keys"},t)}},Y=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters"},t)}},Z=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/indexes"},t)}},ee=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping"},t)}},et=function(e){return function(t,r,n){return c(e.transporter.write({method:v,path:d("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},n),function(r,n){return Q(e)(t,{methods:{waitTask:e0}}).waitTask(r.taskID,n)})}},er=function(e){return function(t,r){return c(e.transporter.write({method:v,path:"1/indexes/*/batch",data:{requests:t}},r),function(t,r){return Promise.all(Object.keys(t.taskID).map(function(n){return Q(e)(n,{methods:{waitTask:e0}}).waitTask(t.taskID[n],r)}))})}},en=function(e){return function(t,r){return e.transporter.read({method:v,path:"1/indexes/*/objects",data:{requests:t}},r)}},ea=function(e){return function(r,n){var a=r.map(function(e){return t(t
1({},e),{},{params:P(e.params||{})})});return e.transporter.read({method:v,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},ei=function(e){return function(n,a){return Promise.all(n.map(function(n){var i=n.params,o=i.facetName,s=i.facetQuery,u=r(i,["facetName","facetQuery"]);return Q(e)(n.indexName,{methods:{searchForFacetValues:eQ}}).searchForFacetValues(o,s,t(t({},a),u))}))}},eo=function(e){return function(t,r){var n=h(r);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:y,path:"1/clusters/mapping"},n)}},es=function(e){return function(t,r,n){var a=r.map(function(e){return{action:"addEntry",body:e}});return c(e.transporter.write({method:v,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:a}},n),function(t,r){return ep(e)(t.taskID,r)})}},eu=function(e){return function(t,r){return c(e.transporter.write({method:v,path:d("1/keys/%s/restore",t)},r),function(r,n){return u(function(r){return U(e)(t,n).catch(function(e){if(404!==e.status)throw e;return r()})})})}},ec=function(e){return function(t,r,n){var a=r.map(function(e){return{action:"addEntry",body:e}});return c(e.transporter.write({method:v,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},n),function(t,r){return ep(e)(t.taskID,r)})}},el=function(e){return function(t,r,n){return e.transporter.read({method:v,path:d("/1/dictionaries/%s/search",t),data:{query:r},cacheable:!0},n)}},ed=function(e){return function(t,r){return e.transporter.read({method:v,path:"1/clusters/mapping/search",data:{query:t}},r)}},ef=function(e){return function(t,r){return c(e.transporter.write({method:"PUT",path:"/1/dictionaries/*/settings",data:t},r),function(t,r){return ep(e)(t.taskID,r)})}},eh=function(e){return function(t,n){var a=Object.assign({},n),i=n||{},o=i.queryParameters,s=r(i,["queryParameters"]),l=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return c(e.transporter.write({method:"PUT",path:d("1/keys/%s",t),data:o?{queryParameters:o}:{}},s),function(r,n){return u(function(r){return U(e)(t,n).then(function(e){return Object.keys(a).filter(function(e){return -1!==l.indexOf(e)}).every(function(t){if(Array.isArray(e[t])&&Array.isArray(a[t])){var r=e[t];return r.length===a[t].length&&r.every(function(e,r){return e===a[t][r]})}return e[t]===a[t]})?Promise.resolve():r()})})})}},ep=function(e){return function(t,r){return u(function(n){return z(e)(t,r).then(function(e){return"published"!==e.status?n():void 0})})}},em=function(e){return function(t,r){return c(e.transporter.write({method:v,path:d("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),function(t,r){return e0(e)(t.taskID,r)})}},eg=function(e){return function(r){return E(t(t({shouldStop:function(e){return void 0===e.cursor}},r),{},{request:function(t){return e.transporter.read({method:v,path:d("1/indexes/%s/browse",e.indexName),data:t},r)}}))}},ey=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return E(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eX(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},ev=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return E(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eY(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},eb=function(e){return function(t,n,a){var i=a||{},o=i.batchSize,s=r(i,["batchSize"]),u={taskIDs:[],objectIDs:[]};return c(function r(){var a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=[];for(a=i;a<t.length&&(c.push(t[a]),c.length!==(o||1e3));a++);return 0===c.length?Promise.resolve(u):em(e)(c.map(function(e){return{action:n,body:e}}),s).then(function(e){return u.objectIDs=u.objectIDs.concat(e.objectIDs),u.taskIDs.push(e.taskID),r(++a)})}(),function(t,r){return Promise.all(t.taskIDs.map(function(t){return e0(e)(t,r)}))})}},ew=function(e){return function(t){return c(e.transporter.write({method:v,path:d("1/indexes/%s/clear",e.indexName)},t),function(t,r){return e0(e)(t.taskID,r)})}},eP=function(e){return function(t){var n=t||{},a=n.forwardToReplicas,i=h(r(n,["forwardToReplicas"]));return a&&(i.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:v,path:d("1/indexes/%s/rules/clear",e.indexName)},i),function(t,r){return e0(e)(t.taskID,r)})}},eT=function(e){return function(t){var n=t||{},a=n.forwardToReplicas,i=h(r(n,["forwardToReplicas"]));return a&&(i.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:v,path:d("1/indexes/%s/synonyms/clear",e.indexName)},i),function(t,r){return e0(e)(t.taskID,r)})}},eI=function(e){return function(t,r){return c(e.transporter.write({method:v,path:d("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),function(t,r){return e0(e)(t.taskID,r)})}},eR=function(e){return function(t){return c(e.transporter.write({method:y,path:d("1/indexes/%s",e.indexName)},t),function(t,r){return e0(e)(t.taskID,r)})}},eO=function(e){return function(t,r){return c(ex(e)([t],r).then(function(e){return{taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},ex=function(e){return function(t,r){var n=t.map(function(e){return{objectID:e}});return eb(e)(n,e1.DeleteObject,r)}},ej=function(e){return function(t,n){var a=n||{},i=a.forwardToReplicas,o=h(r(a,["forwardToReplicas"]));return i&&(o.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:y,path:d("1/indexes/%s/rules/%s",e.indexName,t)},o),function(t,r){return e0(e)(t.taskID,r)})}},eA=function(e){return function(t,n){var a=n||{},i=a.forwardToReplicas,o=h(r(a,["forwardToReplicas"]));return i&&(o.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:y,path:d("1/indexes/%s/synonyms/%s",e.indexName,t)},o),function(t,r){return e0(e)(t.taskID,r)})}},eS=function(e){return function(t){return e$(e)(t).then(function(){return!0}).catch(function(e){if(404!==e.status)throw e;return!1})}},ek=function(e){return function(t,r,n){return e.transporter.read({method:v,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},eE=function(e){return function(a,i){var o=i||{},s=o.query,u=o.paginate,c=r(o,["query","paginate"]),l=0;
1return function r(){return eJ(e)(s||"",t(t({},c),{},{page:l})).then(function(e){for(var t=0,i=Object.entries(e.hits);t<i.length;t++){var o=n(i[t],2),s=o[0],c=o[1];if(a(c))return{object:c,position:parseInt(s,10),page:l}}if(l++,!1===u||l>=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()})}()}},eD=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/%s",e.indexName,t)},r)}},eN=function(){return function(e,t){for(var r=0,a=Object.entries(e.hits);r<a.length;r++){var i=n(a[r],2),o=i[0];if(i[1].objectID===t)return parseInt(o,10)}return -1}},eC=function(e){return function(n,a){var i=a||{},o=i.attributesToRetrieve,s=r(i,["attributesToRetrieve"]),u=n.map(function(r){return t({indexName:e.indexName,objectID:r},o?{attributesToRetrieve:o}:{})});return e.transporter.read({method:v,path:"1/indexes/*/objects",data:{requests:u}},s)}},eq=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/rules/%s",e.indexName,t)},r)}},e$=function(e){return function(t){return e.transporter.read({method:"GET",path:d("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t)}},eB=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/synonyms/%s",e.indexName,t)},r)}},e_=function(e){return function(t,r){return c(eG(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},eG=function(e){return function(t,n){var a=n||{},i=a.createIfNotExists,o=r(a,["createIfNotExists"]),s=i?e1.PartialUpdateObject:e1.PartialUpdateObjectNoCreate;return eb(e)(t,s,o)}},eV=function(e){return function(i,o){var s=o||{},u=s.safe,l=s.autoGenerateObjectIDIfNotExist,f=s.batchSize,h=r(s,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),p=function(t,r,n,a){return c(e.transporter.write({method:v,path:d("1/indexes/%s/operation",t),data:{operation:n,destination:r}},a),function(t,r){return e0(e)(t.taskID,r)})},m=Math.random().toString(36).substring(7),g="".concat(e.indexName,"_tmp_").concat(m),y=ez({appId:e.appId,transporter:e.transporter,indexName:g}),b=[],w=p(e.indexName,g,"copy",t(t({},h),{},{scope:["settings","synonyms","rules"]}));return b.push(w),c((u?w.wait(h):w).then(function(){var e=y(i,t(t({},h),{},{autoGenerateObjectIDIfNotExist:l,batchSize:f}));return b.push(e),u?e.wait(h):e}).then(function(){var t=p(g,e.indexName,"move",h);return b.push(t),u?t.wait(h):t}).then(function(){return Promise.all(b)}).then(function(e){var t=n(e,3),r=t[0],i=t[1],o=t[2];return{objectIDs:i.objectIDs,taskIDs:[r.taskID].concat(a(i.taskIDs),[o.taskID])}}).catch(function(t){return eR({appId:e.appId,transporter:e.transporter,indexName:g})().catch(function(){}).then(function(){throw t})}),function(e,t){return Promise.all(b.map(function(e){return e.wait(t)}))})}},eL=function(e){return function(r,n){return eM(e)(r,t(t({},n),{},{clearExistingRules:!0}))}},eF=function(e){return function(r,n){return eK(e)(r,t(t({},n),{},{clearExistingSynonyms:!0}))}},eU=function(e){return function(t,r){return c(ez(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},ez=function(e){return function(t,n){var a=n||{},i=a.autoGenerateObjectIDIfNotExist,o=r(a,["autoGenerateObjectIDIfNotExist"]),s=i?e1.AddObject:e1.UpdateObject;if(s===e1.UpdateObject){var u=!0,l=!1,d=void 0;try{for(var f,h=t[Symbol.iterator]();!(u=(f=h.next()).done);u=!0)if(void 0===f.value.objectID)return c(Promise.reject({name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}))}catch(e){l=!0,d=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw d}}}return eb(e)(t,s,o)}},eH=function(e){return function(t,r){return eM(e)([t],r)}},eM=function(e){return function(t,n){var a=n||{},i=a.forwardToReplicas,o=a.clearExistingRules,s=h(r(a,["forwardToReplicas","clearExistingRules"]));return i&&(s.queryParameters.forwardToReplicas=1),o&&(s.queryParameters.clearExistingRules=1),c(e.transporter.write({method:v,path:d("1/indexes/%s/rules/batch",e.indexName),data:t},s),function(t,r){return e0(e)(t.taskID,r)})}},eW=function(e){return function(t,r){return eK(e)([t],r)}},eK=function(e){return function(t,n){var a=n||{},i=a.forwardToReplicas,o=a.clearExistingSynonyms,s=a.replaceExistingSynonyms,u=h(r(a,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return i&&(u.queryParameters.forwardToReplicas=1),(s||o)&&(u.queryParameters.replaceExistingSynonyms=1),c(e.transporter.write({method:v,path:d("1/indexes/%s/synonyms/batch",e.indexName),data:t},u),function(t,r){return e0(e)(t.taskID,r)})}},eJ=function(e){return function(t,r){return e.transporter.read({method:v,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},eQ=function(e){return function(t,r,n){return e.transporter.read({method:v,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},eX=function(e){return function(t,r){return e.transporter.read({method:v,path:d("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r)}},eY=function(e){return function(t,r){return e.transporter.read({method:v,path:d("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r)}},eZ=function(e){return function(t,n){var a=n||{},i=a.forwardToReplicas,o=h(r(a,["forwardToReplicas"]));return i&&(o.queryParameters.forwardToReplicas=1),c(e.transporter.write({method:"PUT",path:d("1/indexes/%s/settings",e.indexName),data:t},o),function(t,r){return e0(e)(t.taskID,r)})}},e0=function(e){return function(t,r){return u(function(n){return(function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/task/%s",e.indexName,t.toString())},r)})(t,r).then(function(e){return"published"!==e.status?n():void 0})})}}
1,e1={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},e2={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},e4=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:v,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},e5=function(e){return function(r,n){return e4(e)(r.map(function(e){return t(t({},e),{},{fallbackParameters:{},model:"bought-together"})}),n)}},e3=function(e){return function(r,n){return e4(e)(r.map(function(e){return t(t({},e),{},{model:"related-products"})}),n)}},e8=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{model:"trending-facets",threshold:e.threshold||0})});return e.transporter.read({method:v,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},e6=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{model:"trending-items",threshold:e.threshold||0})});return e.transporter.read({method:v,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},e7=function(e){return function(r,n){return e4(e)(r.map(function(e){return t(t({},e),{},{model:"looking-similar"})}),n)}},e9=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})});return e.transporter.read({method:v,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}};function te(e){return{name:"TransformationConfigurationError",message:e}}function tt(e,u,c){var h,m,g,y,b,P,T,I,E,eb,e2,tt,tr,tn={appId:e,apiKey:u,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return r.setRequestHeader(t,e.headers[t])});var n,a=function(e,n){return setTimeout(function(){r.abort(),t({status:0,content:n,isTimedOut:!0})},1e3*e)},i=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(i),n=a(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(i),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(i),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:function e(t){var r=a(t.caches),i=r.shift();return void 0===i?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,r.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i.get(t,n,a).catch(function(){return e({caches:r}).get(t,n,a)})},set:function(t,n){return i.set(t,n).catch(function(){return e({caches:r}).set(t,n)})},delete:function(t){return i.delete(t).catch(function(){return e({caches:r}).delete(t)})},clear:function(){return i.clear().catch(function(){return e({caches:r}).clear()})}}}({caches:[(b={key:"".concat("4.26.0","-").concat(e)},T="algoliasearch-client-js-".concat(b.key),I=function(){return void 0===P&&(P=b.localStorage||window.localStorage),P},E=function(){return JSON.parse(I().getItem(T)||"{}")},eb=function(e){I().setItem(T,JSON.stringify(e))},e2=function(){var e=b.timeToLive?1e3*b.timeToLive:null,t=E(),r=(new Date).getTime();return Object.fromEntries(Object.entries(t).filter(function(t){var a=n(t,2)[1];return!(!a||void 0===a.timestamp)&&(!e||a.timestamp+e>=r)}))},{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i().then(function(){var n=e2(),a=n[JSON.stringify(e)];return eb(n),a?a.value:t().then(function(e){return r.miss(e).then(function(){return e})})})},set:function(e,t){return i().then(function(){var r=E();return r[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},I().setItem(T,JSON.stringify(r)),t})},delete:function(e){return i().then(function(){var t=E();delete t[JSON.stringify(e)],I().setItem(T,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){I().removeItem(T)})}}),o()]}),userAgent:(tt={value:"Algolia for JavaScript (".concat("4.26.0",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===tt.value.indexOf(t)&&(tt.value="".concat(tt.value).concat(t)),tt}}).add({segment:"Browser"})},ta=t(t({},tn),c),ti=function(){return function(e){var r,n,a,i;return n=(r=t(t(t({},tn),e),{},{methods:{getPersonalizationStrategy:S,setPersonalizationStrategy:k}}
1)).region||"us",a=s(f.WithinHeaders,r.appId,r.apiKey),i=w(t(t({hosts:[{url:"personalization.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},a.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},a.queryParameters()),r.queryParameters)})),l({appId:r.appId,transporter:i},r.methods)}};if(c&&c.transformation){if(!c.transformation.region)throw te("`region` must be provided when leveraging the transformation pipeline");tr=function(e){if(!e||!e.transformation||!e.transformation.region)throw te("`region` must be provided when leveraging the transformation pipeline");if("eu"!==e.transformation.region&&"us"!==e.transformation.region)throw te("`region` is required and must be one of the following: eu, us");var r=e.appId,n=s(f.WithinHeaders,r,e.apiKey),a=w(t(t({hosts:[{url:"data.".concat(e.transformation.region,".algolia.com"),accept:p.ReadWrite,protocol:"https"}]},e),{},{headers:t(t(t({},n.headers()),{"content-type":"text/plain"}),e.headers),queryParameters:t(t({},n.queryParameters()),e.queryParameters)}));return{transporter:a,appId:r,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t}),a.userAgent.add({segment:"Ingestion",version:t}),a.userAgent.add({segment:"Ingestion via Algoliasearch"})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then(function(){})},push:function(e,r){var n=e.indexName,i=e.pushTaskPayload,o=e.watch;if(!n)throw te("Parameter `indexName` is required when calling `push`.");if(!i)throw te("Parameter `pushTaskPayload` is required when calling `push`.");if(!i.action)throw te("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!i.records)throw te("Parameter `pushTaskPayload.records` is required when calling `push`.");var s=r||{queryParameters:{}};return a.write({method:v,path:d("1/push/%s",n),data:i},t(t({},s),{},{queryParameters:t(t({},s.queryParameters),{},{watch:void 0!==o})}))}}}(t(t({},c),tn))}return m=(h=t(t({},ta),{},{methods:{search:ea,searchForFacetValues:ei,multipleBatch:er,multipleGetObjects:en,multipleQueries:ea,copyIndex:$,copySettings:_,copySynonyms:G,copyRules:B,moveIndex:et,listIndices:Z,getLogs:M,listClusters:Y,multipleSearchForFacetValues:ei,getApiKey:U,addApiKey:D,listApiKeys:X,updateApiKey:eh,deleteApiKey:L,restoreApiKey:eu,assignUserID:N,assignUserIDs:C,getUserID:K,searchUserIDs:ed,listUserIDs:ee,getTopUserIDs:W,removeUserID:eo,hasPendingMappings:J,clearDictionaryEntries:q,deleteDictionaryEntries:F,getDictionarySettings:H,getAppTask:z,replaceDictionaryEntries:es,saveDictionaryEntries:ec,searchDictionaryEntries:el,setDictionarySettings:ef,waitAppTask:ep,customRequest:V,initIndex:function(e){return function(n){var a,i;return t(t({},Q(e)(n,{methods:{batch:em,delete:eR,findAnswers:ek,getObject:eD,getObjects:eC,saveObject:eU,saveObjects:ez,search:eJ,searchForFacetValues:eQ,waitTask:e0,setSettings:eZ,getSettings:e$,partialUpdateObject:e_,partialUpdateObjects:eG,deleteObject:eO,deleteObjects:ex,deleteBy:eI,clearObjects:ew,browseObjects:eg,getObjectPosition:eN,findObject:eE,exists:eS,saveSynonym:eW,saveSynonyms:eK,getSynonym:eB,searchSynonyms:eY,browseSynonyms:ev,deleteSynonym:eA,clearSynonyms:eT,replaceAllObjects:eV,replaceAllSynonyms:eF,searchRules:eX,getRule:eq,deleteRule:ej,saveRule:eH,saveRules:eM,replaceAllRules:eL,browseRules:ey,clearRules:eP}})),{},{saveObjectsWithTransformation:(a=tr,function(e,t){if(!a)throw te("`options.transformation.region` must be provided at client instantiation before calling this method.");var i=t||{},o=i.autoGenerateObjectIDIfNotExist,s=i.watch,u=r(i,["autoGenerateObjectIDIfNotExist","watch"]),c=o?e1.AddObject:e1.UpdateObject;return a.push({indexName:n,pushTaskPayload:{action:c,records:e},watch:s},u)}),partialUpdateObjectsWithTransformation:(i=tr,function(e,t){if(!i)throw te("`options.transformation.region` must be provided at client instantiation before calling this method.");var a=t||{},o=a.createIfNotExists,s=a.watch,u=r(a,["createIfNotExists","watch"]),c=o?e1.PartialUpdateObject:e1.PartialUpdateObjectNoCreate;return i.push({indexName:n,pushTaskPayload:{action:c,records:e},watch:s},u)})})}},initAnalytics:function(){return function(e){var r,n,a,i;return n=(r=t(t(t({},tn),e),{},{methods:{addABTest:R,getABTest:x,getABTests:j,stopABTest:A,deleteABTest:O}})).region||"us",a=s(f.WithinHeaders,r.appId,r.apiKey),i=w(t(t({hosts:[{url:"analytics.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},a.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},a.queryParameters()),r.queryParameters)})),l({appId:r.appId,transporter:i},r.methods)}},initPersonalization:ti,initRecommendation:function(){return function(e){return ta.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),ti()(e)}},getRecommendations:e4,getFrequentlyBoughtTogether:e5,getLookingSimilar:e7,getRecommendedForYou:e9,getRelatedProducts:e3,getTrendingFacets:e8,getTrendingItems:e6}})).appId,g=s(void 0!==h.authMode?h.authMode:f.WithinHeaders,m,h.apiKey),l({transporter:y=w(t(t({hosts:[{url:"".concat(m,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(m,".algolia.net"),accept:p.Write}].concat(function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:"".concat(m,"-1.algolianet.com")},{url:"".concat(m,"-2.algolianet.com")},{url:"".concat(m,"-3.algolianet.com")}]))},h),{},{headers:t(t(t({},g.headers()),{"content-type":"application/x-www-form-urlencoded"}),h.headers),queryParameters:t(t({},g.queryParameters()),h.queryParameters)})),appId:m,addAlgoliaAgent:function(e,t){y.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([y.requestsCache.clear(),y.responsesCache.clear()]).then(function(){})}},h.methods)}return tt.version="4.26.0",tt}()},15600,e=>{"use strict";e.i(50461);var t=e.i(30559);let r="https://api.bazaarvoice.com/data",n="h9xguvpk04mm3enj4lr9jc1iz",a="caYjGRGuEFGSMOlwiELhhNuzNXWrQ9eHFXHNwyKVmDUJE",i="fr-CA";async function o(e,o){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&sort_Reviews=rating:desc";
1try{let l=await (0,t.default)({method:"get",url:`${r}/products.json?apiversion=5.4&passkey=${e===i?a:n}&Filter=Id:${o}&Include=Reviews,Comments&Stats=Reviews&Limit_Reviews=${s}${u}`}),d=l.data.Results[0];if(d){if(d.ReviewStatistics.AverageOverallRating){var c;let e=d.ReviewStatistics.AverageOverallRating;c=e,Number(c)===c&&c%1==0&&(e=`${e}.000001`),d.ReviewStatistics.AverageOverallRating=parseFloat(e)}d.Results=[];let e=l.data.Includes;if(e.ReviewsOrder&&e.ReviewsOrder.length>0)for(let t=0;t<e.ReviewsOrder.length;t++)d.Results.push(e.Reviews[e.ReviewsOrder[t]])}return d||{}}catch(e){return console.error(e),{}}}e.s(["authenticateReview",0,function(e,o){if(!o||"string"!=typeof o||o.length>512||!/^[a-zA-Z0-9_-]+$/.test(o))return Promise.reject(Error("Invalid auth token"));let s=e===i?a:n;return new Promise((e,n)=>{let a=`${r}/authenticateuser.json?ApiVersion=5.4&authtoken=${encodeURIComponent(o)}&PassKey=${s}`;t.default.post(a).then(t=>{e(t)}).catch(e=>{n(e)})})},"getFilterReviews",0,function(e,o,s,u,c){let l=e===i?a:n;return new Promise((e,n)=>{t.default.get(r+"/reviews.json?apiversion=5.4&passkey="+l+"&Filter=ProductId:"+o+"&Stats=Reviews&limit="+s+"&offset="+u+c).then(t=>{e(t)}).catch(e=>{n(e)})})},"getPreloadRatingReviewPerProduct",0,o,"getPreview",0,function(e,o){let s=e===i?a:n;return new Promise((e,n)=>{let a=`${r}/submitreview.json?apiversion=5.4&passKey=${s}&ProductId=${o.rating} 2 &Action=preview 3 &rating=${o.rating} 4 &reviewtext=${o.reviewText} 5 &title=${o.reviewSummary} 6 &contextdatavalue_Agemonth=${o.contextdatavalue_Agemonth} 7 &contextdatavalue_Ageyear=${o.contextdatavalue_Ageyear} 8 &rating_Quality=${o.rating_Quality} 9 &rating_Value=${o.rating_Value} 10 &usernickname=${o.userNickname} 11 &userlocation=${o.userLocation} 12 &useremail=${o.userEmail} 13 &agreedtotermsandconditions=${o.agreedToTermsAndConditions} 14 &isrecommended=${o.isRecommended} 15 &hostedauthentication_authenticationemail=${o.hostedAuthentication_AuthenticationEmail} 16 &hostedauthentication_callbackurl=${o.callBackURL} 17 &fp=${document.getElementById("ioBlackBox")?.value||""} 18 &photocaption_1=${o.photocaption_1} 19 &photourl_1=${o.photourl_1} 20 &videocaption_1=${o.videocaption_1} 21 &videourl_1=${o.videourl_1}`;t.default.post(a).then(t=>{e(t)}).catch(e=>{n(e)})})},"getPrimaryRating",0,function(e,o){let s=e===i?a:n;return new Promise((e,n)=>{let a=encodeURI(o.filter(Boolean).toString());t.default.get(r+"/products.json?apiversion=5.4&passkey="+s+"&Filter=Id:"+a+"&Stats=Reviews").then(t=>{e(t)}).catch(e=>{n(e)})})},"getReviews",0,function(e,o,s,u,c){let l=e===i?a:n;return new Promise((e,n)=>{t.default.get(r+"/reviews.json?apiversion=5.4&passkey="+l+"&Filter=ProductId:"+encodeURI(o)+"&Stats=Reviews&limit="+s+"&offset="+u+c).then(t=>{e(t)}).catch(e=>{n(e)})})},"submitFeedback",0,function(e,o){let s=e===i?a:n;return new Promise((e,n)=>{let a=`${r}/submitfeedback.json?apiversion=5.4&passKey=${s}&ContentId=${o.ContentId}&ContentType=${o.ContentType}&FeedbackType=${o.FeedbackType}&Vote=${o.Vote} 22 `;t.default.post(a).then(t=>{e(t)}).catch(function(e){n(e)})})},"submitReviews",0,function(e,o,s){let u=e===i?a:n;return new Promise((e,n)=>{let a=`${r}/submitreview.json?apiversion=5.4&passKey=${u}&ProductId=${s} 23 &Action=Submit 24 &rating=${o.rating} 25 &title=${o.reviewSummary} 26 &reviewtext=${o.reviewText} 27 &contextdatavalue_Agemonth=${o.contextdatavalue_Agemonth} 28 &contextdatavalue_Ageyear=${o.contextdatavalue_Ageyear} 29 &rating_Quality=${o.rating_Quality} 30 &isrecommended=${o.isRecommended} 31 &rating_Value=${o.rating_Value} 32 &usernickname=${o.userNickname} 33 &useremail=${o.userEmail} 34 &agreedtotermsandconditions=${o.agreedToTermsAndConditions} 35 &hostedauthentication_authenticationemail=${o.hostedAuthentication_AuthenticationEmail} 36 &hostedauthentication_callbackurl=${o.callBackURL} 37 &fp=${document.getElementById("ioBlackBox")?.value||""} 38 &photocaption_1=${o.photocaption_1} 39 &photourl_1=${o.photourl_1} 40 &videocaption_1=${o.videocaption_1} 41 &videourl_1=${o.videourl_1}`;t.default.post(a).then(t=>{e(t)}).catch(function(e){n(e)})})},"uploadReviewPhoto",0,function(e,o){let s=e===i?a:n;
41return new Promise((e,n)=>{let a=`${r}/uploadphoto.json?ApiVersion=5.4&ContentType=review&PassKey=${s}`;t.default.post(a,o,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{e(t)}).catch(e=>{n(e)})})},"uploadReviewVideo",0,function(e,o){let s=e===i?a:n;return new Promise((e,n)=>{let a=`${r}/uploadvideo.json?ApiVersion=5.4&ContentType=review&PassKey=${s}`;t.default.post(a,o,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{e(t)}).catch(e=>{n(response)})})}])},92172,e=>{"use strict";let t="HTTP_COOKIE_HELPFUL_REVIEW_";e.s(["cookieName",0,t,"readCookie",0,e=>{let r=document.cookie.split(";"),n="",a="";for(let i of r)if(n=i.split("=")[0],a=i.split("=")[1],n.trim()==`${t}${e}`.trim())return a},"setCookie",0,(e,r)=>{let n=new Date;n.setTime(n.getTime()+864e5),document.cookie=`${t}${e}=${r}; expires=" + ${n.toUTCString()} + "; path=/`}])},59736,(e,t,r)=>{t.exports={context:"https://schema.org",name:"Gillette",marketName:"Canada",locale:"CA",countryCode:"CA",languageCode:"en-CA",languageName:"English",alternateName:"Gillette Germany",url:"https://www.gillette.ca/en-ca",homepageUrl:"https://www.gillette.ca/en-ca",logo:"https://images.ctfassets.net/58qezqvlxxxi/5aG5nZgn60mrhGPQOjErAk/dcf0eee7eaf6109e736d388f23d28800/logo.png",image:"https://images.ctfassets.net/58qezqvlxxxi/5aG5nZgn60mrhGPQOjErAk/dcf0eee7eaf6109e736d388f23d28800/logo.png",description:"Gillette Canada offers razors, blades, beard care, and grooming products designed for everyday performance.",parentorganization:"Procter & Gamble",parentOrganization:"Procter & Gamble",contactPoint:{telephone:"1-800-445-5388",contactType:"Customer Service",areaServed:"CA",availableLanguage:"English"},address:{streetAddress:"P&G Place, 4711 Yonge Street, 10th Floor",addressLocality:"Toronto",addressRegion:"Ontario",postalCode:"M2N 6K8",addressCountry:"CA"},sameAs:["https://www.youtube.com/@gillette","https://www.facebook.com/gillette","https://www.instagram.com/gillette/?hl=en"]}},38448,(e,t,r)=>{t.exports={locales:["en-CA","fr-CA"],sitemapLocales:["en-ca","fr-ca"],mobileBreakpoint:991,mobileLandscapte:667,tabletLandscapte:768,searchResultCount:5,transparentHeaderPages:["HeatedRazorPage"],BreadcrumbAtFooterPage:["HeatedRazorPage","SpareBladesPage"],PLPStore:{per_page:12,sort_field:"featuredSort",sort_direction:"asc"},searchBoxPerPage:100}},78665,(e,t,r)=>{t.exports={bazaarvoice:{preloadConfig:{numberOfReviews:3,sortQuery:"&sort_Reviews=rating:desc"},preloadEnabled:!0,FeedbackType:"helpfulness",ContentType:"review",Positive:"Positive",Negative:"Negative"},contentType:{contentPage:"contentPage",kcgHomeData:"KcgHomePage",productPage:"productDetailPage",articleListPage:"articleListPage",articlePage:"articlePage",productListPage:"productListPage",writeReviewPage:"writeReviewPage",homePage:"homePage",countrySelectorPage:"countrySelector",productRegistrationForm:"productRegistrationForm",layout:"layout",siteMap:"siteMap",aboutPage:"aboutPage",contactUs:"contactUs",shaveAdvisor:"asesor-de-afeitada",searchPage:"searchPage",favPage:"favPage",faqPage:"faqPage",heatedRazorPage:"heatedRazor",spareBlades:"spareBlades",ingredientGlossary:"IngredientGlossaryPage",familyPage:"familyPage"},pageTypes:{HOME:"Home",PRODUCT:"Product",ARTICLE:"Article",STORY:"Brand Experience",CONTENT_PAGE:"Brand Experience",PRODUCT_LISTING:"Product Listing",WRITE_REVIEW:"write a review",ARTICLE_LISTING:"Article Section",ARTICLE_CATEGORY:"Article Topic",COLLECTION_LISTING:"Collection Listing",COLLECTION_DETAILS:"Collection Details",LOGIN:"Login",REGISTRATION:"Registration",SITEMAP:"Sitemap",ABOUT:"Brand Experience",SEARCH:"Product Search",REVIEW_PAGE:"write a review"},pageSlug:{home:{breadCrumbTitle:"Home"},"compare-products":{breadCrumbTitle:"Compare Products"},"write-review":{breadCrumbTitle:"Write Review"},"contact-us":{breadCrumbTitle:"Contact us"},sitemap:{breadCrumbTitle:"Sitemap"},search:{breadCrumbTitle:"Search"}}}},10121,(e,t,r)=>{t.exports={customJsonstringify:e=>e&&JSON.stringify(e).replace(/([&"'<>])/g,e=>{switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return'"';case"'":return"'";default:return e}})}},35884,e=>{"use strict";function t(){let e=new Uint32Array(1);return window.crypto.getRandomValues(e),e[0]}e.s(["InpFix",0,(e,t)=>{let r=e.includes("buy_now")?"event_bin_action":"event_informational_action";setTimeout(()=>{window&&window?.dataLayer?.push({event:"customEvent",GAeventAction:e,GAeventLabel:t,GAeventCategory:r,GAeventNonInteraction:!1,GAeventValue:0})},0)},"MediaDimesioner",0,(e,t,r)=>e?t:r,"bannerImgUrl",0,(e,t)=>e?t&&t.desktopImage&&t.desktopImage.url:t&&t.smartphoneImage&&t.smartphoneImage.url,"getBuyNowLiteBlueArrows",0,(e,t,r)=>
41"KCGBuynow"!==e&&"BlueTemplate"!==e&&"gillettelabsbuynow"!==e&&"plainButton"!==e&&"outlineButtonBlueBgWhiteArrow"!==e&&"newPDP"!==e&&!t&&!r,"getBuyNowLiteButtonVariant",0,(e,t,r)=>e?"KCGBuynow":t&&e?"heatedRazorLastFold":t?"heatedRazorBuyNow":"BlueTemplate"===r||"gillettelabsbuynow"===r?"outlineButtonWhiteArrow":"plainButton"===r?"plainButton":"relaredCard"===r?"outlineButtonBlueArrow":"PLPCard"===r?"outlineButtonBlueArrowPLP":"WhiteTemplate"===r?"outlineButtonWhiteBgBlueArrow":"migbuttoncarousel"===r?"migbuttoncarousel":"outlineButtonBlueBgWhiteArrow","getBuyNowLiteWhiteArrows",0,(e,t,r)=>"KCGBuynow"===e||"BlueTemplate"===e||"gillettelabsbuynow"===e||"outlineButtonBlueBgWhiteArrow"===e||"newPDP"===e||!t&&r,"randomNumber",0,()=>Math.floor(10*t()+1),"randomValue",0,()=>t(),"searchStoreTotalProductArticleCount",0,(e,t)=>e?"0"+t:t])},82189,e=>{"use strict";var t=e.i(57792),r=e.i(15600),n=e.i(11944),a=e.i(78665),i=e.i(92172);class o{constructor(){(0,t.makeAutoObservable)(this)}limit=5;offset=0;sortValue="Rating:desc";selectedVariant={heroImage:{},iconImage:{},gtin:"",variantName:"",enable:!1};isSelected=!1;showMessage=!1;filterValue="0";initReviewState=!1;filterModel=[{name:"HairType",values:[n.default.hairTypeFine,n.default.hairTypeNormalThick,n.default.hairTypeCurly,n.default.hairTypeStraight,n.default.hairTypeRelaxed,n.default.hairTypeNatural],defaultValue:"",defaultDisplayValue:n.default.selectHairType},{name:"HairLength",values:[n.default.hairLengthShort,n.default.hairLengthMedium,n.default.hairLengthLong],defaultValue:"",defaultDisplayValue:n.default.selectHairLength},{name:"HairNeed",values:[n.default.hairNeedDry,n.default.hairNeedOily,n.default.hairNeedColorTreated,n.default.hairNeedAgingHair],defaultValue:"",defaultDisplayValue:n.default.selectHairNeed}];filters={HairLength:"",HairNeed:"",HairType:""};ratingData="";reviewData="";sortFilterValue="&sort=Rating:desc";reviewItemId="";defaultGtin="";preloadBVReviews=!1;primaryRating=e=>{this.getPrimaryRatingData(e).then(e=>{e&&e.data&&e.data.Results[0]&&(this.ratingData=e.data.Results[0])}).catch(e=>{console.error(e)})};setVariant=e=>{this.selectedVariant.gtin=e.gtin,this.selectedVariant.heroImage=e.heroImage,this.selectedVariant.iconImage=e.iconImage,this.selectedVariant.enable=this.selectedVariant.variantName!==e.variantName||!this.selectedVariant.enable,this.selectedVariant.variantName=this.selectedVariant.variantName===e.variantName?"":e.variantName,!1===this.selectedVariant.enable&&(this.selectedVariant.gtin=this.defaultGtin,this.showMessage=!1)};resetVariant=()=>{this.selectedVariant.gtin="",this.selectedVariant.heroImage={},this.selectedVariant.iconImage={},this.selectedVariant.enable=!1,this.selectedVariant.variantName="",this.showMessage=!1};initialiseVariant=e=>{this.selectedVariant.gtin=e,this.defaultGtin=e};showErrorMessage=()=>{this.selectedVariant.enable||(this.showMessage=!0)};getPrimaryRatingData=e=>new Promise((t,n)=>{(0,r.getPrimaryRating)(e).then(e=>{t(e)}).catch(e=>{n(e)})});getInitStatus=(e,t)=>{!this.initReviewState&&t&&t.TotalReviewCount>0&&e&&e.TotalReviewCount>0&&(this.initReviewState=!0)};getReviewsByID=(e,t)=>{(0,r.getReviews)(e,t,this.limit,this.offset,this.sortFilterValue).then(e=>{""!==this.ratingData&&e&&e.data&&(this.reviewData={Results:e.data.Results,TotalReviewCount:e.data.TotalResults})})};getSortFilterString=()=>{let e="";return Object.keys(this.filters).forEach(t=>{this.filters[t]&&(e+=`&Filter=ContextDataValue_${t}:eq:${this.filters[t]}`)}),e+=`&sort=${s.sortValue}`};setFilter=(e,t)=>{this.filters[e]=t};setSort=e=>{this.sortValue=e};loadMoreReviews=(e,t)=>{let n=this.offset+this.limit;this.offset=n,(0,r.getReviews)(e,t,this.limit,n,this.sortFilterValue).then(e=>{this.reviewData.Results=this.reviewData.Results.concat(e.data.Results),this.limit=e.data.Limit})};onChangeSortFilter=(e,t,r)=>{this.limit=a.default.bazaarvoice.preloadConfig.numberOfReviews,this.offset=0,this.sortFilterValue=e,this.productReviewFilter(t,r,this.limit,this.offset,e)};productReviewFilter=(e,t,n,a,i)=>{(0,r.getFilterReviews)(e,t,n,a,i).then(e=>{this.reviewData={Results:e.data.Results,TotalReviewCount:e.data.TotalResults}})};submitFeedbackByID=(e,t,n)=>{let o={};o={ContentId:t,ContentType:a.default.bazaarvoice.ContentType,FeedbackType:a.default.bazaarvoice.FeedbackType,Vote:e,localeVal:n},(0,r.submitFeedback)(o),e===a.default.bazaarvoice.Positive?(this.reviewItemId=t,(0,i.setCookie)(t,t)):this.reviewItemId=0};getPreloadConfig=()=>{this.preloadBVReviews=a.default.bazaarvoice.preloadEnabled,this.limit=a.default.bazaarvoice.preloadConfig.numberOfReviews}}let s=new o;e.s(["default",0,s])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.