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