@coveo/headless 3.25.0-pre.b04a573cd9 → 3.25.0-pre.befd28e8fb

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.
Files changed (34) hide show
  1. package/dist/browser/case-assist/headless.esm.js +1 -1
  2. package/dist/browser/case-assist/headless.js +1 -1
  3. package/dist/browser/commerce/headless.esm.js +1 -1
  4. package/dist/browser/commerce/headless.js +1 -1
  5. package/dist/browser/headless.esm.js +1 -1
  6. package/dist/browser/headless.js +1 -1
  7. package/dist/browser/insight/headless.esm.js +1 -1
  8. package/dist/browser/insight/headless.js +1 -1
  9. package/dist/browser/recommendation/headless.esm.js +1 -1
  10. package/dist/browser/recommendation/headless.js +1 -1
  11. package/dist/browser/ssr/headless.esm.js +1 -1
  12. package/dist/browser/ssr/headless.js +1 -1
  13. package/dist/browser/ssr-commerce/headless.esm.js +1 -1
  14. package/dist/browser/ssr-commerce/headless.js +1 -1
  15. package/dist/case-assist/headless.cjs +1 -1
  16. package/dist/case-assist/headless.esm.js +1 -1
  17. package/dist/commerce/headless.cjs +1 -1
  18. package/dist/commerce/headless.esm.js +1 -1
  19. package/dist/headless.cjs +1 -1
  20. package/dist/headless.esm.js +1 -1
  21. package/dist/insight/headless.cjs +1 -1
  22. package/dist/insight/headless.esm.js +1 -1
  23. package/dist/quantic/case-assist/headless.js +1 -1
  24. package/dist/quantic/commerce/headless.js +1 -1
  25. package/dist/quantic/headless.js +1 -1
  26. package/dist/quantic/insight/headless.js +1 -1
  27. package/dist/quantic/recommendation/headless.js +1 -1
  28. package/dist/recommendation/headless.cjs +1 -1
  29. package/dist/recommendation/headless.esm.js +1 -1
  30. package/dist/ssr/headless.cjs +1 -1
  31. package/dist/ssr/headless.esm.js +1 -1
  32. package/dist/ssr-commerce/headless.cjs +1 -1
  33. package/dist/ssr-commerce/headless.esm.js +1 -1
  34. package/package.json +1 -1
@@ -15,7 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- var gd=Object.create;var Ao=Object.defineProperty;var hd=Object.getOwnPropertyDescriptor;var yd=Object.getOwnPropertyNames;var Sd=Object.getPrototypeOf,vd=Object.prototype.hasOwnProperty;var Cd=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ad=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yd(t))!vd.call(e,o)&&o!==r&&Ao(e,o,{get:()=>t[o],enumerable:!(n=hd(t,o))||n.enumerable});return e};var Pe=(e,t,r)=>(r=e!=null?gd(Sd(e)):{},Ad(t||!e||!e.__esModule?Ao(r,"default",{value:e,enumerable:!0}):r,e));var ue=(e,t,r)=>Cd(e,typeof t!="symbol"?t+"":t,r);var ks=oe(ir=>{"use strict";var Ur=ir&&ir.__assign||function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ur.apply(this,arguments)};Object.defineProperty(ir,"__esModule",{value:!0});var bd={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function wd(e){var t=Ur(Ur({},bd),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}ir.getSanitizedOptions=wd});var Ps=oe(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});function xd(e){var t=Math.random()*e;return Math.round(t)}bo.fullJitter=xd});var Ts=oe(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});function Rd(e){return e}wo.noJitter=Rd});var Fs=oe(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var Id=Ps(),Ed=Ts();function kd(e){switch(e.jitter){case"full":return Id.fullJitter;case"none":default:return Ed.noJitter}}xo.JitterFactory=kd});var Io=oe(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var Pd=Fs(),Td=function(){function e(t){this.options=t,this.attempt=0}return e.prototype.apply=function(){var t=this;return new Promise(function(r){return setTimeout(r,t.jitteredDelay)})},e.prototype.setAttemptNumber=function(t){this.attempt=t},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){var t=Pd.JitterFactory(this.options);return t(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var t=this.options.startingDelay,r=this.options.timeMultiple,n=this.numOfDelayedAttempts,o=t*Math.pow(r,n);return Math.min(o,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();Ro.Delay=Td});var Os=oe(Le=>{"use strict";var Fd=Le&&Le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Od=Le&&Le.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Dd=Le&&Le.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(d){return u([a,d])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Le,"__esModule",{value:!0});var Md=Io(),Nd=function(e){Fd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.apply=function(){return Od(this,void 0,void 0,function(){return Dd(this,function(r){return[2,this.isFirstAttempt?!0:e.prototype.apply.call(this)]})})},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return this.attempt===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(Md.Delay);Le.SkipFirstDelay=Nd});var Ds=oe(sr=>{"use strict";var qd=sr&&sr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sr,"__esModule",{value:!0});var _d=Io(),Ld=function(e){qd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(_d.Delay);sr.AlwaysDelay=Ld});var Ms=oe(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var Ud=Os(),jd=Ds();function Vd(e,t){var r=Bd(e);return r.setAttemptNumber(t),r}Eo.DelayFactory=Vd;function Bd(e){return e.delayFirstAttempt?new jd.AlwaysDelay(e):new Ud.SkipFirstDelay(e)}});var Ns=oe(ft=>{"use strict";var ko=ft&&ft.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Po=ft&&ft.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(d){return u([a,d])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(ft,"__esModule",{value:!0});var Qd=ks(),$d=Ms();function Hd(e,t){return t===void 0&&(t={}),ko(this,void 0,void 0,function(){var r,n;return Po(this,function(o){switch(o.label){case 0:return r=Qd.getSanitizedOptions(t),n=new zd(e,r),[4,n.execute()];case 1:return[2,o.sent()]}})})}ft.backOff=Hd;var zd=function(){function e(t,r){this.request=t,this.options=r,this.attemptNumber=0}return e.prototype.execute=function(){return ko(this,void 0,void 0,function(){var t,r;return Po(this,function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,7];n.label=1;case 1:return n.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return n.sent(),[4,this.request()];case 3:return[2,n.sent()];case 4:return t=n.sent(),this.attemptNumber++,[4,this.options.retry(t,this.attemptNumber)];case 5:if(r=n.sent(),!r||this.attemptLimitReached)throw t;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return ko(this,void 0,void 0,function(){var t;return Po(this,function(r){switch(r.label){case 0:return t=$d.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var Ln=oe((_i,Li)=>{"use strict";(function(e,t){typeof _i=="object"&&typeof Li<"u"?Li.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(_i,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",c="day",u="week",a="month",d="quarter",p="year",f="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var T=["th","st","nd","rd"],P=O%100;return"["+O+(T[(P-20)%10]||T[P]||T[0])+"]"}},h=function(O,T,P){var D=String(O);return!D||D.length>=T?O:""+Array(T+1-D.length).join(P)+O},b={s:h,z:function(O){var T=-O.utcOffset(),P=Math.abs(T),D=Math.floor(P/60),F=P%60;return(T<=0?"+":"-")+h(D,2,"0")+":"+h(F,2,"0")},m:function O(T,P){if(T.date()<P.date())return-O(P,T);var D=12*(P.year()-T.year())+(P.month()-T.month()),F=T.clone().add(D,a),q=P-F<0,_=T.clone().add(D+(q?-1:1),a);return+(-(D+(P-F)/(q?F-_:_-F))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:a,y:p,w:u,d:c,D:f,h:s,m:i,s:o,ms:n,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},g="en",y={};y[g]=v;var E="$isDayjsObject",w=function(O){return O instanceof k||!(!O||!O[E])},S=function O(T,P,D){var F;if(!T)return g;if(typeof T=="string"){var q=T.toLowerCase();y[q]&&(F=q),P&&(y[q]=P,F=q);var _=T.split("-");if(!F&&_.length>1)return O(_[0])}else{var U=T.name;y[U]=T,F=U}return!D&&F&&(g=F),F||!D&&g},A=function(O,T){if(w(O))return O.clone();var P=typeof T=="object"?T:{};return P.date=O,P.args=arguments,new k(P)},x=b;x.l=S,x.i=w,x.w=function(O,T){return A(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var k=function(){function O(P){this.$L=S(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[E]=!0}var T=O.prototype;return T.parse=function(P){this.$d=function(D){var F=D.date,q=D.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var _=F.match(m);if(_){var U=_[2]-1||0,B=(_[7]||"0").substring(0,3);return q?new Date(Date.UTC(_[1],U,_[3]||1,_[4]||0,_[5]||0,_[6]||0,B)):new Date(_[1],U,_[3]||1,_[4]||0,_[5]||0,_[6]||0,B)}}return new Date(F)}(P),this.init()},T.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},T.$utils=function(){return x},T.isValid=function(){return this.$d.toString()!==l},T.isSame=function(P,D){var F=A(P);return this.startOf(D)<=F&&F<=this.endOf(D)},T.isAfter=function(P,D){return A(P)<this.startOf(D)},T.isBefore=function(P,D){return this.endOf(D)<A(P)},T.$g=function(P,D,F){return x.u(P)?this[D]:this.set(F,P)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(P,D){var F=this,q=!!x.u(D)||D,_=x.p(P),U=function(K,J){var Z=x.w(F.$u?Date.UTC(F.$y,J,K):new Date(F.$y,J,K),F);return q?Z:Z.endOf(c)},B=function(K,J){return x.w(F.toDate()[K].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(J)),F)},G=this.$W,V=this.$M,Q=this.$D,j="set"+(this.$u?"UTC":"");switch(_){case p:return q?U(1,0):U(31,11);case a:return q?U(1,V):U(0,V+1);case u:var H=this.$locale().weekStart||0,X=(G<H?G+7:G)-H;return U(q?Q-X:Q+(6-X),V);case c:case f:return B(j+"Hours",0);case s:return B(j+"Minutes",1);case i:return B(j+"Seconds",2);case o:return B(j+"Milliseconds",3);default:return this.clone()}},T.endOf=function(P){return this.startOf(P,!1)},T.$set=function(P,D){var F,q=x.p(P),_="set"+(this.$u?"UTC":""),U=(F={},F[c]=_+"Date",F[f]=_+"Date",F[a]=_+"Month",F[p]=_+"FullYear",F[s]=_+"Hours",F[i]=_+"Minutes",F[o]=_+"Seconds",F[n]=_+"Milliseconds",F)[q],B=q===c?this.$D+(D-this.$W):D;if(q===a||q===p){var G=this.clone().set(f,1);G.$d[U](B),G.init(),this.$d=G.set(f,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](B);return this.init(),this},T.set=function(P,D){return this.clone().$set(P,D)},T.get=function(P){return this[x.p(P)]()},T.add=function(P,D){var F,q=this;P=Number(P);var _=x.p(D),U=function(V){var Q=A(q);return x.w(Q.date(Q.date()+Math.round(V*P)),q)};if(_===a)return this.set(a,this.$M+P);if(_===p)return this.set(p,this.$y+P);if(_===c)return U(1);if(_===u)return U(7);var B=(F={},F[i]=t,F[s]=r,F[o]=e,F)[_]||1,G=this.$d.getTime()+P*B;return x.w(G,this)},T.subtract=function(P,D){return this.add(-1*P,D)},T.format=function(P){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||l;var q=P||"YYYY-MM-DDTHH:mm:ssZ",_=x.z(this),U=this.$H,B=this.$m,G=this.$M,V=F.weekdays,Q=F.months,j=F.meridiem,H=function(J,Z,pe,Ae){return J&&(J[Z]||J(D,q))||pe[Z].slice(0,Ae)},X=function(J){return x.s(U%12||12,J,"0")},K=j||function(J,Z,pe){var Ae=J<12?"AM":"PM";return pe?Ae.toLowerCase():Ae};return q.replace(C,function(J,Z){return Z||function(pe){switch(pe){case"YY":return String(D.$y).slice(-2);case"YYYY":return x.s(D.$y,4,"0");case"M":return G+1;case"MM":return x.s(G+1,2,"0");case"MMM":return H(F.monthsShort,G,Q,3);case"MMMM":return H(Q,G);case"D":return D.$D;case"DD":return x.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return H(F.weekdaysMin,D.$W,V,2);case"ddd":return H(F.weekdaysShort,D.$W,V,3);case"dddd":return V[D.$W];case"H":return String(U);case"HH":return x.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return K(U,B,!0);case"A":return K(U,B,!1);case"m":return String(B);case"mm":return x.s(B,2,"0");case"s":return String(D.$s);case"ss":return x.s(D.$s,2,"0");case"SSS":return x.s(D.$ms,3,"0");case"Z":return _}return null}(J)||_.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(P,D,F){var q,_=this,U=x.p(D),B=A(P),G=(B.utcOffset()-this.utcOffset())*t,V=this-B,Q=function(){return x.m(_,B)};switch(U){case p:q=Q()/12;break;case a:q=Q();break;case d:q=Q()/3;break;case u:q=(V-G)/6048e5;break;case c:q=(V-G)/864e5;break;case s:q=V/r;break;case i:q=V/t;break;case o:q=V/e;break;default:q=V}return F?q:x.a(q)},T.daysInMonth=function(){return this.endOf(a).$D},T.$locale=function(){return y[this.$L]},T.locale=function(P,D){if(!P)return this.$L;var F=this.clone(),q=S(P,D,!0);return q&&(F.$L=q),F},T.clone=function(){return x.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},O}(),M=k.prototype;return A.prototype=M,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",c],["$M",a],["$y",p],["$D",f]].forEach(function(O){M[O[1]]=function(T){return this.$g(T,O[0],O[1])}}),A.extend=function(O,T){return O.$i||(O(T,k,A),O.$i=!0),A},A.locale=S,A.isDayjs=w,A.unix=function(O){return A(1e3*O)},A.en=y[g],A.Ls=y,A.p={},A})});var Xc=oe((Ui,ji)=>{"use strict";(function(e,t){typeof Ui=="object"&&typeof ji<"u"?ji.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(Ui,function(){"use strict";var e="month",t="quarter";return function(r,n){var o=n.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var i=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===t?this.add(3*c,e):i.bind(this)(c,u)};var s=o.startOf;o.startOf=function(c,u){var a=this.$utils(),d=!!a.u(u)||u;if(a.p(c)===t){var p=this.quarter()-1;return d?this.month(3*p).startOf(e).startOf("day"):this.month(3*p+2).endOf(e).endOf("day")}return s.bind(this)(c,u)}}})});var Zc=oe((Vi,Bi)=>{"use strict";(function(e,t){typeof Vi=="object"&&typeof Bi<"u"?Bi.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Vi,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(C){this[m]=+C}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var v=C.match(/([+-]|\d\d)/g),h=60*v[1]+(+v[2]||0);return h===0?0:v[0]==="+"?-h:h}(m)}],d=function(m){var C=s[m];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(m,C){var v,h=s.meridiem;if(h){for(var b=1;b<=24;b+=1)if(m.indexOf(h(b,0,C))>-1){v=b>12;break}}else v=m===(C?"pm":"PM");return v},f={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[n,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[n,u("day")],Do:[i,function(m){var C=s.ordinal,v=m.match(/\d+/);if(this.day=v[0],C)for(var h=1;h<=31;h+=1)C(h).replace(/\[|\]/g,"")===m&&(this.day=h)}],w:[o,u("week")],ww:[n,u("week")],M:[o,u("month")],MM:[n,u("month")],MMM:[i,function(m){var C=d("months"),v=(d("monthsShort")||C.map(function(h){return h.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(m){var C=d("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:a,ZZ:a};function l(m){var C,v;C=m,v=s&&s.formats;for(var h=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,x,k){var M=k&&k.toUpperCase();return x||v[k]||e[k]||v[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,T,P){return T||P.slice(1)})})).match(t),b=h.length,g=0;g<b;g+=1){var y=h[g],E=f[y],w=E&&E[0],S=E&&E[1];h[g]=S?{regex:w,parser:S}:y.replace(/^\[|\]$/g,"")}return function(A){for(var x={},k=0,M=0;k<b;k+=1){var O=h[k];if(typeof O=="string")M+=O.length;else{var T=O.regex,P=O.parser,D=A.slice(M),F=T.exec(D)[0];P.call(x,F),A=A.replace(F,"")}}return function(q){var _=q.afternoon;if(_!==void 0){var U=q.hours;_?U<12&&(q.hours+=12):U===12&&(q.hours=0),delete q.afternoon}}(x),x}}return function(m,C,v){v.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var h=C.prototype,b=h.parse;h.parse=function(g){var y=g.date,E=g.utc,w=g.args;this.$u=E;var S=w[1];if(typeof S=="string"){var A=w[2]===!0,x=w[3]===!0,k=A||x,M=w[2];x&&(M=w[2]),s=this.$locale(),!A&&M&&(s=v.Ls[M]),this.$d=function(D,F,q,_){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*D);var U=l(F)(D),B=U.year,G=U.month,V=U.day,Q=U.hours,j=U.minutes,H=U.seconds,X=U.milliseconds,K=U.zone,J=U.week,Z=new Date,pe=V||(B||G?1:Z.getDate()),Ae=B||Z.getFullYear(),Ge=0;B&&!G||(Ge=G>0?G-1:Z.getMonth());var It,Et=Q||0,or=j||0,vo=H||0,Co=X||0;return K?new Date(Date.UTC(Ae,Ge,pe,Et,or,vo,Co+60*K.offset*1e3)):q?new Date(Date.UTC(Ae,Ge,pe,Et,or,vo,Co)):(It=new Date(Ae,Ge,pe,Et,or,vo,Co),J&&(It=_(It).week(J).toDate()),It)}catch{return new Date("")}}(y,S,E,v),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),k&&y!=this.format(S)&&(this.$d=new Date("")),s={}}else if(S instanceof Array)for(var O=S.length,T=1;T<=O;T+=1){w[1]=S[T-1];var P=v.apply(this,w);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}T===O&&(this.$d=new Date(""))}else b.call(this,g)}}})});var $u=oe((ZR,Qu)=>{"use strict";var ny=/(^|; )Coveo-Pendragon=([^;]*)/;Qu.exports=()=>ny.exec(document.cookie)?.pop()||null});var zu=oe((cs,us)=>{"use strict";(function(e,t){typeof cs=="object"&&typeof us<"u"?us.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(cs,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,o){var i,s=function(d,p,f){f===void 0&&(f={});var l=new Date(d),m=function(C,v){v===void 0&&(v={});var h=v.timeZoneName||"short",b=C+"|"+h,g=t[b];return g||(g=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:h}),t[b]=g),g}(p,f);return m.formatToParts(l)},c=function(d,p){for(var f=s(d,p),l=[],m=0;m<f.length;m+=1){var C=f[m],v=C.type,h=C.value,b=e[v];b>=0&&(l[b]=parseInt(h,10))}var g=l[3],y=g===24?0:g,E=l[0]+"-"+l[1]+"-"+l[2]+" "+y+":"+l[4]+":"+l[5]+":000",w=+d;return(o.utc(E).valueOf()-(w-=w%1e3))/6e4},u=n.prototype;u.tz=function(d,p){d===void 0&&(d=i);var f,l=this.utcOffset(),m=this.toDate(),C=m.toLocaleString("en-US",{timeZone:d}),v=Math.round((m-new Date(C))/1e3/60),h=15*-Math.round(m.getTimezoneOffset()/15)-v;if(!Number(h))f=this.utcOffset(0,p);else if(f=o(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(h,!0),p){var b=f.utcOffset();f=f.add(l-b,"minute")}return f.$x.$timezone=d,f},u.offsetName=function(d){var p=this.$x.$timezone||o.tz.guess(),f=s(this.valueOf(),p,{timeZoneName:d}).find(function(l){return l.type.toLowerCase()==="timezonename"});return f&&f.value};var a=u.startOf;u.startOf=function(d,p){if(!this.$x||!this.$x.$timezone)return a.call(this,d,p);var f=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(f,d,p).tz(this.$x.$timezone,!0)},o.tz=function(d,p,f){var l=f&&p,m=f||p||i,C=c(+o(),m);if(typeof d!="string")return o(d).tz(m);var v=function(y,E,w){var S=y-60*E*1e3,A=c(S,w);if(E===A)return[S,E];var x=c(S-=60*(A-E)*1e3,w);return A===x?[S,A]:[y-60*Math.min(A,x)*1e3,Math.max(A,x)]}(o.utc(d,l).valueOf(),C,m),h=v[0],b=v[1],g=o(h).utcOffset(b);return g.$x.$timezone=m,g},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(d){i=d}}})});var Gu=oe((ls,ds)=>{"use strict";(function(e,t){typeof ls=="object"&&typeof ds<"u"?ds.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t()})(ls,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var s=o.prototype;i.utc=function(l){var m={date:l,utc:!0,args:arguments};return new o(m)},s.utc=function(l){var m=i(this.toDate(),{locale:this.$L,utc:!0});return l?m.add(this.utcOffset(),e):m},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var c=s.parse;s.parse=function(l){l.utc&&(this.$u=!0),this.$utils().u(l.$offset)||(this.$offset=l.$offset),c.call(this,l)};var u=s.init;s.init=function(){if(this.$u){var l=this.$d;this.$y=l.getUTCFullYear(),this.$M=l.getUTCMonth(),this.$D=l.getUTCDate(),this.$W=l.getUTCDay(),this.$H=l.getUTCHours(),this.$m=l.getUTCMinutes(),this.$s=l.getUTCSeconds(),this.$ms=l.getUTCMilliseconds()}else u.call(this)};var a=s.utcOffset;s.utcOffset=function(l,m){var C=this.$utils().u;if(C(l))return this.$u?0:C(this.$offset)?a.call(this):this.$offset;if(typeof l=="string"&&(l=function(g){g===void 0&&(g="");var y=g.match(t);if(!y)return null;var E=(""+y[0]).match(r)||["-",0,0],w=E[0],S=60*+E[1]+ +E[2];return S===0?0:w==="+"?S:-S}(l),l===null))return this;var v=Math.abs(l)<=16?60*l:l,h=this;if(m)return h.$offset=v,h.$u=l===0,h;if(l!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(h=this.local().add(v+b,e)).$offset=v,h.$x.$localOffset=b}else h=this.utc();return h};var d=s.format;s.format=function(l){var m=l||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,m)},s.valueOf=function(){var l=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*l},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var p=s.toDate;s.toDate=function(l){return l==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=s.diff;s.diff=function(l,m,C){if(l&&this.$u===l.$u)return f.call(this,l,m,C);var v=this.local(),h=i(l).local();return f.call(v,h,m,C)}}})});var cl=oe((aE,al)=>{"use strict";function hy(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}al.exports=yy;function yy(e,t,r){var n=r&&r.stringify||hy,o=1;if(typeof e=="object"&&e!==null){var i=t.length+o;if(i===1)return e;var s=new Array(i);s[0]=n(e);for(var c=1;c<i;c++)s[c]=n(t[c]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var a="",d=1-o,p=-1,f=e&&e.length||0,l=0;l<f;){if(e.charCodeAt(l)===37&&l+1<f){switch(p=p>-1?p:0,e.charCodeAt(l+1)){case 100:case 102:if(d>=u||t[d]==null)break;p<l&&(a+=e.slice(p,l)),a+=Number(t[d]),p=l+2,l++;break;case 105:if(d>=u||t[d]==null)break;p<l&&(a+=e.slice(p,l)),a+=Math.floor(Number(t[d])),p=l+2,l++;break;case 79:case 111:case 106:if(d>=u||t[d]===void 0)break;p<l&&(a+=e.slice(p,l));var m=typeof t[d];if(m==="string"){a+="'"+t[d]+"'",p=l+2,l++;break}if(m==="function"){a+=t[d].name||"<anonymous>",p=l+2,l++;break}a+=n(t[d]),p=l+2,l++;break;case 115:if(d>=u)break;p<l&&(a+=e.slice(p,l)),a+=String(t[d]),p=l+2,l++;break;case 37:p<l&&(a+=e.slice(p,l)),a+="%",p=l+2,l++,d--;break}++d}++l}return p===-1?e:(p<f&&(a+=e.slice(p)),a)}});var ml=oe((cE,Kn)=>{"use strict";var ul=cl();Kn.exports=$e;var qr=Oy().console||{},Sy={mapHttpRequest:Wn,mapHttpResponse:Wn,wrapRequestSerializer:ps,wrapResponseSerializer:ps,wrapErrorSerializer:ps,req:Wn,res:Wn,err:dl,errWithCause:dl};function nt(e,t){return e==="silent"?1/0:t.levels.values[e]}var gs=Symbol("pino.logFuncs"),fs=Symbol("pino.hierarchy"),vy={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function ll(e,t){let r={logger:t,parent:e[fs]};t[fs]=r}function Cy(e,t,r){let n={};t.forEach(o=>{n[o]=r[o]?r[o]:qr[o]||qr[vy[o]||"log"]||Xt}),e[gs]=n}function Ay(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function $e(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||qr;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=Ay(e.browser.serialize,n),i=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=Object.keys(e.customLevels||{}),c=["error","fatal","warn","info","debug","trace"].concat(s);typeof r=="function"&&c.forEach(function(C){r[C]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let u=e.level||"info",a=Object.create(r);a.log||(a.log=Xt),Cy(a,c,r),ll({},a),Object.defineProperty(a,"levelVal",{get:p}),Object.defineProperty(a,"level",{get:f,set:l});let d={transmit:t,serialize:o,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:c,timestamp:Py(e),messageKey:e.messageKey||"msg",onChild:e.onChild||Xt};a.levels=by(e),a.level=u,a.setMaxListeners=a.getMaxListeners=a.emit=a.addListener=a.on=a.prependListener=a.once=a.prependOnceListener=a.removeListener=a.removeAllListeners=a.listeners=a.listenerCount=a.eventNames=a.write=a.flush=Xt,a.serializers=n,a._serialize=o,a._stdErrSerialize=i,a.child=function(...C){return m.call(this,d,...C)},t&&(a._logEvent=ms());function p(){return nt(this.level,this)}function f(){return this._level}function l(C){if(C!=="silent"&&!this.levels.values[C])throw Error("unknown level "+C);this._level=C,xt(this,d,a,"error"),xt(this,d,a,"fatal"),xt(this,d,a,"warn"),xt(this,d,a,"info"),xt(this,d,a,"debug"),xt(this,d,a,"trace"),s.forEach(v=>{xt(this,d,a,v)})}function m(C,v,h){if(!v)throw new Error("missing bindings for child Pino");h=h||{},o&&v.serializers&&(h.serializers=v.serializers);let b=h.serializers;if(o&&b){var g=Object.assign({},n,b),y=e.browser.serialize===!0?Object.keys(g):o;delete v.serializers,hs([v],y,g,this._stdErrSerialize)}function E(S){this._childLevel=(S._childLevel|0)+1,this.bindings=v,g&&(this.serializers=g,this._serialize=y),t&&(this._logEvent=ms([].concat(S._logEvent.bindings,v)))}E.prototype=this;let w=new E(this);return ll(this,w),w.child=function(...S){return m.call(this,C,...S)},w.level=h.level||this.level,C.onChild(w),w}return a}function by(e){let t=e.customLevels||{},r=Object.assign({},$e.levels.values,t),n=Object.assign({},$e.levels.labels,wy(t));return{values:r,labels:n}}function wy(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}$e.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};$e.stdSerializers=Sy;$e.stdTimeFunctions=Object.assign({},{nullTime:pl,epochTime:fl,unixTime:Ty,isoTime:Fy});function xy(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[fs];for(;r.parent;)r=r.parent,r.logger.bindings&&t.push(r.logger.bindings);return t.reverse()}function xt(e,t,r,n){if(Object.defineProperty(e,n,{value:nt(e.level,r)>nt(n,r)?Xt:r[gs][n],writable:!0,enumerable:!0,configurable:!0}),e[n]===Xt){if(!t.transmit)return;let i=t.transmit.level||e.level,s=nt(i,r);if(nt(n,r)<s)return}e[n]=Iy(e,t,r,n);let o=xy(e);o.length!==0&&(e[n]=Ry(o,e[n]))}function Ry(e,t){return function(){return t.apply(this,[...e,...arguments])}}function Iy(e,t,r,n){return function(o){return function(){let s=t.timestamp(),c=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===qr?qr:this;for(var a=0;a<c.length;a++)c[a]=arguments[a];var d=!1;if(t.serialize&&(hs(c,this._serialize,this.serializers,this._stdErrSerialize),d=!0),t.asObject||t.formatters?o.call(u,Ey(this,n,c,s,t)):o.apply(u,c),t.transmit){let p=t.transmit.level||e._level,f=nt(p,r),l=nt(n,r);if(l<f)return;ky(this,{ts:s,methodLevel:n,methodValue:l,transmitLevel:p,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:nt(e._level,r)},c,d)}}}(e[gs][n])}function Ey(e,t,r,n,o){let{level:i,log:s=f=>f}=o.formatters||{},c=r.slice(),u=c[0],a={};if(n&&(a.time=n),i){let f=i(t,e.levels.values[t]);Object.assign(a,f)}else a.level=e.levels.values[t];let d=(e._childLevel|0)+1;if(d<1&&(d=1),u!==null&&typeof u=="object"){for(;d--&&typeof c[0]=="object";)Object.assign(a,c.shift());u=c.length?ul(c.shift(),c):void 0}else typeof u=="string"&&(u=ul(c.shift(),c));return u!==void 0&&(a[o.messageKey]=u),s(a)}function hs(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=$e.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o])&&t)for(let i in e[o])t.indexOf(i)>-1&&i in r&&(e[o][i]=r[i](e[o][i]))}function ky(e,t,r,n=!1){let o=t.send,i=t.ts,s=t.methodLevel,c=t.methodValue,u=t.val,a=e._logEvent.bindings;n||hs(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(d){return a.indexOf(d)===-1}),e._logEvent.level.label=s,e._logEvent.level.value=c,o(s,e._logEvent,u),e._logEvent=ms(a)}function ms(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function dl(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function Py(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?pl:fl}function Wn(){return{}}function ps(e){return e}function Xt(){}function pl(){return!1}function fl(){return Date.now()}function Ty(){return Math.round(Date.now()/1e3)}function Fy(){return new Date(Date.now()).toISOString()}function Oy(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}Kn.exports.default=$e;Kn.exports.pino=$e});import{isNullOrUndefined as Ly}from"@coveo/bueno";var Lr=e=>e;var Qs=Pe(Ns(),1);var Gd="recommendation-internal-options",ov=Symbol.for(Gd);var be=new Error("Failed to load reducers."),kt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var mt=class extends Error{constructor(r,n){super();ue(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};function qs(e){return Array.isArray(e)}function _s(e,t){return[...e.reduce((r,n)=>{let o=t(n);return r.has(o)||r.set(o,n),r},new Map).values()]}var Wd=new Set(["1",1,"yes",!0]);function Ls(){if(typeof navigator>"u"||typeof window>"u")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>Wd.has(r))}function Us(e){let t={};for(let[r,n]of e)t[r]=n;return t}function ar(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function js(e){let t=[];for(let r in e){let n=encodeURIComponent(r),o=encodeURIComponent(e[r]);t.push(`${n}=${o}`)}return t.join("&")}function Vs(e){return typeof e!="object"||!e?!1:Object.values(e).every(Kd)}function Kd(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Bs(e){return e===429}var We=class e{static async call(t){let r=Yd(t),{logger:n}=t,o=await e.preprocessRequest(r,t);n.info(o,"Platform request");let{url:i,...s}=o,c=async()=>{let u=await fetch(i,s);if(Bs(u.status))throw u;return u};try{let u=await(0,Qs.backOff)(c,{retry:a=>{let d=a&&Bs(a.status);return d&&n.info("Platform retrying request"),d}});switch(u.status){case 419:case 401:throw n.info("Platform renewing token"),new kt;case 404:throw new mt(i,u.status);default:return n.info({response:u,requestInfo:o},"Platform response"),u}}catch(u){return u.message==="Failed to fetch"?new mt(i):u}}static async preprocessRequest(t,r){let{origin:n,preprocessRequest:o,logger:i,requestMetadata:s}=r,{signal:c,...u}=t,a=ar(u);try{let d=await o(t,n,s);return{...t,...d}}catch(d){i.error(d,"Platform request preprocessing failed. Returning default request options.")}return a}};function ne(e,t="prod",r="platform"){let n=t==="prod"?"":t,o=r==="platform"?"":`.${r}`;return`https://${e}${o}.org${n}.coveo.com`}function Pt(e,t="prod"){return`${ne(e,t)}/rest/search/v2`}function To(e,t="prod"){return`${ne(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function Yd(e){let{url:t,method:r,requestParams:n,contentType:o,accessToken:i,signal:s}=e,c=e.method==="POST"||e.method==="PUT",u=Jd(n,o);return{url:t,method:r,headers:{"Content-Type":o,Authorization:`Bearer ${i}`,...e.headers},...c&&{body:u},signal:s}}function Jd(e,t){return t==="application/x-www-form-urlencoded"?Vs(e)?js(e):"":JSON.stringify(e)}var Tt=class{constructor(t){ue(this,"_basePath");ue(this,"_params",{});this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}};function Fo(e){let{url:t,accessToken:r,organizationId:n,authentication:o,...i}=e;return i}var Oo=e=>{let{response:t}=e;return t.body?Xd(e):Zd(t)},Xd=e=>tp(e)?rp(e):ep(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},Zd=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function ep(e){return e.body.statusCode!==void 0}function tp(e){return e.body.exception!==void 0}var rp=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function $s(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var Do=(e,t,r,n)=>{let o=new Tt(`${e.url}${n}`);return o.addParam("organizationId",e.organizationId),e.authentication&&o.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:o.href,origin:"searchApiFetch"}};var Hs=(e,t)=>{let r=new Tt(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.authentication&&r.addParam("authentication",e.authentication),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),r.href},Mo=async(e,t)=>{let r=await We.call({...Do(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Fo(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=$s(r),o=await r.arrayBuffer(),s=new TextDecoder(n).decode(o);return np(s)?{success:s}:{error:Oo({response:r,body:s})}};function np(e){return typeof e=="string"}function op(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function ip(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function jr(e,t){if(t&&e.name==="AbortError")return{error:ip(e)};if(e instanceof mt)return{error:op(e)};throw e}var Vr=(e,t,r,n,o={})=>{sp(e);let i=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=ap(o),c=s?`${i}?${s}`:i;return{accessToken:e.accessToken,method:t,contentType:r,url:c,origin:"caseAssistApiFetch"}},Br=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),Qr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),sp=e=>{if(!e.url)throw new Error("The 'url' attribute must contain a valid platform URL.");if(!e.organizationId)throw new Error("The 'organizationId' attribute must contain a valid organization ID.");if(!e.accessToken)throw new Error("The 'accessToken' attribute must contain a valid platform access token.");if(!e.caseAssistId)throw new Error("The 'caseAssistId' attribute must contain a valid Case Assist configuration ID.")},ap=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var zs=e=>{let t=e.debug?{debug:"1"}:{};return{...Vr(e,"POST","application/json","/classify",t),requestParams:cp(e)}},cp=e=>({clientId:e.clientId,locale:e.locale,fields:Br(e.fields)});var Gs=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...Vr(e,"POST","application/json","/documents/suggest",t),requestParams:up(e)}},up=e=>({clientId:e.clientId,locale:e.locale,fields:Br(e.fields),context:e.context,analytics:e.analytics});var $r=class{constructor(t){this.options=t}async getCaseClassifications(t){let r=await We.call({...zs(t),...this.options});if(r instanceof Error)return jr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async getDocumentSuggestions(t){let r=await We.call({...Gs(t),...this.options});if(r instanceof Error)return jr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async html(t){return Mo(t,this.options)}};import{StringValue as sf}from"@coveo/bueno";function ie(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ws=lp,No=()=>Math.random().toString(36).substring(7).split("").join("."),dp={INIT:`@@redux/INIT${No()}`,REPLACE:`@@redux/REPLACE${No()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${No()}`},Hr=dp;function Te(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qo(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(qo)(e,t)}let n=e,o=t,i=new Map,s=i,c=0,u=!1;function a(){s===i&&(s=new Map,i.forEach((v,h)=>{s.set(h,v)}))}function d(){if(u)throw new Error(ie(3));return o}function p(v){if(typeof v!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));let h=!0;a();let b=c++;return s.set(b,v),function(){if(h){if(u)throw new Error(ie(6));h=!1,a(),s.delete(b),i=null}}}function f(v){if(!Te(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(u)throw new Error(ie(9));try{u=!0,o=n(o,v)}finally{u=!1}return(i=s).forEach(b=>{b()}),v}function l(v){if(typeof v!="function")throw new Error(ie(10));n=v,f({type:Hr.REPLACE})}function m(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(ie(11));function b(){let y=h;y.next&&y.next(d())}return b(),{unsubscribe:v(b)}},[Ws](){return this}}}return f({type:Hr.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:l,[Ws]:m}}function pp(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Hr.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:Hr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ft(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let c=t[s];typeof e[c]=="function"&&(r[c]=e[c])}let n=Object.keys(r),o,i;try{pp(r)}catch(s){i=s}return function(c={},u){if(i)throw i;let a=!1,d={};for(let p=0;p<n.length;p++){let f=n[p],l=r[f],m=c[f],C=l(m,u);if(typeof C>"u"){let v=u&&u.type;throw new Error(ie(14))}d[f]=C,a=a||C!==m}return a=a||n.length!==Object.keys(c).length,a?d:c}}function Ot(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Ks(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(ie(15))},s={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},c=e.map(u=>u(s));return i=Ot(...c)(o.dispatch),{...o,dispatch:i}}}function zr(e){return Te(e)&&"type"in e&&typeof e.type=="string"}var zo=Symbol.for("immer-nothing"),cr=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function se(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ht=Object.getPrototypeOf;function ye(e){return!!e&&!!e[fe]}function me(e){return e?ea(e)||Array.isArray(e)||!!e[cr]||!!e.constructor?.[cr]||fr(e)||mr(e):!1}var fp=Object.prototype.constructor.toString();function ea(e){if(!e||typeof e!="object")return!1;let t=ht(e);if(t===null)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===fp}function Go(e){return ye(e)||se(15,e),e[fe].base_}function ur(e,t){yt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function yt(e){let t=e[fe];return t?t.type_:Array.isArray(e)?1:fr(e)?2:mr(e)?3:0}function lr(e,t){return yt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _o(e,t){return yt(e)===2?e.get(t):e[t]}function ta(e,t,r){let n=yt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function mp(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fr(e){return e instanceof Map}function mr(e){return e instanceof Set}function gt(e){return e.copy_||e.base_}function jo(e,t){if(fr(e))return new Map(e);if(mr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ea(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[fe];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){let s=o[i],c=n[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(ht(e),n)}else{let n=ht(e);if(n!==null&&r)return{...e};let o=Object.create(n);return Object.assign(o,e)}}function Kr(e,t=!1){return Yr(e)||ye(e)||!me(e)||(yt(e)>1&&(e.set=e.add=e.clear=e.delete=gp),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Kr(n,!0))),e}function gp(){se(2)}function Yr(e){return Object.isFrozen(e)}var Vo={};function St(e){let t=Vo[e];return t||se(0,e),t}function hp(e,t){Vo[e]||(Vo[e]=t)}var dr;function ra(){return dr}function yp(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ys(e,t){t&&(St("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bo(e){Qo(e),e.drafts_.forEach(Sp),e.drafts_=null}function Qo(e){e===dr&&(dr=e.parent_)}function Js(e){return dr=yp(dr,e)}function Sp(e){let t=e[fe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[fe].modified_&&(Bo(t),se(4)),me(e)&&(e=Gr(t,e),t.parent_||Wr(t,e)),t.patches_&&St("Patches").generateReplacementPatches_(r[fe].base_,e,t.patches_,t.inversePatches_)):e=Gr(t,r,[]),Bo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zo?e:void 0}function Gr(e,t,r){if(Yr(t))return t;let n=t[fe];if(!n)return ur(t,(o,i)=>Zs(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Wr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let o=n.copy_,i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),ur(i,(c,u)=>Zs(e,n,o,c,u,r,s)),Wr(e,o,!1),r&&e.patches_&&St("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Zs(e,t,r,n,o,i,s){if(ye(o)){let c=i&&t&&t.type_!==3&&!lr(t.assigned_,n)?i.concat(n):void 0,u=Gr(e,o,c);if(ta(r,n,u),ye(u))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(me(o)&&!Yr(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Gr(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Wr(e,o)}}function Wr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Kr(t,r)}function vp(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:ra(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=Wo;r&&(o=[n],i=pr);let{revoke:s,proxy:c}=Proxy.revocable(o,i);return n.draft_=c,n.revoke_=s,c}var Wo={get(e,t){if(t===fe)return e;let r=gt(e);if(!lr(r,t))return Cp(e,r,t);let n=r[t];return e.finalized_||!me(n)?n:n===Lo(e.base_,t)?(Uo(e),e.copy_[t]=Ho(n,e)):n},has(e,t){return t in gt(e)},ownKeys(e){return Reflect.ownKeys(gt(e))},set(e,t,r){let n=na(gt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=Lo(gt(e),t),i=o?.[fe];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(mp(r,o)&&(r!==void 0||lr(e.base_,t)))return!0;Uo(e),$o(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Lo(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Uo(e),$o(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=gt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){se(11)},getPrototypeOf(e){return ht(e.base_)},setPrototypeOf(){se(12)}},pr={};ur(Wo,(e,t)=>{pr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pr.deleteProperty=function(e,t){return pr.set.call(this,e,t,void 0)};pr.set=function(e,t,r){return Wo.set.call(this,e[0],t,r,e[0])};function Lo(e,t){let r=e[fe];return(r?gt(r):e)[t]}function Cp(e,t,r){let n=na(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function na(e,t){if(!(t in e))return;let r=ht(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ht(r)}}function $o(e){e.modified_||(e.modified_=!0,e.parent_&&$o(e.parent_))}function Uo(e){e.copy_||(e.copy_=jo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ap=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let i=r;r=t;let s=this;return function(u=i,...a){return s.produce(u,d=>r.call(this,d,...a))}}typeof r!="function"&&se(6),n!==void 0&&typeof n!="function"&&se(7);let o;if(me(t)){let i=Js(this),s=Ho(t,void 0),c=!0;try{o=r(s),c=!1}finally{c?Bo(i):Qo(i)}return Ys(i,n),Xs(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===zo&&(o=void 0),this.autoFreeze_&&Kr(o,!0),n){let i=[],s=[];St("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else se(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,u=>t(u,...c));let n,o;return[this.produce(t,r,(s,c)=>{n=s,o=c}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){me(e)||se(8),ye(e)&&(e=oa(e));let t=Js(this),r=Ho(e,void 0);return r[fe].isManual_=!0,Qo(t),r}finishDraft(e,t){let r=e&&e[fe];(!r||!r.isManual_)&&se(9);let{scope_:n}=r;return Ys(n,t),Xs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=St("Patches").applyPatches_;return ye(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Ho(e,t){let r=fr(e)?St("MapSet").proxyMap_(e,t):mr(e)?St("MapSet").proxySet_(e,t):vp(e,t);return(t?t.scope_:ra()).drafts_.push(r),r}function oa(e){return ye(e)||se(10,e),ia(e)}function ia(e){if(!me(e)||Yr(e))return e;let t=e[fe],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=jo(e,t.scope_.immer_.useStrictShallowCopy_)}else r=jo(e,!0);return ur(r,(n,o)=>{ta(r,n,ia(o))}),t&&(t.finalized_=!1),r}function sa(){let t="replace",r="add",n="remove";function o(f,l,m,C){switch(f.type_){case 0:case 2:return s(f,l,m,C);case 1:return i(f,l,m,C);case 3:return c(f,l,m,C)}}function i(f,l,m,C){let{base_:v,assigned_:h}=f,b=f.copy_;b.length<v.length&&([v,b]=[b,v],[m,C]=[C,m]);for(let g=0;g<v.length;g++)if(h[g]&&b[g]!==v[g]){let y=l.concat([g]);m.push({op:t,path:y,value:p(b[g])}),C.push({op:t,path:y,value:p(v[g])})}for(let g=v.length;g<b.length;g++){let y=l.concat([g]);m.push({op:r,path:y,value:p(b[g])})}for(let g=b.length-1;v.length<=g;--g){let y=l.concat([g]);C.push({op:n,path:y})}}function s(f,l,m,C){let{base_:v,copy_:h}=f;ur(f.assigned_,(b,g)=>{let y=_o(v,b),E=_o(h,b),w=g?lr(v,b)?t:r:n;if(y===E&&w===t)return;let S=l.concat(b);m.push(w===n?{op:w,path:S}:{op:w,path:S,value:E}),C.push(w===r?{op:n,path:S}:w===n?{op:r,path:S,value:p(y)}:{op:t,path:S,value:p(y)})})}function c(f,l,m,C){let{base_:v,copy_:h}=f,b=0;v.forEach(g=>{if(!h.has(g)){let y=l.concat([b]);m.push({op:n,path:y,value:g}),C.unshift({op:r,path:y,value:g})}b++}),b=0,h.forEach(g=>{if(!v.has(g)){let y=l.concat([b]);m.push({op:r,path:y,value:g}),C.unshift({op:n,path:y,value:g})}b++})}function u(f,l,m,C){m.push({op:t,path:[],value:l===zo?void 0:l}),C.push({op:t,path:[],value:f})}function a(f,l){return l.forEach(m=>{let{path:C,op:v}=m,h=f;for(let E=0;E<C.length-1;E++){let w=yt(h),S=C[E];typeof S!="string"&&typeof S!="number"&&(S=""+S),(w===0||w===1)&&(S==="__proto__"||S==="constructor")&&se(19),typeof h=="function"&&S==="prototype"&&se(19),h=_o(h,S),typeof h!="object"&&se(18,C.join("/"))}let b=yt(h),g=d(m.value),y=C[C.length-1];switch(v){case t:switch(b){case 2:return h.set(y,g);case 3:se(16);default:return h[y]=g}case r:switch(b){case 1:return y==="-"?h.push(g):h.splice(y,0,g);case 2:return h.set(y,g);case 3:return h.add(g);default:return h[y]=g}case n:switch(b){case 1:return h.splice(y,1);case 2:return h.delete(y);case 3:return h.delete(m.value);default:return delete h[y]}default:se(17,v)}}),f}function d(f){if(!me(f))return f;if(Array.isArray(f))return f.map(d);if(fr(f))return new Map(Array.from(f.entries()).map(([m,C])=>[m,d(C)]));if(mr(f))return new Set(Array.from(f).map(d));let l=Object.create(ht(f));for(let m in f)l[m]=d(f[m]);return lr(f,cr)&&(l[cr]=f[cr]),l}function p(f){return ye(f)?d(f):f}hp("Patches",{applyPatches_:a,generatePatches_:o,generateReplacementPatches_:u})}var Se=new Ap,Ue=Se.produce,Jr=Se.produceWithPatches.bind(Se),Kv=Se.setAutoFreeze.bind(Se),Yv=Se.setUseStrictShallowCopy.bind(Se),Ko=Se.applyPatches.bind(Se),Jv=Se.createDraft.bind(Se),Xv=Se.finishDraft.bind(Se);function bp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function wp(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xp(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var aa=e=>Array.isArray(e)?e:[e];function Rp(e){let t=Array.isArray(e[0])?e[0]:e;return xp(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ip(e,t){let r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var tC=Symbol();var rC=Object.getPrototypeOf({});var Ep=class{constructor(e){this.value=e}deref(){return this.value}},kp=typeof WeakRef<"u"?WeakRef:Ep,Pp=0,ca=1;function Xr(){return{s:Pp,v:void 0,o:null,p:null}}function Dt(e,t={}){let r=Xr(),{resultEqualityCheck:n}=t,o,i=0;function s(){let c=r,{length:u}=arguments;for(let p=0,f=u;p<f;p++){let l=arguments[p];if(typeof l=="function"||typeof l=="object"&&l!==null){let m=c.o;m===null&&(c.o=m=new WeakMap);let C=m.get(l);C===void 0?(c=Xr(),m.set(l,c)):c=C}else{let m=c.p;m===null&&(c.p=m=new Map);let C=m.get(l);C===void 0?(c=Xr(),m.set(l,c)):c=C}}let a=c,d;if(c.s===ca)d=c.v;else if(d=e.apply(null,arguments),i++,n){let p=o?.deref?.()??o;p!=null&&n(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new kp(d):d}return a.s=ca,a.v=d,d}return s.clearCache=()=>{r=Xr(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function ua(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,c,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),bp(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let d={...r,...u},{memoize:p,memoizeOptions:f=[],argsMemoize:l=Dt,argsMemoizeOptions:m=[],devModeChecks:C={}}=d,v=aa(f),h=aa(m),b=Rp(o),g=p(function(){return i++,a.apply(null,arguments)},...v),y=!0,E=l(function(){s++;let S=Ip(b,arguments);return c=g.apply(null,S),c},...h);return Object.assign(E,{resultFunc:a,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var Y=ua(Dt),Tp=Object.assign((e,t=Y)=>{wp(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,c,u)=>(s[r[u]]=c,s),{}))},{withTypes:()=>Tp});function la(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var da=la(),pa=la;var Fp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ot:Ot.apply(null,arguments)},pC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Op=e=>e&&typeof e.match=="function";function N(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(Ie(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>zr(n)&&n.type===e,r}var ya=class gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,gr.prototype)}static get[Symbol.species](){return gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new gr(...t[0].concat(this)):new gr(...t.concat(this))}};function fa(e){return me(e)?Ue(e,()=>{}):e}function ma(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Dp(e){return typeof e=="boolean"}var Mp=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},s=new ya;return r&&(Dp(r)?s.push(da):s.push(pa(r.extraArgument))),s},hr="RTK_autoBatch",Nt=()=>e=>({payload:e,meta:{[hr]:!0}}),ga=e=>t=>{setTimeout(t,e)},Np=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,s=!1,c=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ga(10):e.type==="callback"?e.queueNotification:ga(e.timeout),a=()=>{s=!1,i&&(i=!1,c.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let p=()=>o&&d(),f=n.subscribe(p);return c.add(d),()=>{f(),c.delete(d)}},dispatch(d){try{return o=!d?.meta?.[hr],i=!o,i&&(s||(s=!0,u(a))),n.dispatch(d)}finally{o=!0}}})},qp=e=>function(r){let{autoBatch:n=!0}=r??{},o=new ya(e);return n&&o.push(Np(typeof n=="object"?n:void 0)),o};function Sa(e){let t=Mp(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{},c;if(typeof r=="function")c=r;else if(Te(r))c=Ft(r);else throw new Error(Ie(1));let u;typeof n=="function"?u=n(t):u=t();let a=Ot;o&&(a=Fp({trace:!1,...typeof o=="object"&&o}));let d=Ks(...u),p=qp(d),f=typeof s=="function"?s(p):p(),l=a(...f);return qo(c,i,l)}function va(e){let t={},r=[],n,o={addCase(i,s){let c=typeof i=="string"?i:i.type;if(!c)throw new Error(Ie(28));if(c in t)throw new Error(Ie(29));return t[c]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function _p(e){return typeof e=="function"}function ee(e,t){let[r,n,o]=va(t),i;if(_p(e))i=()=>fa(e());else{let c=fa(e);i=()=>c}function s(c=i(),u){let a=[r[u.type],...n.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return a.filter(d=>!!d).length===0&&(a=[o]),a.reduce((d,p)=>{if(p)if(ye(d)){let l=p(d,u);return l===void 0?d:l}else{if(me(d))return Ue(d,f=>p(f,u));{let f=p(d,u);if(f===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return d},c)}return s.getInitialState=i,s}var Ca=(e,t)=>Op(e)?e.match(t):e(t);function Fe(...e){return t=>e.some(r=>Ca(r,t))}function Mt(...e){return t=>e.every(r=>Ca(r,t))}function en(e,t){if(!e||!e.meta)return!1;let r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function yr(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function tn(...e){return e.length===0?t=>en(t,["pending"]):yr(e)?Fe(...e.map(t=>t.pending)):tn()(e[0])}function vt(...e){return e.length===0?t=>en(t,["rejected"]):yr(e)?Fe(...e.map(t=>t.rejected)):vt()(e[0])}function Sr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Mt(vt(...e),t):yr(e)?Mt(vt(...e),t):Sr()(e[0])}function je(...e){return e.length===0?t=>en(t,["fulfilled"]):yr(e)?Fe(...e.map(t=>t.fulfilled)):je()(e[0])}function rn(...e){return e.length===0?t=>en(t,["pending","fulfilled","rejected"]):yr(e)?Fe(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):rn()(e[0])}var Lp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nn=(e=21)=>{let t="",r=e;for(;r--;)t+=Lp[Math.random()*64|0];return t},Up=["name","message","stack","code"],Yo=class{constructor(e,t){ue(this,"_type");this.payload=e,this.meta=t}},ha=class{constructor(e,t){ue(this,"_type");this.payload=e,this.meta=t}},jp=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Up)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},W=(()=>{function e(t,r,n){let o=N(t+"/fulfilled",(u,a,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:a,requestStatus:"fulfilled"}})),i=N(t+"/pending",(u,a,d)=>({payload:void 0,meta:{...d||{},arg:a,requestId:u,requestStatus:"pending"}})),s=N(t+"/rejected",(u,a,d,p,f)=>({payload:p,error:(n&&n.serializeError||jp)(u||"Rejected"),meta:{...f||{},arg:d,requestId:a,rejectedWithValue:!!p,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function c(u){return(a,d,p)=>{let f=n?.idGenerator?n.idGenerator(u):nn(),l=new AbortController,m,C;function v(b){C=b,l.abort()}let h=async function(){let b;try{let y=n?.condition?.(u,{getState:d,extra:p});if(Bp(y)&&(y=await y),y===!1||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let E=new Promise((w,S)=>{m=()=>{S({name:"AbortError",message:C||"Aborted"})},l.signal.addEventListener("abort",m)});a(i(f,u,n?.getPendingMeta?.({requestId:f,arg:u},{getState:d,extra:p}))),b=await Promise.race([E,Promise.resolve(r(u,{dispatch:a,getState:d,extra:p,requestId:f,signal:l.signal,abort:v,rejectWithValue:(w,S)=>new Yo(w,S),fulfillWithValue:(w,S)=>new ha(w,S)})).then(w=>{if(w instanceof Yo)throw w;return w instanceof ha?o(w.payload,f,u,w.meta):o(w,f,u)})])}catch(y){b=y instanceof Yo?s(null,f,u,y.payload,y.meta):s(y,f,u)}finally{m&&l.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||a(b),b}();return Object.assign(h,{abort:v,requestId:f,arg:u,unwrap(){return h.then(Vp)}})}}return Object.assign(c,{pending:i,rejected:s,fulfilled:o,settled:Fe(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Vp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),yC={[Aa]:W};function Qp(e,t){return`${e}/${t}`}function $p({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(Ie(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(zp()):n.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(b,g){let y=typeof b=="string"?b:b.type;if(!y)throw new Error(Ie(12));if(y in u.sliceCaseReducersByType)throw new Error(Ie(13));return u.sliceCaseReducersByType[y]=g,a},addMatcher(b,g){return u.sliceMatchers.push({matcher:b,reducer:g}),a},exposeAction(b,g){return u.actionCreators[b]=g,a},exposeCaseReducer(b,g){return u.sliceCaseReducersByName[b]=g,a}};c.forEach(b=>{let g=s[b],y={reducerName:b,type:Qp(o,b),createNotation:typeof n.reducers=="function"};Wp(g)?Yp(y,g,a,t):Gp(y,g,a)});function d(){let[b={},g=[],y=void 0]=typeof n.extraReducers=="function"?va(n.extraReducers):[n.extraReducers],E={...b,...u.sliceCaseReducersByType};return ee(n.initialState,w=>{for(let S in E)w.addCase(S,E[S]);for(let S of u.sliceMatchers)w.addMatcher(S.matcher,S.reducer);for(let S of g)w.addMatcher(S.matcher,S.reducer);y&&w.addDefaultCase(y)})}let p=b=>b,f=new Map,l;function m(b,g){return l||(l=d()),l(b,g)}function C(){return l||(l=d()),l.getInitialState()}function v(b,g=!1){function y(w){let S=w[b];return typeof S>"u"&&g&&(S=C()),S}function E(w=p){let S=ma(f,g,()=>new WeakMap);return ma(S,w,()=>{let A={};for(let[x,k]of Object.entries(n.selectors??{}))A[x]=Hp(k,w,C,g);return A})}return{reducerPath:b,getSelectors:E,get selectors(){return E(y)},selectSlice:y}}let h={name:o,reducer:m,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...v(i),injectInto(b,{reducerPath:g,...y}={}){let E=g??i;return b.inject({reducerPath:E,reducer:m},y),{...h,...v(E,!0)}}};return h}}function Hp(e,t,r,n){function o(i,...s){let c=t(i);return typeof c>"u"&&n&&(c=r()),e(c,...s)}return o.unwrapped=e,o}var Ct=$p();function zp(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Gp({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!Kp(n))throw new Error(Ie(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?N(e,s):N(e))}function Wp(e){return e._reducerDefinitionType==="asyncThunk"}function Kp(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Yp({type:e,reducerName:t},r,n,o){if(!o)throw new Error(Ie(18));let{payloadCreator:i,fulfilled:s,pending:c,rejected:u,settled:a,options:d}=r,p=o(e,i,d);n.exposeAction(t,p),s&&n.addCase(p.fulfilled,s),c&&n.addCase(p.pending,c),u&&n.addCase(p.rejected,u),a&&n.addMatcher(p.settled,a),n.exposeCaseReducer(t,{fulfilled:s||Zr,pending:c||Zr,rejected:u||Zr,settled:a||Zr})}function Zr(){}var ba="listener",wa="completed",xa="cancelled",SC=`task-${xa}`,vC=`task-${wa}`,CC=`${ba}-${xa}`,AC=`${ba}-${wa}`;var{assign:Ra}=Object;var Jo="listenerMiddleware";var Jp=Ra(N(`${Jo}/add`),{withTypes:()=>Jp}),bC=N(`${Jo}/removeAll`),Xp=Ra(N(`${Jo}/remove`),{withTypes:()=>Xp});var wC=Symbol.for("rtk-state-proxy-original");function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}import{Schema as Zp,SchemaValidationError as ef,StringValue as At,RecordValue as tf,ArrayValue as rf}from"@coveo/bueno";var $=new At({required:!0,emptyAllowed:!1}),te=new At({required:!1,emptyAllowed:!1}),Ee=new At({required:!0,emptyAllowed:!0}),OC=new At({required:!1,emptyAllowed:!0}),Ia=new rf({each:$,required:!0}),Ea=new At({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),ka=new At({required:!1,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/}),DC=new At({required:!0,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/}),nf=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Xo=(e,t)=>{if("required"in t)return{payload:new Zp({value:t}).validate({value:e}).value};let o=new tf({options:{required:!0},values:t}).validate(e);if(o)throw new ef(o);return{payload:e}},L=(e,t)=>{try{return Xo(e,t)}catch(r){return{payload:e,error:nf(r)}}};var on=(e,t,r,n)=>{let o=`Check the options of ${n}`;return of(e,t,r,o,"Controller initialization error")},of=(e,t,r,n,o)=>{try{return t.validate(r,n)}catch(i){throw e.logger.error(i,o),i}};var sn=N("caseAssistConfiguration/set",e=>L(e,{caseAssistId:$,locale:te,proxyBaseUrl:new sf({required:!1,url:!0})}));var Pa=()=>({caseAssistId:"",locale:"en-US"});var Ke=ee(Pa(),e=>{e.addCase(sn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});import{BooleanValue as Ta,StringValue as vr,NumberValue as Fa,RecordValue as Ye}from"@coveo/bueno";var Oa={q:new vr,enableQuerySyntax:new Ta,aq:new vr,cq:new vr,firstResult:new Fa({min:0}),numberOfResults:new Fa({min:0}),sortCriteria:new vr,f:new Ye,fExcluded:new Ye,cf:new Ye,nf:new Ye,mnf:new Ye,df:new Ye,debug:new Ta,sf:new Ye,tab:new vr,af:new Ye};var an=N("searchParameters/restore",e=>L(e,Oa)),YC=N("searchParameters/restoreTab",e=>L(e,$));var Da=N("debug/enable"),Ma=N("debug/disable");var cn=()=>!1;var Na=ee(cn(),e=>{e.addCase(Da,()=>!0).addCase(Ma,()=>!1).addCase(an,(t,r)=>r.payload.debug??t)});import{StringValue as af}from"@coveo/bueno";var un=N("searchHub/set",e=>L(e,new af({required:!0,emptyAllowed:!0})));import{ArrayValue as cf,BooleanValue as _a,RecordValue as uf,StringValue as Cr,Value as lf}from"@coveo/bueno";var qt="3.25.0-pre.b04a573cd9",qa=["@coveo/atomic","@coveo/quantic"];var Zo=()=>te,La=()=>$,_t=N("configuration/updateBasicConfiguration",e=>L(e,{accessToken:te,environment:new Cr({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:te})),ln=N("configuration/updateSearchConfiguration",e=>L(e,{proxyBaseUrl:new Cr({required:!1,url:!0}),pipeline:new Cr({required:!1,emptyAllowed:!0}),searchHub:te,timezone:te,locale:te,authenticationProviders:new cf({required:!1,each:$})})),df={enabled:new _a({default:!0}),originContext:Zo(),originLevel2:Zo(),originLevel3:Zo(),proxyBaseUrl:new Cr({required:!1,url:!0}),runtimeEnvironment:new lf,anonymous:new _a({default:!1}),deviceId:te,userDisplayName:te,documentLocation:te,trackingId:ka,analyticsMode:new Cr({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new uf({options:{required:!1},values:qa.reduce((e,t)=>(e[t]=Ea,e),{})})},dn=N("configuration/updateAnalyticsConfiguration",e=>L(e,df)),pn=N("configuration/analytics/disable"),fn=N("configuration/analytics/enable"),Ua=N("configuration/analytics/originlevel2",e=>L(e,{originLevel2:La()})),ja=N("configuration/analytics/originlevel3",e=>L(e,{originLevel3:La()}));var pf=N("history/undo"),ff=N("history/redo"),Oe=N("history/snapshot"),vA=W("history/back",async(e,{dispatch:t})=>{t(pf()),await t(mn())}),CA=W("history/forward",async(e,{dispatch:t})=>{t(ff()),await t(mn())}),mn=W("history/change",async(e,{getState:t})=>t().history.present);var Lt=()=>"default";var Va=ee(Lt(),e=>{e.addCase(un,(t,r)=>r.payload).addCase(mn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(ln,(t,r)=>r.payload.searchHub||t)});var Ba=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function mf(e){return typeof e=="string"&&Ba.test(e)}var ei=mf;var ae=[];for(let e=0;e<256;++e)ae.push((e+256).toString(16).slice(1));function Qa(e,t=0){return(ae[e[t+0]]+ae[e[t+1]]+ae[e[t+2]]+ae[e[t+3]]+"-"+ae[e[t+4]]+ae[e[t+5]]+"-"+ae[e[t+6]]+ae[e[t+7]]+"-"+ae[e[t+8]]+ae[e[t+9]]+"-"+ae[e[t+10]]+ae[e[t+11]]+ae[e[t+12]]+ae[e[t+13]]+ae[e[t+14]]+ae[e[t+15]]).toLowerCase()}var ti,gf=new Uint8Array(16);function ri(){if(!ti){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ti=crypto.getRandomValues.bind(crypto)}return ti(gf)}var hf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:hf};function yf(e,t,r){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};let n=e.random??e.rng?.()??ri();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[r+o]=n[o];return t}return Qa(n)}var oi=yf;function $a(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}function Sf({config:e,environment:t,event:r,listenerManager:n}){let{url:o,token:i,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(o,i,r))}var Ha="visitorId";function vf(e){return{getClientId:()=>{let t=e.get(),r=t.storage,n=r.getItem(Ha),o=n&&ei(n)?n:t.generateUUID();return r.setItem(Ha,o),o}}}var Ga="1.2.0";function Cf(e){let{trackingId:t}=e;return{trackingId:t}}function Af(e){return(e.source||[]).concat([`relay@${Ga}`])}function Wa(e,t,r,n){let{getReferrer:o,getLocation:i,getUserAgent:s}=r,c=Cf(t),u=n.getClientId();return Object.freeze({type:e,config:c,ts:Date.now(),source:Af(t),clientId:u,userAgent:s(),referrer:o(),location:i()})}function bf(e,t,r,n,o){return{...t,meta:Wa(e,r,n,o)}}var wf="*";function xf(){let e=[];function t({type:u,callback:a}){return e.findIndex(d=>d.type===u&&d.callback===a)}function r(u,a){return u.type==="*"||a===u.type}function n(u){return t(u)<0&&e.push(u),()=>c(u.type,u.callback)}function o(u){e.forEach(a=>{if(r(a,u.meta.type))try{a.callback(u)}catch(d){console.error(d)}})}function i(u){if(u===wf)e.length=0;else for(let a=e.length-1;a>=0;a--)e[a].type===u&&e.splice(a,1)}function s(u){let a=t(u);a>=0&&e.splice(a,1)}function c(u,a){a?s({type:u,callback:a}):i(u)}return{add:n,call:o,remove:c}}function za({url:e,token:t,trackingId:r,...n}){return Object.freeze({url:e,token:t,trackingId:r,...!!n.mode&&{mode:n.mode},...!!n.source&&{source:n.source},...!!n.environment&&{environment:n.environment}})}function Rf(e){let t=za(e);return{get:()=>t,update:r=>{t=za({...t,...r})}}}var ii=If();function If(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,o=document.cookie.split(";");for(let i of o){let s=i.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,o){let i=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+o).toUTCString()}`,c=i?`;domain=${i}`:"";document.cookie=`${e}${r}=${n}${s}${c};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Ef(){return{getItem(e){return ii.getItem(e)||localStorage.getItem(e)},removeItem(e){ii.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),ii.setItem(e,t,31556952e3)}}}function kf(){let e=document.referrer;return e===""?null:e}function Pf(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if($a().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!n)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>kf(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>oi(),storage:Ef()}}function Tf(){try{let e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&e.name==="QuotaExceededError"&&localStorage&&localStorage.length!==0}}function Ff(){return{getItem(){return null},removeItem(){},setItem(){}}}function Of(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Ff()}}function Df(e){let t=e.get().mode!=="disabled",r=e.get().environment,n=Of();return t&&r?{storage:n.storage,...r,runtime:"custom"}:t&&Mf()&&Tf()?Pf():n}function Mf(){try{return typeof window=="object"}catch{return!1}}function Nf(e){return{get:()=>Object.freeze(Df(e))}}function Ka(e){let t=Rf(e),r=xf(),n=Nf(t),o=vf(n);return{emit:(i,s)=>{let c=t.get(),u=n.get(),a=bf(i,s,c,u,o);return Sf({config:c,environment:u,event:a,listenerManager:r})},getMeta:i=>Wa(i,t.get(),n.get(),o),on:(i,s)=>r.add({type:i,callback:s}),off:(i,s)=>r.remove(i,s),updateConfig:i=>t.update(i),version:Ga}}var Ut=Y(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${qt}`));var jt=Y(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Ut(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:o,enabled:i},s)=>Ka({mode:i?"emit":"disabled",url:o??To(e,t),token:r,trackingId:n??null,source:s}));var si=e=>({referrer:document.referrer,userAgent:navigator.userAgent,location:window.location.href,clientId:e}),Ar=()=>({referrer:null,userAgent:null,location:null,clientId:""});var Ya=Y(e=>e.advancedSearchQueries,e=>{if(!e)return{};let{aq:t,cq:r,dq:n,lq:o}=e;return{...t&&{aq:t},...r&&{cq:r},...n&&{dq:n},...o&&{lq:o}}});var Vt=(e,t,r)=>({analytics:{clientId:t.clientId,clientTimestamp:new Date().toISOString(),documentReferrer:t.referrer,documentLocation:t.location,originContext:e.originContext,...r&&{actionCause:r.actionCause},...r&&{customData:r.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.deviceId&&{deviceId:e.deviceId},...e.trackingId&&{trackingId:e.trackingId},capture:t.capture??t.clientId!=="",source:Ut(e)}});import{ArrayValue as Gc,BooleanValue as Vg,NumberValue as Bg,RecordValue as Qg,StringValue as _n}from"@coveo/bueno";import{isNullOrUndefined as Nc,RecordValue as Ag,Schema as bg,StringValue as Nn}from"@coveo/bueno";function Ve(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function R(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})}var z;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(z||(z={}));function ui(){return typeof window<"u"}function bi(){return typeof navigator<"u"}function Bt(){return typeof document<"u"}function li(){try{return typeof localStorage<"u"}catch{return!1}}function qf(){try{return typeof sessionStorage<"u"}catch{return!1}}function lc(){return bi()&&navigator.cookieEnabled}var _f=[z.click,z.custom,z.search,z.view],Lf=(e,t)=>_f.indexOf(e)!==-1?Object.assign({language:Bt()?document.documentElement.lang:"unknown",userAgent:bi()?navigator.userAgent:"unknown"},t):t,xr=class e{static set(t,r,n){var o,i,s,c;n&&(i=new Date,i.setTime(i.getTime()+n)),c=window.location.hostname,c.indexOf(".")===-1?Ja(t,r,i):(s=c.split("."),o=s[s.length-2]+"."+s[s.length-1],Ja(t,r,i,o))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){var i=n[o];if(i=i.replace(/^\s+/,""),i.lastIndexOf(r,0)===0)return i.substring(r.length,i.length)}return null}static erase(t){e.set(t,"",-1)}};function Ja(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Uf(){return li()?localStorage:lc()?new Rr:qf()?sessionStorage:new $t}var Rr=class e{getItem(t){return xr.get(`${e.prefix}${t}`)}removeItem(t){xr.erase(`${e.prefix}${t}`)}setItem(t,r,n){xr.set(`${e.prefix}${t}`,r,n)}};Rr.prefix="coveo_";var di=class{constructor(){this.cookieStorage=new Rr}getItem(t){return localStorage.getItem(t)||this.cookieStorage.getItem(t)}removeItem(t){this.cookieStorage.removeItem(t),localStorage.removeItem(t)}setItem(t,r){localStorage.setItem(t,r),this.cookieStorage.setItem(t,r,31556926e3)}},$t=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},br="__coveo.analytics.history",dc=20,pc=1e3*60,fc=75,Ht=class{constructor(t){this.store=t||Uf()}addElement(t){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=this.getHistoryWithInternalTime();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])}addElementAsync(t){return R(this,void 0,void 0,function*(){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=yield this.getHistoryWithInternalTimeAsync();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])})}getHistory(){let t=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(t))}getHistoryAsync(){return R(this,void 0,void 0,function*(){let t=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(t))})}getHistoryWithInternalTime(){try{let t=this.store.getItem(br);return t&&typeof t=="string"?JSON.parse(t):[]}catch{return[]}}getHistoryWithInternalTimeAsync(){return R(this,void 0,void 0,function*(){try{let t=yield this.store.getItem(br);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(br,JSON.stringify(t.slice(0,dc)))}catch{}}clear(){try{this.store.removeItem(br)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,o)=>(o.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,fc)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>pc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:o,value:i}=r;return{name:n,time:o,value:i}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:o}=t;return r&&typeof o=="string"&&r.toLowerCase()==="query"&&o.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},mc=Object.freeze({__proto__:null,HistoryStore:Ht,MAX_NUMBER_OF_HISTORY_ELEMENTS:dc,MAX_VALUE_SIZE:fc,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:pc,STORE_KEY:br,default:Ht}),jf=(e,t)=>R(void 0,void 0,void 0,function*(){return e===z.view?(yield Vf(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),Vf=e=>R(void 0,void 0,void 0,function*(){let t=new Ht,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),gn,Bf=new Uint8Array(16);function Qf(){if(!gn&&(gn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gn(Bf)}var $f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yn(e){return typeof e=="string"&&$f.test(e)}var ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function gc(e,t=0){return(ce[e[t+0]]+ce[e[t+1]]+ce[e[t+2]]+ce[e[t+3]]+"-"+ce[e[t+4]]+ce[e[t+5]]+"-"+ce[e[t+6]]+ce[e[t+7]]+"-"+ce[e[t+8]]+ce[e[t+9]]+"-"+ce[e[t+10]]+ce[e[t+11]]+ce[e[t+12]]+ce[e[t+13]]+ce[e[t+14]]+ce[e[t+15]]).toLowerCase()}function Hf(e){if(!yn(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function zf(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Gf="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Wf="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kf(e,t,r){function n(o,i,s,c){var u;if(typeof o=="string"&&(o=zf(o)),typeof i=="string"&&(i=Hf(i)),((u=i)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+o.length);if(a.set(i),a.set(o,i.length),a=r(a),a[6]=a[6]&15|t,a[8]=a[8]&63|128,s){c=c||0;for(let d=0;d<16;++d)s[c+d]=a[d];return s}return gc(a)}try{n.name=e}catch{}return n.DNS=Gf,n.URL=Wf,n}var Yf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xa={randomUUID:Yf};function bt(e,t,r){if(Xa.randomUUID&&!t&&!e)return Xa.randomUUID();e=e||{};let n=e.random||(e.rng||Qf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return gc(n)}function Jf(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function ai(e,t){return e<<t|e>>>32-t}function Xf(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let s=unescape(encodeURIComponent(e));e=[];for(let c=0;c<s.length;++c)e.push(s.charCodeAt(c))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let n=e.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let s=0;s<o;++s){let c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=e[s*64+u*4]<<24|e[s*64+u*4+1]<<16|e[s*64+u*4+2]<<8|e[s*64+u*4+3];i[s]=c}i[o-1][14]=(e.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<o;++s){let c=new Uint32Array(80);for(let l=0;l<16;++l)c[l]=i[s][l];for(let l=16;l<80;++l)c[l]=ai(c[l-3]^c[l-8]^c[l-14]^c[l-16],1);let u=r[0],a=r[1],d=r[2],p=r[3],f=r[4];for(let l=0;l<80;++l){let m=Math.floor(l/20),C=ai(u,5)+Jf(m,a,d,p)+f+t[m]+c[l]>>>0;f=p,p=d,d=ai(a,30)>>>0,a=u,u=C}r[0]=r[0]+u>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+d>>>0,r[3]=r[3]+p>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Zf=Kf("v5",80,Xf),Za=Zf,hc="2.30.45",ec=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,wr={pageview:"pageview",event:"event"},Sn=class{constructor({client:t,uuidGenerator:r=bt}){this.client=t,this.uuidGenerator=r}},pi=class extends Sn{constructor({client:t,uuidGenerator:r=bt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=ec(window.location),this.lastReferrer=Bt()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Bt()?document.title:"",encoding:Bt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},o={language:navigator.language,userAgent:navigator.userAgent},i={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},i),n),o),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:o,location:i}=this.getNextValues(t,r);this.lastReferrer=o,this.pageViewId=n,this.currentLocation=i,t===wr.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===wr.pageview?this.nextPageViewId:this.pageViewId,referrer:t===wr.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===wr.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=o=>o.replace(/^\/?(.*)$/,"/$1");return`${(o=>o.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return ec(window.location)}},Je=class e{constructor(t,r){if(!yn(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>e.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let n=new URL(t);return r.some(o=>new RegExp(o.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(n.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[n,o]=r;if(n.length!==32||isNaN(parseInt(o)))return null;let i=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return yn(i)?new e(i,Number.parseInt(o)*1e3):null}};Je.cvo_cid="cvo_cid";Je.expirationTime=120;var fi=class extends Sn{constructor({client:t,uuidGenerator:r=bt}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return R(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),n=yield this.client.getCurrentVisitorId();return r.searchParams.set(Je.cvo_cid,new Je(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};fi.Id="link";var xe=Object.keys;function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var ci=128,yc=192,tc=224,rc=240;function em(e){return(e&248)===rc?4:(e&rc)===tc?3:(e&tc)===yc?2:1}function tm(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&e.charAt(r-3)=="%";){let n=Number.parseInt(e.substring(r-2,r),16);if((n&ci)!=ci)break;if(r-=3,(n&yc)!=ci){t-r>=em(n)*3&&(r=t);break}}return e.substring(0,r)}var mi={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},rm=xe(mi).map(e=>mi[e]),nm=[...rm].join("|"),om=new RegExp(`^(${nm}$)`),im={svcAction:"svc_action",svcActionData:"svc_action_data"},sm=e=>xe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=mi[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),am=e=>om.test(e),cm=[am],nc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},oc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},le={action:"pa",list:"pal",listSource:"pls"},vn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},um=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],gi={id:"quoteId",affiliation:"quoteAffiliation"},hi={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},lm={add:le,bookmark_add:le,bookmark_remove:le,click:le,checkout:le,checkout_option:le,detail:le,impression:le,remove:le,refund:Object.assign(Object.assign({},le),vn),purchase:Object.assign(Object.assign({},le),vn),quickview:le,quote:Object.assign(Object.assign({},le),gi),review:Object.assign(Object.assign({},le),hi)},dm=xe(nc).map(e=>nc[e]),pm=xe(oc).map(e=>oc[e]),fm=xe(le).map(e=>le[e]),mm=xe(vn).map(e=>vn[e]),gm=xe(hi).map(e=>hi[e]),hm=xe(gi).map(e=>gi[e]),ym=[...dm,"custom"].join("|"),Sm=[...pm,"custom"].join("|"),Sc="(pr[0-9]+)",vc="(il[0-9]+pi[0-9]+)",vm=new RegExp(`^${Sc}(${ym})$`),Cm=new RegExp(`^(${vc}(${Sm}))|(il[0-9]+nm)$`),Am=new RegExp(`^(${fm.join("|")})$`),bm=new RegExp(`^(${mm.join("|")})$`),wm=new RegExp(`^${Sc}custom$`),xm=new RegExp(`^${vc}custom$`),Rm=new RegExp(`^(${[...um,...gm,...hm].join("|")})$`),Im=e=>vm.test(e),Em=e=>Cm.test(e),km=e=>Am.test(e),Pm=e=>bm.test(e),Tm=e=>Rm.test(e),Fm=[Em,Im,km,Pm,Tm],Om=[wm,xm],Dm={anonymizeIp:"aip"},Mm={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},Nm={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},qm=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],_m=Object.assign(Object.assign(Object.assign(Object.assign({},Dm),Mm),Nm),qm.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),yi=Object.assign(Object.assign({},_m),im),Lm=e=>{let t=!!e.action&&lm[e.action]||{};return xe(e).reduce((r,n)=>{let o=t[n]||yi[n]||n;return Object.assign(Object.assign({},r),{[o]:e[n]})},{})},Um=xe(yi).map(e=>yi[e]),jm=e=>Um.indexOf(e)!==-1,Vm=e=>e==="custom",Bm=e=>[...Fm,...cm,jm,Vm].some(t=>t(e)),Qm=e=>xe(e).reduce((t,r)=>{let n=$m(r);return n?Object.assign(Object.assign({},t),Hm(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),$m=e=>{let t;return[...Om].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Hm=(e,t)=>xe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),Si=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:n,preprocessRequest:o}=this.opts,i=yield this.getQueryParamsForEventType(t),{url:s,payload:c}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${i}`,r,o),u=this.encodeForEventType(t,c),a=new Blob([u],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(s,a)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,n){return R(this,void 0,void 0,function*(){let o=t,i=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:c,body:u}=s;o=c||t;try{i=JSON.parse(u)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:i,url:o}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return R(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:n}=this.opts,o=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",o?`visitorId=${o}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let o=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(o=`access_token=${encodeURIComponent(n)}&${o}`),o}},vi=class{sendEvent(t,r){return R(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return R(this,void 0,void 0,function*(){return Promise.resolve()})}},ic=globalThis.fetch,Cn=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:o,preprocessRequest:i}=this.opts,s=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",c={url:`${n}/analytics/${t}${s}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},u=Object.assign(Object.assign({},c),i?yield i(c,"analyticsFetch"):{}),{url:a}=u,d=Ve(u,["url"]),p;try{p=yield ic(a,d)}catch(f){console.error("An error has occured when sending the event.",f);return}if(p.ok){let f=yield p.json();return f.visitorId&&o.setCurrentVisitorId(f.visitorId),f}else{try{p.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,p,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return R(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield ic(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}getVisitorIdParam(){return R(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},Ci=class{constructor(t,r){li()&&lc()?this.storage=new di:li()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new $t),this.client=new Cn(t),this.beaconClient=new Si(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:o,payload:i}of n)this.beaconClient.sendEvent(o,i)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},Ai=class{constructor(t,r){this.storage=r||new $t,this.client=new Cn(t)}getClientDependingOnEventType(t){return this.client}},An=class{constructor(){this.storage=new $t,this.client=new vi}getClientDependingOnEventType(t){return this.client}},zm="xx",Gm=e=>e?.startsWith(zm)||!1,Wm=`
18
+ var gd=Object.create;var Ao=Object.defineProperty;var hd=Object.getOwnPropertyDescriptor;var yd=Object.getOwnPropertyNames;var Sd=Object.getPrototypeOf,vd=Object.prototype.hasOwnProperty;var Cd=(e,t,r)=>t in e?Ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ad=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yd(t))!vd.call(e,o)&&o!==r&&Ao(e,o,{get:()=>t[o],enumerable:!(n=hd(t,o))||n.enumerable});return e};var Pe=(e,t,r)=>(r=e!=null?gd(Sd(e)):{},Ad(t||!e||!e.__esModule?Ao(r,"default",{value:e,enumerable:!0}):r,e));var ue=(e,t,r)=>Cd(e,typeof t!="symbol"?t+"":t,r);var ks=oe(ir=>{"use strict";var Ur=ir&&ir.__assign||function(){return Ur=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ur.apply(this,arguments)};Object.defineProperty(ir,"__esModule",{value:!0});var bd={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function wd(e){var t=Ur(Ur({},bd),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}ir.getSanitizedOptions=wd});var Ps=oe(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});function xd(e){var t=Math.random()*e;return Math.round(t)}bo.fullJitter=xd});var Ts=oe(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});function Rd(e){return e}wo.noJitter=Rd});var Fs=oe(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var Id=Ps(),Ed=Ts();function kd(e){switch(e.jitter){case"full":return Id.fullJitter;case"none":default:return Ed.noJitter}}xo.JitterFactory=kd});var Io=oe(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var Pd=Fs(),Td=function(){function e(t){this.options=t,this.attempt=0}return e.prototype.apply=function(){var t=this;return new Promise(function(r){return setTimeout(r,t.jitteredDelay)})},e.prototype.setAttemptNumber=function(t){this.attempt=t},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){var t=Pd.JitterFactory(this.options);return t(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var t=this.options.startingDelay,r=this.options.timeMultiple,n=this.numOfDelayedAttempts,o=t*Math.pow(r,n);return Math.min(o,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();Ro.Delay=Td});var Os=oe(Le=>{"use strict";var Fd=Le&&Le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Od=Le&&Le.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Dd=Le&&Le.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(d){return u([a,d])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Le,"__esModule",{value:!0});var Md=Io(),Nd=function(e){Fd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.apply=function(){return Od(this,void 0,void 0,function(){return Dd(this,function(r){return[2,this.isFirstAttempt?!0:e.prototype.apply.call(this)]})})},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return this.attempt===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(Md.Delay);Le.SkipFirstDelay=Nd});var Ds=oe(sr=>{"use strict";var qd=sr&&sr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sr,"__esModule",{value:!0});var _d=Io(),Ld=function(e){qd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(_d.Delay);sr.AlwaysDelay=Ld});var Ms=oe(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var Ud=Os(),jd=Ds();function Vd(e,t){var r=Bd(e);return r.setAttemptNumber(t),r}Eo.DelayFactory=Vd;function Bd(e){return e.delayFirstAttempt?new jd.AlwaysDelay(e):new Ud.SkipFirstDelay(e)}});var Ns=oe(ft=>{"use strict";var ko=ft&&ft.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Po=ft&&ft.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(d){return u([a,d])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(ft,"__esModule",{value:!0});var Qd=ks(),$d=Ms();function Hd(e,t){return t===void 0&&(t={}),ko(this,void 0,void 0,function(){var r,n;return Po(this,function(o){switch(o.label){case 0:return r=Qd.getSanitizedOptions(t),n=new zd(e,r),[4,n.execute()];case 1:return[2,o.sent()]}})})}ft.backOff=Hd;var zd=function(){function e(t,r){this.request=t,this.options=r,this.attemptNumber=0}return e.prototype.execute=function(){return ko(this,void 0,void 0,function(){var t,r;return Po(this,function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,7];n.label=1;case 1:return n.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return n.sent(),[4,this.request()];case 3:return[2,n.sent()];case 4:return t=n.sent(),this.attemptNumber++,[4,this.options.retry(t,this.attemptNumber)];case 5:if(r=n.sent(),!r||this.attemptLimitReached)throw t;return[3,6];case 6:return[3,0];case 7:throw new Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return ko(this,void 0,void 0,function(){var t;return Po(this,function(r){switch(r.label){case 0:return t=$d.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var Ln=oe((_i,Li)=>{"use strict";(function(e,t){typeof _i=="object"&&typeof Li<"u"?Li.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(_i,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",c="day",u="week",a="month",d="quarter",p="year",f="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var T=["th","st","nd","rd"],P=O%100;return"["+O+(T[(P-20)%10]||T[P]||T[0])+"]"}},h=function(O,T,P){var D=String(O);return!D||D.length>=T?O:""+Array(T+1-D.length).join(P)+O},b={s:h,z:function(O){var T=-O.utcOffset(),P=Math.abs(T),D=Math.floor(P/60),F=P%60;return(T<=0?"+":"-")+h(D,2,"0")+":"+h(F,2,"0")},m:function O(T,P){if(T.date()<P.date())return-O(P,T);var D=12*(P.year()-T.year())+(P.month()-T.month()),F=T.clone().add(D,a),q=P-F<0,_=T.clone().add(D+(q?-1:1),a);return+(-(D+(P-F)/(q?F-_:_-F))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:a,y:p,w:u,d:c,D:f,h:s,m:i,s:o,ms:n,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},g="en",y={};y[g]=v;var E="$isDayjsObject",w=function(O){return O instanceof k||!(!O||!O[E])},S=function O(T,P,D){var F;if(!T)return g;if(typeof T=="string"){var q=T.toLowerCase();y[q]&&(F=q),P&&(y[q]=P,F=q);var _=T.split("-");if(!F&&_.length>1)return O(_[0])}else{var U=T.name;y[U]=T,F=U}return!D&&F&&(g=F),F||!D&&g},A=function(O,T){if(w(O))return O.clone();var P=typeof T=="object"?T:{};return P.date=O,P.args=arguments,new k(P)},x=b;x.l=S,x.i=w,x.w=function(O,T){return A(O,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var k=function(){function O(P){this.$L=S(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[E]=!0}var T=O.prototype;return T.parse=function(P){this.$d=function(D){var F=D.date,q=D.utc;if(F===null)return new Date(NaN);if(x.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var _=F.match(m);if(_){var U=_[2]-1||0,B=(_[7]||"0").substring(0,3);return q?new Date(Date.UTC(_[1],U,_[3]||1,_[4]||0,_[5]||0,_[6]||0,B)):new Date(_[1],U,_[3]||1,_[4]||0,_[5]||0,_[6]||0,B)}}return new Date(F)}(P),this.init()},T.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},T.$utils=function(){return x},T.isValid=function(){return this.$d.toString()!==l},T.isSame=function(P,D){var F=A(P);return this.startOf(D)<=F&&F<=this.endOf(D)},T.isAfter=function(P,D){return A(P)<this.startOf(D)},T.isBefore=function(P,D){return this.endOf(D)<A(P)},T.$g=function(P,D,F){return x.u(P)?this[D]:this.set(F,P)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(P,D){var F=this,q=!!x.u(D)||D,_=x.p(P),U=function(K,J){var Z=x.w(F.$u?Date.UTC(F.$y,J,K):new Date(F.$y,J,K),F);return q?Z:Z.endOf(c)},B=function(K,J){return x.w(F.toDate()[K].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(J)),F)},G=this.$W,V=this.$M,Q=this.$D,j="set"+(this.$u?"UTC":"");switch(_){case p:return q?U(1,0):U(31,11);case a:return q?U(1,V):U(0,V+1);case u:var H=this.$locale().weekStart||0,X=(G<H?G+7:G)-H;return U(q?Q-X:Q+(6-X),V);case c:case f:return B(j+"Hours",0);case s:return B(j+"Minutes",1);case i:return B(j+"Seconds",2);case o:return B(j+"Milliseconds",3);default:return this.clone()}},T.endOf=function(P){return this.startOf(P,!1)},T.$set=function(P,D){var F,q=x.p(P),_="set"+(this.$u?"UTC":""),U=(F={},F[c]=_+"Date",F[f]=_+"Date",F[a]=_+"Month",F[p]=_+"FullYear",F[s]=_+"Hours",F[i]=_+"Minutes",F[o]=_+"Seconds",F[n]=_+"Milliseconds",F)[q],B=q===c?this.$D+(D-this.$W):D;if(q===a||q===p){var G=this.clone().set(f,1);G.$d[U](B),G.init(),this.$d=G.set(f,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](B);return this.init(),this},T.set=function(P,D){return this.clone().$set(P,D)},T.get=function(P){return this[x.p(P)]()},T.add=function(P,D){var F,q=this;P=Number(P);var _=x.p(D),U=function(V){var Q=A(q);return x.w(Q.date(Q.date()+Math.round(V*P)),q)};if(_===a)return this.set(a,this.$M+P);if(_===p)return this.set(p,this.$y+P);if(_===c)return U(1);if(_===u)return U(7);var B=(F={},F[i]=t,F[s]=r,F[o]=e,F)[_]||1,G=this.$d.getTime()+P*B;return x.w(G,this)},T.subtract=function(P,D){return this.add(-1*P,D)},T.format=function(P){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||l;var q=P||"YYYY-MM-DDTHH:mm:ssZ",_=x.z(this),U=this.$H,B=this.$m,G=this.$M,V=F.weekdays,Q=F.months,j=F.meridiem,H=function(J,Z,pe,Ae){return J&&(J[Z]||J(D,q))||pe[Z].slice(0,Ae)},X=function(J){return x.s(U%12||12,J,"0")},K=j||function(J,Z,pe){var Ae=J<12?"AM":"PM";return pe?Ae.toLowerCase():Ae};return q.replace(C,function(J,Z){return Z||function(pe){switch(pe){case"YY":return String(D.$y).slice(-2);case"YYYY":return x.s(D.$y,4,"0");case"M":return G+1;case"MM":return x.s(G+1,2,"0");case"MMM":return H(F.monthsShort,G,Q,3);case"MMMM":return H(Q,G);case"D":return D.$D;case"DD":return x.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return H(F.weekdaysMin,D.$W,V,2);case"ddd":return H(F.weekdaysShort,D.$W,V,3);case"dddd":return V[D.$W];case"H":return String(U);case"HH":return x.s(U,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return K(U,B,!0);case"A":return K(U,B,!1);case"m":return String(B);case"mm":return x.s(B,2,"0");case"s":return String(D.$s);case"ss":return x.s(D.$s,2,"0");case"SSS":return x.s(D.$ms,3,"0");case"Z":return _}return null}(J)||_.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(P,D,F){var q,_=this,U=x.p(D),B=A(P),G=(B.utcOffset()-this.utcOffset())*t,V=this-B,Q=function(){return x.m(_,B)};switch(U){case p:q=Q()/12;break;case a:q=Q();break;case d:q=Q()/3;break;case u:q=(V-G)/6048e5;break;case c:q=(V-G)/864e5;break;case s:q=V/r;break;case i:q=V/t;break;case o:q=V/e;break;default:q=V}return F?q:x.a(q)},T.daysInMonth=function(){return this.endOf(a).$D},T.$locale=function(){return y[this.$L]},T.locale=function(P,D){if(!P)return this.$L;var F=this.clone(),q=S(P,D,!0);return q&&(F.$L=q),F},T.clone=function(){return x.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},O}(),M=k.prototype;return A.prototype=M,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",c],["$M",a],["$y",p],["$D",f]].forEach(function(O){M[O[1]]=function(T){return this.$g(T,O[0],O[1])}}),A.extend=function(O,T){return O.$i||(O(T,k,A),O.$i=!0),A},A.locale=S,A.isDayjs=w,A.unix=function(O){return A(1e3*O)},A.en=y[g],A.Ls=y,A.p={},A})});var Xc=oe((Ui,ji)=>{"use strict";(function(e,t){typeof Ui=="object"&&typeof ji<"u"?ji.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(Ui,function(){"use strict";var e="month",t="quarter";return function(r,n){var o=n.prototype;o.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var i=o.add;o.add=function(c,u){return c=Number(c),this.$utils().p(u)===t?this.add(3*c,e):i.bind(this)(c,u)};var s=o.startOf;o.startOf=function(c,u){var a=this.$utils(),d=!!a.u(u)||u;if(a.p(c)===t){var p=this.quarter()-1;return d?this.month(3*p).startOf(e).startOf("day"):this.month(3*p+2).endOf(e).endOf("day")}return s.bind(this)(c,u)}}})});var Zc=oe((Vi,Bi)=>{"use strict";(function(e,t){typeof Vi=="object"&&typeof Bi<"u"?Bi.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Vi,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(C){this[m]=+C}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var v=C.match(/([+-]|\d\d)/g),h=60*v[1]+(+v[2]||0);return h===0?0:v[0]==="+"?-h:h}(m)}],d=function(m){var C=s[m];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(m,C){var v,h=s.meridiem;if(h){for(var b=1;b<=24;b+=1)if(m.indexOf(h(b,0,C))>-1){v=b>12;break}}else v=m===(C?"pm":"PM");return v},f={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[n,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[n,u("day")],Do:[i,function(m){var C=s.ordinal,v=m.match(/\d+/);if(this.day=v[0],C)for(var h=1;h<=31;h+=1)C(h).replace(/\[|\]/g,"")===m&&(this.day=h)}],w:[o,u("week")],ww:[n,u("week")],M:[o,u("month")],MM:[n,u("month")],MMM:[i,function(m){var C=d("months"),v=(d("monthsShort")||C.map(function(h){return h.slice(0,3)})).indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(m){var C=d("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:a,ZZ:a};function l(m){var C,v;C=m,v=s&&s.formats;for(var h=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,x,k){var M=k&&k.toUpperCase();return x||v[k]||e[k]||v[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,T,P){return T||P.slice(1)})})).match(t),b=h.length,g=0;g<b;g+=1){var y=h[g],E=f[y],w=E&&E[0],S=E&&E[1];h[g]=S?{regex:w,parser:S}:y.replace(/^\[|\]$/g,"")}return function(A){for(var x={},k=0,M=0;k<b;k+=1){var O=h[k];if(typeof O=="string")M+=O.length;else{var T=O.regex,P=O.parser,D=A.slice(M),F=T.exec(D)[0];P.call(x,F),A=A.replace(F,"")}}return function(q){var _=q.afternoon;if(_!==void 0){var U=q.hours;_?U<12&&(q.hours+=12):U===12&&(q.hours=0),delete q.afternoon}}(x),x}}return function(m,C,v){v.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var h=C.prototype,b=h.parse;h.parse=function(g){var y=g.date,E=g.utc,w=g.args;this.$u=E;var S=w[1];if(typeof S=="string"){var A=w[2]===!0,x=w[3]===!0,k=A||x,M=w[2];x&&(M=w[2]),s=this.$locale(),!A&&M&&(s=v.Ls[M]),this.$d=function(D,F,q,_){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*D);var U=l(F)(D),B=U.year,G=U.month,V=U.day,Q=U.hours,j=U.minutes,H=U.seconds,X=U.milliseconds,K=U.zone,J=U.week,Z=new Date,pe=V||(B||G?1:Z.getDate()),Ae=B||Z.getFullYear(),Ge=0;B&&!G||(Ge=G>0?G-1:Z.getMonth());var It,Et=Q||0,or=j||0,vo=H||0,Co=X||0;return K?new Date(Date.UTC(Ae,Ge,pe,Et,or,vo,Co+60*K.offset*1e3)):q?new Date(Date.UTC(Ae,Ge,pe,Et,or,vo,Co)):(It=new Date(Ae,Ge,pe,Et,or,vo,Co),J&&(It=_(It).week(J).toDate()),It)}catch{return new Date("")}}(y,S,E,v),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),k&&y!=this.format(S)&&(this.$d=new Date("")),s={}}else if(S instanceof Array)for(var O=S.length,T=1;T<=O;T+=1){w[1]=S[T-1];var P=v.apply(this,w);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}T===O&&(this.$d=new Date(""))}else b.call(this,g)}}})});var $u=oe((ZR,Qu)=>{"use strict";var ny=/(^|; )Coveo-Pendragon=([^;]*)/;Qu.exports=()=>ny.exec(document.cookie)?.pop()||null});var zu=oe((cs,us)=>{"use strict";(function(e,t){typeof cs=="object"&&typeof us<"u"?us.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(cs,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,o){var i,s=function(d,p,f){f===void 0&&(f={});var l=new Date(d),m=function(C,v){v===void 0&&(v={});var h=v.timeZoneName||"short",b=C+"|"+h,g=t[b];return g||(g=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:C,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:h}),t[b]=g),g}(p,f);return m.formatToParts(l)},c=function(d,p){for(var f=s(d,p),l=[],m=0;m<f.length;m+=1){var C=f[m],v=C.type,h=C.value,b=e[v];b>=0&&(l[b]=parseInt(h,10))}var g=l[3],y=g===24?0:g,E=l[0]+"-"+l[1]+"-"+l[2]+" "+y+":"+l[4]+":"+l[5]+":000",w=+d;return(o.utc(E).valueOf()-(w-=w%1e3))/6e4},u=n.prototype;u.tz=function(d,p){d===void 0&&(d=i);var f,l=this.utcOffset(),m=this.toDate(),C=m.toLocaleString("en-US",{timeZone:d}),v=Math.round((m-new Date(C))/1e3/60),h=15*-Math.round(m.getTimezoneOffset()/15)-v;if(!Number(h))f=this.utcOffset(0,p);else if(f=o(C,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(h,!0),p){var b=f.utcOffset();f=f.add(l-b,"minute")}return f.$x.$timezone=d,f},u.offsetName=function(d){var p=this.$x.$timezone||o.tz.guess(),f=s(this.valueOf(),p,{timeZoneName:d}).find(function(l){return l.type.toLowerCase()==="timezonename"});return f&&f.value};var a=u.startOf;u.startOf=function(d,p){if(!this.$x||!this.$x.$timezone)return a.call(this,d,p);var f=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(f,d,p).tz(this.$x.$timezone,!0)},o.tz=function(d,p,f){var l=f&&p,m=f||p||i,C=c(+o(),m);if(typeof d!="string")return o(d).tz(m);var v=function(y,E,w){var S=y-60*E*1e3,A=c(S,w);if(E===A)return[S,E];var x=c(S-=60*(A-E)*1e3,w);return A===x?[S,A]:[y-60*Math.min(A,x)*1e3,Math.max(A,x)]}(o.utc(d,l).valueOf(),C,m),h=v[0],b=v[1],g=o(h).utcOffset(b);return g.$x.$timezone=m,g},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(d){i=d}}})});var Gu=oe((ls,ds)=>{"use strict";(function(e,t){typeof ls=="object"&&typeof ds<"u"?ds.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t()})(ls,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var s=o.prototype;i.utc=function(l){var m={date:l,utc:!0,args:arguments};return new o(m)},s.utc=function(l){var m=i(this.toDate(),{locale:this.$L,utc:!0});return l?m.add(this.utcOffset(),e):m},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var c=s.parse;s.parse=function(l){l.utc&&(this.$u=!0),this.$utils().u(l.$offset)||(this.$offset=l.$offset),c.call(this,l)};var u=s.init;s.init=function(){if(this.$u){var l=this.$d;this.$y=l.getUTCFullYear(),this.$M=l.getUTCMonth(),this.$D=l.getUTCDate(),this.$W=l.getUTCDay(),this.$H=l.getUTCHours(),this.$m=l.getUTCMinutes(),this.$s=l.getUTCSeconds(),this.$ms=l.getUTCMilliseconds()}else u.call(this)};var a=s.utcOffset;s.utcOffset=function(l,m){var C=this.$utils().u;if(C(l))return this.$u?0:C(this.$offset)?a.call(this):this.$offset;if(typeof l=="string"&&(l=function(g){g===void 0&&(g="");var y=g.match(t);if(!y)return null;var E=(""+y[0]).match(r)||["-",0,0],w=E[0],S=60*+E[1]+ +E[2];return S===0?0:w==="+"?S:-S}(l),l===null))return this;var v=Math.abs(l)<=16?60*l:l,h=this;if(m)return h.$offset=v,h.$u=l===0,h;if(l!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(h=this.local().add(v+b,e)).$offset=v,h.$x.$localOffset=b}else h=this.utc();return h};var d=s.format;s.format=function(l){var m=l||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,m)},s.valueOf=function(){var l=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*l},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var p=s.toDate;s.toDate=function(l){return l==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=s.diff;s.diff=function(l,m,C){if(l&&this.$u===l.$u)return f.call(this,l,m,C);var v=this.local(),h=i(l).local();return f.call(v,h,m,C)}}})});var cl=oe((aE,al)=>{"use strict";function hy(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}al.exports=yy;function yy(e,t,r){var n=r&&r.stringify||hy,o=1;if(typeof e=="object"&&e!==null){var i=t.length+o;if(i===1)return e;var s=new Array(i);s[0]=n(e);for(var c=1;c<i;c++)s[c]=n(t[c]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var a="",d=1-o,p=-1,f=e&&e.length||0,l=0;l<f;){if(e.charCodeAt(l)===37&&l+1<f){switch(p=p>-1?p:0,e.charCodeAt(l+1)){case 100:case 102:if(d>=u||t[d]==null)break;p<l&&(a+=e.slice(p,l)),a+=Number(t[d]),p=l+2,l++;break;case 105:if(d>=u||t[d]==null)break;p<l&&(a+=e.slice(p,l)),a+=Math.floor(Number(t[d])),p=l+2,l++;break;case 79:case 111:case 106:if(d>=u||t[d]===void 0)break;p<l&&(a+=e.slice(p,l));var m=typeof t[d];if(m==="string"){a+="'"+t[d]+"'",p=l+2,l++;break}if(m==="function"){a+=t[d].name||"<anonymous>",p=l+2,l++;break}a+=n(t[d]),p=l+2,l++;break;case 115:if(d>=u)break;p<l&&(a+=e.slice(p,l)),a+=String(t[d]),p=l+2,l++;break;case 37:p<l&&(a+=e.slice(p,l)),a+="%",p=l+2,l++,d--;break}++d}++l}return p===-1?e:(p<f&&(a+=e.slice(p)),a)}});var ml=oe((cE,Kn)=>{"use strict";var ul=cl();Kn.exports=$e;var qr=Oy().console||{},Sy={mapHttpRequest:Wn,mapHttpResponse:Wn,wrapRequestSerializer:ps,wrapResponseSerializer:ps,wrapErrorSerializer:ps,req:Wn,res:Wn,err:dl,errWithCause:dl};function nt(e,t){return e==="silent"?1/0:t.levels.values[e]}var gs=Symbol("pino.logFuncs"),fs=Symbol("pino.hierarchy"),vy={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function ll(e,t){let r={logger:t,parent:e[fs]};t[fs]=r}function Cy(e,t,r){let n={};t.forEach(o=>{n[o]=r[o]?r[o]:qr[o]||qr[vy[o]||"log"]||Xt}),e[gs]=n}function Ay(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function $e(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||qr;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},o=Ay(e.browser.serialize,n),i=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=Object.keys(e.customLevels||{}),c=["error","fatal","warn","info","debug","trace"].concat(s);typeof r=="function"&&c.forEach(function(C){r[C]=r}),(e.enabled===!1||e.browser.disabled)&&(e.level="silent");let u=e.level||"info",a=Object.create(r);a.log||(a.log=Xt),Cy(a,c,r),ll({},a),Object.defineProperty(a,"levelVal",{get:p}),Object.defineProperty(a,"level",{get:f,set:l});let d={transmit:t,serialize:o,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:c,timestamp:Py(e),messageKey:e.messageKey||"msg",onChild:e.onChild||Xt};a.levels=by(e),a.level=u,a.setMaxListeners=a.getMaxListeners=a.emit=a.addListener=a.on=a.prependListener=a.once=a.prependOnceListener=a.removeListener=a.removeAllListeners=a.listeners=a.listenerCount=a.eventNames=a.write=a.flush=Xt,a.serializers=n,a._serialize=o,a._stdErrSerialize=i,a.child=function(...C){return m.call(this,d,...C)},t&&(a._logEvent=ms());function p(){return nt(this.level,this)}function f(){return this._level}function l(C){if(C!=="silent"&&!this.levels.values[C])throw Error("unknown level "+C);this._level=C,xt(this,d,a,"error"),xt(this,d,a,"fatal"),xt(this,d,a,"warn"),xt(this,d,a,"info"),xt(this,d,a,"debug"),xt(this,d,a,"trace"),s.forEach(v=>{xt(this,d,a,v)})}function m(C,v,h){if(!v)throw new Error("missing bindings for child Pino");h=h||{},o&&v.serializers&&(h.serializers=v.serializers);let b=h.serializers;if(o&&b){var g=Object.assign({},n,b),y=e.browser.serialize===!0?Object.keys(g):o;delete v.serializers,hs([v],y,g,this._stdErrSerialize)}function E(S){this._childLevel=(S._childLevel|0)+1,this.bindings=v,g&&(this.serializers=g,this._serialize=y),t&&(this._logEvent=ms([].concat(S._logEvent.bindings,v)))}E.prototype=this;let w=new E(this);return ll(this,w),w.child=function(...S){return m.call(this,C,...S)},w.level=h.level||this.level,C.onChild(w),w}return a}function by(e){let t=e.customLevels||{},r=Object.assign({},$e.levels.values,t),n=Object.assign({},$e.levels.labels,wy(t));return{values:r,labels:n}}function wy(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}$e.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};$e.stdSerializers=Sy;$e.stdTimeFunctions=Object.assign({},{nullTime:pl,epochTime:fl,unixTime:Ty,isoTime:Fy});function xy(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[fs];for(;r.parent;)r=r.parent,r.logger.bindings&&t.push(r.logger.bindings);return t.reverse()}function xt(e,t,r,n){if(Object.defineProperty(e,n,{value:nt(e.level,r)>nt(n,r)?Xt:r[gs][n],writable:!0,enumerable:!0,configurable:!0}),e[n]===Xt){if(!t.transmit)return;let i=t.transmit.level||e.level,s=nt(i,r);if(nt(n,r)<s)return}e[n]=Iy(e,t,r,n);let o=xy(e);o.length!==0&&(e[n]=Ry(o,e[n]))}function Ry(e,t){return function(){return t.apply(this,[...e,...arguments])}}function Iy(e,t,r,n){return function(o){return function(){let s=t.timestamp(),c=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===qr?qr:this;for(var a=0;a<c.length;a++)c[a]=arguments[a];var d=!1;if(t.serialize&&(hs(c,this._serialize,this.serializers,this._stdErrSerialize),d=!0),t.asObject||t.formatters?o.call(u,Ey(this,n,c,s,t)):o.apply(u,c),t.transmit){let p=t.transmit.level||e._level,f=nt(p,r),l=nt(n,r);if(l<f)return;ky(this,{ts:s,methodLevel:n,methodValue:l,transmitLevel:p,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:nt(e._level,r)},c,d)}}}(e[gs][n])}function Ey(e,t,r,n,o){let{level:i,log:s=f=>f}=o.formatters||{},c=r.slice(),u=c[0],a={};if(n&&(a.time=n),i){let f=i(t,e.levels.values[t]);Object.assign(a,f)}else a.level=e.levels.values[t];let d=(e._childLevel|0)+1;if(d<1&&(d=1),u!==null&&typeof u=="object"){for(;d--&&typeof c[0]=="object";)Object.assign(a,c.shift());u=c.length?ul(c.shift(),c):void 0}else typeof u=="string"&&(u=ul(c.shift(),c));return u!==void 0&&(a[o.messageKey]=u),s(a)}function hs(e,t,r,n){for(let o in e)if(n&&e[o]instanceof Error)e[o]=$e.stdSerializers.err(e[o]);else if(typeof e[o]=="object"&&!Array.isArray(e[o])&&t)for(let i in e[o])t.indexOf(i)>-1&&i in r&&(e[o][i]=r[i](e[o][i]))}function ky(e,t,r,n=!1){let o=t.send,i=t.ts,s=t.methodLevel,c=t.methodValue,u=t.val,a=e._logEvent.bindings;n||hs(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(d){return a.indexOf(d)===-1}),e._logEvent.level.label=s,e._logEvent.level.value=c,o(s,e._logEvent,u),e._logEvent=ms(a)}function ms(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function dl(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function Py(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?pl:fl}function Wn(){return{}}function ps(e){return e}function Xt(){}function pl(){return!1}function fl(){return Date.now()}function Ty(){return Math.round(Date.now()/1e3)}function Fy(){return new Date(Date.now()).toISOString()}function Oy(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}Kn.exports.default=$e;Kn.exports.pino=$e});import{isNullOrUndefined as Ly}from"@coveo/bueno";var Lr=e=>e;var Qs=Pe(Ns(),1);var Gd="recommendation-internal-options",ov=Symbol.for(Gd);var be=new Error("Failed to load reducers."),kt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var mt=class extends Error{constructor(r,n){super();ue(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};function qs(e){return Array.isArray(e)}function _s(e,t){return[...e.reduce((r,n)=>{let o=t(n);return r.has(o)||r.set(o,n),r},new Map).values()]}var Wd=new Set(["1",1,"yes",!0]);function Ls(){if(typeof navigator>"u"||typeof window>"u")return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(r=>Wd.has(r))}function Us(e){let t={};for(let[r,n]of e)t[r]=n;return t}function ar(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function js(e){let t=[];for(let r in e){let n=encodeURIComponent(r),o=encodeURIComponent(e[r]);t.push(`${n}=${o}`)}return t.join("&")}function Vs(e){return typeof e!="object"||!e?!1:Object.values(e).every(Kd)}function Kd(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Bs(e){return e===429}var We=class e{static async call(t){let r=Yd(t),{logger:n}=t,o=await e.preprocessRequest(r,t);n.info(o,"Platform request");let{url:i,...s}=o,c=async()=>{let u=await fetch(i,s);if(Bs(u.status))throw u;return u};try{let u=await(0,Qs.backOff)(c,{retry:a=>{let d=a&&Bs(a.status);return d&&n.info("Platform retrying request"),d}});switch(u.status){case 419:case 401:throw n.info("Platform renewing token"),new kt;case 404:throw new mt(i,u.status);default:return n.info({response:u,requestInfo:o},"Platform response"),u}}catch(u){return u.message==="Failed to fetch"?new mt(i):u}}static async preprocessRequest(t,r){let{origin:n,preprocessRequest:o,logger:i,requestMetadata:s}=r,{signal:c,...u}=t,a=ar(u);try{let d=await o(t,n,s);return{...t,...d}}catch(d){i.error(d,"Platform request preprocessing failed. Returning default request options.")}return a}};function ne(e,t="prod",r="platform"){let n=t==="prod"?"":t,o=r==="platform"?"":`.${r}`;return`https://${e}${o}.org${n}.coveo.com`}function Pt(e,t="prod"){return`${ne(e,t)}/rest/search/v2`}function To(e,t="prod"){return`${ne(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function Yd(e){let{url:t,method:r,requestParams:n,contentType:o,accessToken:i,signal:s}=e,c=e.method==="POST"||e.method==="PUT",u=Jd(n,o);return{url:t,method:r,headers:{"Content-Type":o,Authorization:`Bearer ${i}`,...e.headers},...c&&{body:u},signal:s}}function Jd(e,t){return t==="application/x-www-form-urlencoded"?Vs(e)?js(e):"":JSON.stringify(e)}var Tt=class{constructor(t){ue(this,"_basePath");ue(this,"_params",{});this._basePath=t}addParam(t,r){this._params={...this.params,[t]:r}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([t,r])=>`${t}=${encodeURIComponent(r)}`).join("&")}`:this.basePath}};function Fo(e){let{url:t,accessToken:r,organizationId:n,authentication:o,...i}=e;return i}var Oo=e=>{let{response:t}=e;return t.body?Xd(e):Zd(t)},Xd=e=>tp(e)?rp(e):ep(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},Zd=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function ep(e){return e.body.statusCode!==void 0}function tp(e){return e.body.exception!==void 0}var rp=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function $s(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var Do=(e,t,r,n)=>{let o=new Tt(`${e.url}${n}`);return o.addParam("organizationId",e.organizationId),e.authentication&&o.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:o.href,origin:"searchApiFetch"}};var Hs=(e,t)=>{let r=new Tt(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.authentication&&r.addParam("authentication",e.authentication),e.q!==void 0&&r.addParam("q",e.q),e.enableNavigation!==void 0&&r.addParam("enableNavigation",`${e.enableNavigation}`),e.requestedOutputSize!==void 0&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),r.href},Mo=async(e,t)=>{let r=await We.call({...Do(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Fo(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=$s(r),o=await r.arrayBuffer(),s=new TextDecoder(n).decode(o);return np(s)?{success:s}:{error:Oo({response:r,body:s})}};function np(e){return typeof e=="string"}function op(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function ip(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function jr(e,t){if(t&&e.name==="AbortError")return{error:ip(e)};if(e instanceof mt)return{error:op(e)};throw e}var Vr=(e,t,r,n,o={})=>{sp(e);let i=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=ap(o),c=s?`${i}?${s}`:i;return{accessToken:e.accessToken,method:t,contentType:r,url:c,origin:"caseAssistApiFetch"}},Br=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),Qr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),sp=e=>{if(!e.url)throw new Error("The 'url' attribute must contain a valid platform URL.");if(!e.organizationId)throw new Error("The 'organizationId' attribute must contain a valid organization ID.");if(!e.accessToken)throw new Error("The 'accessToken' attribute must contain a valid platform access token.");if(!e.caseAssistId)throw new Error("The 'caseAssistId' attribute must contain a valid Case Assist configuration ID.")},ap=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var zs=e=>{let t=e.debug?{debug:"1"}:{};return{...Vr(e,"POST","application/json","/classify",t),requestParams:cp(e)}},cp=e=>({clientId:e.clientId,locale:e.locale,fields:Br(e.fields)});var Gs=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...Vr(e,"POST","application/json","/documents/suggest",t),requestParams:up(e)}},up=e=>({clientId:e.clientId,locale:e.locale,fields:Br(e.fields),context:e.context,analytics:e.analytics});var $r=class{constructor(t){this.options=t}async getCaseClassifications(t){let r=await We.call({...zs(t),...this.options});if(r instanceof Error)return jr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async getDocumentSuggestions(t){let r=await We.call({...Gs(t),...this.options});if(r instanceof Error)return jr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async html(t){return Mo(t,this.options)}};import{StringValue as sf}from"@coveo/bueno";function ie(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ws=lp,No=()=>Math.random().toString(36).substring(7).split("").join("."),dp={INIT:`@@redux/INIT${No()}`,REPLACE:`@@redux/REPLACE${No()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${No()}`},Hr=dp;function Te(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qo(e,t,r){if(typeof e!="function")throw new Error(ie(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(qo)(e,t)}let n=e,o=t,i=new Map,s=i,c=0,u=!1;function a(){s===i&&(s=new Map,i.forEach((v,h)=>{s.set(h,v)}))}function d(){if(u)throw new Error(ie(3));return o}function p(v){if(typeof v!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));let h=!0;a();let b=c++;return s.set(b,v),function(){if(h){if(u)throw new Error(ie(6));h=!1,a(),s.delete(b),i=null}}}function f(v){if(!Te(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(typeof v.type!="string")throw new Error(ie(17));if(u)throw new Error(ie(9));try{u=!0,o=n(o,v)}finally{u=!1}return(i=s).forEach(b=>{b()}),v}function l(v){if(typeof v!="function")throw new Error(ie(10));n=v,f({type:Hr.REPLACE})}function m(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(ie(11));function b(){let y=h;y.next&&y.next(d())}return b(),{unsubscribe:v(b)}},[Ws](){return this}}}return f({type:Hr.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:l,[Ws]:m}}function pp(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Hr.INIT})>"u")throw new Error(ie(12));if(typeof r(void 0,{type:Hr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ft(e){let t=Object.keys(e),r={};for(let s=0;s<t.length;s++){let c=t[s];typeof e[c]=="function"&&(r[c]=e[c])}let n=Object.keys(r),o,i;try{pp(r)}catch(s){i=s}return function(c={},u){if(i)throw i;let a=!1,d={};for(let p=0;p<n.length;p++){let f=n[p],l=r[f],m=c[f],C=l(m,u);if(typeof C>"u"){let v=u&&u.type;throw new Error(ie(14))}d[f]=C,a=a||C!==m}return a=a||n.length!==Object.keys(c).length,a?d:c}}function Ot(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Ks(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw new Error(ie(15))},s={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},c=e.map(u=>u(s));return i=Ot(...c)(o.dispatch),{...o,dispatch:i}}}function zr(e){return Te(e)&&"type"in e&&typeof e.type=="string"}var zo=Symbol.for("immer-nothing"),cr=Symbol.for("immer-draftable"),fe=Symbol.for("immer-state");function se(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ht=Object.getPrototypeOf;function ye(e){return!!e&&!!e[fe]}function me(e){return e?ea(e)||Array.isArray(e)||!!e[cr]||!!e.constructor?.[cr]||fr(e)||mr(e):!1}var fp=Object.prototype.constructor.toString();function ea(e){if(!e||typeof e!="object")return!1;let t=ht(e);if(t===null)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===fp}function Go(e){return ye(e)||se(15,e),e[fe].base_}function ur(e,t){yt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function yt(e){let t=e[fe];return t?t.type_:Array.isArray(e)?1:fr(e)?2:mr(e)?3:0}function lr(e,t){return yt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _o(e,t){return yt(e)===2?e.get(t):e[t]}function ta(e,t,r){let n=yt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function mp(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fr(e){return e instanceof Map}function mr(e){return e instanceof Set}function gt(e){return e.copy_||e.base_}function jo(e,t){if(fr(e))return new Map(e);if(mr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ea(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[fe];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){let s=o[i],c=n[s];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(n[s]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[s]})}return Object.create(ht(e),n)}else{let n=ht(e);if(n!==null&&r)return{...e};let o=Object.create(n);return Object.assign(o,e)}}function Kr(e,t=!1){return Yr(e)||ye(e)||!me(e)||(yt(e)>1&&(e.set=e.add=e.clear=e.delete=gp),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Kr(n,!0))),e}function gp(){se(2)}function Yr(e){return Object.isFrozen(e)}var Vo={};function St(e){let t=Vo[e];return t||se(0,e),t}function hp(e,t){Vo[e]||(Vo[e]=t)}var dr;function ra(){return dr}function yp(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ys(e,t){t&&(St("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bo(e){Qo(e),e.drafts_.forEach(Sp),e.drafts_=null}function Qo(e){e===dr&&(dr=e.parent_)}function Js(e){return dr=yp(dr,e)}function Sp(e){let t=e[fe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[fe].modified_&&(Bo(t),se(4)),me(e)&&(e=Gr(t,e),t.parent_||Wr(t,e)),t.patches_&&St("Patches").generateReplacementPatches_(r[fe].base_,e,t.patches_,t.inversePatches_)):e=Gr(t,r,[]),Bo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==zo?e:void 0}function Gr(e,t,r){if(Yr(t))return t;let n=t[fe];if(!n)return ur(t,(o,i)=>Zs(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Wr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let o=n.copy_,i=o,s=!1;n.type_===3&&(i=new Set(o),o.clear(),s=!0),ur(i,(c,u)=>Zs(e,n,o,c,u,r,s)),Wr(e,o,!1),r&&e.patches_&&St("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Zs(e,t,r,n,o,i,s){if(ye(o)){let c=i&&t&&t.type_!==3&&!lr(t.assigned_,n)?i.concat(n):void 0,u=Gr(e,o,c);if(ta(r,n,u),ye(u))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(me(o)&&!Yr(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Gr(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Wr(e,o)}}function Wr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Kr(t,r)}function vp(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:ra(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=n,i=Wo;r&&(o=[n],i=pr);let{revoke:s,proxy:c}=Proxy.revocable(o,i);return n.draft_=c,n.revoke_=s,c}var Wo={get(e,t){if(t===fe)return e;let r=gt(e);if(!lr(r,t))return Cp(e,r,t);let n=r[t];return e.finalized_||!me(n)?n:n===Lo(e.base_,t)?(Uo(e),e.copy_[t]=Ho(n,e)):n},has(e,t){return t in gt(e)},ownKeys(e){return Reflect.ownKeys(gt(e))},set(e,t,r){let n=na(gt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let o=Lo(gt(e),t),i=o?.[fe];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(mp(r,o)&&(r!==void 0||lr(e.base_,t)))return!0;Uo(e),$o(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Lo(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Uo(e),$o(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=gt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){se(11)},getPrototypeOf(e){return ht(e.base_)},setPrototypeOf(){se(12)}},pr={};ur(Wo,(e,t)=>{pr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pr.deleteProperty=function(e,t){return pr.set.call(this,e,t,void 0)};pr.set=function(e,t,r){return Wo.set.call(this,e[0],t,r,e[0])};function Lo(e,t){let r=e[fe];return(r?gt(r):e)[t]}function Cp(e,t,r){let n=na(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function na(e,t){if(!(t in e))return;let r=ht(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ht(r)}}function $o(e){e.modified_||(e.modified_=!0,e.parent_&&$o(e.parent_))}function Uo(e){e.copy_||(e.copy_=jo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ap=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let i=r;r=t;let s=this;return function(u=i,...a){return s.produce(u,d=>r.call(this,d,...a))}}typeof r!="function"&&se(6),n!==void 0&&typeof n!="function"&&se(7);let o;if(me(t)){let i=Js(this),s=Ho(t,void 0),c=!0;try{o=r(s),c=!1}finally{c?Bo(i):Qo(i)}return Ys(i,n),Xs(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===zo&&(o=void 0),this.autoFreeze_&&Kr(o,!0),n){let i=[],s=[];St("Patches").generateReplacementPatches_(t,o,i,s),n(i,s)}return o}else se(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,u=>t(u,...c));let n,o;return[this.produce(t,r,(s,c)=>{n=s,o=c}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){me(e)||se(8),ye(e)&&(e=oa(e));let t=Js(this),r=Ho(e,void 0);return r[fe].isManual_=!0,Qo(t),r}finishDraft(e,t){let r=e&&e[fe];(!r||!r.isManual_)&&se(9);let{scope_:n}=r;return Ys(n,t),Xs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));let n=St("Patches").applyPatches_;return ye(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Ho(e,t){let r=fr(e)?St("MapSet").proxyMap_(e,t):mr(e)?St("MapSet").proxySet_(e,t):vp(e,t);return(t?t.scope_:ra()).drafts_.push(r),r}function oa(e){return ye(e)||se(10,e),ia(e)}function ia(e){if(!me(e)||Yr(e))return e;let t=e[fe],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=jo(e,t.scope_.immer_.useStrictShallowCopy_)}else r=jo(e,!0);return ur(r,(n,o)=>{ta(r,n,ia(o))}),t&&(t.finalized_=!1),r}function sa(){let t="replace",r="add",n="remove";function o(f,l,m,C){switch(f.type_){case 0:case 2:return s(f,l,m,C);case 1:return i(f,l,m,C);case 3:return c(f,l,m,C)}}function i(f,l,m,C){let{base_:v,assigned_:h}=f,b=f.copy_;b.length<v.length&&([v,b]=[b,v],[m,C]=[C,m]);for(let g=0;g<v.length;g++)if(h[g]&&b[g]!==v[g]){let y=l.concat([g]);m.push({op:t,path:y,value:p(b[g])}),C.push({op:t,path:y,value:p(v[g])})}for(let g=v.length;g<b.length;g++){let y=l.concat([g]);m.push({op:r,path:y,value:p(b[g])})}for(let g=b.length-1;v.length<=g;--g){let y=l.concat([g]);C.push({op:n,path:y})}}function s(f,l,m,C){let{base_:v,copy_:h}=f;ur(f.assigned_,(b,g)=>{let y=_o(v,b),E=_o(h,b),w=g?lr(v,b)?t:r:n;if(y===E&&w===t)return;let S=l.concat(b);m.push(w===n?{op:w,path:S}:{op:w,path:S,value:E}),C.push(w===r?{op:n,path:S}:w===n?{op:r,path:S,value:p(y)}:{op:t,path:S,value:p(y)})})}function c(f,l,m,C){let{base_:v,copy_:h}=f,b=0;v.forEach(g=>{if(!h.has(g)){let y=l.concat([b]);m.push({op:n,path:y,value:g}),C.unshift({op:r,path:y,value:g})}b++}),b=0,h.forEach(g=>{if(!v.has(g)){let y=l.concat([b]);m.push({op:r,path:y,value:g}),C.unshift({op:n,path:y,value:g})}b++})}function u(f,l,m,C){m.push({op:t,path:[],value:l===zo?void 0:l}),C.push({op:t,path:[],value:f})}function a(f,l){return l.forEach(m=>{let{path:C,op:v}=m,h=f;for(let E=0;E<C.length-1;E++){let w=yt(h),S=C[E];typeof S!="string"&&typeof S!="number"&&(S=""+S),(w===0||w===1)&&(S==="__proto__"||S==="constructor")&&se(19),typeof h=="function"&&S==="prototype"&&se(19),h=_o(h,S),typeof h!="object"&&se(18,C.join("/"))}let b=yt(h),g=d(m.value),y=C[C.length-1];switch(v){case t:switch(b){case 2:return h.set(y,g);case 3:se(16);default:return h[y]=g}case r:switch(b){case 1:return y==="-"?h.push(g):h.splice(y,0,g);case 2:return h.set(y,g);case 3:return h.add(g);default:return h[y]=g}case n:switch(b){case 1:return h.splice(y,1);case 2:return h.delete(y);case 3:return h.delete(m.value);default:return delete h[y]}default:se(17,v)}}),f}function d(f){if(!me(f))return f;if(Array.isArray(f))return f.map(d);if(fr(f))return new Map(Array.from(f.entries()).map(([m,C])=>[m,d(C)]));if(mr(f))return new Set(Array.from(f).map(d));let l=Object.create(ht(f));for(let m in f)l[m]=d(f[m]);return lr(f,cr)&&(l[cr]=f[cr]),l}function p(f){return ye(f)?d(f):f}hp("Patches",{applyPatches_:a,generatePatches_:o,generateReplacementPatches_:u})}var Se=new Ap,Ue=Se.produce,Jr=Se.produceWithPatches.bind(Se),Kv=Se.setAutoFreeze.bind(Se),Yv=Se.setUseStrictShallowCopy.bind(Se),Ko=Se.applyPatches.bind(Se),Jv=Se.createDraft.bind(Se),Xv=Se.finishDraft.bind(Se);function bp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function wp(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xp(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){let r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var aa=e=>Array.isArray(e)?e:[e];function Rp(e){let t=Array.isArray(e[0])?e[0]:e;return xp(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ip(e,t){let r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var tC=Symbol();var rC=Object.getPrototypeOf({});var Ep=class{constructor(e){this.value=e}deref(){return this.value}},kp=typeof WeakRef<"u"?WeakRef:Ep,Pp=0,ca=1;function Xr(){return{s:Pp,v:void 0,o:null,p:null}}function Dt(e,t={}){let r=Xr(),{resultEqualityCheck:n}=t,o,i=0;function s(){let c=r,{length:u}=arguments;for(let p=0,f=u;p<f;p++){let l=arguments[p];if(typeof l=="function"||typeof l=="object"&&l!==null){let m=c.o;m===null&&(c.o=m=new WeakMap);let C=m.get(l);C===void 0?(c=Xr(),m.set(l,c)):c=C}else{let m=c.p;m===null&&(c.p=m=new Map);let C=m.get(l);C===void 0?(c=Xr(),m.set(l,c)):c=C}}let a=c,d;if(c.s===ca)d=c.v;else if(d=e.apply(null,arguments),i++,n){let p=o?.deref?.()??o;p!=null&&n(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new kp(d):d}return a.s=ca,a.v=d,d}return s.clearCache=()=>{r=Xr(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function ua(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,c,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),bp(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let d={...r,...u},{memoize:p,memoizeOptions:f=[],argsMemoize:l=Dt,argsMemoizeOptions:m=[],devModeChecks:C={}}=d,v=aa(f),h=aa(m),b=Rp(o),g=p(function(){return i++,a.apply(null,arguments)},...v),y=!0,E=l(function(){s++;let S=Ip(b,arguments);return c=g.apply(null,S),c},...h);return Object.assign(E,{resultFunc:a,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var Y=ua(Dt),Tp=Object.assign((e,t=Y)=>{wp(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,c,u)=>(s[r[u]]=c,s),{}))},{withTypes:()=>Tp});function la(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var da=la(),pa=la;var Fp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ot:Ot.apply(null,arguments)},pC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Op=e=>e&&typeof e.match=="function";function N(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(Ie(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>zr(n)&&n.type===e,r}var ya=class gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,gr.prototype)}static get[Symbol.species](){return gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new gr(...t[0].concat(this)):new gr(...t.concat(this))}};function fa(e){return me(e)?Ue(e,()=>{}):e}function ma(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Dp(e){return typeof e=="boolean"}var Mp=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{},s=new ya;return r&&(Dp(r)?s.push(da):s.push(pa(r.extraArgument))),s},hr="RTK_autoBatch",Nt=()=>e=>({payload:e,meta:{[hr]:!0}}),ga=e=>t=>{setTimeout(t,e)},Np=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),o=!0,i=!1,s=!1,c=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ga(10):e.type==="callback"?e.queueNotification:ga(e.timeout),a=()=>{s=!1,i&&(i=!1,c.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let p=()=>o&&d(),f=n.subscribe(p);return c.add(d),()=>{f(),c.delete(d)}},dispatch(d){try{return o=!d?.meta?.[hr],i=!o,i&&(s||(s=!0,u(a))),n.dispatch(d)}finally{o=!0}}})},qp=e=>function(r){let{autoBatch:n=!0}=r??{},o=new ya(e);return n&&o.push(Np(typeof n=="object"?n:void 0)),o};function Sa(e){let t=Mp(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:i=void 0,enhancers:s=void 0}=e||{},c;if(typeof r=="function")c=r;else if(Te(r))c=Ft(r);else throw new Error(Ie(1));let u;typeof n=="function"?u=n(t):u=t();let a=Ot;o&&(a=Fp({trace:!1,...typeof o=="object"&&o}));let d=Ks(...u),p=qp(d),f=typeof s=="function"?s(p):p(),l=a(...f);return qo(c,i,l)}function va(e){let t={},r=[],n,o={addCase(i,s){let c=typeof i=="string"?i:i.type;if(!c)throw new Error(Ie(28));if(c in t)throw new Error(Ie(29));return t[c]=s,o},addMatcher(i,s){return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){return n=i,o}};return e(o),[t,r,n]}function _p(e){return typeof e=="function"}function ee(e,t){let[r,n,o]=va(t),i;if(_p(e))i=()=>fa(e());else{let c=fa(e);i=()=>c}function s(c=i(),u){let a=[r[u.type],...n.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return a.filter(d=>!!d).length===0&&(a=[o]),a.reduce((d,p)=>{if(p)if(ye(d)){let l=p(d,u);return l===void 0?d:l}else{if(me(d))return Ue(d,f=>p(f,u));{let f=p(d,u);if(f===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return d},c)}return s.getInitialState=i,s}var Ca=(e,t)=>Op(e)?e.match(t):e(t);function Fe(...e){return t=>e.some(r=>Ca(r,t))}function Mt(...e){return t=>e.every(r=>Ca(r,t))}function en(e,t){if(!e||!e.meta)return!1;let r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function yr(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function tn(...e){return e.length===0?t=>en(t,["pending"]):yr(e)?Fe(...e.map(t=>t.pending)):tn()(e[0])}function vt(...e){return e.length===0?t=>en(t,["rejected"]):yr(e)?Fe(...e.map(t=>t.rejected)):vt()(e[0])}function Sr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Mt(vt(...e),t):yr(e)?Mt(vt(...e),t):Sr()(e[0])}function je(...e){return e.length===0?t=>en(t,["fulfilled"]):yr(e)?Fe(...e.map(t=>t.fulfilled)):je()(e[0])}function rn(...e){return e.length===0?t=>en(t,["pending","fulfilled","rejected"]):yr(e)?Fe(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):rn()(e[0])}var Lp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nn=(e=21)=>{let t="",r=e;for(;r--;)t+=Lp[Math.random()*64|0];return t},Up=["name","message","stack","code"],Yo=class{constructor(e,t){ue(this,"_type");this.payload=e,this.meta=t}},ha=class{constructor(e,t){ue(this,"_type");this.payload=e,this.meta=t}},jp=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Up)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},W=(()=>{function e(t,r,n){let o=N(t+"/fulfilled",(u,a,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:a,requestStatus:"fulfilled"}})),i=N(t+"/pending",(u,a,d)=>({payload:void 0,meta:{...d||{},arg:a,requestId:u,requestStatus:"pending"}})),s=N(t+"/rejected",(u,a,d,p,f)=>({payload:p,error:(n&&n.serializeError||jp)(u||"Rejected"),meta:{...f||{},arg:d,requestId:a,rejectedWithValue:!!p,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function c(u){return(a,d,p)=>{let f=n?.idGenerator?n.idGenerator(u):nn(),l=new AbortController,m,C;function v(b){C=b,l.abort()}let h=async function(){let b;try{let y=n?.condition?.(u,{getState:d,extra:p});if(Bp(y)&&(y=await y),y===!1||l.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let E=new Promise((w,S)=>{m=()=>{S({name:"AbortError",message:C||"Aborted"})},l.signal.addEventListener("abort",m)});a(i(f,u,n?.getPendingMeta?.({requestId:f,arg:u},{getState:d,extra:p}))),b=await Promise.race([E,Promise.resolve(r(u,{dispatch:a,getState:d,extra:p,requestId:f,signal:l.signal,abort:v,rejectWithValue:(w,S)=>new Yo(w,S),fulfillWithValue:(w,S)=>new ha(w,S)})).then(w=>{if(w instanceof Yo)throw w;return w instanceof ha?o(w.payload,f,u,w.meta):o(w,f,u)})])}catch(y){b=y instanceof Yo?s(null,f,u,y.payload,y.meta):s(y,f,u)}finally{m&&l.signal.removeEventListener("abort",m)}return n&&!n.dispatchConditionRejection&&s.match(b)&&b.meta.condition||a(b),b}();return Object.assign(h,{abort:v,requestId:f,arg:u,unwrap(){return h.then(Vp)}})}}return Object.assign(c,{pending:i,rejected:s,fulfilled:o,settled:Fe(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Vp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Aa=Symbol.for("rtk-slice-createasyncthunk"),yC={[Aa]:W};function Qp(e,t){return`${e}/${t}`}function $p({creators:e}={}){let t=e?.asyncThunk?.[Aa];return function(n){let{name:o,reducerPath:i=o}=n;if(!o)throw new Error(Ie(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(zp()):n.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(b,g){let y=typeof b=="string"?b:b.type;if(!y)throw new Error(Ie(12));if(y in u.sliceCaseReducersByType)throw new Error(Ie(13));return u.sliceCaseReducersByType[y]=g,a},addMatcher(b,g){return u.sliceMatchers.push({matcher:b,reducer:g}),a},exposeAction(b,g){return u.actionCreators[b]=g,a},exposeCaseReducer(b,g){return u.sliceCaseReducersByName[b]=g,a}};c.forEach(b=>{let g=s[b],y={reducerName:b,type:Qp(o,b),createNotation:typeof n.reducers=="function"};Wp(g)?Yp(y,g,a,t):Gp(y,g,a)});function d(){let[b={},g=[],y=void 0]=typeof n.extraReducers=="function"?va(n.extraReducers):[n.extraReducers],E={...b,...u.sliceCaseReducersByType};return ee(n.initialState,w=>{for(let S in E)w.addCase(S,E[S]);for(let S of u.sliceMatchers)w.addMatcher(S.matcher,S.reducer);for(let S of g)w.addMatcher(S.matcher,S.reducer);y&&w.addDefaultCase(y)})}let p=b=>b,f=new Map,l;function m(b,g){return l||(l=d()),l(b,g)}function C(){return l||(l=d()),l.getInitialState()}function v(b,g=!1){function y(w){let S=w[b];return typeof S>"u"&&g&&(S=C()),S}function E(w=p){let S=ma(f,g,()=>new WeakMap);return ma(S,w,()=>{let A={};for(let[x,k]of Object.entries(n.selectors??{}))A[x]=Hp(k,w,C,g);return A})}return{reducerPath:b,getSelectors:E,get selectors(){return E(y)},selectSlice:y}}let h={name:o,reducer:m,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...v(i),injectInto(b,{reducerPath:g,...y}={}){let E=g??i;return b.inject({reducerPath:E,reducer:m},y),{...h,...v(E,!0)}}};return h}}function Hp(e,t,r,n){function o(i,...s){let c=t(i);return typeof c>"u"&&n&&(c=r()),e(c,...s)}return o.unwrapped=e,o}var Ct=$p();function zp(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Gp({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!Kp(n))throw new Error(Ie(17));i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?N(e,s):N(e))}function Wp(e){return e._reducerDefinitionType==="asyncThunk"}function Kp(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Yp({type:e,reducerName:t},r,n,o){if(!o)throw new Error(Ie(18));let{payloadCreator:i,fulfilled:s,pending:c,rejected:u,settled:a,options:d}=r,p=o(e,i,d);n.exposeAction(t,p),s&&n.addCase(p.fulfilled,s),c&&n.addCase(p.pending,c),u&&n.addCase(p.rejected,u),a&&n.addMatcher(p.settled,a),n.exposeCaseReducer(t,{fulfilled:s||Zr,pending:c||Zr,rejected:u||Zr,settled:a||Zr})}function Zr(){}var ba="listener",wa="completed",xa="cancelled",SC=`task-${xa}`,vC=`task-${wa}`,CC=`${ba}-${xa}`,AC=`${ba}-${wa}`;var{assign:Ra}=Object;var Jo="listenerMiddleware";var Jp=Ra(N(`${Jo}/add`),{withTypes:()=>Jp}),bC=N(`${Jo}/removeAll`),Xp=Ra(N(`${Jo}/remove`),{withTypes:()=>Xp});var wC=Symbol.for("rtk-state-proxy-original");function Ie(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}import{Schema as Zp,SchemaValidationError as ef,StringValue as At,RecordValue as tf,ArrayValue as rf}from"@coveo/bueno";var $=new At({required:!0,emptyAllowed:!1}),te=new At({required:!1,emptyAllowed:!1}),Ee=new At({required:!0,emptyAllowed:!0}),OC=new At({required:!1,emptyAllowed:!0}),Ia=new rf({each:$,required:!0}),Ea=new At({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),ka=new At({required:!1,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/}),DC=new At({required:!0,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/}),nf=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Xo=(e,t)=>{if("required"in t)return{payload:new Zp({value:t}).validate({value:e}).value};let o=new tf({options:{required:!0},values:t}).validate(e);if(o)throw new ef(o);return{payload:e}},L=(e,t)=>{try{return Xo(e,t)}catch(r){return{payload:e,error:nf(r)}}};var on=(e,t,r,n)=>{let o=`Check the options of ${n}`;return of(e,t,r,o,"Controller initialization error")},of=(e,t,r,n,o)=>{try{return t.validate(r,n)}catch(i){throw e.logger.error(i,o),i}};var sn=N("caseAssistConfiguration/set",e=>L(e,{caseAssistId:$,locale:te,proxyBaseUrl:new sf({required:!1,url:!0})}));var Pa=()=>({caseAssistId:"",locale:"en-US"});var Ke=ee(Pa(),e=>{e.addCase(sn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});import{BooleanValue as Ta,StringValue as vr,NumberValue as Fa,RecordValue as Ye}from"@coveo/bueno";var Oa={q:new vr,enableQuerySyntax:new Ta,aq:new vr,cq:new vr,firstResult:new Fa({min:0}),numberOfResults:new Fa({min:0}),sortCriteria:new vr,f:new Ye,fExcluded:new Ye,cf:new Ye,nf:new Ye,mnf:new Ye,df:new Ye,debug:new Ta,sf:new Ye,tab:new vr,af:new Ye};var an=N("searchParameters/restore",e=>L(e,Oa)),YC=N("searchParameters/restoreTab",e=>L(e,$));var Da=N("debug/enable"),Ma=N("debug/disable");var cn=()=>!1;var Na=ee(cn(),e=>{e.addCase(Da,()=>!0).addCase(Ma,()=>!1).addCase(an,(t,r)=>r.payload.debug??t)});import{StringValue as af}from"@coveo/bueno";var un=N("searchHub/set",e=>L(e,new af({required:!0,emptyAllowed:!0})));import{ArrayValue as cf,BooleanValue as _a,RecordValue as uf,StringValue as Cr,Value as lf}from"@coveo/bueno";var qt="3.25.0-pre.befd28e8fb",qa=["@coveo/atomic","@coveo/quantic"];var Zo=()=>te,La=()=>$,_t=N("configuration/updateBasicConfiguration",e=>L(e,{accessToken:te,environment:new Cr({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:te})),ln=N("configuration/updateSearchConfiguration",e=>L(e,{proxyBaseUrl:new Cr({required:!1,url:!0}),pipeline:new Cr({required:!1,emptyAllowed:!0}),searchHub:te,timezone:te,locale:te,authenticationProviders:new cf({required:!1,each:$})})),df={enabled:new _a({default:!0}),originContext:Zo(),originLevel2:Zo(),originLevel3:Zo(),proxyBaseUrl:new Cr({required:!1,url:!0}),runtimeEnvironment:new lf,anonymous:new _a({default:!1}),deviceId:te,userDisplayName:te,documentLocation:te,trackingId:ka,analyticsMode:new Cr({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new uf({options:{required:!1},values:qa.reduce((e,t)=>(e[t]=Ea,e),{})})},dn=N("configuration/updateAnalyticsConfiguration",e=>L(e,df)),pn=N("configuration/analytics/disable"),fn=N("configuration/analytics/enable"),Ua=N("configuration/analytics/originlevel2",e=>L(e,{originLevel2:La()})),ja=N("configuration/analytics/originlevel3",e=>L(e,{originLevel3:La()}));var pf=N("history/undo"),ff=N("history/redo"),Oe=N("history/snapshot"),vA=W("history/back",async(e,{dispatch:t})=>{t(pf()),await t(mn())}),CA=W("history/forward",async(e,{dispatch:t})=>{t(ff()),await t(mn())}),mn=W("history/change",async(e,{getState:t})=>t().history.present);var Lt=()=>"default";var Va=ee(Lt(),e=>{e.addCase(un,(t,r)=>r.payload).addCase(mn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(ln,(t,r)=>r.payload.searchHub||t)});var Ba=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function mf(e){return typeof e=="string"&&Ba.test(e)}var ei=mf;var ae=[];for(let e=0;e<256;++e)ae.push((e+256).toString(16).slice(1));function Qa(e,t=0){return(ae[e[t+0]]+ae[e[t+1]]+ae[e[t+2]]+ae[e[t+3]]+"-"+ae[e[t+4]]+ae[e[t+5]]+"-"+ae[e[t+6]]+ae[e[t+7]]+"-"+ae[e[t+8]]+ae[e[t+9]]+"-"+ae[e[t+10]]+ae[e[t+11]]+ae[e[t+12]]+ae[e[t+13]]+ae[e[t+14]]+ae[e[t+15]]).toLowerCase()}var ti,gf=new Uint8Array(16);function ri(){if(!ti){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ti=crypto.getRandomValues.bind(crypto)}return ti(gf)}var hf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:hf};function yf(e,t,r){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};let n=e.random??e.rng?.()??ri();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let o=0;o<16;++o)t[r+o]=n[o];return t}return Qa(n)}var oi=yf;function $a(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}function Sf({config:e,environment:t,event:r,listenerManager:n}){let{url:o,token:i,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(o,i,r))}var Ha="visitorId";function vf(e){return{getClientId:()=>{let t=e.get(),r=t.storage,n=r.getItem(Ha),o=n&&ei(n)?n:t.generateUUID();return r.setItem(Ha,o),o}}}var Ga="1.2.0";function Cf(e){let{trackingId:t}=e;return{trackingId:t}}function Af(e){return(e.source||[]).concat([`relay@${Ga}`])}function Wa(e,t,r,n){let{getReferrer:o,getLocation:i,getUserAgent:s}=r,c=Cf(t),u=n.getClientId();return Object.freeze({type:e,config:c,ts:Date.now(),source:Af(t),clientId:u,userAgent:s(),referrer:o(),location:i()})}function bf(e,t,r,n,o){return{...t,meta:Wa(e,r,n,o)}}var wf="*";function xf(){let e=[];function t({type:u,callback:a}){return e.findIndex(d=>d.type===u&&d.callback===a)}function r(u,a){return u.type==="*"||a===u.type}function n(u){return t(u)<0&&e.push(u),()=>c(u.type,u.callback)}function o(u){e.forEach(a=>{if(r(a,u.meta.type))try{a.callback(u)}catch(d){console.error(d)}})}function i(u){if(u===wf)e.length=0;else for(let a=e.length-1;a>=0;a--)e[a].type===u&&e.splice(a,1)}function s(u){let a=t(u);a>=0&&e.splice(a,1)}function c(u,a){a?s({type:u,callback:a}):i(u)}return{add:n,call:o,remove:c}}function za({url:e,token:t,trackingId:r,...n}){return Object.freeze({url:e,token:t,trackingId:r,...!!n.mode&&{mode:n.mode},...!!n.source&&{source:n.source},...!!n.environment&&{environment:n.environment}})}function Rf(e){let t=za(e);return{get:()=>t,update:r=>{t=za({...t,...r})}}}var ii=If();function If(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,o=document.cookie.split(";");for(let i of o){let s=i.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,o){let i=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+o).toUTCString()}`,c=i?`;domain=${i}`:"";document.cookie=`${e}${r}=${n}${s}${c};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Ef(){return{getItem(e){return ii.getItem(e)||localStorage.getItem(e)},removeItem(e){ii.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),ii.setItem(e,t,31556952e3)}}}function kf(){let e=document.referrer;return e===""?null:e}function Pf(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if($a().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!n)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>kf(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>oi(),storage:Ef()}}function Tf(){try{let e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&e.name==="QuotaExceededError"&&localStorage&&localStorage.length!==0}}function Ff(){return{getItem(){return null},removeItem(){},setItem(){}}}function Of(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Ff()}}function Df(e){let t=e.get().mode!=="disabled",r=e.get().environment,n=Of();return t&&r?{storage:n.storage,...r,runtime:"custom"}:t&&Mf()&&Tf()?Pf():n}function Mf(){try{return typeof window=="object"}catch{return!1}}function Nf(e){return{get:()=>Object.freeze(Df(e))}}function Ka(e){let t=Rf(e),r=xf(),n=Nf(t),o=vf(n);return{emit:(i,s)=>{let c=t.get(),u=n.get(),a=bf(i,s,c,u,o);return Sf({config:c,environment:u,event:a,listenerManager:r})},getMeta:i=>Wa(i,t.get(),n.get(),o),on:(i,s)=>r.add({type:i,callback:s}),off:(i,s)=>r.remove(i,s),updateConfig:i=>t.update(i),version:Ga}}var Ut=Y(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${qt}`));var jt=Y(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Ut(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:o,enabled:i},s)=>Ka({mode:i?"emit":"disabled",url:o??To(e,t),token:r,trackingId:n??null,source:s}));var si=e=>({referrer:document.referrer,userAgent:navigator.userAgent,location:window.location.href,clientId:e}),Ar=()=>({referrer:null,userAgent:null,location:null,clientId:""});var Ya=Y(e=>e.advancedSearchQueries,e=>{if(!e)return{};let{aq:t,cq:r,dq:n,lq:o}=e;return{...t&&{aq:t},...r&&{cq:r},...n&&{dq:n},...o&&{lq:o}}});var Vt=(e,t,r)=>({analytics:{clientId:t.clientId,clientTimestamp:new Date().toISOString(),documentReferrer:t.referrer,documentLocation:t.location,originContext:e.originContext,...r&&{actionCause:r.actionCause},...r&&{customData:r.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.deviceId&&{deviceId:e.deviceId},...e.trackingId&&{trackingId:e.trackingId},capture:t.capture??t.clientId!=="",source:Ut(e)}});import{ArrayValue as Gc,BooleanValue as Vg,NumberValue as Bg,RecordValue as Qg,StringValue as _n}from"@coveo/bueno";import{isNullOrUndefined as Nc,RecordValue as Ag,Schema as bg,StringValue as Nn}from"@coveo/bueno";function Ve(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function R(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(d){try{a(n.next(d))}catch(p){s(p)}}function u(d){try{a(n.throw(d))}catch(p){s(p)}}function a(d){d.done?i(d.value):o(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})}var z;(function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"})(z||(z={}));function ui(){return typeof window<"u"}function bi(){return typeof navigator<"u"}function Bt(){return typeof document<"u"}function li(){try{return typeof localStorage<"u"}catch{return!1}}function qf(){try{return typeof sessionStorage<"u"}catch{return!1}}function lc(){return bi()&&navigator.cookieEnabled}var _f=[z.click,z.custom,z.search,z.view],Lf=(e,t)=>_f.indexOf(e)!==-1?Object.assign({language:Bt()?document.documentElement.lang:"unknown",userAgent:bi()?navigator.userAgent:"unknown"},t):t,xr=class e{static set(t,r,n){var o,i,s,c;n&&(i=new Date,i.setTime(i.getTime()+n)),c=window.location.hostname,c.indexOf(".")===-1?Ja(t,r,i):(s=c.split("."),o=s[s.length-2]+"."+s[s.length-1],Ja(t,r,i,o))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){var i=n[o];if(i=i.replace(/^\s+/,""),i.lastIndexOf(r,0)===0)return i.substring(r.length,i.length)}return null}static erase(t){e.set(t,"",-1)}};function Ja(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Uf(){return li()?localStorage:lc()?new Rr:qf()?sessionStorage:new $t}var Rr=class e{getItem(t){return xr.get(`${e.prefix}${t}`)}removeItem(t){xr.erase(`${e.prefix}${t}`)}setItem(t,r,n){xr.set(`${e.prefix}${t}`,r,n)}};Rr.prefix="coveo_";var di=class{constructor(){this.cookieStorage=new Rr}getItem(t){return localStorage.getItem(t)||this.cookieStorage.getItem(t)}removeItem(t){this.cookieStorage.removeItem(t),localStorage.removeItem(t)}setItem(t,r){localStorage.setItem(t,r),this.cookieStorage.setItem(t,r,31556926e3)}},$t=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},br="__coveo.analytics.history",dc=20,pc=1e3*60,fc=75,Ht=class{constructor(t){this.store=t||Uf()}addElement(t){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=this.getHistoryWithInternalTime();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])}addElementAsync(t){return R(this,void 0,void 0,function*(){t.internalTime=new Date().getTime(),t=this.cropQueryElement(this.stripEmptyQuery(t));let r=yield this.getHistoryWithInternalTimeAsync();r!=null?this.isValidEntry(t)&&this.setHistory([t].concat(r)):this.setHistory([t])})}getHistory(){let t=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(t))}getHistoryAsync(){return R(this,void 0,void 0,function*(){let t=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(t))})}getHistoryWithInternalTime(){try{let t=this.store.getItem(br);return t&&typeof t=="string"?JSON.parse(t):[]}catch{return[]}}getHistoryWithInternalTimeAsync(){return R(this,void 0,void 0,function*(){try{let t=yield this.store.getItem(br);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(br,JSON.stringify(t.slice(0,dc)))}catch{}}clear(){try{this.store.removeItem(br)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,o)=>(o.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,fc)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>pc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:o,value:i}=r;return{name:n,time:o,value:i}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:o}=t;return r&&typeof o=="string"&&r.toLowerCase()==="query"&&o.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},mc=Object.freeze({__proto__:null,HistoryStore:Ht,MAX_NUMBER_OF_HISTORY_ELEMENTS:dc,MAX_VALUE_SIZE:fc,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:pc,STORE_KEY:br,default:Ht}),jf=(e,t)=>R(void 0,void 0,void 0,function*(){return e===z.view?(yield Vf(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),Vf=e=>R(void 0,void 0,void 0,function*(){let t=new Ht,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),gn,Bf=new Uint8Array(16);function Qf(){if(!gn&&(gn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gn(Bf)}var $f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yn(e){return typeof e=="string"&&$f.test(e)}var ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function gc(e,t=0){return(ce[e[t+0]]+ce[e[t+1]]+ce[e[t+2]]+ce[e[t+3]]+"-"+ce[e[t+4]]+ce[e[t+5]]+"-"+ce[e[t+6]]+ce[e[t+7]]+"-"+ce[e[t+8]]+ce[e[t+9]]+"-"+ce[e[t+10]]+ce[e[t+11]]+ce[e[t+12]]+ce[e[t+13]]+ce[e[t+14]]+ce[e[t+15]]).toLowerCase()}function Hf(e){if(!yn(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function zf(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Gf="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Wf="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kf(e,t,r){function n(o,i,s,c){var u;if(typeof o=="string"&&(o=zf(o)),typeof i=="string"&&(i=Hf(i)),((u=i)===null||u===void 0?void 0:u.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+o.length);if(a.set(i),a.set(o,i.length),a=r(a),a[6]=a[6]&15|t,a[8]=a[8]&63|128,s){c=c||0;for(let d=0;d<16;++d)s[c+d]=a[d];return s}return gc(a)}try{n.name=e}catch{}return n.DNS=Gf,n.URL=Wf,n}var Yf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xa={randomUUID:Yf};function bt(e,t,r){if(Xa.randomUUID&&!t&&!e)return Xa.randomUUID();e=e||{};let n=e.random||(e.rng||Qf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return gc(n)}function Jf(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function ai(e,t){return e<<t|e>>>32-t}function Xf(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){let s=unescape(encodeURIComponent(e));e=[];for(let c=0;c<s.length;++c)e.push(s.charCodeAt(c))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let n=e.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let s=0;s<o;++s){let c=new Uint32Array(16);for(let u=0;u<16;++u)c[u]=e[s*64+u*4]<<24|e[s*64+u*4+1]<<16|e[s*64+u*4+2]<<8|e[s*64+u*4+3];i[s]=c}i[o-1][14]=(e.length-1)*8/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<o;++s){let c=new Uint32Array(80);for(let l=0;l<16;++l)c[l]=i[s][l];for(let l=16;l<80;++l)c[l]=ai(c[l-3]^c[l-8]^c[l-14]^c[l-16],1);let u=r[0],a=r[1],d=r[2],p=r[3],f=r[4];for(let l=0;l<80;++l){let m=Math.floor(l/20),C=ai(u,5)+Jf(m,a,d,p)+f+t[m]+c[l]>>>0;f=p,p=d,d=ai(a,30)>>>0,a=u,u=C}r[0]=r[0]+u>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+d>>>0,r[3]=r[3]+p>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Zf=Kf("v5",80,Xf),Za=Zf,hc="2.30.45",ec=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,wr={pageview:"pageview",event:"event"},Sn=class{constructor({client:t,uuidGenerator:r=bt}){this.client=t,this.uuidGenerator=r}},pi=class extends Sn{constructor({client:t,uuidGenerator:r=bt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=ec(window.location),this.lastReferrer=Bt()?document.referrer:"",this.addHooks()}getApi(t){switch(t){case"setAction":return this.setAction;default:return null}}setAction(t,r){this.action=t,this.actionData=r}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(t,r){return Object.assign({hitType:t},this.getNextValues(t,r))}updateLocationInformation(t,r){this.updateLocationForNextPageView(t,r)}getDefaultContextInformation(t){let r={title:Bt()?document.title:"",encoding:Bt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},o={language:navigator.language,userAgent:navigator.userAgent},i={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},i),n),o),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:o,location:i}=this.getNextValues(t,r);this.lastReferrer=o,this.pageViewId=n,this.currentLocation=i,t===wr.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===wr.pageview?this.nextPageViewId:this.pageViewId,referrer:t===wr.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===wr.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=o=>o.replace(/^\/?(.*)$/,"/$1");return`${(o=>o.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return ec(window.location)}},Je=class e{constructor(t,r){if(!yn(t))throw Error("Not a valid uuid");this.clientId=t,this.creationDate=Math.floor(r/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let t=Math.floor(Date.now()/1e3)-this.creationDate;return t<0||t>e.expirationTime}validate(t,r){return!this.expired&&this.matchReferrer(t,r)}matchReferrer(t,r){try{let n=new URL(t);return r.some(o=>new RegExp(o.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(n.host))}catch{return!1}}static fromString(t){let r=t.split(".");if(r.length!==2)return null;let[n,o]=r;if(n.length!==32||isNaN(parseInt(o)))return null;let i=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return yn(i)?new e(i,Number.parseInt(o)*1e3):null}};Je.cvo_cid="cvo_cid";Je.expirationTime=120;var fi=class extends Sn{constructor({client:t,uuidGenerator:r=bt}){super({client:t,uuidGenerator:r})}getApi(t){switch(t){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(t){return R(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw new Error("Could not retrieve current clientId");try{let r=new URL(t),n=yield this.client.getCurrentVisitorId();return r.searchParams.set(Je.cvo_cid,new Je(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};fi.Id="link";var xe=Object.keys;function hn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var ci=128,yc=192,tc=224,rc=240;function em(e){return(e&248)===rc?4:(e&rc)===tc?3:(e&tc)===yc?2:1}function tm(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&e.charAt(r-3)=="%";){let n=Number.parseInt(e.substring(r-2,r),16);if((n&ci)!=ci)break;if(r-=3,(n&yc)!=ci){t-r>=em(n)*3&&(r=t);break}}return e.substring(0,r)}var mi={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},rm=xe(mi).map(e=>mi[e]),nm=[...rm].join("|"),om=new RegExp(`^(${nm}$)`),im={svcAction:"svc_action",svcActionData:"svc_action_data"},sm=e=>xe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=mi[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),am=e=>om.test(e),cm=[am],nc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},oc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},le={action:"pa",list:"pal",listSource:"pls"},vn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},um=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],gi={id:"quoteId",affiliation:"quoteAffiliation"},hi={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},lm={add:le,bookmark_add:le,bookmark_remove:le,click:le,checkout:le,checkout_option:le,detail:le,impression:le,remove:le,refund:Object.assign(Object.assign({},le),vn),purchase:Object.assign(Object.assign({},le),vn),quickview:le,quote:Object.assign(Object.assign({},le),gi),review:Object.assign(Object.assign({},le),hi)},dm=xe(nc).map(e=>nc[e]),pm=xe(oc).map(e=>oc[e]),fm=xe(le).map(e=>le[e]),mm=xe(vn).map(e=>vn[e]),gm=xe(hi).map(e=>hi[e]),hm=xe(gi).map(e=>gi[e]),ym=[...dm,"custom"].join("|"),Sm=[...pm,"custom"].join("|"),Sc="(pr[0-9]+)",vc="(il[0-9]+pi[0-9]+)",vm=new RegExp(`^${Sc}(${ym})$`),Cm=new RegExp(`^(${vc}(${Sm}))|(il[0-9]+nm)$`),Am=new RegExp(`^(${fm.join("|")})$`),bm=new RegExp(`^(${mm.join("|")})$`),wm=new RegExp(`^${Sc}custom$`),xm=new RegExp(`^${vc}custom$`),Rm=new RegExp(`^(${[...um,...gm,...hm].join("|")})$`),Im=e=>vm.test(e),Em=e=>Cm.test(e),km=e=>Am.test(e),Pm=e=>bm.test(e),Tm=e=>Rm.test(e),Fm=[Em,Im,km,Pm,Tm],Om=[wm,xm],Dm={anonymizeIp:"aip"},Mm={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},Nm={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},qm=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],_m=Object.assign(Object.assign(Object.assign(Object.assign({},Dm),Mm),Nm),qm.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),yi=Object.assign(Object.assign({},_m),im),Lm=e=>{let t=!!e.action&&lm[e.action]||{};return xe(e).reduce((r,n)=>{let o=t[n]||yi[n]||n;return Object.assign(Object.assign({},r),{[o]:e[n]})},{})},Um=xe(yi).map(e=>yi[e]),jm=e=>Um.indexOf(e)!==-1,Vm=e=>e==="custom",Bm=e=>[...Fm,...cm,jm,Vm].some(t=>t(e)),Qm=e=>xe(e).reduce((t,r)=>{let n=$m(r);return n?Object.assign(Object.assign({},t),Hm(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),$m=e=>{let t;return[...Om].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Hm=(e,t)=>xe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),Si=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){if(!this.isAvailable())throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:n,preprocessRequest:o}=this.opts,i=yield this.getQueryParamsForEventType(t),{url:s,payload:c}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${i}`,r,o),u=this.encodeForEventType(t,c),a=new Blob([u],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(s,a)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(t,r,n){return R(this,void 0,void 0,function*(){let o=t,i=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:c,body:u}=s;o=c||t;try{i=JSON.parse(u)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:i,url:o}})}encodeForEventType(t,r){return this.isEventTypeLegacy(t)?this.encodeEventToJson(t,r):this.encodeEventToJson(t,r,this.opts.token)}getQueryParamsForEventType(t){return R(this,void 0,void 0,function*(){let{token:r,visitorIdProvider:n}=this.opts,o=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",o?`visitorId=${o}`:"","discardVisitInfo=true"].filter(i=>!!i).join("&")})}isEventTypeLegacy(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let o=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(o=`access_token=${encodeURIComponent(n)}&${o}`),o}},vi=class{sendEvent(t,r){return R(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return R(this,void 0,void 0,function*(){return Promise.resolve()})}},ic=globalThis.fetch,Cn=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:o,preprocessRequest:i}=this.opts,s=this.shouldAppendVisitorId(t)?yield this.getVisitorIdParam():"",c={url:`${n}/analytics/${t}${s}`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(r)},u=Object.assign(Object.assign({},c),i?yield i(c,"analyticsFetch"):{}),{url:a}=u,d=Ve(u,["url"]),p;try{p=yield ic(a,d)}catch(f){console.error("An error has occured when sending the event.",f);return}if(p.ok){let f=yield p.json();return f.visitorId&&o.setCurrentVisitorId(f.visitorId),f}else{try{p.json()}catch{}throw console.error(`An error has occured when sending the "${t}" event.`,p,r),new Error(`An error has occurred when sending the "${t}" event. Check the console logs for more details.`)}})}deleteHttpCookieVisitorId(){return R(this,void 0,void 0,function*(){let{baseUrl:t}=this.opts,r=`${t}/analytics/visit`;yield ic(r,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}getVisitorIdParam(){return R(this,void 0,void 0,function*(){let{visitorIdProvider:t}=this.opts,r=yield t.getCurrentVisitorId();return r?`?visitor=${r}`:""})}getHeaders(){let{token:t}=this.opts;return Object.assign(Object.assign({},t?{Authorization:`Bearer ${t}`}:{}),{"Content-Type":"application/json"})}},Ci=class{constructor(t,r){li()&&lc()?this.storage=new di:li()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new $t),this.client=new Cn(t),this.beaconClient=new Si(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:o,payload:i}of n)this.beaconClient.sendEvent(o,i)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},Ai=class{constructor(t,r){this.storage=r||new $t,this.client=new Cn(t)}getClientDependingOnEventType(t){return this.client}},An=class{constructor(){this.storage=new $t,this.client=new vi}getClientDependingOnEventType(t){return this.client}},zm="xx",Gm=e=>e?.startsWith(zm)||!1,Wm=`
19
19
  We've detected you're using React Native but have not provided the corresponding runtime,
20
20
  for an optimal experience please use the "coveo.analytics/react-native" subpackage.
21
21
  Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native