@coveo/headless 3.22.5 → 3.23.0

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 +2 -2
@@ -15,7 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */(function(g,f){if(typeof exports=="object"&&typeof module<"u"){module.exports=f(require)}else if("function"==typeof define && define.amd){define("CoveoHeadlessCaseAssist",["crypto","@coveo/bueno"],function(_d_0,_d_1){var d={"crypto": _d_0,"@coveo/bueno": _d_1},r=function(m){if(m in d) return d[m];if(typeof require=="function") return require(m);throw new Error("Cannot find module '"+m+"'")};return f(r)})}else {var gN={"crypto":"crypto","@coveo/bueno":"@coveo/bueno"},gReq=function(r){var mod = r in gN ? g[gN[r]] : g[r]; return mod };g["CoveoHeadlessCaseAssist"]=f(gReq)}}(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : this,function(require){var exports={};var __exports=exports;var module={exports};
18
- "use strict";var bd=Object.create;var lr=Object.defineProperty;var wd=Object.getOwnPropertyDescriptor;var xd=Object.getOwnPropertyNames;var Rd=Object.getPrototypeOf,Id=Object.prototype.hasOwnProperty;var Ed=(e,t,r)=>t in e?lr(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),kd=(e,t)=>{for(var r in t)lr(e,r,{get:t[r],enumerable:!0})},Fs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xd(t))!Id.call(e,i)&&i!==r&&lr(e,i,{get:()=>t[i],enumerable:!(n=wd(t,i))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?bd(Rd(e)):{},Fs(t||!e||!e.__esModule?lr(r,"default",{value:e,enumerable:!0}):r,e)),Pd=e=>Fs(lr({},"__esModule",{value:!0}),e);var le=(e,t,r)=>Ed(e,typeof t!="symbol"?t+"":t,r);var Os=oe(dr=>{"use strict";var Qr=dr&&dr.__assign||function(){return Qr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qr.apply(this,arguments)};Object.defineProperty(dr,"__esModule",{value:!0});var Td={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function Fd(e){var t=Qr(Qr({},Td),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}dr.getSanitizedOptions=Fd});var Ds=oe(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});function Od(e){var t=Math.random()*e;return Math.round(t)}xi.fullJitter=Od});var Ms=oe(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});function Dd(e){return e}Ri.noJitter=Dd});var Ns=oe(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var Md=Ds(),Nd=Ms();function qd(e){switch(e.jitter){case"full":return Md.fullJitter;case"none":default:return Nd.noJitter}}Ii.JitterFactory=qd});var ki=oe(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var _d=Ns(),Ld=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=_d.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,i=t*Math.pow(r,n);return Math.min(i,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();Ei.Delay=Ld});var qs=oe(He=>{"use strict";var Ud=He&&He.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},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)}}(),jd=He&&He.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Vd=He&&He.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(He,"__esModule",{value:!0});var Bd=ki(),Qd=function(e){Ud(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.apply=function(){return jd(this,void 0,void 0,function(){return Vd(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}(Bd.Delay);He.SkipFirstDelay=Qd});var _s=oe(pr=>{"use strict";var $d=pr&&pr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},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(pr,"__esModule",{value:!0});var Hd=ki(),zd=function(e){$d(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Hd.Delay);pr.AlwaysDelay=zd});var Ls=oe(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Gd=qs(),Wd=_s();function Kd(e,t){var r=Yd(e);return r.setAttemptNumber(t),r}Pi.DelayFactory=Kd;function Yd(e){return e.delayFirstAttempt?new Wd.AlwaysDelay(e):new Gd.SkipFirstDelay(e)}});var Us=oe(Ct=>{"use strict";var Ti=Ct&&Ct.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Fi=Ct&&Ct.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Ct,"__esModule",{value:!0});var Jd=Os(),Xd=Ls();function Zd(e,t){return t===void 0&&(t={}),Ti(this,void 0,void 0,function(){var r,n;return Fi(this,function(i){switch(i.label){case 0:return r=Jd.getSanitizedOptions(t),n=new ep(e,r),[4,n.execute()];case 1:return[2,i.sent()]}})})}Ct.backOff=Zd;var ep=function(){function e(t,r){this.request=t,this.options=r,this.attemptNumber=0}return e.prototype.execute=function(){return Ti(this,void 0,void 0,function(){var t,r;return Fi(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 Ti(this,void 0,void 0,function(){var t;return Fi(this,function(r){switch(r.label){case 0:return t=Xd.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var Vn=oe((Mo,No)=>{"use strict";(function(e,t){typeof Mo=="object"&&typeof No<"u"?No.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Mo,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",c="day",u="week",a="month",d="quarter",p="year",f="date",l="Invalid Date",g=/^(\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:o,s:i,ms:n,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},m="en",y={};y[m]=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 m;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&&(m=F),F||!D&&m},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(g);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,Y){var X=x.w(F.$u?Date.UTC(F.$y,Y,K):new Date(F.$y,Y,K),F);return q?X:X.endOf(c)},B=function(K,Y){return x.w(F.toDate()[K].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Y)),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,J=(G<H?G+7:G)-H;return U(q?Q-J:Q+(6-J),V);case c:case f:return B(j+"Hours",0);case s:return B(j+"Minutes",1);case o:return B(j+"Seconds",2);case i: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[o]=_+"Minutes",F[i]=_+"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[o]=t,F[s]=r,F[i]=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(Y,X,ge,Ie){return Y&&(Y[X]||Y(D,q))||ge[X].slice(0,Ie)},J=function(Y){return x.s(U%12||12,Y,"0")},K=j||function(Y,X,ge){var Ie=Y<12?"AM":"PM";return ge?Ie.toLowerCase():Ie};return q.replace(C,function(Y,X){return X||function(ge){switch(ge){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 J(1);case"hh":return J(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}(Y)||_.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 o:q=V/t;break;case i: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",i],["$m",o],["$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[m],A.Ls=y,A.p={},A})});var Wc=oe((qo,_o)=>{"use strict";(function(e,t){typeof qo=="object"&&typeof _o<"u"?_o.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(qo,function(){"use strict";var e="month",t="quarter";return function(r,n){var i=n.prototype;i.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var o=i.add;i.add=function(c,u){return c=Number(c),this.$utils().p(u)===t?this.add(3*c,e):o.bind(this)(c,u)};var s=i.startOf;i.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 Kc=oe((Lo,Uo)=>{"use strict";(function(e,t){typeof Lo=="object"&&typeof Uo<"u"?Uo.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Lo,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/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(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}(g)}],d=function(g){var C=s[g];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(g,C){var v,h=s.meridiem;if(h){for(var b=1;b<=24;b+=1)if(g.indexOf(h(b,0,C))>-1){v=b>12;break}}else v=g===(C?"pm":"PM");return v},f={A:[o,function(g){this.afternoon=p(g,!1)}],a:[o,function(g){this.afternoon=p(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[o,function(g){var C=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],C)for(var h=1;h<=31;h+=1)C(h).replace(/\[|\]/g,"")===g&&(this.day=h)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[o,function(g){var C=d("months"),v=(d("monthsShort")||C.map(function(h){return h.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[o,function(g){var C=d("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:a,ZZ:a};function l(g){var C,v;C=g,v=s&&s.formats;for(var h=(g=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,m=0;m<b;m+=1){var y=h[m],E=f[y],w=E&&E[0],S=E&&E[1];h[m]=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(g,C,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var h=C.prototype,b=h.parse;h.parse=function(m){var y=m.date,E=m.utc,w=m.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,J=U.milliseconds,K=U.zone,Y=U.week,X=new Date,ge=V||(B||G?1:X.getDate()),Ie=B||X.getFullYear(),et=0;B&&!G||(et=G>0?G-1:X.getMonth());var Ot,Dt=Q||0,ur=j||0,bi=H||0,wi=J||0;return K?new Date(Date.UTC(Ie,et,ge,Dt,ur,bi,wi+60*K.offset*1e3)):q?new Date(Date.UTC(Ie,et,ge,Dt,ur,bi,wi)):(Ot=new Date(Ie,et,ge,Dt,ur,bi,wi),Y&&(Ot=_(Ot).week(Y).toDate()),Ot)}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,m)}}})});var ju=oe((Mx,Uu)=>{"use strict";var Wh=/(^|; )Coveo-Pendragon=([^;]*)/;Uu.exports=()=>Wh.exec(document.cookie)?.pop()||null});var Qu=oe((os,ss)=>{"use strict";(function(e,t){typeof os=="object"&&typeof ss<"u"?ss.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(os,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var o,s=function(d,p,f){f===void 0&&(f={});var l=new Date(d),g=function(C,v){v===void 0&&(v={});var h=v.timeZoneName||"short",b=C+"|"+h,m=t[b];return m||(m=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]=m),m}(p,f);return g.formatToParts(l)},c=function(d,p){for(var f=s(d,p),l=[],g=0;g<f.length;g+=1){var C=f[g],v=C.type,h=C.value,b=e[v];b>=0&&(l[b]=parseInt(h,10))}var m=l[3],y=m===24?0:m,E=l[0]+"-"+l[1]+"-"+l[2]+" "+y+":"+l[4]+":"+l[5]+":000",w=+d;return(i.utc(E).valueOf()-(w-=w%1e3))/6e4},u=n.prototype;u.tz=function(d,p){d===void 0&&(d=o);var f,l=this.utcOffset(),g=this.toDate(),C=g.toLocaleString("en-US",{timeZone:d}),v=Math.round((g-new Date(C))/1e3/60),h=15*-Math.round(g.getTimezoneOffset()/15)-v;if(!Number(h))f=this.utcOffset(0,p);else if(f=i(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||i.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=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(f,d,p).tz(this.$x.$timezone,!0)},i.tz=function(d,p,f){var l=f&&p,g=f||p||o,C=c(+i(),g);if(typeof d!="string")return i(d).tz(g);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)]}(i.utc(d,l).valueOf(),C,g),h=v[0],b=v[1],m=i(h).utcOffset(b);return m.$x.$timezone=g,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){o=d}}})});var $u=oe((as,cs)=>{"use strict";(function(e,t){typeof as=="object"&&typeof cs<"u"?cs.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t()})(as,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var s=i.prototype;o.utc=function(l){var g={date:l,utc:!0,args:arguments};return new i(g)},s.utc=function(l){var g=o(this.toDate(),{locale:this.$L,utc:!0});return l?g.add(this.utcOffset(),e):g},s.local=function(){return o(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,g){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(m){m===void 0&&(m="");var y=m.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(g)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 g=l||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,g)},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?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=s.diff;s.diff=function(l,g,C){if(l&&this.$u===l.$u)return f.call(this,l,g,C);var v=this.local(),h=o(l).local();return f.call(v,h,g,C)}}})});var ol=oe((VR,il)=>{"use strict";function sy(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}il.exports=ay;function ay(e,t,r){var n=r&&r.stringify||sy,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var c=1;c<o;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-i,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 g=typeof t[d];if(g==="string"){a+="'"+t[d]+"'",p=l+2,l++;break}if(g==="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 dl=oe((BR,Jn)=>{"use strict";var sl=ol();Jn.exports=Xe;var Ur=by().console||{},cy={mapHttpRequest:Yn,mapHttpResponse:Yn,wrapRequestSerializer:ps,wrapResponseSerializer:ps,wrapErrorSerializer:ps,req:Yn,res:Yn,err:cl,errWithCause:cl};function ut(e,t){return e==="silent"?1/0:t.levels.values[e]}var ms=Symbol("pino.logFuncs"),fs=Symbol("pino.hierarchy"),uy={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function al(e,t){let r={logger:t,parent:e[fs]};t[fs]=r}function ly(e,t,r){let n={};t.forEach(i=>{n[i]=r[i]?r[i]:Ur[i]||Ur[uy[i]||"log"]||nr}),e[ms]=n}function dy(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Xe(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||Ur;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=dy(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!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=nr),ly(a,c,r),al({},a),Object.defineProperty(a,"levelVal",{get:p}),Object.defineProperty(a,"level",{get:f,set:l});let d={transmit:t,serialize:i,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:c,timestamp:vy(e),messageKey:e.messageKey||"msg",onChild:e.onChild||nr};a.levels=py(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=nr,a.serializers=n,a._serialize=i,a._stdErrSerialize=o,a.child=function(...C){return g.call(this,d,...C)},t&&(a._logEvent=gs());function p(){return ut(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,Tt(this,d,a,"error"),Tt(this,d,a,"fatal"),Tt(this,d,a,"warn"),Tt(this,d,a,"info"),Tt(this,d,a,"debug"),Tt(this,d,a,"trace"),s.forEach(v=>{Tt(this,d,a,v)})}function g(C,v,h){if(!v)throw new Error("missing bindings for child Pino");h=h||{},i&&v.serializers&&(h.serializers=v.serializers);let b=h.serializers;if(i&&b){var m=Object.assign({},n,b),y=e.browser.serialize===!0?Object.keys(m):i;delete v.serializers,hs([v],y,m,this._stdErrSerialize)}function E(S){this._childLevel=(S._childLevel|0)+1,this.bindings=v,m&&(this.serializers=m,this._serialize=y),t&&(this._logEvent=gs([].concat(S._logEvent.bindings,v)))}E.prototype=this;let w=new E(this);return al(this,w),w.child=function(...S){return g.call(this,C,...S)},w.level=h.level||this.level,C.onChild(w),w}return a}function py(e){let t=e.customLevels||{},r=Object.assign({},Xe.levels.values,t),n=Object.assign({},Xe.levels.labels,fy(t));return{values:r,labels:n}}function fy(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Xe.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"}};Xe.stdSerializers=cy;Xe.stdTimeFunctions=Object.assign({},{nullTime:ul,epochTime:ll,unixTime:Cy,isoTime:Ay});function gy(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 Tt(e,t,r,n){if(Object.defineProperty(e,n,{value:ut(e.level,r)>ut(n,r)?nr:r[ms][n],writable:!0,enumerable:!0,configurable:!0}),e[n]===nr){if(!t.transmit)return;let o=t.transmit.level||e.level,s=ut(o,r);if(ut(n,r)<s)return}e[n]=hy(e,t,r,n);let i=gy(e);i.length!==0&&(e[n]=my(i,e[n]))}function my(e,t){return function(){return t.apply(this,[...e,...arguments])}}function hy(e,t,r,n){return function(i){return function(){let s=t.timestamp(),c=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ur?Ur: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?i.call(u,yy(this,n,c,s,t)):i.apply(u,c),t.transmit){let p=t.transmit.level||e._level,f=ut(p,r),l=ut(n,r);if(l<f)return;Sy(this,{ts:s,methodLevel:n,methodValue:l,transmitLevel:p,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:ut(e._level,r)},c,d)}}}(e[ms][n])}function yy(e,t,r,n,i){let{level:o,log:s=f=>f}=i.formatters||{},c=r.slice(),u=c[0],a={};if(n&&(a.time=n),o){let f=o(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?sl(c.shift(),c):void 0}else typeof u=="string"&&(u=sl(c.shift(),c));return u!==void 0&&(a[i.messageKey]=u),s(a)}function hs(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Xe.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i])&&t)for(let o in e[i])t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function Sy(e,t,r,n=!1){let i=t.send,o=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=o,e._logEvent.messages=r.filter(function(d){return a.indexOf(d)===-1}),e._logEvent.level.label=s,e._logEvent.level.value=c,i(s,e._logEvent,u),e._logEvent=gs(a)}function gs(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cl(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 vy(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?ul:ll}function Yn(){return{}}function ps(e){return e}function nr(){}function ul(){return!1}function ll(){return Date.now()}function Cy(){return Math.round(Date.now()/1e3)}function Ay(){return new Date(Date.now()).toISOString()}function by(){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)||{}}}Jn.exports.default=Xe;Jn.exports.pino=Xe});var SS={};kd(SS,{ResultTemplatesHelpers:()=>Ad,buildCaseAssistEngine:()=>vl,buildCaseField:()=>jl,buildCaseInput:()=>Ll,buildController:()=>Qe,buildDocumentSuggestion:()=>Ts,buildDocumentSuggestionList:()=>Ts,buildInteractiveResult:()=>vd,buildQuickview:()=>yd,getAnalyticsNextApiBaseUrl:()=>$r,getOrganizationEndpoint:()=>re,loadCaseAssistAnalyticsActions:()=>Ly,loadCaseFieldActions:()=>Fy,loadCaseInputActions:()=>ky,loadDocumentSuggestionActions:()=>Dy,loadGenericAnalyticsActions:()=>Uy});module.exports=Pd(SS);var Sl=require("@coveo/bueno");var Br=e=>e;var Gs=Ne(Us(),1);var tp="recommendation-internal-options",FS=Symbol.for(tp);var Ee=new Error("Failed to load reducers."),Mt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var At=class extends Error{constructor(r,n){super();le(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};function js(e){return Array.isArray(e)}function Vs(e,t){return[...e.reduce((r,n)=>{let i=t(n);return r.has(i)||r.set(i,n),r},new Map).values()]}var rp=new Set(["1",1,"yes",!0]);function Bs(){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=>rp.has(r))}function Qs(e){let t={};for(let[r,n]of e)t[r]=n;return t}function fr(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function $s(e){let t=[];for(let r in e){let n=encodeURIComponent(r),i=encodeURIComponent(e[r]);t.push(`${n}=${i}`)}return t.join("&")}function Hs(e){return typeof e!="object"||!e?!1:Object.values(e).every(np)}function np(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function zs(e){return e===429}var tt=class e{static async call(t){let r=ip(t),{logger:n}=t,i=await e.preprocessRequest(r,t);n.info(i,"Platform request");let{url:o,...s}=i,c=async()=>{let u=await fetch(o,s);if(zs(u.status))throw u;return u};try{let u=await(0,Gs.backOff)(c,{retry:a=>{let d=a&&zs(a.status);return d&&n.info("Platform retrying request"),d}});switch(u.status){case 419:case 401:throw n.info("Platform renewing token"),new Mt;case 404:throw new At(o,u.status);default:return n.info({response:u,requestInfo:i},"Platform response"),u}}catch(u){return u.message==="Failed to fetch"?new At(o):u}}static async preprocessRequest(t,r){let{origin:n,preprocessRequest:i,logger:o,requestMetadata:s}=r,{signal:c,...u}=t,a=fr(u);try{let d=await i(t,n,s);return{...t,...d}}catch(d){o.error(d,"Platform request preprocessing failed. Returning default request options.")}return a}};function re(e,t="prod",r="platform"){let n=t==="prod"?"":t,i=r==="platform"?"":`.${r}`;return`https://${e}${i}.org${n}.coveo.com`}function Nt(e,t="prod"){return`${re(e,t)}/rest/search/v2`}function $r(e,t="prod"){return`${re(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function ip(e){let{url:t,method:r,requestParams:n,contentType:i,accessToken:o,signal:s}=e,c=e.method==="POST"||e.method==="PUT",u=op(n,i);return{url:t,method:r,headers:{"Content-Type":i,Authorization:`Bearer ${o}`,...e.headers},...c&&{body:u},signal:s}}function op(e,t){return t==="application/x-www-form-urlencoded"?Hs(e)?$s(e):"":JSON.stringify(e)}var qt=class{constructor(t){le(this,"_basePath");le(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 Oi(e){let{url:t,accessToken:r,organizationId:n,authentication:i,...o}=e;return o}var Di=e=>{let{response:t}=e;return t.body?sp(e):ap(t)},sp=e=>up(e)?lp(e):cp(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},ap=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function cp(e){return e.body.statusCode!==void 0}function up(e){return e.body.exception!==void 0}var lp=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function Ws(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var Mi=(e,t,r,n)=>{let i=new qt(`${e.url}${n}`);return i.addParam("organizationId",e.organizationId),e.authentication&&i.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:i.href,origin:"searchApiFetch"}};var Ks=(e,t)=>{let r=new qt(`${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},Ni=async(e,t)=>{let r=await tt.call({...Mi(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Oi(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=Ws(r),i=await r.arrayBuffer(),s=new TextDecoder(n).decode(i);return dp(s)?{success:s}:{error:Di({response:r,body:s})}};function dp(e){return typeof e=="string"}function pp(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function fp(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function Hr(e,t){if(t&&e.name==="AbortError")return{error:fp(e)};if(e instanceof At)return{error:pp(e)};throw e}var zr=(e,t,r,n,i={})=>{gp(e);let o=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=mp(i),c=s?`${o}?${s}`:o;return{accessToken:e.accessToken,method:t,contentType:r,url:c,origin:"caseAssistApiFetch"}},Gr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),Wr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),gp=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.")},mp=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var Ys=e=>{let t=e.debug?{debug:"1"}:{};return{...zr(e,"POST","application/json","/classify",t),requestParams:hp(e)}},hp=e=>({clientId:e.clientId,locale:e.locale,fields:Gr(e.fields)});var Js=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...zr(e,"POST","application/json","/documents/suggest",t),requestParams:yp(e)}},yp=e=>({clientId:e.clientId,locale:e.locale,fields:Gr(e.fields),context:e.context,analytics:e.analytics});var Kr=class{constructor(t){this.options=t}async getCaseClassifications(t){let r=await tt.call({...Ys(t),...this.options});if(r instanceof Error)return Hr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async getDocumentSuggestions(t){let r=await tt.call({...Js(t),...this.options});if(r instanceof Error)return Hr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async html(t){return Ni(t,this.options)}};var Oa=require("@coveo/bueno");function se(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 Sp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xs=Sp,qi=()=>Math.random().toString(36).substring(7).split("").join("."),vp={INIT:`@@redux/INIT${qi()}`,REPLACE:`@@redux/REPLACE${qi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qi()}`},Yr=vp;function qe(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 _i(e,t,r){if(typeof e!="function")throw new Error(se(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(_i)(e,t)}let n=e,i=t,o=new Map,s=o,c=0,u=!1;function a(){s===o&&(s=new Map,o.forEach((v,h)=>{s.set(h,v)}))}function d(){if(u)throw new Error(se(3));return i}function p(v){if(typeof v!="function")throw new Error(se(4));if(u)throw new Error(se(5));let h=!0;a();let b=c++;return s.set(b,v),function(){if(h){if(u)throw new Error(se(6));h=!1,a(),s.delete(b),o=null}}}function f(v){if(!qe(v))throw new Error(se(7));if(typeof v.type>"u")throw new Error(se(8));if(typeof v.type!="string")throw new Error(se(17));if(u)throw new Error(se(9));try{u=!0,i=n(i,v)}finally{u=!1}return(o=s).forEach(b=>{b()}),v}function l(v){if(typeof v!="function")throw new Error(se(10));n=v,f({type:Yr.REPLACE})}function g(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(se(11));function b(){let y=h;y.next&&y.next(d())}return b(),{unsubscribe:v(b)}},[Xs](){return this}}}return f({type:Yr.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:l,[Xs]:g}}function Cp(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Yr.INIT})>"u")throw new Error(se(12));if(typeof r(void 0,{type:Yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function _t(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),i,o;try{Cp(r)}catch(s){o=s}return function(c={},u){if(o)throw o;let a=!1,d={};for(let p=0;p<n.length;p++){let f=n[p],l=r[f],g=c[f],C=l(g,u);if(typeof C>"u"){let v=u&&u.type;throw new Error(se(14))}d[f]=C,a=a||C!==g}return a=a||n.length!==Object.keys(c).length,a?d:c}}function Lt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Zs(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(se(15))},s={getState:i.getState,dispatch:(u,...a)=>o(u,...a)},c=e.map(u=>u(s));return o=Lt(...c)(i.dispatch),{...i,dispatch:o}}}function Jr(e){return qe(e)&&"type"in e&&typeof e.type=="string"}var Gi=Symbol.for("immer-nothing"),gr=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ae(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wt=Object.getPrototypeOf;function Ae(e){return!!e&&!!e[me]}function he(e){return e?ia(e)||Array.isArray(e)||!!e[gr]||!!e.constructor?.[gr]||vr(e)||Cr(e):!1}var Ap=Object.prototype.constructor.toString();function ia(e){if(!e||typeof e!="object")return!1;let t=wt(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)===Ap}function Wi(e){return Ae(e)||ae(15,e),e[me].base_}function mr(e,t){xt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function xt(e){let t=e[me];return t?t.type_:Array.isArray(e)?1:vr(e)?2:Cr(e)?3:0}function hr(e,t){return xt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Li(e,t){return xt(e)===2?e.get(t):e[t]}function oa(e,t,r){let n=xt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function bp(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function vr(e){return e instanceof Map}function Cr(e){return e instanceof Set}function bt(e){return e.copy_||e.base_}function Vi(e,t){if(vr(e))return new Map(e);if(Cr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ia(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[me];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],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(wt(e),n)}else{let n=wt(e);if(n!==null&&r)return{...e};let i=Object.create(n);return Object.assign(i,e)}}function en(e,t=!1){return tn(e)||Ae(e)||!he(e)||(xt(e)>1&&(e.set=e.add=e.clear=e.delete=wp),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>en(n,!0))),e}function wp(){ae(2)}function tn(e){return Object.isFrozen(e)}var Bi={};function Rt(e){let t=Bi[e];return t||ae(0,e),t}function xp(e,t){Bi[e]||(Bi[e]=t)}var yr;function sa(){return yr}function Rp(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ea(e,t){t&&(Rt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Qi(e){$i(e),e.drafts_.forEach(Ip),e.drafts_=null}function $i(e){e===yr&&(yr=e.parent_)}function ta(e){return yr=Rp(yr,e)}function Ip(e){let t=e[me];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[me].modified_&&(Qi(t),ae(4)),he(e)&&(e=Xr(t,e),t.parent_||Zr(t,e)),t.patches_&&Rt("Patches").generateReplacementPatches_(r[me].base_,e,t.patches_,t.inversePatches_)):e=Xr(t,r,[]),Qi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gi?e:void 0}function Xr(e,t,r){if(tn(t))return t;let n=t[me];if(!n)return mr(t,(i,o)=>na(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Zr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let i=n.copy_,o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),mr(o,(c,u)=>na(e,n,i,c,u,r,s)),Zr(e,i,!1),r&&e.patches_&&Rt("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function na(e,t,r,n,i,o,s){if(Ae(i)){let c=o&&t&&t.type_!==3&&!hr(t.assigned_,n)?o.concat(n):void 0,u=Xr(e,i,c);if(oa(r,n,u),Ae(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(he(i)&&!tn(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Xr(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Zr(e,i)}}function Zr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&en(t,r)}function Ep(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:sa(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,o=Ki;r&&(i=[n],o=Sr);let{revoke:s,proxy:c}=Proxy.revocable(i,o);return n.draft_=c,n.revoke_=s,c}var Ki={get(e,t){if(t===me)return e;let r=bt(e);if(!hr(r,t))return kp(e,r,t);let n=r[t];return e.finalized_||!he(n)?n:n===Ui(e.base_,t)?(ji(e),e.copy_[t]=zi(n,e)):n},has(e,t){return t in bt(e)},ownKeys(e){return Reflect.ownKeys(bt(e))},set(e,t,r){let n=aa(bt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Ui(bt(e),t),o=i?.[me];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(bp(r,i)&&(r!==void 0||hr(e.base_,t)))return!0;ji(e),Hi(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 Ui(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ji(e),Hi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ae(11)},getPrototypeOf(e){return wt(e.base_)},setPrototypeOf(){ae(12)}},Sr={};mr(Ki,(e,t)=>{Sr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Sr.deleteProperty=function(e,t){return Sr.set.call(this,e,t,void 0)};Sr.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function Ui(e,t){let r=e[me];return(r?bt(r):e)[t]}function kp(e,t,r){let n=aa(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function aa(e,t){if(!(t in e))return;let r=wt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=wt(r)}}function Hi(e){e.modified_||(e.modified_=!0,e.parent_&&Hi(e.parent_))}function ji(e){e.copy_||(e.copy_=Vi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pp=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let o=r;r=t;let s=this;return function(u=o,...a){return s.produce(u,d=>r.call(this,d,...a))}}typeof r!="function"&&ae(6),n!==void 0&&typeof n!="function"&&ae(7);let i;if(he(t)){let o=ta(this),s=zi(t,void 0),c=!0;try{i=r(s),c=!1}finally{c?Qi(o):$i(o)}return ea(o,n),ra(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Gi&&(i=void 0),this.autoFreeze_&&en(i,!0),n){let o=[],s=[];Rt("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ae(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,u=>t(u,...c));let n,i;return[this.produce(t,r,(s,c)=>{n=s,i=c}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){he(e)||ae(8),Ae(e)&&(e=ca(e));let t=ta(this),r=zi(e,void 0);return r[me].isManual_=!0,$i(t),r}finishDraft(e,t){let r=e&&e[me];(!r||!r.isManual_)&&ae(9);let{scope_:n}=r;return ea(n,t),ra(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 i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=Rt("Patches").applyPatches_;return Ae(e)?n(e,t):this.produce(e,i=>n(i,t))}};function zi(e,t){let r=vr(e)?Rt("MapSet").proxyMap_(e,t):Cr(e)?Rt("MapSet").proxySet_(e,t):Ep(e,t);return(t?t.scope_:sa()).drafts_.push(r),r}function ca(e){return Ae(e)||ae(10,e),ua(e)}function ua(e){if(!he(e)||tn(e))return e;let t=e[me],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Vi(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Vi(e,!0);return mr(r,(n,i)=>{oa(r,n,ua(i))}),t&&(t.finalized_=!1),r}function la(){let t="replace",r="add",n="remove";function i(f,l,g,C){switch(f.type_){case 0:case 2:return s(f,l,g,C);case 1:return o(f,l,g,C);case 3:return c(f,l,g,C)}}function o(f,l,g,C){let{base_:v,assigned_:h}=f,b=f.copy_;b.length<v.length&&([v,b]=[b,v],[g,C]=[C,g]);for(let m=0;m<v.length;m++)if(h[m]&&b[m]!==v[m]){let y=l.concat([m]);g.push({op:t,path:y,value:p(b[m])}),C.push({op:t,path:y,value:p(v[m])})}for(let m=v.length;m<b.length;m++){let y=l.concat([m]);g.push({op:r,path:y,value:p(b[m])})}for(let m=b.length-1;v.length<=m;--m){let y=l.concat([m]);C.push({op:n,path:y})}}function s(f,l,g,C){let{base_:v,copy_:h}=f;mr(f.assigned_,(b,m)=>{let y=Li(v,b),E=Li(h,b),w=m?hr(v,b)?t:r:n;if(y===E&&w===t)return;let S=l.concat(b);g.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,g,C){let{base_:v,copy_:h}=f,b=0;v.forEach(m=>{if(!h.has(m)){let y=l.concat([b]);g.push({op:n,path:y,value:m}),C.unshift({op:r,path:y,value:m})}b++}),b=0,h.forEach(m=>{if(!v.has(m)){let y=l.concat([b]);g.push({op:r,path:y,value:m}),C.unshift({op:n,path:y,value:m})}b++})}function u(f,l,g,C){g.push({op:t,path:[],value:l===Gi?void 0:l}),C.push({op:t,path:[],value:f})}function a(f,l){return l.forEach(g=>{let{path:C,op:v}=g,h=f;for(let E=0;E<C.length-1;E++){let w=xt(h),S=C[E];typeof S!="string"&&typeof S!="number"&&(S=""+S),(w===0||w===1)&&(S==="__proto__"||S==="constructor")&&ae(19),typeof h=="function"&&S==="prototype"&&ae(19),h=Li(h,S),typeof h!="object"&&ae(18,C.join("/"))}let b=xt(h),m=d(g.value),y=C[C.length-1];switch(v){case t:switch(b){case 2:return h.set(y,m);case 3:ae(16);default:return h[y]=m}case r:switch(b){case 1:return y==="-"?h.push(m):h.splice(y,0,m);case 2:return h.set(y,m);case 3:return h.add(m);default:return h[y]=m}case n:switch(b){case 1:return h.splice(y,1);case 2:return h.delete(y);case 3:return h.delete(g.value);default:return delete h[y]}default:ae(17,v)}}),f}function d(f){if(!he(f))return f;if(Array.isArray(f))return f.map(d);if(vr(f))return new Map(Array.from(f.entries()).map(([g,C])=>[g,d(C)]));if(Cr(f))return new Set(Array.from(f).map(d));let l=Object.create(wt(f));for(let g in f)l[g]=d(f[g]);return hr(f,gr)&&(l[gr]=f[gr]),l}function p(f){return Ae(f)?d(f):f}xp("Patches",{applyPatches_:a,generatePatches_:i,generateReplacementPatches_:u})}var be=new Pp,ze=be.produce,rn=be.produceWithPatches.bind(be),bv=be.setAutoFreeze.bind(be),wv=be.setUseStrictShallowCopy.bind(be),Yi=be.applyPatches.bind(be),xv=be.createDraft.bind(be),Rv=be.finishDraft.bind(be);function Tp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fp(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Op(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 da=e=>Array.isArray(e)?e:[e];function Dp(e){let t=Array.isArray(e[0])?e[0]:e;return Op(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mp(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var kv=Symbol();var Pv=Object.getPrototypeOf({});var Np=class{constructor(e){this.value=e}deref(){return this.value}},qp=typeof WeakRef<"u"?WeakRef:Np,_p=0,pa=1;function nn(){return{s:_p,v:void 0,o:null,p:null}}function Ut(e,t={}){let r=nn(),{resultEqualityCheck:n}=t,i,o=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 g=c.o;g===null&&(c.o=g=new WeakMap);let C=g.get(l);C===void 0?(c=nn(),g.set(l,c)):c=C}else{let g=c.p;g===null&&(c.p=g=new Map);let C=g.get(l);C===void 0?(c=nn(),g.set(l,c)):c=C}}let a=c,d;if(c.s===pa)d=c.v;else if(d=e.apply(null,arguments),o++,n){let p=i?.deref?.()??i;p!=null&&n(p,d)&&(d=p,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new qp(d):d}return a.s=pa,a.v=d,d}return s.clearCache=()=>{r=nn(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function fa(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,s=0,c,u={},a=i.pop();typeof a=="object"&&(u=a,a=i.pop()),Tp(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let d={...r,...u},{memoize:p,memoizeOptions:f=[],argsMemoize:l=Ut,argsMemoizeOptions:g=[],devModeChecks:C={}}=d,v=da(f),h=da(g),b=Dp(i),m=p(function(){return o++,a.apply(null,arguments)},...v),y=!0,E=l(function(){s++;let S=Mp(b,arguments);return c=m.apply(null,S),c},...h);return Object.assign(E,{resultFunc:a,memoizedResultFunc:m,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var ne=fa(Ut),Lp=Object.assign((e,t=ne)=>{Fp(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(o=>e[o]);return t(n,(...o)=>o.reduce((s,c,u)=>(s[r[u]]=c,s),{}))},{withTypes:()=>Lp});function ga(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ma=ga(),ha=ga;var Up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},Uv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},jp=e=>e&&typeof e.match=="function";function N(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Oe(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Jr(n)&&n.type===e,r}var Aa=class Ar extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ar.prototype)}static get[Symbol.species](){return Ar}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ar(...t[0].concat(this)):new Ar(...t.concat(this))}};function ya(e){return he(e)?ze(e,()=>{}):e}function Sa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vp(e){return typeof e=="boolean"}var Bp=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Aa;return r&&(Vp(r)?s.push(ma):s.push(ha(r.extraArgument))),s},br="RTK_autoBatch",Vt=()=>e=>({payload:e,meta:{[br]:!0}}),va=e=>t=>{setTimeout(t,e)},Qp=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,c=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:va(10):e.type==="callback"?e.queueNotification:va(e.timeout),a=()=>{s=!1,o&&(o=!1,c.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let p=()=>i&&d(),f=n.subscribe(p);return c.add(d),()=>{f(),c.delete(d)}},dispatch(d){try{return i=!d?.meta?.[br],o=!i,o&&(s||(s=!0,u(a))),n.dispatch(d)}finally{i=!0}}})},$p=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Aa(e);return n&&i.push(Qp(typeof n=="object"?n:void 0)),i};function ba(e){let t=Bp(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof r=="function")c=r;else if(qe(r))c=_t(r);else throw new Error(Oe(1));let u;typeof n=="function"?u=n(t):u=t();let a=Lt;i&&(a=Up({trace:!1,...typeof i=="object"&&i}));let d=Zs(...u),p=$p(d),f=typeof s=="function"?s(p):p(),l=a(...f);return _i(c,o,l)}function wa(e){let t={},r=[],n,i={addCase(o,s){let c=typeof o=="string"?o:o.type;if(!c)throw new Error(Oe(28));if(c in t)throw new Error(Oe(29));return t[c]=s,i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function Hp(e){return typeof e=="function"}function ie(e,t){let[r,n,i]=wa(t),o;if(Hp(e))o=()=>ya(e());else{let c=ya(e);o=()=>c}function s(c=o(),u){let a=[r[u.type],...n.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return a.filter(d=>!!d).length===0&&(a=[i]),a.reduce((d,p)=>{if(p)if(Ae(d)){let l=p(d,u);return l===void 0?d:l}else{if(he(d))return ze(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=o,s}var xa=(e,t)=>jp(e)?e.match(t):e(t);function _e(...e){return t=>e.some(r=>xa(r,t))}function jt(...e){return t=>e.every(r=>xa(r,t))}function sn(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 wr(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function an(...e){return e.length===0?t=>sn(t,["pending"]):wr(e)?_e(...e.map(t=>t.pending)):an()(e[0])}function It(...e){return e.length===0?t=>sn(t,["rejected"]):wr(e)?_e(...e.map(t=>t.rejected)):It()(e[0])}function xr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?jt(It(...e),t):wr(e)?jt(It(...e),t):xr()(e[0])}function Ge(...e){return e.length===0?t=>sn(t,["fulfilled"]):wr(e)?_e(...e.map(t=>t.fulfilled)):Ge()(e[0])}function cn(...e){return e.length===0?t=>sn(t,["pending","fulfilled","rejected"]):wr(e)?_e(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):cn()(e[0])}var zp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",un=(e=21)=>{let t="",r=e;for(;r--;)t+=zp[Math.random()*64|0];return t},Gp=["name","message","stack","code"],Ji=class{constructor(e,t){le(this,"_type");this.payload=e,this.meta=t}},Ca=class{constructor(e,t){le(this,"_type");this.payload=e,this.meta=t}},Wp=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Gp)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},W=(()=>{function e(t,r,n){let i=N(t+"/fulfilled",(u,a,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:a,requestStatus:"fulfilled"}})),o=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||Wp)(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):un(),l=new AbortController,g,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(Yp(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)=>{g=()=>{S({name:"AbortError",message:C||"Aborted"})},l.signal.addEventListener("abort",g)});a(o(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 Ji(w,S),fulfillWithValue:(w,S)=>new Ca(w,S)})).then(w=>{if(w instanceof Ji)throw w;return w instanceof Ca?i(w.payload,f,u,w.meta):i(w,f,u)})])}catch(y){b=y instanceof Ji?s(null,f,u,y.payload,y.meta):s(y,f,u)}finally{g&&l.signal.removeEventListener("abort",g)}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(Kp)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,settled:_e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Kp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Yp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ra=Symbol.for("rtk-slice-createasyncthunk"),$v={[Ra]:W};function Jp(e,t){return`${e}/${t}`}function Xp({creators:e}={}){let t=e?.asyncThunk?.[Ra];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(Oe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(ef()):n.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(b,m){let y=typeof b=="string"?b:b.type;if(!y)throw new Error(Oe(12));if(y in u.sliceCaseReducersByType)throw new Error(Oe(13));return u.sliceCaseReducersByType[y]=m,a},addMatcher(b,m){return u.sliceMatchers.push({matcher:b,reducer:m}),a},exposeAction(b,m){return u.actionCreators[b]=m,a},exposeCaseReducer(b,m){return u.sliceCaseReducersByName[b]=m,a}};c.forEach(b=>{let m=s[b],y={reducerName:b,type:Jp(i,b),createNotation:typeof n.reducers=="function"};rf(m)?of(y,m,a,t):tf(y,m,a)});function d(){let[b={},m=[],y=void 0]=typeof n.extraReducers=="function"?wa(n.extraReducers):[n.extraReducers],E={...b,...u.sliceCaseReducersByType};return ie(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 m)w.addMatcher(S.matcher,S.reducer);y&&w.addDefaultCase(y)})}let p=b=>b,f=new Map,l;function g(b,m){return l||(l=d()),l(b,m)}function C(){return l||(l=d()),l.getInitialState()}function v(b,m=!1){function y(w){let S=w[b];return typeof S>"u"&&m&&(S=C()),S}function E(w=p){let S=Sa(f,m,()=>new WeakMap);return Sa(S,w,()=>{let A={};for(let[x,k]of Object.entries(n.selectors??{}))A[x]=Zp(k,w,C,m);return A})}return{reducerPath:b,getSelectors:E,get selectors(){return E(y)},selectSlice:y}}let h={name:i,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...v(o),injectInto(b,{reducerPath:m,...y}={}){let E=m??o;return b.inject({reducerPath:E,reducer:g},y),{...h,...v(E,!0)}}};return h}}function Zp(e,t,r,n){function i(o,...s){let c=t(o);return typeof c>"u"&&n&&(c=r()),e(c,...s)}return i.unwrapped=e,i}var Et=Xp();function ef(){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 tf({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!nf(n))throw new Error(Oe(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?N(e,s):N(e))}function rf(e){return e._reducerDefinitionType==="asyncThunk"}function nf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function of({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Oe(18));let{payloadCreator:o,fulfilled:s,pending:c,rejected:u,settled:a,options:d}=r,p=i(e,o,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||on,pending:c||on,rejected:u||on,settled:a||on})}function on(){}var Ia="listener",Ea="completed",ka="cancelled",Hv=`task-${ka}`,zv=`task-${Ea}`,Gv=`${Ia}-${ka}`,Wv=`${Ia}-${Ea}`;var{assign:Pa}=Object;var Xi="listenerMiddleware";var sf=Pa(N(`${Xi}/add`),{withTypes:()=>sf}),Kv=N(`${Xi}/removeAll`),af=Pa(N(`${Xi}/remove`),{withTypes:()=>af});var Yv=Symbol.for("rtk-state-proxy-original");function Oe(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. `}var ye=require("@coveo/bueno"),$=new ye.StringValue({required:!0,emptyAllowed:!1}),ee=new ye.StringValue({required:!1,emptyAllowed:!1}),De=new ye.StringValue({required:!0,emptyAllowed:!0}),iC=new ye.StringValue({required:!1,emptyAllowed:!0}),Ta=new ye.ArrayValue({each:$,required:!0}),Fa=new ye.StringValue({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),cf=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Zi=(e,t)=>{if("required"in t)return{payload:new ye.Schema({value:t}).validate({value:e}).value};let i=new ye.RecordValue({options:{required:!0},values:t}).validate(e);if(i)throw new ye.SchemaValidationError(i);return{payload:e}},L=(e,t)=>{try{return Zi(e,t)}catch(r){return{payload:e,error:cf(r)}}};var ln=(e,t,r,n)=>{let i=`Check the options of ${n}`;return uf(e,t,r,i,"Controller initialization error")},uf=(e,t,r,n,i)=>{try{return t.validate(r,n)}catch(o){throw e.logger.error(o,i),o}};var dn=N("caseAssistConfiguration/set",e=>L(e,{caseAssistId:$,locale:ee,proxyBaseUrl:new Oa.StringValue({required:!1,url:!0})}));var Da=()=>({caseAssistId:"",locale:"en-US"});var rt=ie(Da(),e=>{e.addCase(dn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});var Z=require("@coveo/bueno"),Ma={q:new Z.StringValue,enableQuerySyntax:new Z.BooleanValue,aq:new Z.StringValue,cq:new Z.StringValue,firstResult:new Z.NumberValue({min:0}),numberOfResults:new Z.NumberValue({min:0}),sortCriteria:new Z.StringValue,f:new Z.RecordValue,fExcluded:new Z.RecordValue,cf:new Z.RecordValue,nf:new Z.RecordValue,mnf:new Z.RecordValue,df:new Z.RecordValue,debug:new Z.BooleanValue,sf:new Z.RecordValue,tab:new Z.StringValue,af:new Z.RecordValue};var pn=N("searchParameters/restore",e=>L(e,Ma)),vC=N("searchParameters/restoreTab",e=>L(e,$));var Na=N("debug/enable"),qa=N("debug/disable");var fn=()=>!1;var _a=ie(fn(),e=>{e.addCase(Na,()=>!0).addCase(qa,()=>!1).addCase(pn,(t,r)=>r.payload.debug??t)});var La=require("@coveo/bueno");var gn=N("searchHub/set",e=>L(e,new La.StringValue({required:!0,emptyAllowed:!0})));var pe=require("@coveo/bueno");var Bt="3.22.5",Ua=["@coveo/atomic","@coveo/quantic"];var eo=()=>ee,ja=()=>$,Qt=N("configuration/updateBasicConfiguration",e=>L(e,{accessToken:ee,environment:new pe.StringValue({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:ee})),mn=N("configuration/updateSearchConfiguration",e=>L(e,{proxyBaseUrl:new pe.StringValue({required:!1,url:!0}),pipeline:new pe.StringValue({required:!1,emptyAllowed:!0}),searchHub:ee,timezone:ee,locale:ee,authenticationProviders:new pe.ArrayValue({required:!1,each:$})})),lf={enabled:new pe.BooleanValue({default:!0}),originContext:eo(),originLevel2:eo(),originLevel3:eo(),proxyBaseUrl:new pe.StringValue({required:!1,url:!0}),runtimeEnvironment:new pe.Value,anonymous:new pe.BooleanValue({default:!1}),deviceId:ee,userDisplayName:ee,documentLocation:ee,trackingId:ee,analyticsMode:new pe.StringValue({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new pe.RecordValue({options:{required:!1},values:Ua.reduce((e,t)=>(e[t]=Fa,e),{})})},hn=N("configuration/updateAnalyticsConfiguration",e=>L(e,lf)),yn=N("configuration/analytics/disable"),Sn=N("configuration/analytics/enable"),Va=N("configuration/analytics/originlevel2",e=>L(e,{originLevel2:ja()})),Ba=N("configuration/analytics/originlevel3",e=>L(e,{originLevel3:ja()}));var df=N("history/undo"),pf=N("history/redo"),Le=N("history/snapshot"),jC=W("history/back",async(e,{dispatch:t})=>{t(df()),await t(vn())}),VC=W("history/forward",async(e,{dispatch:t})=>{t(pf()),await t(vn())}),vn=W("history/change",async(e,{getState:t})=>t().history.present);var $t=()=>"default";var Qa=ie($t(),e=>{e.addCase(gn,(t,r)=>r.payload).addCase(vn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(mn,(t,r)=>r.payload.searchHub||t)});function ff({config:e,environment:t,event:r,listenerManager:n}){let{url:i,token:o,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(i,o,r))}var gf=/^(?:[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"&&gf.test(e)}var ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function hf(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()}var to,yf=new Uint8Array(16);function Sf(){if(!to){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");to=crypto.getRandomValues.bind(crypto)}return to(yf)}var vf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$a={randomUUID:vf};function Cf(e,t,r){if($a.randomUUID&&!e)return $a.randomUUID();e=e||{};let n=e.random??e.rng?.()??Sf();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,hf(n)}function Af(e){return{getClientId:()=>{let t="visitorId",r=e.get(),n=r.storage,i=n.getItem(t),o=i&&mf(i)?i:r.generateUUID();return n.setItem(t,o),o}}}var za="1.0.0";function bf(e){let{trackingId:t}=e;return{trackingId:t}}function wf(e){return(e.source||[]).concat([`relay@${za}`])}function Ga(e,t,r,n){let{getReferrer:i,getLocation:o,getUserAgent:s}=r,c=bf(t),u=n.getClientId();return Object.freeze({type:e,config:c,ts:Date.now(),source:wf(t),clientId:u,userAgent:s(),referrer:i(),location:o()})}function xf(e,t,r,n,i){return{...t,meta:Ga(e,r,n,i)}}var Rf="*";function If(){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 i(u){e.forEach(a=>{if(r(a,u.meta.type))try{a.callback(u)}catch(d){console.error(d)}})}function o(u){if(u===Rf)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}):o(u)}return{add:n,call:i,remove:c}}function Ha({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}})}function Ef(e){let t=Ha(e);return{get:()=>t,update:r=>{t=Ha({...t,...r})}}}function kf(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var ro=Pf();function Pf(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,i=document.cookie.split(";");for(let o of i){let s=o.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,i){let o=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+i).toUTCString()}`,c=o?`;domain=${o}`:"";document.cookie=`${e}${r}=${n}${s}${c};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Tf(){return{getItem(e){return ro.getItem(e)||localStorage.getItem(e)},removeItem(e){ro.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),ro.setItem(e,t,31556952e3)}}}function Ff(){let e=document.referrer;return e===""?null:e}function Of(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(kf().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:()=>Ff(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>Cf(),storage:Tf()}}function Df(){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 Mf(){return{getItem(){return null},removeItem(){},setItem(){}}}function Nf(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Mf()}}function qf(e){return e.get().mode!=="disabled"&&_f()&&Df()?Of():Nf()}function _f(){try{return typeof window=="object"}catch{return!1}}function Lf(e){return{get:()=>Object.freeze(qf(e))}}function Wa(e){let t=Ef(e),r=If(),n=Lf(t),i=Af(n);return{emit:(o,s)=>{let c=t.get(),u=n.get(),a=xf(o,s,c,u,i);return ff({config:c,environment:u,event:a,listenerManager:r})},getMeta:o=>Ga(o,t.get(),n.get(),i),on:(o,s)=>r.add({type:o,callback:s}),off:(o,s)=>r.remove(o,s),updateConfig:o=>t.update(o),version:za}}var Ht=ne(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${Bt}`));var zt=ne(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Ht(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:i,enabled:o},s)=>Wa({mode:o?"emit":"disabled",url:i??$r(e,t),token:r,trackingId:n,source:s}));var Se=require("@coveo/bueno");var Te=require("@coveo/bueno");function We(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function R(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(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 oo(){return typeof window<"u"}function vo(){return typeof navigator<"u"}function Gt(){return typeof document<"u"}function so(){try{return typeof localStorage<"u"}catch{return!1}}function Uf(){try{return typeof sessionStorage<"u"}catch{return!1}}function cc(){return vo()&&navigator.cookieEnabled}var jf=[z.click,z.custom,z.search,z.view],Vf=(e,t)=>jf.indexOf(e)!==-1?Object.assign({language:Gt()?document.documentElement.lang:"unknown",userAgent:vo()?navigator.userAgent:"unknown"},t):t,Er=class e{static set(t,r,n){var i,o,s,c;n&&(o=new Date,o.setTime(o.getTime()+n)),c=window.location.hostname,c.indexOf(".")===-1?Ka(t,r,o):(s=c.split("."),i=s[s.length-2]+"."+s[s.length-1],Ka(t,r,o,i))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var o=n[i];if(o=o.replace(/^\s+/,""),o.lastIndexOf(r,0)===0)return o.substring(r.length,o.length)}return null}static erase(t){e.set(t,"",-1)}};function Ka(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Bf(){return so()?localStorage:cc()?new kr:Uf()?sessionStorage:new Kt}var kr=class e{getItem(t){return Er.get(`${e.prefix}${t}`)}removeItem(t){Er.erase(`${e.prefix}${t}`)}setItem(t,r,n){Er.set(`${e.prefix}${t}`,r,n)}};kr.prefix="coveo_";var ao=class{constructor(){this.cookieStorage=new kr}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)}},Kt=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},Rr="__coveo.analytics.history",uc=20,lc=1e3*60,dc=75,Yt=class{constructor(t){this.store=t||Bf()}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(Rr);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(Rr);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(Rr,JSON.stringify(t.slice(0,uc)))}catch{}}clear(){try{this.store.removeItem(Rr)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,i)=>(i.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,dc)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>lc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:i,value:o}=r;return{name:n,time:i,value:o}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:i}=t;return r&&typeof i=="string"&&r.toLowerCase()==="query"&&i.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},pc=Object.freeze({__proto__:null,HistoryStore:Yt,MAX_NUMBER_OF_HISTORY_ELEMENTS:uc,MAX_VALUE_SIZE:dc,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:lc,STORE_KEY:Rr,default:Yt}),Qf=(e,t)=>R(void 0,void 0,void 0,function*(){return e===z.view?(yield $f(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),$f=e=>R(void 0,void 0,void 0,function*(){let t=new Yt,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),Cn,Hf=new Uint8Array(16);function zf(){if(!Cn&&(Cn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cn(Hf)}var Gf=/^(?:[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 bn(e){return typeof e=="string"&&Gf.test(e)}var ue=[];for(let e=0;e<256;++e)ue.push((e+256).toString(16).slice(1));function fc(e,t=0){return(ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]).toLowerCase()}function Wf(e){if(!bn(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 Kf(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Yf="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Jf="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xf(e,t,r){function n(i,o,s,c){var u;if(typeof i=="string"&&(i=Kf(i)),typeof o=="string"&&(o=Wf(o)),((u=o)===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+i.length);if(a.set(o),a.set(i,o.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 fc(a)}try{n.name=e}catch{}return n.DNS=Yf,n.URL=Jf,n}var Zf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ya={randomUUID:Zf};function kt(e,t,r){if(Ya.randomUUID&&!t&&!e)return Ya.randomUUID();e=e||{};let n=e.random||(e.rng||zf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return fc(n)}function eg(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 no(e,t){return e<<t|e>>>32-t}function tg(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,i=Math.ceil(n/16),o=new Array(i);for(let s=0;s<i;++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];o[s]=c}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<i;++s){let c=new Uint32Array(80);for(let l=0;l<16;++l)c[l]=o[s][l];for(let l=16;l<80;++l)c[l]=no(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 g=Math.floor(l/20),C=no(u,5)+eg(g,a,d,p)+f+t[g]+c[l]>>>0;f=p,p=d,d=no(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 rg=Xf("v5",80,tg),Ja=rg,gc="2.30.45",Xa=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Ir={pageview:"pageview",event:"event"},wn=class{constructor({client:t,uuidGenerator:r=kt}){this.client=t,this.uuidGenerator=r}},co=class extends wn{constructor({client:t,uuidGenerator:r=kt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=Xa(window.location),this.lastReferrer=Gt()?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:Gt()?document.title:"",encoding:Gt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},i={language:navigator.language,userAgent:navigator.userAgent},o={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},o),n),i),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:i,location:o}=this.getNextValues(t,r);this.lastReferrer=i,this.pageViewId=n,this.currentLocation=o,t===Ir.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Ir.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Ir.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Ir.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=i=>i.replace(/^\/?(.*)$/,"/$1");return`${(i=>i.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return Xa(window.location)}},nt=class e{constructor(t,r){if(!bn(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(i=>new RegExp(i.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,i]=r;if(n.length!==32||isNaN(parseInt(i)))return null;let o=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return bn(o)?new e(o,Number.parseInt(i)*1e3):null}};nt.cvo_cid="cvo_cid";nt.expirationTime=120;var uo=class extends wn{constructor({client:t,uuidGenerator:r=kt}){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(nt.cvo_cid,new nt(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};uo.Id="link";var Pe=Object.keys;function An(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var io=128,mc=192,Za=224,ec=240;function ng(e){return(e&248)===ec?4:(e&ec)===Za?3:(e&Za)===mc?2:1}function ig(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&io)!=io)break;if(r-=3,(n&mc)!=io){t-r>=ng(n)*3&&(r=t);break}}return e.substring(0,r)}var lo={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"},og=Pe(lo).map(e=>lo[e]),sg=[...og].join("|"),ag=new RegExp(`^(${sg}$)`),cg={svcAction:"svc_action",svcActionData:"svc_action_data"},ug=e=>Pe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=lo[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),lg=e=>ag.test(e),dg=[lg],tc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},rc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},de={action:"pa",list:"pal",listSource:"pls"},xn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},pg=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],po={id:"quoteId",affiliation:"quoteAffiliation"},fo={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},fg={add:de,bookmark_add:de,bookmark_remove:de,click:de,checkout:de,checkout_option:de,detail:de,impression:de,remove:de,refund:Object.assign(Object.assign({},de),xn),purchase:Object.assign(Object.assign({},de),xn),quickview:de,quote:Object.assign(Object.assign({},de),po),review:Object.assign(Object.assign({},de),fo)},gg=Pe(tc).map(e=>tc[e]),mg=Pe(rc).map(e=>rc[e]),hg=Pe(de).map(e=>de[e]),yg=Pe(xn).map(e=>xn[e]),Sg=Pe(fo).map(e=>fo[e]),vg=Pe(po).map(e=>po[e]),Cg=[...gg,"custom"].join("|"),Ag=[...mg,"custom"].join("|"),hc="(pr[0-9]+)",yc="(il[0-9]+pi[0-9]+)",bg=new RegExp(`^${hc}(${Cg})$`),wg=new RegExp(`^(${yc}(${Ag}))|(il[0-9]+nm)$`),xg=new RegExp(`^(${hg.join("|")})$`),Rg=new RegExp(`^(${yg.join("|")})$`),Ig=new RegExp(`^${hc}custom$`),Eg=new RegExp(`^${yc}custom$`),kg=new RegExp(`^(${[...pg,...Sg,...vg].join("|")})$`),Pg=e=>bg.test(e),Tg=e=>wg.test(e),Fg=e=>xg.test(e),Og=e=>Rg.test(e),Dg=e=>kg.test(e),Mg=[Tg,Pg,Fg,Og,Dg],Ng=[Ig,Eg],qg={anonymizeIp:"aip"},_g={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},Lg={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},Ug=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],jg=Object.assign(Object.assign(Object.assign(Object.assign({},qg),_g),Lg),Ug.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),go=Object.assign(Object.assign({},jg),cg),Vg=e=>{let t=!!e.action&&fg[e.action]||{};return Pe(e).reduce((r,n)=>{let i=t[n]||go[n]||n;return Object.assign(Object.assign({},r),{[i]:e[n]})},{})},Bg=Pe(go).map(e=>go[e]),Qg=e=>Bg.indexOf(e)!==-1,$g=e=>e==="custom",Hg=e=>[...Mg,...dg,Qg,$g].some(t=>t(e)),zg=e=>Pe(e).reduce((t,r)=>{let n=Gg(r);return n?Object.assign(Object.assign({},t),Wg(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),Gg=e=>{let t;return[...Ng].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Wg=(e,t)=>Pe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),mo=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:i}=this.opts,o=yield this.getQueryParamsForEventType(t),{url:s,payload:c}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${o}`,r,i),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 i=t,o=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:c,body:u}=s;i=c||t;try{o=JSON.parse(u)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:o,url:i}})}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,i=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",i?`visitorId=${i}`:"","discardVisitInfo=true"].filter(o=>!!o).join("&")})}isEventTypeLegacy(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let i=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(i=`access_token=${encodeURIComponent(n)}&${i}`),i}},ho=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()})}},nc=globalThis.fetch,Rn=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:i,preprocessRequest:o}=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),o?yield o(c,"analyticsFetch"):{}),{url:a}=u,d=We(u,["url"]),p;try{p=yield nc(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&&i.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 nc(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"})}},yo=class{constructor(t,r){so()&&cc()?this.storage=new ao:so()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new Kt),this.client=new Rn(t),this.beaconClient=new mo(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:i,payload:o}of n)this.beaconClient.sendEvent(i,o)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},So=class{constructor(t,r){this.storage=r||new Kt,this.client=new Rn(t)}getClientDependingOnEventType(t){return this.client}},In=class{constructor(){this.storage=new Kt,this.client=new ho}getClientDependingOnEventType(t){return this.client}},Kg="xx",Yg=e=>e?.startsWith(Kg)||!1,Jg=`
18
+ "use strict";var bd=Object.create;var lr=Object.defineProperty;var wd=Object.getOwnPropertyDescriptor;var xd=Object.getOwnPropertyNames;var Rd=Object.getPrototypeOf,Id=Object.prototype.hasOwnProperty;var Ed=(e,t,r)=>t in e?lr(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),kd=(e,t)=>{for(var r in t)lr(e,r,{get:t[r],enumerable:!0})},Fs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xd(t))!Id.call(e,i)&&i!==r&&lr(e,i,{get:()=>t[i],enumerable:!(n=wd(t,i))||n.enumerable});return e};var Ne=(e,t,r)=>(r=e!=null?bd(Rd(e)):{},Fs(t||!e||!e.__esModule?lr(r,"default",{value:e,enumerable:!0}):r,e)),Pd=e=>Fs(lr({},"__esModule",{value:!0}),e);var le=(e,t,r)=>Ed(e,typeof t!="symbol"?t+"":t,r);var Os=oe(dr=>{"use strict";var Qr=dr&&dr.__assign||function(){return Qr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qr.apply(this,arguments)};Object.defineProperty(dr,"__esModule",{value:!0});var Td={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};function Fd(e){var t=Qr(Qr({},Td),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}dr.getSanitizedOptions=Fd});var Ds=oe(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});function Od(e){var t=Math.random()*e;return Math.round(t)}xi.fullJitter=Od});var Ms=oe(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});function Dd(e){return e}Ri.noJitter=Dd});var Ns=oe(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var Md=Ds(),Nd=Ms();function qd(e){switch(e.jitter){case"full":return Md.fullJitter;case"none":default:return Nd.noJitter}}Ii.JitterFactory=qd});var ki=oe(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var _d=Ns(),Ld=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=_d.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,i=t*Math.pow(r,n);return Math.min(i,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();Ei.Delay=Ld});var qs=oe(He=>{"use strict";var Ud=He&&He.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},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)}}(),jd=He&&He.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Vd=He&&He.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(He,"__esModule",{value:!0});var Bd=ki(),Qd=function(e){Ud(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.apply=function(){return jd(this,void 0,void 0,function(){return Vd(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}(Bd.Delay);He.SkipFirstDelay=Qd});var _s=oe(pr=>{"use strict";var $d=pr&&pr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},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(pr,"__esModule",{value:!0});var Hd=ki(),zd=function(e){$d(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Hd.Delay);pr.AlwaysDelay=zd});var Ls=oe(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Gd=qs(),Wd=_s();function Kd(e,t){var r=Yd(e);return r.setAttemptNumber(t),r}Pi.DelayFactory=Kd;function Yd(e){return e.delayFirstAttempt?new Wd.AlwaysDelay(e):new Gd.SkipFirstDelay(e)}});var Us=oe(Ct=>{"use strict";var Ti=Ct&&Ct.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(d.value).then(c,u)}a((n=n.apply(e,t||[])).next())})},Fi=Ct&&Ct.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(d){a=[6,d],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(Ct,"__esModule",{value:!0});var Jd=Os(),Xd=Ls();function Zd(e,t){return t===void 0&&(t={}),Ti(this,void 0,void 0,function(){var r,n;return Fi(this,function(i){switch(i.label){case 0:return r=Jd.getSanitizedOptions(t),n=new ep(e,r),[4,n.execute()];case 1:return[2,i.sent()]}})})}Ct.backOff=Zd;var ep=function(){function e(t,r){this.request=t,this.options=r,this.attemptNumber=0}return e.prototype.execute=function(){return Ti(this,void 0,void 0,function(){var t,r;return Fi(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 Ti(this,void 0,void 0,function(){var t;return Fi(this,function(r){switch(r.label){case 0:return t=Xd.DelayFactory(this.options,this.attemptNumber),[4,t.apply()];case 1:return r.sent(),[2]}})})},e}()});var Vn=oe((Mo,No)=>{"use strict";(function(e,t){typeof Mo=="object"&&typeof No<"u"?No.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Mo,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",c="day",u="week",a="month",d="quarter",p="year",f="date",l="Invalid Date",g=/^(\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:o,s:i,ms:n,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},m="en",y={};y[m]=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 m;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&&(m=F),F||!D&&m},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(g);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,Y){var X=x.w(F.$u?Date.UTC(F.$y,Y,K):new Date(F.$y,Y,K),F);return q?X:X.endOf(c)},B=function(K,Y){return x.w(F.toDate()[K].apply(F.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Y)),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,J=(G<H?G+7:G)-H;return U(q?Q-J:Q+(6-J),V);case c:case f:return B(j+"Hours",0);case s:return B(j+"Minutes",1);case o:return B(j+"Seconds",2);case i: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[o]=_+"Minutes",F[i]=_+"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[o]=t,F[s]=r,F[i]=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(Y,X,ge,Ie){return Y&&(Y[X]||Y(D,q))||ge[X].slice(0,Ie)},J=function(Y){return x.s(U%12||12,Y,"0")},K=j||function(Y,X,ge){var Ie=Y<12?"AM":"PM";return ge?Ie.toLowerCase():Ie};return q.replace(C,function(Y,X){return X||function(ge){switch(ge){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 J(1);case"hh":return J(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}(Y)||_.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 o:q=V/t;break;case i: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",i],["$m",o],["$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[m],A.Ls=y,A.p={},A})});var Wc=oe((qo,_o)=>{"use strict";(function(e,t){typeof qo=="object"&&typeof _o<"u"?_o.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_quarterOfYear=t()})(qo,function(){"use strict";var e="month",t="quarter";return function(r,n){var i=n.prototype;i.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var o=i.add;i.add=function(c,u){return c=Number(c),this.$utils().p(u)===t?this.add(3*c,e):o.bind(this)(c,u)};var s=i.startOf;i.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 Kc=oe((Lo,Uo)=>{"use strict";(function(e,t){typeof Lo=="object"&&typeof Uo<"u"?Uo.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(Lo,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/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(C){this[g]=+C}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(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}(g)}],d=function(g){var C=s[g];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(g,C){var v,h=s.meridiem;if(h){for(var b=1;b<=24;b+=1)if(g.indexOf(h(b,0,C))>-1){v=b>12;break}}else v=g===(C?"pm":"PM");return v},f={A:[o,function(g){this.afternoon=p(g,!1)}],a:[o,function(g){this.afternoon=p(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[n,u("day")],Do:[o,function(g){var C=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],C)for(var h=1;h<=31;h+=1)C(h).replace(/\[|\]/g,"")===g&&(this.day=h)}],w:[i,u("week")],ww:[n,u("week")],M:[i,u("month")],MM:[n,u("month")],MMM:[o,function(g){var C=d("months"),v=(d("monthsShort")||C.map(function(h){return h.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[o,function(g){var C=d("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:a,ZZ:a};function l(g){var C,v;C=g,v=s&&s.formats;for(var h=(g=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,m=0;m<b;m+=1){var y=h[m],E=f[y],w=E&&E[0],S=E&&E[1];h[m]=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(g,C,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var h=C.prototype,b=h.parse;h.parse=function(m){var y=m.date,E=m.utc,w=m.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,J=U.milliseconds,K=U.zone,Y=U.week,X=new Date,ge=V||(B||G?1:X.getDate()),Ie=B||X.getFullYear(),et=0;B&&!G||(et=G>0?G-1:X.getMonth());var Ot,Dt=Q||0,ur=j||0,bi=H||0,wi=J||0;return K?new Date(Date.UTC(Ie,et,ge,Dt,ur,bi,wi+60*K.offset*1e3)):q?new Date(Date.UTC(Ie,et,ge,Dt,ur,bi,wi)):(Ot=new Date(Ie,et,ge,Dt,ur,bi,wi),Y&&(Ot=_(Ot).week(Y).toDate()),Ot)}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,m)}}})});var ju=oe((Mx,Uu)=>{"use strict";var Wh=/(^|; )Coveo-Pendragon=([^;]*)/;Uu.exports=()=>Wh.exec(document.cookie)?.pop()||null});var Qu=oe((os,ss)=>{"use strict";(function(e,t){typeof os=="object"&&typeof ss<"u"?ss.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_timezone=t()})(os,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var o,s=function(d,p,f){f===void 0&&(f={});var l=new Date(d),g=function(C,v){v===void 0&&(v={});var h=v.timeZoneName||"short",b=C+"|"+h,m=t[b];return m||(m=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]=m),m}(p,f);return g.formatToParts(l)},c=function(d,p){for(var f=s(d,p),l=[],g=0;g<f.length;g+=1){var C=f[g],v=C.type,h=C.value,b=e[v];b>=0&&(l[b]=parseInt(h,10))}var m=l[3],y=m===24?0:m,E=l[0]+"-"+l[1]+"-"+l[2]+" "+y+":"+l[4]+":"+l[5]+":000",w=+d;return(i.utc(E).valueOf()-(w-=w%1e3))/6e4},u=n.prototype;u.tz=function(d,p){d===void 0&&(d=o);var f,l=this.utcOffset(),g=this.toDate(),C=g.toLocaleString("en-US",{timeZone:d}),v=Math.round((g-new Date(C))/1e3/60),h=15*-Math.round(g.getTimezoneOffset()/15)-v;if(!Number(h))f=this.utcOffset(0,p);else if(f=i(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||i.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=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return a.call(f,d,p).tz(this.$x.$timezone,!0)},i.tz=function(d,p,f){var l=f&&p,g=f||p||o,C=c(+i(),g);if(typeof d!="string")return i(d).tz(g);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)]}(i.utc(d,l).valueOf(),C,g),h=v[0],b=v[1],m=i(h).utcOffset(b);return m.$x.$timezone=g,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(d){o=d}}})});var $u=oe((as,cs)=>{"use strict";(function(e,t){typeof as=="object"&&typeof cs<"u"?cs.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t()})(as,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var s=i.prototype;o.utc=function(l){var g={date:l,utc:!0,args:arguments};return new i(g)},s.utc=function(l){var g=o(this.toDate(),{locale:this.$L,utc:!0});return l?g.add(this.utcOffset(),e):g},s.local=function(){return o(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,g){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(m){m===void 0&&(m="");var y=m.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(g)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 g=l||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,g)},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?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var f=s.diff;s.diff=function(l,g,C){if(l&&this.$u===l.$u)return f.call(this,l,g,C);var v=this.local(),h=o(l).local();return f.call(v,h,g,C)}}})});var ol=oe((VR,il)=>{"use strict";function sy(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}il.exports=ay;function ay(e,t,r){var n=r&&r.stringify||sy,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var c=1;c<o;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-i,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 g=typeof t[d];if(g==="string"){a+="'"+t[d]+"'",p=l+2,l++;break}if(g==="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 dl=oe((BR,Jn)=>{"use strict";var sl=ol();Jn.exports=Xe;var Ur=by().console||{},cy={mapHttpRequest:Yn,mapHttpResponse:Yn,wrapRequestSerializer:ps,wrapResponseSerializer:ps,wrapErrorSerializer:ps,req:Yn,res:Yn,err:cl,errWithCause:cl};function ut(e,t){return e==="silent"?1/0:t.levels.values[e]}var ms=Symbol("pino.logFuncs"),fs=Symbol("pino.hierarchy"),uy={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function al(e,t){let r={logger:t,parent:e[fs]};t[fs]=r}function ly(e,t,r){let n={};t.forEach(i=>{n[i]=r[i]?r[i]:Ur[i]||Ur[uy[i]||"log"]||nr}),e[ms]=n}function dy(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Xe(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||Ur;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=dy(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!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=nr),ly(a,c,r),al({},a),Object.defineProperty(a,"levelVal",{get:p}),Object.defineProperty(a,"level",{get:f,set:l});let d={transmit:t,serialize:i,asObject:e.browser.asObject,formatters:e.browser.formatters,levels:c,timestamp:vy(e),messageKey:e.messageKey||"msg",onChild:e.onChild||nr};a.levels=py(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=nr,a.serializers=n,a._serialize=i,a._stdErrSerialize=o,a.child=function(...C){return g.call(this,d,...C)},t&&(a._logEvent=gs());function p(){return ut(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,Tt(this,d,a,"error"),Tt(this,d,a,"fatal"),Tt(this,d,a,"warn"),Tt(this,d,a,"info"),Tt(this,d,a,"debug"),Tt(this,d,a,"trace"),s.forEach(v=>{Tt(this,d,a,v)})}function g(C,v,h){if(!v)throw new Error("missing bindings for child Pino");h=h||{},i&&v.serializers&&(h.serializers=v.serializers);let b=h.serializers;if(i&&b){var m=Object.assign({},n,b),y=e.browser.serialize===!0?Object.keys(m):i;delete v.serializers,hs([v],y,m,this._stdErrSerialize)}function E(S){this._childLevel=(S._childLevel|0)+1,this.bindings=v,m&&(this.serializers=m,this._serialize=y),t&&(this._logEvent=gs([].concat(S._logEvent.bindings,v)))}E.prototype=this;let w=new E(this);return al(this,w),w.child=function(...S){return g.call(this,C,...S)},w.level=h.level||this.level,C.onChild(w),w}return a}function py(e){let t=e.customLevels||{},r=Object.assign({},Xe.levels.values,t),n=Object.assign({},Xe.levels.labels,fy(t));return{values:r,labels:n}}function fy(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}Xe.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"}};Xe.stdSerializers=cy;Xe.stdTimeFunctions=Object.assign({},{nullTime:ul,epochTime:ll,unixTime:Cy,isoTime:Ay});function gy(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 Tt(e,t,r,n){if(Object.defineProperty(e,n,{value:ut(e.level,r)>ut(n,r)?nr:r[ms][n],writable:!0,enumerable:!0,configurable:!0}),e[n]===nr){if(!t.transmit)return;let o=t.transmit.level||e.level,s=ut(o,r);if(ut(n,r)<s)return}e[n]=hy(e,t,r,n);let i=gy(e);i.length!==0&&(e[n]=my(i,e[n]))}function my(e,t){return function(){return t.apply(this,[...e,...arguments])}}function hy(e,t,r,n){return function(i){return function(){let s=t.timestamp(),c=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Ur?Ur: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?i.call(u,yy(this,n,c,s,t)):i.apply(u,c),t.transmit){let p=t.transmit.level||e._level,f=ut(p,r),l=ut(n,r);if(l<f)return;Sy(this,{ts:s,methodLevel:n,methodValue:l,transmitLevel:p,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:ut(e._level,r)},c,d)}}}(e[ms][n])}function yy(e,t,r,n,i){let{level:o,log:s=f=>f}=i.formatters||{},c=r.slice(),u=c[0],a={};if(n&&(a.time=n),o){let f=o(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?sl(c.shift(),c):void 0}else typeof u=="string"&&(u=sl(c.shift(),c));return u!==void 0&&(a[i.messageKey]=u),s(a)}function hs(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Xe.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i])&&t)for(let o in e[i])t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function Sy(e,t,r,n=!1){let i=t.send,o=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=o,e._logEvent.messages=r.filter(function(d){return a.indexOf(d)===-1}),e._logEvent.level.label=s,e._logEvent.level.value=c,i(s,e._logEvent,u),e._logEvent=gs(a)}function gs(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function cl(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 vy(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?ul:ll}function Yn(){return{}}function ps(e){return e}function nr(){}function ul(){return!1}function ll(){return Date.now()}function Cy(){return Math.round(Date.now()/1e3)}function Ay(){return new Date(Date.now()).toISOString()}function by(){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)||{}}}Jn.exports.default=Xe;Jn.exports.pino=Xe});var SS={};kd(SS,{ResultTemplatesHelpers:()=>Ad,buildCaseAssistEngine:()=>vl,buildCaseField:()=>jl,buildCaseInput:()=>Ll,buildController:()=>Qe,buildDocumentSuggestion:()=>Ts,buildDocumentSuggestionList:()=>Ts,buildInteractiveResult:()=>vd,buildQuickview:()=>yd,getAnalyticsNextApiBaseUrl:()=>$r,getOrganizationEndpoint:()=>re,loadCaseAssistAnalyticsActions:()=>Ly,loadCaseFieldActions:()=>Fy,loadCaseInputActions:()=>ky,loadDocumentSuggestionActions:()=>Dy,loadGenericAnalyticsActions:()=>Uy});module.exports=Pd(SS);var Sl=require("@coveo/bueno");var Br=e=>e;var Gs=Ne(Us(),1);var tp="recommendation-internal-options",FS=Symbol.for(tp);var Ee=new Error("Failed to load reducers."),Mt=class extends Error{constructor(){super(),this.name="ExpiredToken",this.message="The token being used to perform the request is expired."}};var At=class extends Error{constructor(r,n){super();le(this,"statusCode");this.name="Disconnected",this.message=`Client could not connect to the following URL: ${r}`,this.statusCode=n??0}};function js(e){return Array.isArray(e)}function Vs(e,t){return[...e.reduce((r,n)=>{let i=t(n);return r.has(i)||r.set(i,n),r},new Map).values()]}var rp=new Set(["1",1,"yes",!0]);function Bs(){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=>rp.has(r))}function Qs(e){let t={};for(let[r,n]of e)t[r]=n;return t}function fr(e){if(typeof e!="object"||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function $s(e){let t=[];for(let r in e){let n=encodeURIComponent(r),i=encodeURIComponent(e[r]);t.push(`${n}=${i}`)}return t.join("&")}function Hs(e){return typeof e!="object"||!e?!1:Object.values(e).every(np)}function np(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function zs(e){return e===429}var tt=class e{static async call(t){let r=ip(t),{logger:n}=t,i=await e.preprocessRequest(r,t);n.info(i,"Platform request");let{url:o,...s}=i,c=async()=>{let u=await fetch(o,s);if(zs(u.status))throw u;return u};try{let u=await(0,Gs.backOff)(c,{retry:a=>{let d=a&&zs(a.status);return d&&n.info("Platform retrying request"),d}});switch(u.status){case 419:case 401:throw n.info("Platform renewing token"),new Mt;case 404:throw new At(o,u.status);default:return n.info({response:u,requestInfo:i},"Platform response"),u}}catch(u){return u.message==="Failed to fetch"?new At(o):u}}static async preprocessRequest(t,r){let{origin:n,preprocessRequest:i,logger:o,requestMetadata:s}=r,{signal:c,...u}=t,a=fr(u);try{let d=await i(t,n,s);return{...t,...d}}catch(d){o.error(d,"Platform request preprocessing failed. Returning default request options.")}return a}};function re(e,t="prod",r="platform"){let n=t==="prod"?"":t,i=r==="platform"?"":`.${r}`;return`https://${e}${i}.org${n}.coveo.com`}function Nt(e,t="prod"){return`${re(e,t)}/rest/search/v2`}function $r(e,t="prod"){return`${re(e,t,"analytics")}/rest/organizations/${e}/events/v1`}function ip(e){let{url:t,method:r,requestParams:n,contentType:i,accessToken:o,signal:s}=e,c=e.method==="POST"||e.method==="PUT",u=op(n,i);return{url:t,method:r,headers:{"Content-Type":i,Authorization:`Bearer ${o}`,...e.headers},...c&&{body:u},signal:s}}function op(e,t){return t==="application/x-www-form-urlencoded"?Hs(e)?$s(e):"":JSON.stringify(e)}var qt=class{constructor(t){le(this,"_basePath");le(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 Oi(e){let{url:t,accessToken:r,organizationId:n,authentication:i,...o}=e;return o}var Di=e=>{let{response:t}=e;return t.body?sp(e):ap(t)},sp=e=>up(e)?lp(e):cp(e)?e.body:{message:"unknown",statusCode:0,type:"unknown"},ap=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}};function cp(e){return e.body.statusCode!==void 0}function up(e){return e.body.exception!==void 0}var lp=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});function Ws(e){return((e.headers.get("content-type")||"").split(";").find(n=>n.indexOf("charset=")!==-1)||"").split("=")[1]||"UTF-8"}var Mi=(e,t,r,n)=>{let i=new qt(`${e.url}${n}`);return i.addParam("organizationId",e.organizationId),e.authentication&&i.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:i.href,origin:"searchApiFetch"}};var Ks=(e,t)=>{let r=new qt(`${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},Ni=async(e,t)=>{let r=await tt.call({...Mi(e,"POST","application/x-www-form-urlencoded","/html"),requestParams:Oi(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=Ws(r),i=await r.arrayBuffer(),s=new TextDecoder(n).decode(i);return dp(s)?{success:s}:{error:Di({response:r,body:s})}};function dp(e){return typeof e=="string"}function pp(e){return{statusCode:e.statusCode,type:e.name,message:e.message}}function fp(e){return{statusCode:e.code,type:e.name,message:e.message,ignored:!0}}function Hr(e,t){if(t&&e.name==="AbortError")return{error:fp(e)};if(e instanceof At)return{error:pp(e)};throw e}var zr=(e,t,r,n,i={})=>{gp(e);let o=`${e.url}/rest/organizations/${e.organizationId}/caseassists/${e.caseAssistId}${n}`,s=mp(i),c=s?`${o}?${s}`:o;return{accessToken:e.accessToken,method:t,contentType:r,url:c,origin:"caseAssistApiFetch"}},Gr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r]}),{}),Wr=e=>Object.keys(e).filter(t=>e[t].value!=="").reduce((t,r)=>({...t,[r]:e[r].value}),{}),gp=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.")},mp=e=>Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&");var Ys=e=>{let t=e.debug?{debug:"1"}:{};return{...zr(e,"POST","application/json","/classify",t),requestParams:hp(e)}},hp=e=>({clientId:e.clientId,locale:e.locale,fields:Gr(e.fields)});var Js=e=>{let t={};return e.debug&&(t.debug="1"),e.numberOfResults&&(t.numberOfResults=e.numberOfResults.toString()),{...zr(e,"POST","application/json","/documents/suggest",t),requestParams:yp(e)}},yp=e=>({clientId:e.clientId,locale:e.locale,fields:Gr(e.fields),context:e.context,analytics:e.analytics});var Kr=class{constructor(t){this.options=t}async getCaseClassifications(t){let r=await tt.call({...Ys(t),...this.options});if(r instanceof Error)return Hr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async getDocumentSuggestions(t){let r=await tt.call({...Js(t),...this.options});if(r instanceof Error)return Hr(r);let n=await r.json();return r.ok?{success:n}:{error:n}}async html(t){return Ni(t,this.options)}};var Oa=require("@coveo/bueno");function se(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 Sp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xs=Sp,qi=()=>Math.random().toString(36).substring(7).split("").join("."),vp={INIT:`@@redux/INIT${qi()}`,REPLACE:`@@redux/REPLACE${qi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qi()}`},Yr=vp;function qe(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 _i(e,t,r){if(typeof e!="function")throw new Error(se(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(se(1));return r(_i)(e,t)}let n=e,i=t,o=new Map,s=o,c=0,u=!1;function a(){s===o&&(s=new Map,o.forEach((v,h)=>{s.set(h,v)}))}function d(){if(u)throw new Error(se(3));return i}function p(v){if(typeof v!="function")throw new Error(se(4));if(u)throw new Error(se(5));let h=!0;a();let b=c++;return s.set(b,v),function(){if(h){if(u)throw new Error(se(6));h=!1,a(),s.delete(b),o=null}}}function f(v){if(!qe(v))throw new Error(se(7));if(typeof v.type>"u")throw new Error(se(8));if(typeof v.type!="string")throw new Error(se(17));if(u)throw new Error(se(9));try{u=!0,i=n(i,v)}finally{u=!1}return(o=s).forEach(b=>{b()}),v}function l(v){if(typeof v!="function")throw new Error(se(10));n=v,f({type:Yr.REPLACE})}function g(){let v=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(se(11));function b(){let y=h;y.next&&y.next(d())}return b(),{unsubscribe:v(b)}},[Xs](){return this}}}return f({type:Yr.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:l,[Xs]:g}}function Cp(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Yr.INIT})>"u")throw new Error(se(12));if(typeof r(void 0,{type:Yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function _t(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),i,o;try{Cp(r)}catch(s){o=s}return function(c={},u){if(o)throw o;let a=!1,d={};for(let p=0;p<n.length;p++){let f=n[p],l=r[f],g=c[f],C=l(g,u);if(typeof C>"u"){let v=u&&u.type;throw new Error(se(14))}d[f]=C,a=a||C!==g}return a=a||n.length!==Object.keys(c).length,a?d:c}}function Lt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Zs(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw new Error(se(15))},s={getState:i.getState,dispatch:(u,...a)=>o(u,...a)},c=e.map(u=>u(s));return o=Lt(...c)(i.dispatch),{...i,dispatch:o}}}function Jr(e){return qe(e)&&"type"in e&&typeof e.type=="string"}var Gi=Symbol.for("immer-nothing"),gr=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ae(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wt=Object.getPrototypeOf;function Ae(e){return!!e&&!!e[me]}function he(e){return e?ia(e)||Array.isArray(e)||!!e[gr]||!!e.constructor?.[gr]||vr(e)||Cr(e):!1}var Ap=Object.prototype.constructor.toString();function ia(e){if(!e||typeof e!="object")return!1;let t=wt(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)===Ap}function Wi(e){return Ae(e)||ae(15,e),e[me].base_}function mr(e,t){xt(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function xt(e){let t=e[me];return t?t.type_:Array.isArray(e)?1:vr(e)?2:Cr(e)?3:0}function hr(e,t){return xt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Li(e,t){return xt(e)===2?e.get(t):e[t]}function oa(e,t,r){let n=xt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function bp(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function vr(e){return e instanceof Map}function Cr(e){return e instanceof Set}function bt(e){return e.copy_||e.base_}function Vi(e,t){if(vr(e))return new Map(e);if(Cr(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=ia(e);if(t===!0||t==="class_only"&&!r){let n=Object.getOwnPropertyDescriptors(e);delete n[me];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){let s=i[o],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(wt(e),n)}else{let n=wt(e);if(n!==null&&r)return{...e};let i=Object.create(n);return Object.assign(i,e)}}function en(e,t=!1){return tn(e)||Ae(e)||!he(e)||(xt(e)>1&&(e.set=e.add=e.clear=e.delete=wp),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>en(n,!0))),e}function wp(){ae(2)}function tn(e){return Object.isFrozen(e)}var Bi={};function Rt(e){let t=Bi[e];return t||ae(0,e),t}function xp(e,t){Bi[e]||(Bi[e]=t)}var yr;function sa(){return yr}function Rp(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ea(e,t){t&&(Rt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Qi(e){$i(e),e.drafts_.forEach(Ip),e.drafts_=null}function $i(e){e===yr&&(yr=e.parent_)}function ta(e){return yr=Rp(yr,e)}function Ip(e){let t=e[me];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return e!==void 0&&e!==r?(r[me].modified_&&(Qi(t),ae(4)),he(e)&&(e=Xr(t,e),t.parent_||Zr(t,e)),t.patches_&&Rt("Patches").generateReplacementPatches_(r[me].base_,e,t.patches_,t.inversePatches_)):e=Xr(t,r,[]),Qi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gi?e:void 0}function Xr(e,t,r){if(tn(t))return t;let n=t[me];if(!n)return mr(t,(i,o)=>na(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Zr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let i=n.copy_,o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),mr(o,(c,u)=>na(e,n,i,c,u,r,s)),Zr(e,i,!1),r&&e.patches_&&Rt("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function na(e,t,r,n,i,o,s){if(Ae(i)){let c=o&&t&&t.type_!==3&&!hr(t.assigned_,n)?o.concat(n):void 0,u=Xr(e,i,c);if(oa(r,n,u),Ae(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(he(i)&&!tn(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Xr(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&Zr(e,i)}}function Zr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&en(t,r)}function Ep(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:sa(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,o=Ki;r&&(i=[n],o=Sr);let{revoke:s,proxy:c}=Proxy.revocable(i,o);return n.draft_=c,n.revoke_=s,c}var Ki={get(e,t){if(t===me)return e;let r=bt(e);if(!hr(r,t))return kp(e,r,t);let n=r[t];return e.finalized_||!he(n)?n:n===Ui(e.base_,t)?(ji(e),e.copy_[t]=zi(n,e)):n},has(e,t){return t in bt(e)},ownKeys(e){return Reflect.ownKeys(bt(e))},set(e,t,r){let n=aa(bt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=Ui(bt(e),t),o=i?.[me];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(bp(r,i)&&(r!==void 0||hr(e.base_,t)))return!0;ji(e),Hi(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 Ui(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ji(e),Hi(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=bt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ae(11)},getPrototypeOf(e){return wt(e.base_)},setPrototypeOf(){ae(12)}},Sr={};mr(Ki,(e,t)=>{Sr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Sr.deleteProperty=function(e,t){return Sr.set.call(this,e,t,void 0)};Sr.set=function(e,t,r){return Ki.set.call(this,e[0],t,r,e[0])};function Ui(e,t){let r=e[me];return(r?bt(r):e)[t]}function kp(e,t,r){let n=aa(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function aa(e,t){if(!(t in e))return;let r=wt(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=wt(r)}}function Hi(e){e.modified_||(e.modified_=!0,e.parent_&&Hi(e.parent_))}function ji(e){e.copy_||(e.copy_=Vi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pp=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){let o=r;r=t;let s=this;return function(u=o,...a){return s.produce(u,d=>r.call(this,d,...a))}}typeof r!="function"&&ae(6),n!==void 0&&typeof n!="function"&&ae(7);let i;if(he(t)){let o=ta(this),s=zi(t,void 0),c=!0;try{i=r(s),c=!1}finally{c?Qi(o):$i(o)}return ea(o,n),ra(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Gi&&(i=void 0),this.autoFreeze_&&en(i,!0),n){let o=[],s=[];Rt("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ae(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...c)=>this.produceWithPatches(s,u=>t(u,...c));let n,i;return[this.produce(t,r,(s,c)=>{n=s,i=c}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){he(e)||ae(8),Ae(e)&&(e=ca(e));let t=ta(this),r=zi(e,void 0);return r[me].isManual_=!0,$i(t),r}finishDraft(e,t){let r=e&&e[me];(!r||!r.isManual_)&&ae(9);let{scope_:n}=r;return ea(n,t),ra(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 i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=Rt("Patches").applyPatches_;return Ae(e)?n(e,t):this.produce(e,i=>n(i,t))}};function zi(e,t){let r=vr(e)?Rt("MapSet").proxyMap_(e,t):Cr(e)?Rt("MapSet").proxySet_(e,t):Ep(e,t);return(t?t.scope_:sa()).drafts_.push(r),r}function ca(e){return Ae(e)||ae(10,e),ua(e)}function ua(e){if(!he(e)||tn(e))return e;let t=e[me],r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Vi(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Vi(e,!0);return mr(r,(n,i)=>{oa(r,n,ua(i))}),t&&(t.finalized_=!1),r}function la(){let t="replace",r="add",n="remove";function i(f,l,g,C){switch(f.type_){case 0:case 2:return s(f,l,g,C);case 1:return o(f,l,g,C);case 3:return c(f,l,g,C)}}function o(f,l,g,C){let{base_:v,assigned_:h}=f,b=f.copy_;b.length<v.length&&([v,b]=[b,v],[g,C]=[C,g]);for(let m=0;m<v.length;m++)if(h[m]&&b[m]!==v[m]){let y=l.concat([m]);g.push({op:t,path:y,value:p(b[m])}),C.push({op:t,path:y,value:p(v[m])})}for(let m=v.length;m<b.length;m++){let y=l.concat([m]);g.push({op:r,path:y,value:p(b[m])})}for(let m=b.length-1;v.length<=m;--m){let y=l.concat([m]);C.push({op:n,path:y})}}function s(f,l,g,C){let{base_:v,copy_:h}=f;mr(f.assigned_,(b,m)=>{let y=Li(v,b),E=Li(h,b),w=m?hr(v,b)?t:r:n;if(y===E&&w===t)return;let S=l.concat(b);g.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,g,C){let{base_:v,copy_:h}=f,b=0;v.forEach(m=>{if(!h.has(m)){let y=l.concat([b]);g.push({op:n,path:y,value:m}),C.unshift({op:r,path:y,value:m})}b++}),b=0,h.forEach(m=>{if(!v.has(m)){let y=l.concat([b]);g.push({op:r,path:y,value:m}),C.unshift({op:n,path:y,value:m})}b++})}function u(f,l,g,C){g.push({op:t,path:[],value:l===Gi?void 0:l}),C.push({op:t,path:[],value:f})}function a(f,l){return l.forEach(g=>{let{path:C,op:v}=g,h=f;for(let E=0;E<C.length-1;E++){let w=xt(h),S=C[E];typeof S!="string"&&typeof S!="number"&&(S=""+S),(w===0||w===1)&&(S==="__proto__"||S==="constructor")&&ae(19),typeof h=="function"&&S==="prototype"&&ae(19),h=Li(h,S),typeof h!="object"&&ae(18,C.join("/"))}let b=xt(h),m=d(g.value),y=C[C.length-1];switch(v){case t:switch(b){case 2:return h.set(y,m);case 3:ae(16);default:return h[y]=m}case r:switch(b){case 1:return y==="-"?h.push(m):h.splice(y,0,m);case 2:return h.set(y,m);case 3:return h.add(m);default:return h[y]=m}case n:switch(b){case 1:return h.splice(y,1);case 2:return h.delete(y);case 3:return h.delete(g.value);default:return delete h[y]}default:ae(17,v)}}),f}function d(f){if(!he(f))return f;if(Array.isArray(f))return f.map(d);if(vr(f))return new Map(Array.from(f.entries()).map(([g,C])=>[g,d(C)]));if(Cr(f))return new Set(Array.from(f).map(d));let l=Object.create(wt(f));for(let g in f)l[g]=d(f[g]);return hr(f,gr)&&(l[gr]=f[gr]),l}function p(f){return Ae(f)?d(f):f}xp("Patches",{applyPatches_:a,generatePatches_:i,generateReplacementPatches_:u})}var be=new Pp,ze=be.produce,rn=be.produceWithPatches.bind(be),bv=be.setAutoFreeze.bind(be),wv=be.setUseStrictShallowCopy.bind(be),Yi=be.applyPatches.bind(be),xv=be.createDraft.bind(be),Rv=be.finishDraft.bind(be);function Tp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Fp(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Op(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 da=e=>Array.isArray(e)?e:[e];function Dp(e){let t=Array.isArray(e[0])?e[0]:e;return Op(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mp(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var kv=Symbol();var Pv=Object.getPrototypeOf({});var Np=class{constructor(e){this.value=e}deref(){return this.value}},qp=typeof WeakRef<"u"?WeakRef:Np,_p=0,pa=1;function nn(){return{s:_p,v:void 0,o:null,p:null}}function Ut(e,t={}){let r=nn(),{resultEqualityCheck:n}=t,i,o=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 g=c.o;g===null&&(c.o=g=new WeakMap);let C=g.get(l);C===void 0?(c=nn(),g.set(l,c)):c=C}else{let g=c.p;g===null&&(c.p=g=new Map);let C=g.get(l);C===void 0?(c=nn(),g.set(l,c)):c=C}}let a=c,d;if(c.s===pa)d=c.v;else if(d=e.apply(null,arguments),o++,n){let p=i?.deref?.()??i;p!=null&&n(p,d)&&(d=p,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new qp(d):d}return a.s=pa,a.v=d,d}return s.clearCache=()=>{r=nn(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function fa(e,...t){let r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,s=0,c,u={},a=i.pop();typeof a=="object"&&(u=a,a=i.pop()),Tp(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let d={...r,...u},{memoize:p,memoizeOptions:f=[],argsMemoize:l=Ut,argsMemoizeOptions:g=[],devModeChecks:C={}}=d,v=da(f),h=da(g),b=Dp(i),m=p(function(){return o++,a.apply(null,arguments)},...v),y=!0,E=l(function(){s++;let S=Mp(b,arguments);return c=m.apply(null,S),c},...h);return Object.assign(E,{resultFunc:a,memoizedResultFunc:m,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:l})};return Object.assign(n,{withTypes:()=>n}),n}var ne=fa(Ut),Lp=Object.assign((e,t=ne)=>{Fp(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(o=>e[o]);return t(n,(...o)=>o.reduce((s,c,u)=>(s[r[u]]=c,s),{}))},{withTypes:()=>Lp});function ga(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ma=ga(),ha=ga;var Up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lt:Lt.apply(null,arguments)},Uv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},jp=e=>e&&typeof e.match=="function";function N(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Oe(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Jr(n)&&n.type===e,r}var Aa=class Ar extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ar.prototype)}static get[Symbol.species](){return Ar}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ar(...t[0].concat(this)):new Ar(...t.concat(this))}};function ya(e){return he(e)?ze(e,()=>{}):e}function Sa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vp(e){return typeof e=="boolean"}var Bp=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{},s=new Aa;return r&&(Vp(r)?s.push(ma):s.push(ha(r.extraArgument))),s},br="RTK_autoBatch",Vt=()=>e=>({payload:e,meta:{[br]:!0}}),va=e=>t=>{setTimeout(t,e)},Qp=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,c=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:va(10):e.type==="callback"?e.queueNotification:va(e.timeout),a=()=>{s=!1,o&&(o=!1,c.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let p=()=>i&&d(),f=n.subscribe(p);return c.add(d),()=>{f(),c.delete(d)}},dispatch(d){try{return i=!d?.meta?.[br],o=!i,o&&(s||(s=!0,u(a))),n.dispatch(d)}finally{i=!0}}})},$p=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Aa(e);return n&&i.push(Qp(typeof n=="object"?n:void 0)),i};function ba(e){let t=Bp(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof r=="function")c=r;else if(qe(r))c=_t(r);else throw new Error(Oe(1));let u;typeof n=="function"?u=n(t):u=t();let a=Lt;i&&(a=Up({trace:!1,...typeof i=="object"&&i}));let d=Zs(...u),p=$p(d),f=typeof s=="function"?s(p):p(),l=a(...f);return _i(c,o,l)}function wa(e){let t={},r=[],n,i={addCase(o,s){let c=typeof o=="string"?o:o.type;if(!c)throw new Error(Oe(28));if(c in t)throw new Error(Oe(29));return t[c]=s,i},addMatcher(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function Hp(e){return typeof e=="function"}function ie(e,t){let[r,n,i]=wa(t),o;if(Hp(e))o=()=>ya(e());else{let c=ya(e);o=()=>c}function s(c=o(),u){let a=[r[u.type],...n.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return a.filter(d=>!!d).length===0&&(a=[i]),a.reduce((d,p)=>{if(p)if(Ae(d)){let l=p(d,u);return l===void 0?d:l}else{if(he(d))return ze(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=o,s}var xa=(e,t)=>jp(e)?e.match(t):e(t);function _e(...e){return t=>e.some(r=>xa(r,t))}function jt(...e){return t=>e.every(r=>xa(r,t))}function sn(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 wr(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function an(...e){return e.length===0?t=>sn(t,["pending"]):wr(e)?_e(...e.map(t=>t.pending)):an()(e[0])}function It(...e){return e.length===0?t=>sn(t,["rejected"]):wr(e)?_e(...e.map(t=>t.rejected)):It()(e[0])}function xr(...e){let t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?jt(It(...e),t):wr(e)?jt(It(...e),t):xr()(e[0])}function Ge(...e){return e.length===0?t=>sn(t,["fulfilled"]):wr(e)?_e(...e.map(t=>t.fulfilled)):Ge()(e[0])}function cn(...e){return e.length===0?t=>sn(t,["pending","fulfilled","rejected"]):wr(e)?_e(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):cn()(e[0])}var zp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",un=(e=21)=>{let t="",r=e;for(;r--;)t+=zp[Math.random()*64|0];return t},Gp=["name","message","stack","code"],Ji=class{constructor(e,t){le(this,"_type");this.payload=e,this.meta=t}},Ca=class{constructor(e,t){le(this,"_type");this.payload=e,this.meta=t}},Wp=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Gp)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},W=(()=>{function e(t,r,n){let i=N(t+"/fulfilled",(u,a,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:a,requestStatus:"fulfilled"}})),o=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||Wp)(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):un(),l=new AbortController,g,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(Yp(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)=>{g=()=>{S({name:"AbortError",message:C||"Aborted"})},l.signal.addEventListener("abort",g)});a(o(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 Ji(w,S),fulfillWithValue:(w,S)=>new Ca(w,S)})).then(w=>{if(w instanceof Ji)throw w;return w instanceof Ca?i(w.payload,f,u,w.meta):i(w,f,u)})])}catch(y){b=y instanceof Ji?s(null,f,u,y.payload,y.meta):s(y,f,u)}finally{g&&l.signal.removeEventListener("abort",g)}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(Kp)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,settled:_e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Kp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Yp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ra=Symbol.for("rtk-slice-createasyncthunk"),$v={[Ra]:W};function Jp(e,t){return`${e}/${t}`}function Xp({creators:e}={}){let t=e?.asyncThunk?.[Ra];return function(n){let{name:i,reducerPath:o=i}=n;if(!i)throw new Error(Oe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(ef()):n.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(b,m){let y=typeof b=="string"?b:b.type;if(!y)throw new Error(Oe(12));if(y in u.sliceCaseReducersByType)throw new Error(Oe(13));return u.sliceCaseReducersByType[y]=m,a},addMatcher(b,m){return u.sliceMatchers.push({matcher:b,reducer:m}),a},exposeAction(b,m){return u.actionCreators[b]=m,a},exposeCaseReducer(b,m){return u.sliceCaseReducersByName[b]=m,a}};c.forEach(b=>{let m=s[b],y={reducerName:b,type:Jp(i,b),createNotation:typeof n.reducers=="function"};rf(m)?of(y,m,a,t):tf(y,m,a)});function d(){let[b={},m=[],y=void 0]=typeof n.extraReducers=="function"?wa(n.extraReducers):[n.extraReducers],E={...b,...u.sliceCaseReducersByType};return ie(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 m)w.addMatcher(S.matcher,S.reducer);y&&w.addDefaultCase(y)})}let p=b=>b,f=new Map,l;function g(b,m){return l||(l=d()),l(b,m)}function C(){return l||(l=d()),l.getInitialState()}function v(b,m=!1){function y(w){let S=w[b];return typeof S>"u"&&m&&(S=C()),S}function E(w=p){let S=Sa(f,m,()=>new WeakMap);return Sa(S,w,()=>{let A={};for(let[x,k]of Object.entries(n.selectors??{}))A[x]=Zp(k,w,C,m);return A})}return{reducerPath:b,getSelectors:E,get selectors(){return E(y)},selectSlice:y}}let h={name:i,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...v(o),injectInto(b,{reducerPath:m,...y}={}){let E=m??o;return b.inject({reducerPath:E,reducer:g},y),{...h,...v(E,!0)}}};return h}}function Zp(e,t,r,n){function i(o,...s){let c=t(o);return typeof c>"u"&&n&&(c=r()),e(c,...s)}return i.unwrapped=e,i}var Et=Xp();function ef(){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 tf({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!nf(n))throw new Error(Oe(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?N(e,s):N(e))}function rf(e){return e._reducerDefinitionType==="asyncThunk"}function nf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function of({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Oe(18));let{payloadCreator:o,fulfilled:s,pending:c,rejected:u,settled:a,options:d}=r,p=i(e,o,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||on,pending:c||on,rejected:u||on,settled:a||on})}function on(){}var Ia="listener",Ea="completed",ka="cancelled",Hv=`task-${ka}`,zv=`task-${Ea}`,Gv=`${Ia}-${ka}`,Wv=`${Ia}-${Ea}`;var{assign:Pa}=Object;var Xi="listenerMiddleware";var sf=Pa(N(`${Xi}/add`),{withTypes:()=>sf}),Kv=N(`${Xi}/removeAll`),af=Pa(N(`${Xi}/remove`),{withTypes:()=>af});var Yv=Symbol.for("rtk-state-proxy-original");function Oe(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. `}var ye=require("@coveo/bueno"),$=new ye.StringValue({required:!0,emptyAllowed:!1}),ee=new ye.StringValue({required:!1,emptyAllowed:!1}),De=new ye.StringValue({required:!0,emptyAllowed:!0}),iC=new ye.StringValue({required:!1,emptyAllowed:!0}),Ta=new ye.ArrayValue({each:$,required:!0}),Fa=new ye.StringValue({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),cf=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),Zi=(e,t)=>{if("required"in t)return{payload:new ye.Schema({value:t}).validate({value:e}).value};let i=new ye.RecordValue({options:{required:!0},values:t}).validate(e);if(i)throw new ye.SchemaValidationError(i);return{payload:e}},L=(e,t)=>{try{return Zi(e,t)}catch(r){return{payload:e,error:cf(r)}}};var ln=(e,t,r,n)=>{let i=`Check the options of ${n}`;return uf(e,t,r,i,"Controller initialization error")},uf=(e,t,r,n,i)=>{try{return t.validate(r,n)}catch(o){throw e.logger.error(o,i),o}};var dn=N("caseAssistConfiguration/set",e=>L(e,{caseAssistId:$,locale:ee,proxyBaseUrl:new Oa.StringValue({required:!1,url:!0})}));var Da=()=>({caseAssistId:"",locale:"en-US"});var rt=ie(Da(),e=>{e.addCase(dn,(t,r)=>{t.caseAssistId=r.payload.caseAssistId,t.locale=r.payload.locale,t.apiBaseUrl=r.payload.proxyBaseUrl})});var Z=require("@coveo/bueno"),Ma={q:new Z.StringValue,enableQuerySyntax:new Z.BooleanValue,aq:new Z.StringValue,cq:new Z.StringValue,firstResult:new Z.NumberValue({min:0}),numberOfResults:new Z.NumberValue({min:0}),sortCriteria:new Z.StringValue,f:new Z.RecordValue,fExcluded:new Z.RecordValue,cf:new Z.RecordValue,nf:new Z.RecordValue,mnf:new Z.RecordValue,df:new Z.RecordValue,debug:new Z.BooleanValue,sf:new Z.RecordValue,tab:new Z.StringValue,af:new Z.RecordValue};var pn=N("searchParameters/restore",e=>L(e,Ma)),vC=N("searchParameters/restoreTab",e=>L(e,$));var Na=N("debug/enable"),qa=N("debug/disable");var fn=()=>!1;var _a=ie(fn(),e=>{e.addCase(Na,()=>!0).addCase(qa,()=>!1).addCase(pn,(t,r)=>r.payload.debug??t)});var La=require("@coveo/bueno");var gn=N("searchHub/set",e=>L(e,new La.StringValue({required:!0,emptyAllowed:!0})));var pe=require("@coveo/bueno");var Bt="3.23.0",Ua=["@coveo/atomic","@coveo/quantic"];var eo=()=>ee,ja=()=>$,Qt=N("configuration/updateBasicConfiguration",e=>L(e,{accessToken:ee,environment:new pe.StringValue({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:ee})),mn=N("configuration/updateSearchConfiguration",e=>L(e,{proxyBaseUrl:new pe.StringValue({required:!1,url:!0}),pipeline:new pe.StringValue({required:!1,emptyAllowed:!0}),searchHub:ee,timezone:ee,locale:ee,authenticationProviders:new pe.ArrayValue({required:!1,each:$})})),lf={enabled:new pe.BooleanValue({default:!0}),originContext:eo(),originLevel2:eo(),originLevel3:eo(),proxyBaseUrl:new pe.StringValue({required:!1,url:!0}),runtimeEnvironment:new pe.Value,anonymous:new pe.BooleanValue({default:!1}),deviceId:ee,userDisplayName:ee,documentLocation:ee,trackingId:ee,analyticsMode:new pe.StringValue({constrainTo:["legacy","next"],required:!1,default:"next"}),source:new pe.RecordValue({options:{required:!1},values:Ua.reduce((e,t)=>(e[t]=Fa,e),{})})},hn=N("configuration/updateAnalyticsConfiguration",e=>L(e,lf)),yn=N("configuration/analytics/disable"),Sn=N("configuration/analytics/enable"),Va=N("configuration/analytics/originlevel2",e=>L(e,{originLevel2:ja()})),Ba=N("configuration/analytics/originlevel3",e=>L(e,{originLevel3:ja()}));var df=N("history/undo"),pf=N("history/redo"),Le=N("history/snapshot"),jC=W("history/back",async(e,{dispatch:t})=>{t(df()),await t(vn())}),VC=W("history/forward",async(e,{dispatch:t})=>{t(pf()),await t(vn())}),vn=W("history/change",async(e,{getState:t})=>t().history.present);var $t=()=>"default";var Qa=ie($t(),e=>{e.addCase(gn,(t,r)=>r.payload).addCase(vn.fulfilled,(t,r)=>r.payload?.searchHub??t).addCase(mn,(t,r)=>r.payload.searchHub||t)});function ff({config:e,environment:t,event:r,listenerManager:n}){let{url:i,token:o,mode:s}=e;s!=="disabled"&&(n.call(r),t.send(i,o,r))}var gf=/^(?:[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"&&gf.test(e)}var ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function hf(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()}var to,yf=new Uint8Array(16);function Sf(){if(!to){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");to=crypto.getRandomValues.bind(crypto)}return to(yf)}var vf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$a={randomUUID:vf};function Cf(e,t,r){if($a.randomUUID&&!e)return $a.randomUUID();e=e||{};let n=e.random??e.rng?.()??Sf();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,hf(n)}function Af(e){return{getClientId:()=>{let t="visitorId",r=e.get(),n=r.storage,i=n.getItem(t),o=i&&mf(i)?i:r.generateUUID();return n.setItem(t,o),o}}}var za="1.0.0";function bf(e){let{trackingId:t}=e;return{trackingId:t}}function wf(e){return(e.source||[]).concat([`relay@${za}`])}function Ga(e,t,r,n){let{getReferrer:i,getLocation:o,getUserAgent:s}=r,c=bf(t),u=n.getClientId();return Object.freeze({type:e,config:c,ts:Date.now(),source:wf(t),clientId:u,userAgent:s(),referrer:i(),location:o()})}function xf(e,t,r,n,i){return{...t,meta:Ga(e,r,n,i)}}var Rf="*";function If(){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 i(u){e.forEach(a=>{if(r(a,u.meta.type))try{a.callback(u)}catch(d){console.error(d)}})}function o(u){if(u===Rf)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}):o(u)}return{add:n,call:i,remove:c}}function Ha({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}})}function Ef(e){let t=Ha(e);return{get:()=>t,update:r=>{t=Ha({...t,...r})}}}function kf(){let e=typeof window<"u";return{sendMessage(t){e&&window.postMessage(t,"*")}}}var ro=Pf();function Pf(){let e="coveo_",t=r=>{let n=r.split(".").slice(-2);return n.length==2?n.join("."):""};return{getItem(r){let n=`${e}${r}=`,i=document.cookie.split(";");for(let o of i){let s=o.replace(/^\s+/,"");if(s.lastIndexOf(n,0)===0)return s.substring(n.length,s.length)}return null},setItem(r,n,i){let o=t(window.location.hostname),s=`;expires=${new Date(new Date().getTime()+i).toUTCString()}`,c=o?`;domain=${o}`:"";document.cookie=`${e}${r}=${n}${s}${c};path=/;SameSite=Lax`},removeItem(r){this.setItem(r,"",-1)}}}function Tf(){return{getItem(e){return ro.getItem(e)||localStorage.getItem(e)},removeItem(e){ro.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),ro.setItem(e,t,31556952e3)}}}function Ff(){let e=document.referrer;return e===""?null:e}function Of(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if(kf().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:()=>Ff(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>Cf(),storage:Tf()}}function Df(){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 Mf(){return{getItem(){return null},removeItem(){},setItem(){}}}function Nf(){return{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:Mf()}}function qf(e){return e.get().mode!=="disabled"&&_f()&&Df()?Of():Nf()}function _f(){try{return typeof window=="object"}catch{return!1}}function Lf(e){return{get:()=>Object.freeze(qf(e))}}function Wa(e){let t=Ef(e),r=If(),n=Lf(t),i=Af(n);return{emit:(o,s)=>{let c=t.get(),u=n.get(),a=xf(o,s,c,u,i);return ff({config:c,environment:u,event:a,listenerManager:r})},getMeta:o=>Ga(o,t.get(),n.get(),i),on:(o,s)=>r.add({type:o,callback:s}),off:(o,s)=>r.remove(o,s),updateConfig:o=>t.update(o),version:za}}var Ht=ne(e=>e.source,e=>Object.entries(e).map(([t,r])=>`${t}@${r}`).concat(`@coveo/headless@${Bt}`));var zt=ne(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>Ht(e.configuration.analytics),(e,t,r,{trackingId:n,apiBaseUrl:i,enabled:o},s)=>Wa({mode:o?"emit":"disabled",url:i??$r(e,t),token:r,trackingId:n,source:s}));var Se=require("@coveo/bueno");var Te=require("@coveo/bueno");function We(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function R(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(d.value):i(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 oo(){return typeof window<"u"}function vo(){return typeof navigator<"u"}function Gt(){return typeof document<"u"}function so(){try{return typeof localStorage<"u"}catch{return!1}}function Uf(){try{return typeof sessionStorage<"u"}catch{return!1}}function cc(){return vo()&&navigator.cookieEnabled}var jf=[z.click,z.custom,z.search,z.view],Vf=(e,t)=>jf.indexOf(e)!==-1?Object.assign({language:Gt()?document.documentElement.lang:"unknown",userAgent:vo()?navigator.userAgent:"unknown"},t):t,Er=class e{static set(t,r,n){var i,o,s,c;n&&(o=new Date,o.setTime(o.getTime()+n)),c=window.location.hostname,c.indexOf(".")===-1?Ka(t,r,o):(s=c.split("."),i=s[s.length-2]+"."+s[s.length-1],Ka(t,r,o,i))}static get(t){for(var r=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var o=n[i];if(o=o.replace(/^\s+/,""),o.lastIndexOf(r,0)===0)return o.substring(r.length,o.length)}return null}static erase(t){e.set(t,"",-1)}};function Ka(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}function Bf(){return so()?localStorage:cc()?new kr:Uf()?sessionStorage:new Kt}var kr=class e{getItem(t){return Er.get(`${e.prefix}${t}`)}removeItem(t){Er.erase(`${e.prefix}${t}`)}setItem(t,r,n){Er.set(`${e.prefix}${t}`,r,n)}};kr.prefix="coveo_";var ao=class{constructor(){this.cookieStorage=new kr}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)}},Kt=class{getItem(t){return null}removeItem(t){}setItem(t,r){}},Rr="__coveo.analytics.history",uc=20,lc=1e3*60,dc=75,Yt=class{constructor(t){this.store=t||Bf()}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(Rr);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(Rr);return t?JSON.parse(t):[]}catch{return[]}})}setHistory(t){try{this.store.setItem(Rr,JSON.stringify(t.slice(0,uc)))}catch{}}clear(){try{this.store.removeItem(Rr)}catch{}}getMostRecentElement(){let t=this.getHistoryWithInternalTime();return Array.isArray(t)?t.sort((n,i)=>(i.internalTime||0)-(n.internalTime||0))[0]:null}cropQueryElement(t){return t.name&&t.value&&t.name.toLowerCase()==="query"&&(t.value=t.value.slice(0,dc)),t}isValidEntry(t){let r=this.getMostRecentElement();return r&&r.value==t.value?(t.internalTime||0)-(r.internalTime||0)>lc:!0}stripInternalTime(t){return Array.isArray(t)?t.map(r=>{let{name:n,time:i,value:o}=r;return{name:n,time:i,value:o}}):[]}stripEmptyQuery(t){let{name:r,time:n,value:i}=t;return r&&typeof i=="string"&&r.toLowerCase()==="query"&&i.trim()===""?{name:r,time:n}:t}stripEmptyQueries(t){return t.map(r=>this.stripEmptyQuery(r))}},pc=Object.freeze({__proto__:null,HistoryStore:Yt,MAX_NUMBER_OF_HISTORY_ELEMENTS:uc,MAX_VALUE_SIZE:dc,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:lc,STORE_KEY:Rr,default:Yt}),Qf=(e,t)=>R(void 0,void 0,void 0,function*(){return e===z.view?(yield $f(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),$f=e=>R(void 0,void 0,void 0,function*(){let t=new Yt,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),Cn,Hf=new Uint8Array(16);function zf(){if(!Cn&&(Cn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cn(Hf)}var Gf=/^(?:[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 bn(e){return typeof e=="string"&&Gf.test(e)}var ue=[];for(let e=0;e<256;++e)ue.push((e+256).toString(16).slice(1));function fc(e,t=0){return(ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]).toLowerCase()}function Wf(e){if(!bn(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 Kf(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Yf="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Jf="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xf(e,t,r){function n(i,o,s,c){var u;if(typeof i=="string"&&(i=Kf(i)),typeof o=="string"&&(o=Wf(o)),((u=o)===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+i.length);if(a.set(o),a.set(i,o.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 fc(a)}try{n.name=e}catch{}return n.DNS=Yf,n.URL=Jf,n}var Zf=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ya={randomUUID:Zf};function kt(e,t,r){if(Ya.randomUUID&&!t&&!e)return Ya.randomUUID();e=e||{};let n=e.random||(e.rng||zf)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return fc(n)}function eg(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 no(e,t){return e<<t|e>>>32-t}function tg(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,i=Math.ceil(n/16),o=new Array(i);for(let s=0;s<i;++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];o[s]=c}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<i;++s){let c=new Uint32Array(80);for(let l=0;l<16;++l)c[l]=o[s][l];for(let l=16;l<80;++l)c[l]=no(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 g=Math.floor(l/20),C=no(u,5)+eg(g,a,d,p)+f+t[g]+c[l]>>>0;f=p,p=d,d=no(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 rg=Xf("v5",80,tg),Ja=rg,gc="2.30.45",Xa=e=>`${e.protocol}//${e.hostname}${e.pathname.indexOf("/")===0?e.pathname:`/${e.pathname}`}${e.search}`,Ir={pageview:"pageview",event:"event"},wn=class{constructor({client:t,uuidGenerator:r=kt}){this.client=t,this.uuidGenerator=r}},co=class extends wn{constructor({client:t,uuidGenerator:r=kt}){super({client:t,uuidGenerator:r}),this.actionData={},this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=Xa(window.location),this.lastReferrer=Gt()?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:Gt()?document.title:"",encoding:Gt()?document.characterSet:"UTF-8"},n={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},i={language:navigator.language,userAgent:navigator.userAgent},o={time:Date.now(),eventId:this.uuidGenerator()};return Object.assign(Object.assign(Object.assign(Object.assign({},o),n),i),r)}updateLocationForNextPageView(t,r){let{pageViewId:n,referrer:i,location:o}=this.getNextValues(t,r);this.lastReferrer=i,this.pageViewId=n,this.currentLocation=o,t===Ir.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(t,r){return{pageViewId:t===Ir.pageview?this.nextPageViewId:this.pageViewId,referrer:t===Ir.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:t===Ir.pageview?this.getCurrentLocationFromPayload(r):this.currentLocation}}getCurrentLocationFromPayload(t){if(t.page){let r=i=>i.replace(/^\/?(.*)$/,"/$1");return`${(i=>i.split("/").slice(0,3).join("/"))(this.currentLocation)}${r(t.page)}`}else return Xa(window.location)}},nt=class e{constructor(t,r){if(!bn(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(i=>new RegExp(i.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,i]=r;if(n.length!==32||isNaN(parseInt(i)))return null;let o=n.substring(0,8)+"-"+n.substring(8,12)+"-"+n.substring(12,16)+"-"+n.substring(16,20)+"-"+n.substring(20,32);return bn(o)?new e(o,Number.parseInt(i)*1e3):null}};nt.cvo_cid="cvo_cid";nt.expirationTime=120;var uo=class extends wn{constructor({client:t,uuidGenerator:r=kt}){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(nt.cvo_cid,new nt(n,Date.now()).toString()),r.toString()}catch{throw new Error("Invalid URL provided")}})}acceptFrom(t){this.client.setAcceptedLinkReferrers(t)}};uo.Id="link";var Pe=Object.keys;function An(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var io=128,mc=192,Za=224,ec=240;function ng(e){return(e&248)===ec?4:(e&ec)===Za?3:(e&Za)===mc?2:1}function ig(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&io)!=io)break;if(r-=3,(n&mc)!=io){t-r>=ng(n)*3&&(r=t);break}}return e.substring(0,r)}var lo={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"},og=Pe(lo).map(e=>lo[e]),sg=[...og].join("|"),ag=new RegExp(`^(${sg}$)`),cg={svcAction:"svc_action",svcActionData:"svc_action_data"},ug=e=>Pe(e).filter(t=>e[t]!==void 0).reduce((t,r)=>{let n=lo[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),lg=e=>ag.test(e),dg=[lg],tc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},rc={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},de={action:"pa",list:"pal",listSource:"pls"},xn={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},pg=["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],po={id:"quoteId",affiliation:"quoteAffiliation"},fo={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},fg={add:de,bookmark_add:de,bookmark_remove:de,click:de,checkout:de,checkout_option:de,detail:de,impression:de,remove:de,refund:Object.assign(Object.assign({},de),xn),purchase:Object.assign(Object.assign({},de),xn),quickview:de,quote:Object.assign(Object.assign({},de),po),review:Object.assign(Object.assign({},de),fo)},gg=Pe(tc).map(e=>tc[e]),mg=Pe(rc).map(e=>rc[e]),hg=Pe(de).map(e=>de[e]),yg=Pe(xn).map(e=>xn[e]),Sg=Pe(fo).map(e=>fo[e]),vg=Pe(po).map(e=>po[e]),Cg=[...gg,"custom"].join("|"),Ag=[...mg,"custom"].join("|"),hc="(pr[0-9]+)",yc="(il[0-9]+pi[0-9]+)",bg=new RegExp(`^${hc}(${Cg})$`),wg=new RegExp(`^(${yc}(${Ag}))|(il[0-9]+nm)$`),xg=new RegExp(`^(${hg.join("|")})$`),Rg=new RegExp(`^(${yg.join("|")})$`),Ig=new RegExp(`^${hc}custom$`),Eg=new RegExp(`^${yc}custom$`),kg=new RegExp(`^(${[...pg,...Sg,...vg].join("|")})$`),Pg=e=>bg.test(e),Tg=e=>wg.test(e),Fg=e=>xg.test(e),Og=e=>Rg.test(e),Dg=e=>kg.test(e),Mg=[Tg,Pg,Fg,Og,Dg],Ng=[Ig,Eg],qg={anonymizeIp:"aip"},_g={eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"},Lg={hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"},Ug=["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"],jg=Object.assign(Object.assign(Object.assign(Object.assign({},qg),_g),Lg),Ug.reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{})),go=Object.assign(Object.assign({},jg),cg),Vg=e=>{let t=!!e.action&&fg[e.action]||{};return Pe(e).reduce((r,n)=>{let i=t[n]||go[n]||n;return Object.assign(Object.assign({},r),{[i]:e[n]})},{})},Bg=Pe(go).map(e=>go[e]),Qg=e=>Bg.indexOf(e)!==-1,$g=e=>e==="custom",Hg=e=>[...Mg,...dg,Qg,$g].some(t=>t(e)),zg=e=>Pe(e).reduce((t,r)=>{let n=Gg(r);return n?Object.assign(Object.assign({},t),Wg(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),Gg=e=>{let t;return[...Ng].every(r=>{var n;return t=(n=r.exec(e))===null||n===void 0?void 0:n[1],!t}),t},Wg=(e,t)=>Pe(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{}),mo=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:i}=this.opts,o=yield this.getQueryParamsForEventType(t),{url:s,payload:c}=yield this.preProcessRequestAsPotentialJSONString(`${n}/analytics/${t}?${o}`,r,i),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 i=t,o=r;if(n){let s=yield n({url:t,body:JSON.stringify(r)},"analyticsBeacon"),{url:c,body:u}=s;i=c||t;try{o=JSON.parse(u)}catch(a){console.error("Unable to process the request body as a JSON string",a)}}return{payload:o,url:i}})}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,i=yield n.getCurrentVisitorId();return[r&&this.isEventTypeLegacy(t)?`access_token=${r}`:"",i?`visitorId=${i}`:"","discardVisitInfo=true"].filter(o=>!!o).join("&")})}isEventTypeLegacy(t){return[z.click,z.custom,z.search,z.view].indexOf(t)!==-1}encodeEventToJson(t,r,n){let i=`${t}Event=${encodeURIComponent(JSON.stringify(r))}`;return n&&(i=`access_token=${encodeURIComponent(n)}&${i}`),i}},ho=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()})}},nc=globalThis.fetch,Rn=class{constructor(t){this.opts=t}sendEvent(t,r){return R(this,void 0,void 0,function*(){let{baseUrl:n,visitorIdProvider:i,preprocessRequest:o}=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),o?yield o(c,"analyticsFetch"):{}),{url:a}=u,d=We(u,["url"]),p;try{p=yield nc(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&&i.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 nc(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"})}},yo=class{constructor(t,r){so()&&cc()?this.storage=new ao:so()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new Kt),this.client=new Rn(t),this.beaconClient=new mo(t),window.addEventListener("beforeunload",()=>{let n=r();for(let{eventType:i,payload:o}of n)this.beaconClient.sendEvent(i,o)})}getClientDependingOnEventType(t){return t==="click"&&this.beaconClient.isAvailable()?this.beaconClient:this.client}},So=class{constructor(t,r){this.storage=r||new Kt,this.client=new Rn(t)}getClientDependingOnEventType(t){return this.client}},In=class{constructor(){this.storage=new Kt,this.client=new ho}getClientDependingOnEventType(t){return this.client}},Kg="xx",Yg=e=>e?.startsWith(Kg)||!1,Jg=`
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