1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[883],{3934:function(t,e,i){var n,s=i(3454),r=i(8764).lW;n=(t,e,n,o,a)=>(()=>{"use strict";let c,u,h,l,p,d,f,m,v,g,w;var b,y,S,E,C,A,T,P,L,O,x,D,_,I,k,R,G,M,N,q,j,F,U,B,V,z,H,K={1:t=>{t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,s=void 0,r=void 0,o=[];return function(){var c,u="function"==typeof e?e():e,h=(new Date).getTime(),l=!n||h-n>u;n=h;for(var p=arguments.length,d=Array(p),f=0;f<p;f++)d[f]=arguments[f];if(l&&i.leading)return i.accumulate?Promise.resolve(t.call(this,[d])).then(function(t){return t[0]}):Promise.resolve(t.call.apply(t,[this].concat(d)));if(s?clearTimeout(r):((c={}).promise=new Promise(function(t,e){c.resolve=t,c.reject=e}),s=c),o.push(d),r=setTimeout(a.bind(this),u),i.accumulate){var m=o.length-1;return s.promise.then(function(t){return t[m]})}return s.promise};function a(){var e=s;clearTimeout(r),Promise.resolve(i.accumulate?t.call(this,o):t.apply(this,o[o.length-1])).then(e.resolve,e.reject),o=[],s=null}}},12:t=>{t.exports=a},93:t=>{t.exports=n},283:(t,e,i)=>{var n=i(416);t.exports=function(t,e){if(!n(t)&&"function"!=typeof t)return{};var i={};if("string"==typeof e)return e in t&&(i[e]=t[e]),i;for(var s=e.length,r=-1;++r<s;){var o=e[r];o in t&&(i[o]=t[o])}return i}},288:e=>{e.exports=t},319:(t,e,i)=>{var n=i(12),s="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},r=n.useState,o=n.useEffect,a=n.useLayoutEffect,c=n.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!s(t,i)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var i=e(),n=r({inst:{value:i,getSnapshot:e}}),s=n[0].inst,h=n[1];return a(function(){s.value=i,s.getSnapshot=e,u(s)&&h({inst:s})},[t,i,e]),o(function(){return u(s)&&h({inst:s}),t(function(){u(s)&&h({inst:s})})},[t]),c(i),i};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:h},416:t=>{t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},634:(t,e,i)=>{t.exports=i(319)},646:t=>{t.exports=o},824:t=>{t.exports=e}},$={};function W(t){var e=$[t];if(void 0!==e)return e.exports;var i=$[t]={exports:{}};return K[t](i,i.exports,W),i.exports}W.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return W.d(e,{a:e}),e},W.d=(t,e)=>{for(var i in e)W.o(e,i)&&!W.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},W.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),W.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var Q={};W.r(Q),W.d(Q,{SearchWidgetFaq:()=>oO});var J={};W.r(J),W.d(J,{hasBrowserEnv:()=>e4,hasStandardBrowserEnv:()=>e5,hasStandardBrowserWebWorkerEnv:()=>e6,navigator:()=>e3,origin:()=>e8});var Y,X=W(12),Z=W.n(X),tt=W(646),te=W(93);(b=Y||(Y={})).RECOMMENDATION="recommendation",b.PREVIEW_SEARCH="preview_search",b.SEARCH_RESULTS="content_grid",b.CONTENT_BLOCK="content_block",b.QUESTIONS="questions_answers",b.HTML_BLOCK="html_block",b.BANNER="banner",b.SEO="seo";let ti=(t,e,i="")=>{let n=(t=>{let e=t.split("_");return`${e[0]}${e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}`})(e);return`${t}${n[0].toUpperCase()+n.slice(1)}${i}`},tn=t=>{let e=typeof t;return null!==t&&("object"===e||"function"===e)},ts=new Set(["__proto__","prototype","constructor"]),tr=new Set("0123456789");function to(t){let e=[],i="",n="start",s=!1;for(let r of t)switch(r){case"\\":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n)throw Error("Invalid character after an index");s&&(i+=r),n="property",s=!s;break;case".":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n){n="property";break}if(s){s=!1,i+=r;break}if(ts.has(i))return[];e.push(i),i="",n="property";break;case"[":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n){n="index";break}if(s){s=!1,i+=r;break}if("property"===n){if(ts.has(i))return[];e.push(i),i=""}n="index";break;case"]":if("index"===n){e.push(Number.parseInt(i,10)),i="",n="indexEnd";break}if("indexEnd"===n)throw Error("Invalid character after an index");default:if("index"===n&&!tr.has(r))throw Error("Invalid character in an index");if("indexEnd"===n)throw Error("Invalid character after an index");"start"===n&&(n="property"),s&&(s=!1,i+="\\"),i+=r}switch(s&&(i+="\\"),n){case"property":if(ts.has(i))return[];e.push(i);break;case"index":throw Error("Index was not closed");case"start":e.push("")}return e}function ta(t,e){if("number"!=typeof e&&Array.isArray(t)){let i=Number.parseInt(e,10);return Number.isInteger(i)&&t[i]===t[e]}return!1}function tc(t,e){if(ta(t,e))throw Error("Cannot use string index")}function tu(t,e,i){if(!tn(t)||"string"!=typeof e)return t;let n=t,s=to(e);for(let e=0;e<s.length;e++){let n=s[e];tc(t,n),e===s.length-1?t[n]=i:tn(t[n])||(t[n]="number"==typeof s[e+1]?[]:{}),t=t[n]}return n}function th(t,e){let i={};if(Array.isArray(e))for(let n of e){let e=Object.getOwnPropertyDescriptor(t,n);e?.enumerable&&Object.defineProperty(i,n,e)}else for(let n of Reflect.ownKeys(t)){let s=Object.getOwnPropertyDescriptor(t,n);s.enumerable&&e(n,t[n],t)&&Object.defineProperty(i,n,s)}return i}let tl=t=>t&&"object"==typeof t&&!Array.isArray(t);function tp(t,e,{mutate:i=!1}={}){let n=i?t:Object.assign({},t);return tl(t)&&tl(e)&&Object.keys(e).forEach(i=>
1{tl(e[i])&&i in t?n[i]=tp(t[i],e[i]):Object.assign(n,{[i]:e[i]})}),n}let td=t=>{if("object"!=typeof t||null===t)return t;let e=Array.isArray(t)?[]:{};for(let i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=td(t[i]));return e};var tf=W(283);class tm{constructor(){Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"props",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"dataSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:{}})}takeSnapshot(){return this.dataSnapshot=JSON.parse(JSON.stringify(this.data)),this}restoreSnapshot(){return this.data=JSON.parse(JSON.stringify(this.dataSnapshot)),this.onChange("@restore-snapshot",null),this}set(t,e,i){if(t in this.props){let n=this.getPropExportKey(t,i);if(this.get(t,void 0)!==e){let i=this.props[t];void 0===e?this.removeKey(i.parent?.key,i.keyPath[0]):tu(this.data,n,e),this.onChange(t,e)}}return this}get(t,e,i){return t in this.props?function(t,e,i){if(!tn(t)||"string"!=typeof e)return void 0===i?t:i;let n=to(e);if(0===n.length)return i;for(let e=0;e<n.length;e++){let s=n[e];if(null==(t=ta(t,s)?e===n.length-1?void 0:null:t[s])){if(e!==n.length-1)return i;break}}return void 0===t?i:t}(this.data,this.getPropExportKey(t,i),e):e}resetValue(t,e){if(t in this.props){let i=this.props[t],n=i.initialValue?i.initialValue():void 0;return void 0===n&&e&&i.parent&&"map"===i.parent.type?this.removeKey(i.parent.key,e):this.set(t,n,e)}return this}getMapExportKey(t,e){return t.map(t=>"#KEY#"===t?e:t)}getPropExportKey(t,e){if(t in this.props){let i=this.props[t].exportKey;return e?this.getMapExportKey(i,e).join("."):i.join(".")}return""}getValue(t,e,i){return t in this.props?this.get(t,e,i):e}setValue(t,e,i){return t in this.props?"array"===this.props[t].type&&0===e.length?this.resetValue(t,i):this.set(t,e,i):this}removeKey(t,e){if(!t)return this.data=function(t,e){if(Array.isArray(e)){let i=new Set(e);return th(t,t=>!i.has(t))}return th(t,(t,i,n)=>!e(t,i,n))}(this.data,[e]),this;let i=this.getValue(t,{});return function(t,e){if(!tn(t)||"string"!=typeof e)return 0;let i=to(e);for(let e=0;e<i.length;e++){let n=i[e];if(tc(t,n),e===i.length-1)return delete t[n],!0;if(!tn(t=t[n]))return!1}}(i,"string"==typeof e?e:`[${e}]`),0===Object.keys(i).length&&(i=void 0),this.setValue(t,i)}updateValue(t,e,i){return this.setValue(t,tp(this.getValue(t,{},i),e),i)}addValue(t,e,i){return t in this.props&&"array"===this.props[t].type?this.setValue(t,this.getValue(t,[],i).concat(e),i):this}removeValue(t,e,i=t=>t!==e,n){return t in this.props&&"array"===this.props[t].type&&this.setValue(t,this.getValue(t,[],n).filter(t=>i(t,e)),n),this}load(t,e=!1){return this.data=t.toJson(),e&&this.onChange("load","load"),this}transformJson(t){return t}toJson(...t){return 0===Object.keys(this.data).length?this.transformJson(void 0):0===t.length?this.transformJson(td(this.data)):this.transformJson(tf(td(this.data),t))}onChange(t,e){this.listeners.forEach(i=>{i.onChange(this,t,e)})}addListeners(t){t.forEach(t=>this.addListener(t))}addListener(t){this.listeners.find(e=>e===t)||this.listeners.push(t)}removeListener(t){this.listeners=this.listeners.filter(e=>e!==t)}}function tv(t,e){return(tv=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tg(t){return(tg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tw(t){return(tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tb(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}let ty=(t,e,i)=>{let{name:n=t}=e;return i?`${i.key}.${n}`:n},tS=(t,{parent:e},i,n=0)=>{if("map"===e?.type){if(t.length<i-n+1)throw Error("Invalid number of arguments");if("string"!=typeof t[0])throw Error(`Invalid map key argument: ${t[0]}`);let e=t.slice(1);return[...Array(i).fill(void 0).map((t,i)=>e[i]),t[0]]}return t}
1,tE=(t,e,i,n,s)=>{let r={};return Object.keys(e).forEach(o=>{let{key:a,methodKey:c,config:u,config:{accessProp:h,exportKey:l,setter:p,getter:d,type:f,model:m,initialValue:v}}=((t,e,i)=>{let n;let{exportKey:s=[t],getter:r,setter:o}=i,a="map"===e?.type,c=ty(t,i,e),u=e?`${e.accessProp}.${t}`:t,h=[...a?["#KEY#"]:[],..."__constructor__"===t?[]:s],l=e?.exportKey?.concat(...h)||h,p=(n=c,"__constructor__"===t&&(n=ty(t,i,e?.parent||null)),n.replace(/\./g,"_")),d=r||ti("get",p),f=o||ti("set",p);return{config:{...i,key:c,accessProp:u,exportKey:l,keyPath:h,getter:d,setter:f,parent:e},key:c,methodKey:p}})(o,t,e[o]),g={type:f,...s};r[a]=u;let w=v?v():void 0;if(void 0===w||a.includes("#KEY#")||tu(i,l.join("."),w),n.push({typeOptions:g,prop:h,key:d,value:function(...t){return this.getValue(a,...tS(t,g,1,1))}}),n.push({typeOptions:g,prop:h,key:p,value:function(...t){return this.setValue(a,...tS(t,g,1))}}),n.push({typeOptions:g,prop:h,key:ti("reset",c),value:function(...t){return this.resetValue(a,...tS(t,g,0))}}),"array"===f){let t=c.replace(/s$/,"").replace(/ie$/,"y");n.push({typeOptions:g,prop:h,key:ti("add",t),value:function(...t){return this.addValue(a,...tS(t,g,1))}}),n.push({typeOptions:g,prop:h,key:ti("remove",t),value:function(...t){return this.removeValue(a,...tS(t,g,2,1))}})}else"model"===f&&m?(Object.assign(r,tE(u,m.properties,i,n,s)),n.push({typeOptions:g,prop:h,key:ti("update",c),value:function(...t){return this.updateValue(a,...tS(t,g,1))}})):"map"===f&&m&&Object.assign(r,tE(u,m.properties,i,n,{parent:u,...s}))}),r},tC=t=>{let{name:e,properties:i={}}=t,n={},s=[],r=tE(null,i,n,s);!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tv(t,e)}(a,tm);let o=function(t){let e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){let i;let n=tg(t);return i=e?Reflect.construct(n,arguments,tg(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===tw(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}(a);function a(...t){let e=o.call.apply(o,[this].concat(t));return tb(e,"listeners",[]),tb(e,"props",r),tb(e,"data",JSON.parse(JSON.stringify(n))),e}return s&&function(t,e){for(let i=0;i<e.length;i++){let n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(a.prototype,s),Object.defineProperty(a,"name",{value:e}),a},tA={name:"Content",properties:{fields:{type:"array"}}},tT={name:"SearchFilter",properties:{type:{},name:{required:!0},values:{type:"array",required:!0}}},tP={name:"Rule",properties:{behaviors:{}
1,blacklist:{type:"model",model:{name:"Blacklist",properties:{filter:{type:"model",model:tT,required:!0}}}},boost:{type:"array",model:{name:"Boost",properties:{filter:{type:"model",model:tT,required:!0},slots:{type:"array",required:!0}}}},bury:{type:"model",model:{name:"Bury",properties:{filter:{type:"model",model:tT,required:!0}}}},include:{type:"array",model:{name:"Include",properties:{filter:{type:"model",model:tT,required:!0},slots:{type:"array",required:!0}}}},pin:{type:"array",model:{name:"Pin",properties:{id:{required:!0},slot:{type:"array",required:!0}}}}}},tL={name:"FacetSort",properties:{name:{required:!0},order:{required:!0}}};(y=x||(x={})).HARD_FILTERS="hard_filters",y.OTHER_FACET_VALUES="other_facet_values",y.OWN_VALUES="own_values";let tO={name:"WidgetItem",buildInterface:!0,properties:{entity:{required:!0},rfk_id:{required:!0,name:"rfkId"},recommendations:{type:"model",model:{name:"Recommendations",properties:{content:{type:"model",model:tA},filter:{type:"model",model:tT},recipe:{type:"model",model:{name:"RecommendationsRecipe",properties:{id:{},version:{}}}},limit:{},rule:{type:"model",model:tP}}}},questions:{type:"model",model:{name:"Questions",properties:{keyphrase:{},exact_answer:{type:"model",model:{name:"ExactAnswer",properties:{query_types:{type:"array"}}}},related_questions:{type:"model",model:{name:"RelatedQuestions",properties:{limit:{},offset:{}}}}}}},rfk_flags:{type:"array",name:"rfkFlags"},search:{type:"model",model:{name:"Search",properties:{sort:{type:"model",model:{name:"Sort",properties:{choices:{},value:{type:"model",model:{name:"SortItem",properties:{name:{required:!0},order:{}}},exportKey:["value[0]"],name:"criteria"}}}},content:{type:"model",model:tA},facet:{type:"model",model:{name:"Facet",properties:{all:{},max:{},sort:{type:"model",model:tL},types:{type:"array",model:{name:"FacetType",properties:{after:{},exclude:{type:"array"},filter:{},filtering_options:{type:"array"},keyphrase:{},max:{},min_count:{},name:{required:!0},sort:{type:"array",model:tL}}}}}}},filter:{},group_by:{},limit:{},offset:{},personalization:{type:"model",model:{name:"Personalization",properties:{algorithm:{},fields:{type:"array"},ids:{type:"array"}}}},query:{type:"model",model:{name:"Query",properties:{highlight:{type:"model",model:{name:"Highlight",properties:{fields:{type:"array",required:!0},fragment_size:{},post_tag:{type:"string"},pre_tag:{type:"string"}}}},keyphrase:{required:!0},operator:{},relevance:{type:"array",model:{name:"Relevance",properties:{analyzer:{required:!0},name:{required:!0},weight:{}}}}}}},ranking:{type:"array",model:{name:"Ranking",properties:{name:{required:!0},weight:{}}}},rule:{type:"model",model:tP},suggestion:{type:"array",model:{name:"Suggestion",properties:{exclude:{},keyphrase_fallback:{},max:{},name:{required:!0}}}},swatch:{type:"model",model:{name:"Swatch",properties:{fields:{type:"array"},group_by:{},max:{}}}}}}},sources:{type:"array"},appearance:{type:"model",model:{name:"Appearance",properties:{templates:{type:"model",model:{name:"Templates",properties:{sections:{type:"array"},devices:{type:"array"},keep_variables:{},keep_original_css:{}}}},variables:{type:"model",model:{name:"Variables",properties:{sections:{type:"array"}}}}}}}}},tx=tC(tO);class tD extends tx{constructor(t){super(),this.setRfkId(t)}setSearchFilter(t){return this.setValue("search.filter",t.toJson()),this}}let t_=t=>{let e=new tD(t);return e.setAppearance({}),e.setAppearanceTemplates({}),e.setAppearanceVariables({}),e};class tI extends tD{constructor(){super(...arguments),Object.defineProperty(this,"facetTypeFiltersType",{enumerable:!0,configurable:!0,writable:!0,value:"or"})}buildFacetTypeFilters(t,e="or"){if(0!==t.length)return{type:e,values:t}}setSearchFacetTypeFilterType(t){return this.facetTypeFiltersType=t,this}getSearchFacetTypeFilterType(){return this.facetTypeFiltersType}setSearchFacetType(t,e){let i=this.getSearchFacetTypes()||[];return i.find(({name:e})=>e===t)?this.setSearchFacetTypes(i.map(i=>i.name===t?{...e,name:t}:i)):this.setSearchFacetTypes([...i,{...e,name:t}]),this}updateSearchFacetType(t,e){let i=this.getSearchFacetTypes()||[];return this.setSearchFacetType(t,{...i.find(({name:e})=>e===t),...e}),this}addSearchFacetTypeFilter(t,e,i="or"){let n=this.getSearchFacetTypes()||[],s=n.find(({name:e})=>e===t)?.filter?.values||[];return this.updateSearchFacetType(t,{filter:this.buildFacetTypeFilters([...s,e],i)}),this}resetSearchFacetTypeFilter(t){return this.updateSearchFacetType(t,{filter:void 0}),this}removeSearchFacetTypeFilter(t,e){let i=this.getSearchFacetTypes()||[],n=i.find(({name:e})=>e===t)?.filter?.values||[];return this.updateSearchFacetType(t,{filter:this.buildFacetTypeFilters(n.filter(t=>!function t(e,i){if(typeof e!=typeof i)return!1;if("object"==typeof e){if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return!1;for(let n=0;n<e.length;
1n++)if(!t(e[n],i[n]))return!1;return!0}{let n=Object.keys(e),s=Object.keys(i);if(n.length!==s.length)return!1;for(let s of n)if(!t(e[s],i[s]))return!1;return!0}}return e===i}(t,e)))}),this}resetSearchFacetTypeFilters(){return(this.getSearchFacetTypes()||[]).forEach(({name:t})=>{this.updateSearchFacetType(t,{filter:void 0})}),this}}let tk={[Y.RECOMMENDATION]:t=>{let e=new tD(t);return e.setRecommendationsContent({}),e},[Y.SEARCH_RESULTS]:t=>{let e=new tI(t);return e.setSearchContent({}),e.setSearchFacetAll(!0),e.setSearchOffset(0),e.setSearchSortChoices(!0),e},[Y.PREVIEW_SEARCH]:t=>{let e=new tD(t);return e.setSearchContent({}),e},[Y.QUESTIONS]:t=>{let e=new tI(t);return e.setQuestionsRelatedQuestionsLimit(5),e.setQuestionsExactAnswer({}),e},[Y.CONTENT_BLOCK]:t_,[Y.HTML_BLOCK]:t_,[Y.SEO]:t_,[Y.BANNER]:t_},tR={name:"Context",file:"context",buildInterface:!0,properties:{browser:{type:"model",model:{name:"ContextBrowser",file:"browser",properties:{user_agent:{},device:{},app_type:{}}}},campaign:{type:"model",model:{name:"ContextCampaign",properties:{utm_source:{},utm_medium:{},utm_campaign:{},utm_term:{},utm_content:{}}}},geo:{type:"model",model:{name:"ContextGeo",properties:{ip:{},location:{type:"model",model:{name:"ContextGeoLocation",properties:{lat:{required:!0},lon:{required:!0}}}}}}},ids:{type:"map",model:{name:"ContextEntityIds",properties:{__constructor__:{type:"array",name:"entityIds"}}},mapKey:"entity",mapKeyType:"Entity"},locale:{type:"model",model:{name:"ContextLocale",properties:{country:{required:!0},language:{required:!0}}}},page:{type:"model",model:{name:"ContextPage",properties:{uri:{required:!0},custom:{}}}},store:{type:"model",model:{name:"ContextStore",properties:{group_id:{required:!0},id:{required:!0}}}},time:{type:"model",model:{name:"ContextTime",properties:{epoch:{}}}},user:{type:"model",model:{name:"ContextUser",properties:{uuid:{required:!0},groups:{type:"array",name:"groups"},custom:{}}}}}},tG=tC(tR);class tM extends tG{}class tN{static get(){return this.context}static toJson(){if(this.context){let t=this.context.toJson();return{...t.browser?{browser:t.browser}:{},...t.geo?{geo:t.geo}:{},...t.page?{page:{...t.page,...t.locale?{...t.locale.country?{locale_country:t.locale.country}:{},...t.locale.language?{locale_language:t.locale.language}:{}}:{}}}:{},...t.user?{user:t.user}:{}}}return{}}}Object.defineProperty(tN,"context",{enumerable:!0,configurable:!0,writable:!0,value:new tM});let tq=t=>0===Object.keys(t||{}).length,tj=t=>void 0===t,tF=t=>{try{return t?JSON.parse(t):""}catch(e){return t}},tU=(t={})=>"undefined"!=typeof window?window:t;(S=D||(D={}))[S.NONE=0]="NONE",S[S.ERROR=1]="ERROR",S[S.WARN=2]="WARN",S[S.INFO=3]="INFO",S[S.DEBUG=4]="DEBUG",S[S.TRACE=5]="TRACE";let tB={none:D.NONE,error:D.ERROR,warn:D.WARN,info:D.INFO,debug:D.DEBUG,trace:D.TRACE},tV="Sitecore Search SDK",tz=[console],tH=new class{constructor(t,e=D.NONE,i=tV){Object.defineProperty(this,"NONE",{enumerable:!0,configurable:!0,writable:!0,value:D.NONE}),Object.defineProperty(this,"ERROR",{enumerable:!0,configurable:!0,writable:!0,value:D.ERROR}),Object.defineProperty(this,"WARN",{enumerable:!0,configurable:!0,writable:!0,value:D.WARN}),Object.defineProperty(this,"INFO",{enumerable:!0,configurable:!0,writable:!0,value:D.INFO}),Object.defineProperty(this,"DEBUG",{enumerable:!0,configurable:!0,writable:!0,value:D.DEBUG}),Object.defineProperty(this,"TRACE",{enumerable:!0,configurable:!0,writable:!0,value:D.TRACE}),Object.defineProperty(this,"transports",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:D.NONE}),Object.defineProperty(this,"namespace",{enumerable:!0,configurable:!0,writable:!0,value:tV}),this.transports=t,this.namespace=i,this.setLogLevel(e)}setLogLevel(t){if("string"!=typeof t)this.logLevel=t;else{if(!tB[t])throw Error(`Logger :: Invalid logLevel (${t})`);this.logLevel=tB[t]}}send(t,e,...i){try{this.logLevel>=t&&this.transports.forEach(t=>{t[e](this.namespace," ::: ",...i)})}catch(t){console.error(t)}}error(...t){return this.send(D.ERROR,"error",...t)}warn(...t){return this.send(D.WARN,"warn",...t)}info(...t){return this.send(D.INFO,"info",...t)}debug(...t){return this.send(D.DEBUG,"debug",...t)}trace(...t){return this.send(D.TRACE,"log",...t)}}(tz),tK={dev:"https://discover-dev.sitecore-staging.cloud",staging:"https://discover-staging.sitecore-staging.cloud",uat:"https://discover-uat.sitecore-staging.cloud",prod:"https://discover.sitecorecloud.io",prodEu:"https://discover-euc1.sitecorecloud.io",apse2:"https://discover-apse2.sitecorecloud.io"},t$={australiaEast:"https://australiaeast-integrations.ordercloud.io",europeWest:"https://westeurope-integrations.ordercloud.io",japanEast:"https://japaneast-integrations.ordercloud.io",usEast:"https://useast-integrations.ordercloud.io",usWest:"https://uswest-integrations.ordercloud.io",usWestQa:"https://uswest-integrations.ordercloud-qa.com"},tW="/event/{{key}}/v4/publish",tQ=(t,e)=>{let i=Object.assign({},t,e),{orderCloudRegion:n="usWest",env:s="prod",discoverDomainId:r}=e;if(!r)throw Error("{discoverDomainId} has not been provided.");return i.domainId=r,i.connector="oc",Object.assign(i,{useAccessToken:!0,apiDomain:t$[
1n],searchUrl:`${t$[n]}${"/api/v1/search/{{domain}}".replace("{{domain}}",r)}`,eventUrl:`${tK[s]}${tW.replace("{{key}}",r)}`})},tJ=t=>{let e=t.split("-");return 2===e.length&&e[1]||""},tY=(t,e)=>{let i;let n=Object.assign({},t,e),{env:s="prod",customerKey:r=""}=n,{serviceHost:o,apiKey:a}=e,c=tX(r);if(!c)throw Error(`Invalid customerKey: "${r}". It should match the following pattern: (\\d+)-(\\d+). Example: 11111-2222222`);let[u,h]=c;if(Object.assign(n,{domainId:u,domainHash:h}),n.connector="sitecore",!a&&!o)throw Error('Invalid configuration: "apiKey" has not been set but not serviceHost provided. Please, review your domain configuration');return Object.assign(n,(i=tK[s],a?{apiDomain:i,searchUrl:`${i}${"/discover/v2/{{key}}".replace("{{key}}",tJ(r))}`,eventUrl:`${i}${tW.replace("{{key}}",r)}`}:{apiDomain:o,searchUrl:`${o}/api/discover/v2`,eventUrl:`${o}/api/event/v4/publish`}))},tX=t=>{if(t){let e=t.match(/^(\d+)-(\d+)$/);if(e)return[e[1],e[2]]}return null},tZ={apiDomain:"",apiKey:"",clientId:"",connector:"sitecore",cookieOptions:{},customerKey:"",debug:!1,domainHash:"",domainId:"",env:"prod",eventUrl:"",orderCloudRegion:"usWest",publicSuffix:!1,searchUrl:"",tokenDomain:"",tokenUrl:"",trackConsent:!0,useAccessToken:!1,userId:null},t0=t=>tZ[t],t1=()=>tZ,t2=()=>{let t=tU({location:{hostname:""}}),{publicSuffix:e}=t1();return e?t.location.hostname:t.location.hostname.split(".").reverse().splice(0,2).reverse().join(".")},t4=Date.now(),t3=((t={})=>"undefined"!=typeof document?document:t)({cookie:""});t3.cookie||(t3.cookie="");class t5{getCookieValue(t,e){let i=t.slice(e.length+1,t.length);return i?decodeURIComponent(i):""}getCookieFromBrowser(t){let e=t3.cookie.split("; ");for(let i=0;i<e.length;i++)if(e[i].slice(0,t.length)===t)return this.getCookieValue(e[i],t);return""}setCookieInBrowser(t,e,i){let n=new Date,s=encodeURIComponent(e);n.setMilliseconds(n.getMilliseconds()+i),s+=`;domain=${t2()};path=/;`+(i?`;expires=${n.toUTCString()}`:"")+";secure;SameSite=None;",t3.cookie=`${t}=${s}`}removeCookieFromBrowser(t){t3.cookie=`${t}=;domain=${t2()};path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;secure;SameSite=None`}removeCachedCookie(t){this.removeCookieFromBrowser(t)}set(t,e,i){if(e){let n="object"==typeof e?JSON.stringify(e):e;this.setCookieInBrowser(t,n,i)}else this.removeCachedCookie(t)}get(t){return this.getCookieFromBrowser(t)}remove(t){this.removeCachedCookie(t)}}class t6{set(t,e,i){let n={value:e,lastModifiedAt:(new Date).getTime()||0,expiryTime:i};void 0!==e?localStorage.setItem(t,JSON.stringify(n)):localStorage.removeItem(t)}get(t){let e=(new Date).getTime()||0,i=tF(localStorage.getItem(t));return i&&i.lastModifiedAt&&e-+i.lastModifiedAt>+i.expiryTime&&(this.remove(t),i=void 0),i&&i.value}remove(t){localStorage.removeItem(t)}}let t8=class{static init(t){c=t&&tU().localStorage?new t6:new t5}static set(t,e,i){c.set(t,e,i||3e5)}static get(t){let e=c.get(t),i=e?tF(e):{};return"undefined"===e&&(e=void 0),e&&i?i:e}static remove(t){c.remove(t)}},t9={},t7=()=>{let{domainId:t,customerKey:e}=t1();return e?tJ(e):t},et=()=>{let t=0,e=t8.get("__rutma");return t8.get("__rutmb")||(t8.set("__rutmb",t7(),18e5),t=1),e=e?((t,e)=>{let i=t.split(".");return i.length>3&&(e&&(i[1]=i[2],i[2]=t4,i[3]=1*i[3]+1),4===i.length&&(i[4]=1),5===i.length&&(i[5]=1),i[4]=1*i[4]+1,i[5]=1+(e?0:1*i[5]),t=i.join(".")),t})(e,t):`${(()=>{let t=t8.get("__ruid");if(t)return t;t=("xx-xx-4x-1"+"pc"[0]+"-").replace(/[x]/g,()=>{var t;return String.fromCharCode((t=36*Math.random()|0)<10?t+48:t<36?t+87:t+29)});for(let e=0;e<5;e++)t+=("0000"+(1679615*Math.random()|0).toString(36)).slice(-4);let e=t7()+"-"+t+"-"+t4;return t8.set("__ruid",e),e})()}.${t4}.${t4}.1.1.1`,t8.set("__rutma",e,18e5),e},ee=()=>{let t=t0("userId");if(t)return{user_id:t};let{uid:e}=(()=>{var t;let{domainHash:e}=t1();t9.domainHashCkey=e,t9.domainHash=t9.domainHashCkey,t9.domainRoot=t2();let i=et(),n=i.split(".");return t9.uid=n[0],t9.usetLastDigit=(t=n[0]).length?t[t.length-1]:void 0,t9.previousSessionStartTime=parseInt(n[1]),t9.currentSessionStartTime=parseInt(n[2]),t9.visitCount=parseInt(n[3]),t9.pageViewCount=parseInt(n[4]),t9.visitPageCount=parseInt(n[5]),t9.utma=i,t9})();return{uuid:e}},ei=tU();function en(t,e){return function(){return t.apply(e,arguments)}}let{toString:es}=Object.prototype,{getPrototypeOf:er}=Object,{iterator:eo,toStringTag:ea}=Symbol,ec=(m=Object.create(null),t=>{let e=es.call(t);return m[e]||(m[e]=e.slice(8,-1).toLowerCase())}),eu=t=>(t=t.toLowerCase(),e=>ec(e)===t),eh=t=>e=>typeof e===t,{isArray:el}=Array,ep=eh("undefined"),ed=eu("ArrayBuffer"),ef=eh("string"),em=eh("function"),ev=eh("number"),eg=t=>null!==t&&"object"==typeof t,ew=t=>{if("object"!==ec(t))return!1;let e=er(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||ea in t||eo
1in t)},eb=eu("Date"),ey=eu("File"),eS=eu("Blob"),eE=eu("FileList"),eC=eu("URLSearchParams"),[eA,eT,eP,eL]=["ReadableStream","Request","Response","Headers"].map(eu);function eO(t,e,{allOwnKeys:i=!1}={}){let n,s;if(null!=t){if("object"!=typeof t&&(t=[t]),el(t))for(n=0,s=t.length;n<s;n++)e.call(null,t[n],n,t);else{let s;let r=i?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;for(n=0;n<o;n++)s=r[n],e.call(null,t[s],s,t)}}}function ex(t,e){e=e.toLowerCase();let i=Object.keys(t),n,s=i.length;for(;s-- >0;)if(e===(n=i[s]).toLowerCase())return n;return null}let eD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:i.g,e_=t=>!ep(t)&&t!==eD,eI=(_="undefined"!=typeof Uint8Array&&er(Uint8Array),t=>_&&t instanceof _),ek=eu("HTMLFormElement"),eR=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),eG=eu("RegExp"),eM=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};eO(i,(i,s)=>{let r;!1!==(r=e(i,s,t))&&(n[s]=r||i)}),Object.defineProperties(t,n)},eN=eu("AsyncFunction"),eq=(I="function"==typeof setImmediate,k=em(eD.postMessage),I?setImmediate:k?(R=`axios@${Math.random()}`,G=[],eD.addEventListener("message",({source:t,data:e})=>{t===eD&&e===R&&G.length&&G.shift()()},!1),t=>{G.push(t),eD.postMessage(R,"*")}):t=>setTimeout(t)),ej="undefined"!=typeof queueMicrotask?queueMicrotask.bind(eD):void 0!==s&&s.nextTick||eq,eF={isArray:el,isArrayBuffer:ed,isBuffer:function(t){return null!==t&&!ep(t)&&null!==t.constructor&&!ep(t.constructor)&&em(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||em(t.append)&&("formdata"===(e=ec(t))||"object"===e&&em(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ed(t.buffer)},isString:ef,isNumber:ev,isBoolean:t=>!0===t||!1===t,isObject:eg,isPlainObject:ew,isReadableStream:eA,isRequest:eT,isResponse:eP,isHeaders:eL,isUndefined:ep,isDate:eb,isFile:ey,isBlob:eS,isRegExp:eG,isFunction:em,isStream:t=>eg(t)&&em(t.pipe),isURLSearchParams:eC,isTypedArray:eI,isFileList:eE,forEach:eO,merge:function t(){let{caseless:e}=e_(this)&&this||{},i={},n=(n,s)=>{let r=e&&ex(i,s)||s;ew(i[r])&&ew(n)?i[r]=t(i[r],n):ew(n)?i[r]=t({},n):el(n)?i[r]=n.slice():i[r]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&eO(arguments[t],n);return i},extend:(t,e,i,{allOwnKeys:n}={})=>(eO(e,(e,n)=>{i&&em(e)?t[n]=en(e,i):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,e,i,n)=>{let s,r,o;let a={};if(e=e||{},null==t)return e;do{for(r=(s=Object.getOwnPropertyNames(t)).length;r-- >0;)o=s[r],n&&!n(o,t,e)||a[o]||(e[o]=t[o],a[o]=!0);t=!1!==i&&er(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:ec,kindOfTest:eu,endsWith:(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return -1!==n&&n===i},toArray:t=>{if(!t)return null;if(el(t))return t;let e=t.length;if(!ev(e))return null;let i=Array(e);for(;e-- >0;)i[e]=t[e];return i},forEachEntry:(t,e)=>{let i;let n=(t&&t[eo]).call(t);for(;(i=n.next())&&!i.done;){let n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let i;let n=[];for(;null!==(i=t.exec(e));)n.push(i);return n},isHTMLForm:ek,hasOwnProperty:eR,hasOwnProp:eR,reduceDescriptors:eM,freezeMethods:t=>{eM(t,(e,i)=>{if(em(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;em(t[i])&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},toObjectSet:(t,e)=>{let i={};return(t=>{t.forEach(t=>{i[t]=!0})})(el(t)?t:String(t).split(e)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:ex,global:eD,isContextDefined:e_,isSpecCompliantForm:function(t){return!!(t&&em(t.append)&&"FormData"===t[ea]&&t[eo])},toJSONObject:t=>{let e=Array(10),i=(t,n)=>{if(eg(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;let s=el(t)?[]:{};return eO(t,(t,e)=>{let r=i(t,n+1);ep(r)||(s[e]=r)}),e[n]=void 0,s}}return t};return i(t,0)},isAsyncFn:eN,isThenable:t=>t&&(eg(t)||em(t))&&em(t.then)&&em(t.catch),setImmediate:eq,asap:ej,isIterable:t=>null!=t&&em(t[eo])};function eU(t,e,i,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}eF.inherits(eU,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eF.toJSONObject(this.config),code:this.code,status:this.status}}});let eB=eU.prototype,eV={};function ez(t){return eF.isPlainObject(t)||eF.isArray(t)}function eH(t){return eF.endsWith(t,"[]")?t.slice(0,-2):t}function eK(t,e,i){return t?t.concat(e).map(function(t,e){return t=eH(t),!i&&e?"["+t+"]":t}).join(i?".":""):e}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
1RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{eV[t]={value:t}}),Object.defineProperties(eU,eV),Object.defineProperty(eB,"isAxiosError",{value:!0}),eU.from=(t,e,i,n,s,r)=>{let o=Object.create(eB);return eF.toFlatObject(t,o,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),eU.call(o,t.message,e,i,n,s),o.cause=t,o.name=t.name,r&&Object.assign(o,r),o};let e$=eF.toFlatObject(eF,{},null,function(t){return/^is[A-Z]/.test(t)}),eW=function(t,e,i){if(!eF.isObject(t))throw TypeError("target must be an object");e=e||new FormData;let n=(i=eF.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!eF.isUndefined(e[t])})).metaTokens,s=i.visitor||h,o=i.dots,a=i.indexes,c=(i.Blob||"undefined"!=typeof Blob&&Blob)&&eF.isSpecCompliantForm(e);if(!eF.isFunction(s))throw TypeError("visitor must be a function");function u(t){if(null===t)return"";if(eF.isDate(t))return t.toISOString();if(!c&&eF.isBlob(t))throw new eU("Blob is not supported. Use a Buffer instead.");return eF.isArrayBuffer(t)||eF.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):r.from(t):t}function h(t,i,s){let r=t;if(t&&!s&&"object"==typeof t){if(eF.endsWith(i,"{}"))i=n?i:i.slice(0,-2),t=JSON.stringify(t);else{var c;if(eF.isArray(t)&&(c=t,eF.isArray(c)&&!c.some(ez))||(eF.isFileList(t)||eF.endsWith(i,"[]"))&&(r=eF.toArray(t)))return i=eH(i),r.forEach(function(t,n){eF.isUndefined(t)||null===t||e.append(!0===a?eK([i],n,o):null===a?i:i+"[]",u(t))}),!1}}return!!ez(t)||(e.append(eK(s,i,o),u(t)),!1)}let l=[],p=Object.assign(e$,{defaultVisitor:h,convertValue:u,isVisitable:ez});if(!eF.isObject(t))throw TypeError("data must be an object");return function t(i,n){if(!eF.isUndefined(i)){if(-1!==l.indexOf(i))throw Error("Circular reference detected in "+n.join("."));l.push(i),eF.forEach(i,function(i,r){!0===(!(eF.isUndefined(i)||null===i)&&s.call(e,i,eF.isString(r)?r.trim():r,n,p))&&t(i,n?n.concat(r):[r])}),l.pop()}}(t),e};function eQ(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function eJ(t,e){this._pairs=[],t&&eW(t,this,e)}let eY=eJ.prototype;function eX(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eZ(t,e,i){let n;if(!e)return t;let s=i&&i.encode||eX;eF.isFunction(i)&&(i={serialize:i});let r=i&&i.serialize;if(n=r?r(e,i):eF.isURLSearchParams(e)?e.toString():new eJ(e,i).toString(s)){let e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}eY.append=function(t,e){this._pairs.push([t,e])},eY.toString=function(t){let e=t?function(e){return t.call(this,e,eQ)}:eQ;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};let e0=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){eF.forEach(this.handlers,function(e){null!==e&&t(e)})}},e1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},e2={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eJ,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},e4="undefined"!=typeof window&&"undefined"!=typeof document,e3="object"==typeof navigator&&navigator||void 0,e5=e4&&(!e3||0>["ReactNative","NativeScript","NS"].indexOf(e3.product)),e6="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,e8=e4&&window.location.href||"http://localhost",e9={...J,...e2},e7=function(t){if(eF.isFormData(t)&&eF.isFunction(t.entries)){let e={};return eF.forEachEntry(t,(t,i)=>{(function t(e,i,n,s){let r=e[s++];if("__proto__"===r)return!0;let o=Number.isFinite(+r),a=s>=e.length;return r=!r&&eF.isArray(n)?n.length:r,a?eF.hasOwnProp(n,r)?n[r]=[n[r],i]:n[r]=i:(n[r]&&eF.isObject(n[r])||(n[r]=[]),t(e,i,n[r],s)&&eF.isArray(n[r])&&(n[r]=function(t){let e,i;let n={},s=Object.keys(t),r=s.length;for(e=0;e<r;e++)n[i=s[e]]=t[i];return n}(n[r]))),!o})(eF.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,e,0)}),e}return null},it={transitional:e1,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){let i;let n=e.getContentType()||"",s=n.indexOf("application/json")>-1,r=eF.isObject(t);if(r&&eF.isHTMLForm(t)&&(t=new FormData(t)),eF.isFormData(t))return s?JSON.stringify(e7(t)):t;if(eF.isArrayBuffer(t)||eF.isBuffer(t)||eF.isStream(t)||eF.isFile(t)||eF.isBlob(t)||eF.isReadableStream(t))return t;if(eF.isArrayBufferView(t))return t.buffer;if(eF.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1){var o,a;
1return(o=t,a=this.formSerializer,eW(o,new e9.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return e9.isNode&&eF.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))).toString()}if((i=eF.isFileList(t))||n.indexOf("multipart/form-data")>-1){let e=this.env&&this.env.FormData;return eW(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||s?(e.setContentType("application/json",!1),function(t){if(eF.isString(t))try{return(0,JSON.parse)(t),eF.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){let e=this.transitional||it.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(eF.isResponse(t)||eF.isReadableStream(t))return t;if(t&&eF.isString(t)&&(i&&!this.responseType||n)){let i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw eU.from(t,eU.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e9.classes.FormData,Blob:e9.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eF.forEach(["delete","get","head","post","put","patch"],t=>{it.headers[t]={}});let ie=eF.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ii=Symbol("internals");function is(t){return t&&String(t).trim().toLowerCase()}function ir(t){return!1===t||null==t?t:eF.isArray(t)?t.map(ir):String(t)}function io(t,e,i,n,s){return eF.isFunction(n)?n.call(this,e,i):(s&&(e=i),eF.isString(e)?eF.isString(n)?-1!==e.indexOf(n):eF.isRegExp(n)?n.test(e):void 0:void 0)}class ia{constructor(t){t&&this.set(t)}set(t,e,i){let n=this;function s(t,e,i){let s=is(e);if(!s)throw Error("header name must be a non-empty string");let r=eF.findKey(n,s);r&&void 0!==n[r]&&!0!==i&&(void 0!==i||!1===n[r])||(n[r||e]=ir(t))}let r=(t,e)=>eF.forEach(t,(t,i)=>s(t,i,e));if(eF.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(eF.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))r((t=>{let e,i,n;let s={};return t&&t.split("\n").forEach(function(t){n=t.indexOf(":"),e=t.substring(0,n).trim().toLowerCase(),i=t.substring(n+1).trim(),!e||s[e]&&ie[e]||("set-cookie"===e?s[e]?s[e].push(i):s[e]=[i]:s[e]=s[e]?s[e]+", "+i:i)}),s})(t),e);else if(eF.isObject(t)&&eF.isIterable(t)){let i,n,s={};for(let e of t){if(!eF.isArray(e))throw TypeError("Object iterator must return a key-value pair");s[n=e[0]]=(i=s[n])?eF.isArray(i)?[...i,e[1]]:[i,e[1]]:e[1]}r(s,e)}else null!=t&&s(e,t,i);return this}get(t,e){if(t=is(t)){let i=eF.findKey(this,t);if(i){let t=this[i];if(!e)return t;if(!0===e)return function(t){let e;let i=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;e=n.exec(t);)i[e[1]]=e[2];return i}(t);if(eF.isFunction(e))return e.call(this,t,i);if(eF.isRegExp(e))return e.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=is(t)){let i=eF.findKey(this,t);return!(!i||void 0===this[i]||e&&!io(0,this[i],i,e))}return!1}delete(t,e){let i=this,n=!1;function s(t){if(t=is(t)){let s=eF.findKey(i,t);s&&(!e||io(0,i[s],s,e))&&(delete i[s],n=!0)}}return eF.isArray(t)?t.forEach(s):s(t),n}clear(t){let e=Object.keys(this),i=e.length,n=!1;for(;i--;){let s=e[i];t&&!io(0,this[s],s,t,!0)||(delete this[s],n=!0)}return n}normalize(t){let e=this,i={};return eF.forEach(this,(n,s)=>{let r=eF.findKey(i,s);if(r)return e[r]=ir(n),void delete e[s];let o=t?s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i):String(s).trim();o!==s&&delete e[s],e[o]=ir(n),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let e=Object.create(null);return eF.forEach(this,(i,n)=>{null!=i&&!1!==i&&(e[n]=t&&eF.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){let i=new this(t);return e.forEach(t=>i.set(t)),i}static accessor(t){let e=(this[ii]=this[ii]={accessors:{}}).accessors,i=this.prototype;function n(t){let n=is(t);e[n]||(function(t,e){let i=eF.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{value:function(t,i,s){return this[n].call(this,e,t,i,s)},configurable:!0})})}(i,t),e[n]=!0)}return eF.isArray(t)?t.forEach(n):n(t),this}}function ic(t,e){let i=this||it,n=e||i,s=ia.from(n.headers),r=n.data;return eF.forEach(t,function(t){r=t.call(i,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function iu(t){return!(!t||!t.__CANCEL__)}function ih(t,e,i){eU.call(this,null==t?"canceled":t,eU.ERR_CANCELED,e,i),this.name="CanceledError"}function il(t,e,i){let n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new eU("Request failed with status code "+i.status,[eU.ERR_BAD_REQUEST,eU.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}ia.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eF.reduceDescriptors(ia.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}}),eF.freezeMethods(ia),eF.inherits(ih,eU,{__CANCEL__:!0});let ip=(t,e,i=3)=>{let n=0,s=function(t,e){let i=Array(t=t||10),n=Array(t),s,r=0,o=0;return e=void 0!==e?e:1e3,function(a){let c=Date.now(),u=n[o];s||(s=c),i[r]=a,n[r]=c;let h=o,l=0;for(;h!==r;)l+=i[h++],h%=t;if((r=(r+1)%t)===o&&(o=(o+1)%t),c-s<e)return;let p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(t,e){let i,n,s=0,r=1e3/e,o=(e,r=Date.now())=>{s=r,i=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{let e=Date.now(),a=e-s;a>=r?o(t,e):(i=t,n||(n=setTimeout(()=>{n=null,o(i)},r-a)))},()=>i&&o(i)]}(i=>{let r=i.loaded,o=i.lengthComputable?i.total:void 0,a=r-n,c=s(a);n=r,t({loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&r<=o?(o-r)/c:void 0,event:i,lengthComputable:null!=o,[e?"download":"upload"]:!0})},i)},id=(t,e)=>{let i=null!=t;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},im=t=>(...e)=>eF.asap(()=>t(...e)),iv=e9.hasStandardBrowserEnv?(v=new URL(e9.origin),g=e9.navigator&&/(msie|trident)/i.test(e9.navigator.userAgent),t=>(t=new URL(t,e9.origin),v.protocol===t.protocol&&v.host===t.host&&(g||v.port===t.port))):()=>!0,ig=e9.hasStandardBrowserEnv?{write(t,e,i,n,s,r){let o=[t+"="+encodeURIComponent(e)];eF.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),eF.isString(n)&&o.push("path="+n),eF.isString(s)&&o.push("domain="+s),!0===r&&o.push("secure"),document.cookie=o.join("; ")},read(t){let e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};
1function iw(t,e,i){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(n||0==i)?e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t:e}let ib=t=>t instanceof ia?{...t}:t;function iy(t,e){e=e||{};let i={};function n(t,e,i,n){return eF.isPlainObject(t)&&eF.isPlainObject(e)?eF.merge.call({caseless:n},t,e):eF.isPlainObject(e)?eF.merge({},e):eF.isArray(e)?e.slice():e}function s(t,e,i,s){return eF.isUndefined(e)?eF.isUndefined(t)?void 0:n(void 0,t,0,s):n(t,e,0,s)}function r(t,e){if(!eF.isUndefined(e))return n(void 0,e)}function o(t,e){return eF.isUndefined(e)?eF.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(i,s,r){return r in e?n(i,s):r in t?n(void 0,i):void 0}let c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(t,e,i)=>s(ib(t),ib(e),0,!0)};return eF.forEach(Object.keys(Object.assign({},t,e)),function(n){let r=c[n]||s,o=r(t[n],e[n],n);eF.isUndefined(o)&&r!==a||(i[n]=o)}),i}let iS=t=>{let e=iy({},t),i,{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:a,auth:c}=e;if(e.headers=a=ia.from(a),e.url=eZ(iw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),eF.isFormData(n)){if(e9.hasStandardBrowserEnv||e9.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(i=a.getContentType())){let[t,...e]=i?i.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}}if(e9.hasStandardBrowserEnv&&(s&&eF.isFunction(s)&&(s=s(e)),s||!1!==s&&iv(e.url))){let t=r&&o&&ig.read(o);t&&a.set(r,t)}return e},iE="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,i){let n=iS(t),s=n.data,r=ia.from(n.headers).normalize(),o,a,c,u,h,{responseType:l,onUploadProgress:p,onDownloadProgress:d}=n;function f(){u&&u(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function v(){if(!m)return;let n=ia.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());il(function(t){e(t),f()},function(t){i(t),f()},{data:l&&"text"!==l&&"json"!==l?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:t,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(i(new eU("Request aborted",eU.ECONNABORTED,t,m)),m=null)},m.onerror=function(){i(new eU("Network Error",eU.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",s=n.transitional||e1;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),i(new eU(e,s.clarifyTimeoutError?eU.ETIMEDOUT:eU.ECONNABORTED,t,m)),m=null},void 0===s&&r.setContentType(null),"setRequestHeader"in m&&eF.forEach(r.toJSON(),function(t,e){m.setRequestHeader(e,t)}),eF.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),l&&"json"!==l&&(m.responseType=n.responseType),d&&([c,h]=ip(d,!0),m.addEventListener("progress",c)),p&&m.upload&&([a,u]=ip(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=e=>{m&&(i(!e||e.type?new ih(null,t,m):e),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o))
1);let g=function(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(n.url);g&&-1===e9.protocols.indexOf(g)?i(new eU("Unsupported protocol "+g+":",eU.ERR_BAD_REQUEST,t)):m.send(s||null)})},iC=(t,e)=>{let{length:i}=t=t?t.filter(Boolean):[];if(e||i){let i,n=new AbortController,s=function(t){if(!i){i=!0,o();let e=t instanceof Error?t:this.reason;n.abort(e instanceof eU?e:new ih(e instanceof Error?e.message:e))}},r=e&&setTimeout(()=>{r=null,s(new eU(`timeout ${e} of ms exceeded`,eU.ETIMEDOUT))},e),o=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(s):t.removeEventListener("abort",s)}),t=null)};t.forEach(t=>t.addEventListener("abort",s));let{signal:a}=n;return a.unsubscribe=()=>eF.asap(o),a}},iA=function*(t,e){let i=t.byteLength;if(!e||i<e)return void(yield t);let n,s=0;for(;s<i;)n=s+e,yield t.slice(s,n),s=n},iT=(t,e,i,n)=>{let s=async function*(t,e){for await(let i of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let e=t.getReader();try{for(;;){let{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}}(t))yield*iA(i,e)}(t,e),r,o=0,a=t=>{r||(r=!0,n&&n(t))};return new ReadableStream({async pull(t){try{let{done:e,value:n}=await s.next();if(e)return a(),void t.close();let r=n.byteLength;if(i){let t=o+=r;i(t)}t.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:t=>(a(t),s.return())},{highWaterMark:2})},iP="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,iL=iP&&"function"==typeof ReadableStream,iO=iP&&("function"==typeof TextEncoder?(M=new TextEncoder,t=>M.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ix=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},iD=iL&&ix(()=>{let t=!1,e=new Request(e9.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),i_=iL&&ix(()=>eF.isReadableStream(new Response("").body)),iI={stream:i_&&(t=>t.body)};iP&&(N=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{iI[t]||(iI[t]=eF.isFunction(N[t])?e=>e[t]():(e,i)=>{throw new eU(`Response type '${t}' is not supported`,eU.ERR_NOT_SUPPORT,i)})}));let ik={http:null,xhr:iE,fetch:iP&&(async t=>{let e,{url:i,method:n,data:s,signal:r,cancelToken:o,timeout:a,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:l,withCredentials:p="same-origin",fetchOptions:d}=iS(t);h=h?(h+"").toLowerCase():"text";let f,m=iC([r,o&&o.toAbortSignal()],a),v=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(u&&iD&&"get"!==n&&"head"!==n&&0!==(e=await (async(t,e)=>{let i=eF.toFiniteNumber(t.getContentLength());return null==i?(async t=>{if(null==t)return 0;if(eF.isBlob(t))return t.size;if(eF.isSpecCompliantForm(t)){let e=new Request(e9.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return eF.isArrayBufferView(t)||eF.isArrayBuffer(t)?t.byteLength:(eF.isURLSearchParams(t)&&(t+=""),eF.isString(t)?(await iO(t)).byteLength:void 0)})(e):i})(l,s))){let t,n=new Request(i,{method:"POST",body:s,duplex:"half"});if(eF.isFormData(s)&&(t=n.headers.get("content-type"))&&l.setContentType(t),n.body){let[t,i]=id(e,ip(im(u)));s=iT(n.body,65536,t,i)}}eF.isString(p)||(p=p?"include":"omit");let r="credentials"in Request.prototype;f=new Request(i,{...d,signal:m,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:s,duplex:"half",credentials:r?p:void 0});let o=await fetch(f),a=i_&&("stream"===h||"response"===h);if(i_&&(c||a&&v)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=o[e]});let e=eF.toFiniteNumber(o.headers.get("content-length")),[i,n]=c&&id(e,ip(im(c),!0))||[];o=new Response(iT(o.body,65536,i,()=>{n&&n(),v&&v()}),t)}h=h||"text";let g=await iI[eF.findKey(iI,h)||"text"](o,t);return!a&&v&&v(),await new Promise((e,i)=>{il(e,i,{data:g,headers:ia.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:f})})}catch(e){if(v&&v(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new eU("Network Error",eU.ERR_NETWORK,t,f),{cause:e.cause||e});throw eU.from(e,e&&e.code,t,f)}})};eF.forEach(ik,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});let iR=t=>`- ${t}`,iG=t=>eF.isFunction(t)||null===t||!1===t,iM=t=>{let e,i;let{length:n}=t=eF.isArray(t)?t:[t],s={};for(let r=0;r<n;r++){let n;if(i=e=t[r],!iG(e)&&void 0===(i=ik[(n=String(e)).toLowerCase()]))throw new eU(`Unknown adapter '${n}'`);if(i)break;s[n||"#"+r]=i}if(!i){let t=Object.entries(s).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new eU("There is no suitable adapter to dispatch the request "+(n?t.length>
11?"since :\n"+t.map(iR).join("\n"):" "+iR(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function iN(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ih(null,t)}function iq(t){return iN(t),t.headers=ia.from(t.headers),t.data=ic.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iM(t.adapter||it.adapter)(t).then(function(e){return iN(t),e.data=ic.call(t,t.transformResponse,e),e.headers=ia.from(e.headers),e},function(e){return iu(e)||(iN(t),e&&e.response&&(e.response.data=ic.call(t,t.transformResponse,e.response),e.response.headers=ia.from(e.response.headers))),Promise.reject(e)})}let ij={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ij[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});let iF={};ij.transitional=function(t,e,i){function n(t,e){return"[Axios v1.9.0] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,s,r)=>{if(!1===t)throw new eU(n(s," has been removed"+(e?" in "+e:"")),eU.ERR_DEPRECATED);return e&&!iF[s]&&(iF[s]=!0,console.warn(n(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,s,r)}},ij.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let iU={assertOptions:function(t,e,i){if("object"!=typeof t)throw new eU("options must be an object",eU.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),s=n.length;for(;s-- >0;){let r=n[s],o=e[r];if(o){let e=t[r],i=void 0===e||o(e,r,t);if(!0!==i)throw new eU("option "+r+" must be "+i,eU.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new eU("Unknown option "+r,eU.ERR_BAD_OPTION)}},validators:ij},iB=iU.validators;class iV{constructor(t){this.defaults=t||{},this.interceptors={request:new e0,response:new e0}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=Error();let i=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,e){let i;"string"==typeof t?(e=e||{}).url=t:e=t||{};let{transitional:n,paramsSerializer:s,headers:r}=e=iy(this.defaults,e);void 0!==n&&iU.assertOptions(n,{silentJSONParsing:iB.transitional(iB.boolean),forcedJSONParsing:iB.transitional(iB.boolean),clarifyTimeoutError:iB.transitional(iB.boolean)},!1),null!=s&&(eF.isFunction(s)?e.paramsSerializer={serialize:s}:iU.assertOptions(s,{encode:iB.function,serialize:iB.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),iU.assertOptions(e,{baseUrl:iB.spelling("baseURL"),withXsrfToken:iB.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=r&&eF.merge(r.common,r[e.method]);r&&eF.forEach(["delete","get","head","post","put","patch","common"],t=>{delete r[t]}),e.headers=ia.concat(o,r);let a=[],c=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h,l=0;if(!c){let t=[iq.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),h=t.length,i=Promise.resolve(e);l<h;)i=i.then(t[l++],t[l++]);return i}h=a.length;let p=e;for(l=0;l<h;){let t=a[l++],e=a[l++];try{p=t(p)}catch(t){e.call(this,t);break}}try{i=iq.call(this,p)}catch(t){return Promise.reject(t)}for(l=0,h=u.length;l<h;)i=i.then(u[l++],u[l++]);return i}getUri(t){return eZ(iw((t=iy(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}eF.forEach(["delete","get","head","options"],function(t){iV.prototype[t]=function(e,i){return this.request(iy(i||{},{method:t,url:e,data:(i||{}).data}))}}),eF.forEach(["post","put","patch"],function(t){function e(e){return function(i,n,s){return this.request(iy(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}iV.prototype[t]=e(),iV.prototype[t+"Form"]=e(!0)});class iz{constructor(t){let e;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});let i=this;this.promise.then(t=>{if(!i._listeners)return;let e=i._listeners.length;for(;e-- >0;)i._listeners[e](t);i._listeners=null}),this.promise.then=t=>{let e;let n=new Promise(t=>{i.subscribe(t),e=t}).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t(function(t,n,s){i.reason||(i.reason=new ih(t,n,s),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){let t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new iz(function(e){t=e}),cancel:t}}}let iH={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(iH).forEach(([t,e])=>{iH[e]=t});let iK=function t(e){let i=new iV(e),n=en(iV.prototype.request,i);return eF.extend(n,iV.prototype,i,{allOwnKeys:!0}),eF.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return t(iy(e,i))},n}(it);iK.Axios=iV,iK.CanceledError=ih,iK.CancelToken=iz,iK.isCancel=iu,iK.VERSION="1.9.0",iK.toFormData=eW,iK.AxiosError=eU,iK.Cancel=iK.CanceledError,iK.all=function(t){return Promise.all(t)},iK.spread=function(t){return function(e){return t.apply(null,e)}},iK.isAxiosError=function(t){return eF.isObject(t)&&!0===t.isAxiosError},iK.mergeConfig=iy,iK.AxiosHeaders=ia,iK.formToJSON=t=>e7(eF.isHTMLForm(t)?new FormData(t):t),iK.getAdapter=iM,iK.HttpStatusCode=iH,iK.default=iK;var i$=function(t,e){return(i$=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},iW=function(){return(iW=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};function iQ(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){t.done?s(t.value):new i(function(e){e(t.value)}).then(o,a)}c((n=n.apply(t,e||[])).next())})}function iJ(t,e){var i,n,s,r,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(s=2&r[0]?n.return:r[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,r[1])).done)return s;switch(n=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,n=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){o.label=r[1];break}if(6===r[0]&&o.label<s[1]){o.label=s[1],s=r;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(r);break}s[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(t){r=[6,t],n=0}finally{i=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}var iY=new(function(){function t(){this.defaultConfig={baseApiUrl:"https://api.ordercloud.io",apiVersion:"v1",timeoutInMilliseconds:6e4,clientID:null,cookieOptions:{samesite:"lax",secure:!1,domain:null,prefix:"ordercloud",path:"/"}},this.config=JSON.parse(JSON.stringify(this.defaultConfig)),this.Set
1=this.Set.bind(this),this.Get=this.Get.bind(this)}return t.prototype.Set=function(t){this.config=iW(iW(iW({},this.defaultConfig),this.config),t||{}),this.config.cookieOptions=iW(iW(iW({},this.defaultConfig.cookieOptions),this.config.cookieOptions),(null==t?void 0:t.cookieOptions)||{})},t.prototype.Get=function(){return this.config},t}()),iX=function(t){function e(e){var i=this,n=function(t){var e;try{var i=null===(e=null==t?void 0:t.response)||void 0===e?void 0:e.data;return i?"object"==typeof i?i.Errors:"string"==typeof i?(i&&65279===i.charCodeAt(0)&&(i=i.substring(1)),JSON.parse(i).Errors):i:[]}catch(t){return[]}}(e),s=null==n?void 0:n[0];return(i=t.call(this,s?"NotFound"===s.ErrorCode?"".concat(s.Data.ObjectType," ").concat(s.Data.ObjectID," not found"):s.Message:e.response.statusText)||this).isOrderCloudError=!0,i.errors=n,i.name="OrderCloudError",i.errorCode=s?s.ErrorCode:"OrderCloudError",i.status=e.response.status,i.statusText=e.response.statusText,i.response=e.response,i.request=e.request,i}return function(t,e){function i(){this.constructor=t}i$(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e}(Error),iZ=new(function(){function t(){}return t.prototype.write=function(t,e,i){void 0===e&&(e=void 0),document.cookie=this.buildCookieString(t,e,i)},t.prototype.read=function(t){for(var e=0,i=document.cookie.split(";");e<i.length;e++){var n=i[e].split("="),s=n[0],r=n[1];if(decodeURIComponent(s.trim().toLowerCase())===t.toLowerCase())return decodeURIComponent(r)}return""},t.prototype.buildCookieString=function(t,e,i){void 0===e&&(e=void 0),e?(n=new Date).setFullYear(n.getFullYear()+1):(n=new Date("Thu, 01 Jan 1970 00:00:00 GMT"),e="");var n,s=encodeURIComponent(t)+"="+encodeURIComponent(e),r=(s+=(i.domain?";domain="+i.domain:"")+(n?";expires="+n.toUTCString():"")+(i.secure?";secure":"")+(i.samesite?";samesite="+i.samesite:"")+(i.path?";path="+i.path:"")).length+1;return r>4096&&console.warn("Cookie ".concat(t," possibly not set or overflowed because it was too large! (").concat(r," > 4096 bytes)")),s},t}()),i0=new(function(){function t(){this.get=this.get.bind(this),this.set=this.set.bind(this),this.remove=this.remove.bind(this)}return t.prototype.get=function(t){var e=iY.Get().cookieOptions.prefix+t;return iZ.read(e)},t.prototype.set=function(t,e){var i=iY.Get(),n=i.cookieOptions.prefix+t;iZ.write(n,e,i.cookieOptions)},t.prototype.remove=function(t){var e=iY.Get(),i=e.cookieOptions.prefix+t;iZ.write(i,void 0,e.cookieOptions)},t}());function i1(t){try{var e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(("undefined"!=typeof atob?atob(e):r.from(e,"base64").toString("binary")).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}catch(t){throw Error("Invalid token")}}var i2={serialize:function(t){var e=JSON.parse(JSON.stringify(t)),i=[];if(e.filters){var n=function(t){var e={};for(var i in t)(function t(e,i,n){if("[object Object]"===Object.prototype.toString.call(e))for(var s in e)t(e[s],"".concat(i,".").concat(s),n);else{if(null===e)throw Error('Null is not a valid filter prop. Use negative filter "!" combined with wildcard filter "*" to define a filter for the absence of a value. \nex: an order list call with { xp: { hasPaid: \'!*\' } } would return a list of orders where xp.hasPaid is null or undefined\nhttps://ordercloud.io/features/advanced-querying#filtering');n[i]=e}})(t[i],i,e);return e}(e.filters),s=function(t){var e=n[t];Array.isArray(e)?e.forEach(function(e){return i.push("".concat(t,"=").concat(encodeURIComponent(e)))}):("boolean"==typeof e||0===e||e)&&i.push("".concat(t,"=").concat(encodeURIComponent(e)))};for(var r in n)s(r);delete e.filters}for(var r in e){var o=e[r];o&&i.push("".concat(r,"=").concat(encodeURIComponent(o)))}return i.length?"".concat(i.join("&")):""}},i4=new(function(){function t(){if(void 0===iK)throw Error("Ordercloud is missing required peer dependency axios. This must be installed and loaded before the OrderCloud SDK");this.Anonymous=this.Anonymous.bind(this),this.ClientCredentials=this.ClientCredentials.bind(this),this.ElevatedLogin=this.ElevatedLogin.bind(this),this.Login=this.Login.bind(this),this.RefreshToken=this.RefreshToken.bind(this)}
1return t.prototype.Login=function(t,e,i,n,s,r){return void 0===r&&(r={}),iQ(this,void 0,void 0,function(){var o,a,c;return iJ(this,function(u){switch(u.label){case 0:if(n&&!Array.isArray(n))throw Error("scope must be a string array");if(null!=s&&!Array.isArray(s))throw Error("custom roles must be defined as a string array");return(null==n?void 0:n.length)&&!(null==s?void 0:s.length)?o=n.join(" "):!(null==n?void 0:n.length)&&(null==s?void 0:s.length)?o+=" ".concat(s.join(" ")):(null==n?void 0:n.length)&&(null==s?void 0:s.length)&&(o="".concat(n.join(" ")," ").concat(s.join(" "))),a={grant_type:"password",username:t,password:e,client_id:i,scope:o},c=iY.Get(),[4,iK.post("".concat(c.baseApiUrl,"/oauth/token"),i2.serialize(a),iW({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:c.axiosAdapter},r)).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,u.sent().data]}})})},t.prototype.ElevatedLogin=function(t,e,i,n,s,r,o){return void 0===o&&(o={}),iQ(this,void 0,void 0,function(){var a,c,u;return iJ(this,function(h){switch(h.label){case 0:if(s&&!Array.isArray(s))throw Error("scope must be a string array");if(null!=r&&!Array.isArray(r))throw Error("custom roles must be defined as a string array");return(null==s?void 0:s.length)&&!(null==r?void 0:r.length)?a=s.join(" "):!(null==s?void 0:s.length)&&(null==r?void 0:r.length)?a+=" ".concat(r.join(" ")):(null==s?void 0:s.length)&&(null==r?void 0:r.length)&&(a="".concat(s.join(" ")," ").concat(r.join(" "))),c={grant_type:"password",scope:a,client_id:n,username:e,password:i,client_secret:t},u=iY.Get(),[4,iK.post("".concat(u.baseApiUrl,"/oauth/token"),i2.serialize(c),iW({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:u.axiosAdapter},o)).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,h.sent().data]}})})},t.prototype.ClientCredentials=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r,o,a;return iJ(this,function(c){switch(c.label){case 0:if(i&&!Array.isArray(i))throw Error("scope must be a string array");if(null!=n&&!Array.isArray(n))throw Error("custom roles must be defined as a string array");return(null==i?void 0:i.length)&&!(null==n?void 0:n.length)?r=i.join(" "):!(null==i?void 0:i.length)&&(null==n?void 0:n.length)?r+=" ".concat(n.join(" ")):(null==i?void 0:i.length)&&(null==n?void 0:n.length)&&(r="".concat(i.join(" ")," ").concat(n.join(" "))),o={grant_type:"client_credentials",scope:r,client_id:e,client_secret:t},a=iY.Get(),[4,iK.post("".concat(a.baseApiUrl,"/oauth/token"),i2.serialize(o),iW({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:a.axiosAdapter},s)).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,c.sent().data]}})})},t.prototype.RefreshToken=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n,s;return iJ(this,function(r){switch(r.label){case 0:return n={grant_type:"refresh_token",client_id:e,refresh_token:t},s=iY.Get(),[4,iK.post("".concat(s.baseApiUrl,"/oauth/token"),i2.serialize(n),iW({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:s.axiosAdapter},i)).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent().data]}})})},t.prototype.Anonymous=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s,r,o;return iJ(this,function(a){switch(a.label){case 0:if(e&&!Array.isArray(e))throw Error("scope must be a string array");if(null!=i&&!Array.isArray(i))throw Error("custom roles must be defined as a string array");return(null==e?void 0:e.length)&&!(null==i?void 0:i.length)?s=e.join(" "):!(null==e?void 0:e.length)&&(null==i?void 0:i.length)?s+=" ".concat(i.join(" ")):(null==e?void 0:e.length)&&(null==i?void 0:i.length)&&(s="".concat(e.join(" ")," ").concat(i.join(" "))),r={grant_type:"client_credentials",client_id:t,scope:s},n.anonuserid&&(r.anonuserid=n.anonuserid,delete n.anonuserid),o=iY.Get(),[4,iK.post("".concat(o.baseApiUrl,"/oauth/token"),i2.serialize(r),iW({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:o.axiosAdapter},n)).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,a.sent().data]}})})},t}()),i3=Function("try {return this===global;}catch(e){return false;}"),i5=new(function(){function t(){this.accessTokenCookieName=".access-token",this.impersonationTokenCookieName=".impersonation-token",this.refreshTokenCookieName=".refresh-token",this.identityTokenCookieName=".identity-token",this.accessToken=null,this.impersonationToken=null,this.refreshToken=null,this.identityToken=null,this.GetAccessToken=this.GetAccessToken.bind(this),this.GetImpersonationToken=this.GetImpersonationToken.bind(this),this.GetRefreshToken=this.GetRefreshToken.bind(this),this.RemoveAccessToken=this.RemoveAccessToken.bind(this),this.RemoveImpersonationToken=this.RemoveImpersonationToken.bind(this),this.SetA
1ccessToken=this.SetAccessToken.bind(this),this.RemoveRefreshToken=this.RemoveRefreshToken.bind(this),this.SetImpersonationToken=this.SetImpersonationToken.bind(this),this.SetRefreshToken=this.SetRefreshToken.bind(this),this.RemoveIdentityToken=this.RemoveIdentityToken.bind(this),this.GetIdentityToken=this.GetIdentityToken.bind(this),this.SetIdentityToken=this.SetIdentityToken.bind(this),this._isTokenExpired=this._isTokenExpired.bind(this),this._tryRefreshToken=this._tryRefreshToken.bind(this)}return t.prototype.GetAccessToken=function(){return i3()?this.accessToken:i0.get(this.accessTokenCookieName)},t.prototype.SetAccessToken=function(t){i1(t),i3()?this.accessToken=t:i0.set(this.accessTokenCookieName,t)},t.prototype.RemoveAccessToken=function(){i3()?this.accessToken="":i0.remove(this.accessTokenCookieName)},t.prototype.GetImpersonationToken=function(){return i3()?this.impersonationToken:i0.get(this.impersonationTokenCookieName)},t.prototype.SetImpersonationToken=function(t){i1(t),i3()?this.impersonationToken=t:i0.set(this.impersonationTokenCookieName,t)},t.prototype.RemoveImpersonationToken=function(){i3()?this.impersonationToken=null:i0.remove(this.impersonationTokenCookieName)},t.prototype.GetRefreshToken=function(){return i3()?this.refreshToken:i0.get(this.refreshTokenCookieName)},t.prototype.SetRefreshToken=function(t){i3()?this.refreshToken=t:i0.set(this.refreshTokenCookieName,t)},t.prototype.RemoveRefreshToken=function(){i3()?this.refreshToken=null:i0.remove(this.refreshTokenCookieName)},t.prototype.GetIdentityToken=function(){return i3()?this.identityToken:i0.get(this.identityTokenCookieName)},t.prototype.SetIdentityToken=function(t){i3()?this.identityToken=t:i0.set(this.identityTokenCookieName,t)},t.prototype.RemoveIdentityToken=function(){i3()?this.identityToken=null:i0.remove(this.identityTokenCookieName)},t.prototype.GetValidToken=function(t){return iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=t||this.GetAccessToken(),this._isTokenExpired(e)?[4,this._tryRefreshToken(e)]:[3,2];case 1:e=i.sent(),i.label=2;case 2:return[2,Promise.resolve(e||"")]}})})},t.prototype._isTokenExpired=function(t){if(!t)return!0;var e=i1(t),i=Date.now()/1e3-10;return e.exp<i},t.prototype._tryRefreshToken=function(t){return iQ(this,void 0,void 0,function(){var e,i,n,s;return iJ(this,function(r){switch(r.label){case 0:if(!(e=this.GetRefreshToken())||(i=iY.Get(),!t&&!i.clientID))return[2,t||""];if(t&&(n=i1(t).cid),i.clientID&&(n=i.clientID),!n)return[2,""];if(!n)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i4.RefreshToken(e,n)];
1case 2:return s=r.sent().access_token,this.SetAccessToken(s),[2,s];case 3:return r.sent(),[2,""];case 4:return[2]}})})},t}()),i6=new(function(){function t(){var t=this;if(this.get=function(e,i){return iQ(t,void 0,void 0,function(){return iJ(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("get",e,i)];case 1:return[2,t.sent()]}})})},this.post=function(e,i){return iQ(t,void 0,void 0,function(){return iJ(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("post",e,i)];case 1:return[2,t.sent()]}})})},this.put=function(e,i){return iQ(t,void 0,void 0,function(){return iJ(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("put",e,i)];case 1:return[2,t.sent()]}})})},this.patch=function(e,i){return iQ(t,void 0,void 0,function(){return iJ(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("patch",e,i)];case 1:return[2,t.sent()]}})})},this.delete=function(e,i){return iQ(t,void 0,void 0,function(){return iJ(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("delete",e,i)];case 1:return[2,t.sent()]}})})},void 0===iK)throw Error("Missing required peer dependency axios. This must be installed and loaded before the OrderCloud SDK");this.get=this.get.bind(this),this.put=this.put.bind(this),this.post=this.post.bind(this),this.patch=this.patch.bind(this),this.delete=this.delete.bind(this),this._resolveToken=this._resolveToken.bind(this),this._buildRequestConfig=this._buildRequestConfig.bind(this),this._addTokenToConfig=this._addTokenToConfig.bind(this)}return t.prototype.makeApiCall=function(t,e,i){return iQ(this,void 0,void 0,function(){var n,s,r;return iJ(this,function(o){switch(o.label){case 0:return[4,this._buildRequestConfig(i)];case 1:return n=o.sent(),s=e.includes("oauth/")?"".concat(iY.Get().baseApiUrl,"/").concat(e):"".concat(iY.Get().baseApiUrl,"/").concat(iY.Get().apiVersion).concat(e),"put"!==t&&"post"!==t&&"patch"!==t?[3,3]:(r=n.data,delete n.data,[4,iK[t](s,r,n)]);case 2:case 4:return[2,o.sent().data];case 3:return[4,iK[t](s,n)]}})})},t.prototype._addTokenToConfig=function(t){return iQ(this,void 0,void 0,function(){var e,i;return iJ(this,function(n){switch(n.label){case 0:return e=this._resolveToken(t),[4,i5.GetValidToken(e)];case 1:return i=n.sent(),t.headers||(t.headers={}),t.headers.Authorization="Bearer ".concat(i),[2,t]}})})},t.prototype._resolveToken=function(t){var e;return e=t.accessToken?t.accessToken:t.impersonating?i5.GetImpersonationToken():i5.GetAccessToken(),delete t.accessToken,delete t.impersonating,e},t.prototype._buildRequestConfig=function(t){var e=iY.Get(),i=iW(iW({},t),{paramsSerializer:i2,adapter:e.axiosAdapter,timeout:e.timeoutInMilliseconds,headers:{"Content-Type":"application/json"}});return this._addTokenToConfig(i)},t}());new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/securityprofiles",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/securityprofiles",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/securityprofiles/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/securityprofiles/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/securityprofiles/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/securityprofiles/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/securityprofiles/".concat(t,"/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/securityprofiles/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/securityprofiles/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.SendVerificationCode=this.SendVerificationCode.bind(this),this.ResetPasswordByVerificationCode=this.ResetPasswordByVerificationCode.bind(this)}return t.prototype.SendVerificationCode=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/password/reset",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ResetPasswordByVerificationCode=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/password/reset/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/impersonationconfig",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/impersonationconfig",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/impersonationconfig/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/impersonationconfig/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/impersonationconfig/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/impersonationconfig/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.GetPublicKey=this.GetPublicKey.bind(this)}return t.prototype.GetPublicKey=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("oauth/certs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/openidconnects",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/openidconnects",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/openidconnects/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/openidconnects/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/openidconnects/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/openidconnects/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/adminusers",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/adminusers",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/adminusers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/adminusers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/adminusers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/adminusers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/usergroups",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/usergroups",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/usergroups/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/usergroups/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/usergroups/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/usergroups/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/usergroups/".concat(t,"/assignments/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListUserAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/usergroups/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveUserAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/usergroups/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/addresses",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/addresses",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/addresses/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/addresses/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/addresses/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/addresses/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.DeleteBuyerAssignment=this.DeleteBuyerAssignment.bind(this),this.DeleteSupplierAssignment=this.DeleteSupplierAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/apiclients",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/apiclients",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/apiclients/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/apiclients/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/apiclients/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/apiclients/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/apiclients/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/apiclients/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.DeleteBuyerAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(e,"/ApiClients/Assignments/").concat(t),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteSupplierAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(e,"/ApiClients/Assignments/").concat(t),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/incrementors",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/incrementors",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/incrementors/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/incrementors/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/incrementors/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/incrementors/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/locales",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/locales",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/locales/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/locales/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/locales/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/locales/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/locales/".concat(t,"/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/locales/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/locales/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/webhooks",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/webhooks",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/webhooks/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/webhooks/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/webhooks/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/webhooks/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Put=this.Put.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/xpindices",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Put=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/xpindices",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/xpindices/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListBuyerSellers=this.ListBuyerSellers.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.ListBuyerSellers=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/sellers"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.GetAccessToken=this.GetAccessToken.bind(this),this.Move=this.Move.bind(this),this.ListAcrossBuyers=this.ListAcrossBuyers.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/users"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/users"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/users/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/users/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/users/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/users/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetAccessToken=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/users/").concat(e,"/accesstoken"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Move=function(t,e,i,n,s){return void 0===n&&(n={}),void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/users/").concat(e,"/moveto/").concat(i),iW(iW({},s),{impersonating:r,params:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.ListAcrossBuyers=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/buyerusers",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}
1return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/usergroups"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/usergroups"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/usergroups/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/usergroups/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/usergroups/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/usergroups/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/usergroups/").concat(e,"/assignments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListUserAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/usergroups/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveUserAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/usergroups/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/addresses"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/addresses"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/addresses/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/addresses/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/addresses/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/addresses/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/addresses/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/addresses/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/addresses/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/costcenters"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/costcenters"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/costcenters/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/costcenters/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/costcenters/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/costcenters/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/costcenters/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/costcenters/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/costcenters/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/creditcards"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/creditcards"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/creditcards/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/creditcards/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/creditcards/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/creditcards/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/creditcards/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/creditcards/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/creditcards/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/spendingaccounts"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/spendingaccounts"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/spendingaccounts/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/spendingaccounts/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/spendingaccounts/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/spendingaccounts/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/spendingaccounts/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/spendingaccounts/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/spendingaccounts/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/approvalrules"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/buyers/".concat(t,"/approvalrules"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/approvalrules/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/buyers/".concat(t,"/approvalrules/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/buyers/".concat(t,"/approvalrules/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/buyers/".concat(t,"/approvalrules/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Get=this.Get.bind(this),this.ListEntries=this.ListEntries.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/productcollections"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/productcollections/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListEntries=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/buyers/".concat(t,"/productcollections/").concat(e,"/products"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListBuyers=this.ListBuyers.bind(this),this.SaveBuyer=this.SaveBuyer.bind(this),this.DeleteBuyer=this.DeleteBuyer.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/suppliers",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/suppliers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/suppliers/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBuyers=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/buyers"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveBuyer=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/suppliers/".concat(t,"/buyers/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBuyer=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t,"/buyers/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/users"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/suppliers/".concat(t,"/users"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/users/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/suppliers/".concat(t,"/users/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t,"/users/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/suppliers/".concat(t,"/users/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}
1return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/usergroups"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/suppliers/".concat(t,"/usergroups"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/usergroups/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/suppliers/".concat(t,"/usergroups/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t,"/usergroups/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/suppliers/".concat(t,"/usergroups/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t,"/usergroups/").concat(e,"/assignments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListUserAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/usergroups/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveUserAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/suppliers/".concat(t,"/usergroups/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/addresses"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/suppliers/".concat(t,"/addresses"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/suppliers/".concat(t,"/addresses/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/suppliers/".concat(t,"/addresses/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/suppliers/".concat(t,"/addresses/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/suppliers/".concat(t,"/addresses/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteBundleAssignment=this.DeleteBundleAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListBundleAssignments=this.ListBundleAssignments.bind(this),this.SaveBundleAssignment=this.SaveBundleAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/catalogs/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/catalogs/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBundleAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/bundleassignments/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/productassignments/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListBundleAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/bundleassignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveBundleAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/bundleassignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListProductAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/productassignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveProductAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/productassignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteBundleAssignment=this.DeleteBundleAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListBundleAssignments=this.ListBundleAssignments.bind(this),this.SaveBundleAssignment=this.SaveBundleAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}
1return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t,"/categories"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/".concat(t,"/categories"),iW(iW({},n),{data:e,impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t,"/categories/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n,s){return void 0===n&&(n={}),void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.put("/catalogs/".concat(t,"/categories/").concat(e),iW(iW({},s),{data:i,impersonating:r,params:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/categories/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n,s){return void 0===n&&(n={}),void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.patch("/catalogs/".concat(t,"/categories/").concat(e),iW(iW({},s),{data:i,impersonating:r,params:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/categories/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteBundleAssignment=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/categories/").concat(e,"/bundleassignments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/catalogs/".concat(t,"/categories/").concat(e,"/productassignments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t,"/categories/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/".concat(t,"/categories/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBundleAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t,"/categories/bundleassignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveBundleAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/".concat(t,"/categories/bundleassignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/catalogs/".concat(t,"/categories/productassignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveProductAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/catalogs/".concat(t,"/categories/productassignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListSpecs=this.ListSpecs.bind(this),this.ListSuppliers=this.ListSuppliers.bind(this),this.SaveSupplier=this.SaveSupplier.bind(this),this.RemoveSupplier=this.RemoveSupplier.bind(this),this.ListVariants=this.ListVariants.bind(this),this.GetVariant=this.GetVariant.bind(this),this.SaveVariant=this.SaveVariant.bind(this),this.PatchVariant=this.PatchVariant.bind(this),this.GenerateVariants=this.GenerateVariants.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/products",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/products",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/products/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/products/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/assignments/").concat(e),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListSpecs=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/specs"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSuppliers=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/suppliers"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveSupplier=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/products/".concat(t,"/suppliers/").concat(e),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RemoveSupplier=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/suppliers/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariants=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/variants"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetVariant=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/variants/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveVariant=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/products/".concat(t,"/variants/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchVariant=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/products/".concat(t,"/variants/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GenerateVariants=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/products/".concat(t,"/variants/generate"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/products/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/products/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SavePriceBreak=this.SavePriceBreak.bind(this),this.DeletePriceBreak=this.DeletePriceBreak.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/priceschedules",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/priceschedules",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/priceschedules/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/priceschedules/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/priceschedules/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/priceschedules/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SavePriceBreak=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/priceschedules/".concat(t,"/PriceBreaks"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeletePriceBreak=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/priceschedules/".concat(t,"/PriceBreaks"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListOptions=this.ListOptions.bind(this),this.CreateOption=this.CreateOption.bind(this),this.GetOption=this.GetOption.bind(this),this.SaveOption=this.SaveOption.bind(this),this.DeleteOption=this.DeleteOption.bind(this),this.PatchOption=this.PatchOption.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/specs",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/specs",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/specs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/specs/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/specs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/specs/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListOptions=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/specs/".concat(t,"/options"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateOption=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/specs/".concat(t,"/options"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetOption=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/specs/".concat(t,"/options/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveOption=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/specs/".concat(t,"/options/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteOption=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/specs/".concat(t,"/options/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchOption=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/specs/".concat(t,"/options/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/specs/".concat(t,"/productassignments/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/specs/productassignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveProductAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/specs/productassignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/productfacets",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/productfacets",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/productfacets/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/productfacets/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/productfacets/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/productfacets/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListVariant=this.ListVariant.bind(this),this.CreateVariant=this.CreateVariant.bind(this),this.GetVariant=this.GetVariant.bind(this),this.SaveVariant=this.SaveVariant.bind(this),this.DeleteVariant=this.DeleteVariant.bind(this),this.PatchVariant=this.PatchVariant.bind(this),this.DeleteVariantAssignment=this.DeleteVariantAssignment.bind(this),this.ListVariantAssignments=this.ListVariantAssignments.bind(this),this.SaveVariantAssignment=this.SaveVariantAssignment.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/inventoryrecords"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/products/".concat(t,"/inventoryrecords"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/inventoryrecords/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/products/".concat(t,"/inventoryrecords/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/inventoryrecords/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/products/".concat(t,"/inventoryrecords/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/inventoryrecords/").concat(e,"/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/inventoryrecords/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/products/".concat(t,"/inventoryrecords/assignments"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariant=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.CreateVariant=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetVariant=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SaveVariant=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.put("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteVariant=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchVariant=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.patch("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteVariantAssignment=function(t,e,i,n,s){return void 0===n&&(n={}),void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.delete("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/").concat(i,"/assignments"),iW(iW({},s),{impersonating:r,params:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})}
1,t.prototype.ListVariantAssignments=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/assignments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SaveVariantAssignment=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/products/".concat(t,"/variants/").concat(e,"/inventoryrecords/assignments"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/bundles",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/bundles",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/bundles/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/bundles/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/bundles/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/bundles/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/bundles/".concat(t,"/assignments/").concat(e),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.DeleteProductAssignment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/bundles/".concat(t,"/productassignments/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/bundles/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/bundles/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListProductAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/bundles/productassignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveProductAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/bundles/productassignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ApplyPromotions=this.ApplyPromotions.bind(this),this.ListApprovals=this.ListApprovals.bind(this),this.Approve=this.Approve.bind(this),this.SetBillingAddress=this.SetBillingAddress.bind(this),this.PatchBillingAddress=this.PatchBillingAddress.bind(this),this.Cancel=this.Cancel.bind(this),this.Complete=this.Complete.bind(this),this.Decline=this.Decline.bind(this),this.ListEligibleApprovers=this.ListEligibleApprovers.bind(this),this.ListEligiblePromotions=this.ListEligiblePromotions.bind(this),this.Forward=this.Forward.bind(this),this.PatchFromUser=this.PatchFromUser.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.AddPromotion=this.AddPromotion.bind(this),this.RemovePromotion=this.RemovePromotion.bind(this),this.Ship=this.Ship.bind(this),this.ListShipments=this.ListShipments.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this),this.Split=this.Split.bind(this),this.Submit=this.Submit.bind(this),this.Validate=this.Validate.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/orders/".concat(t,"/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ApplyPromotions=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/applypromotions"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListApprovals=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/approvals"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Approve=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/approve"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetBillingAddress=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/orders/".concat(t,"/").concat(e,"/billto"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchBillingAddress=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/billto"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Cancel=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/cancel"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Complete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/complete"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Decline=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/decline"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.ListEligibleApprovers=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/eligibleapprovers"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListEligiblePromotions=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/eligiblepromotions"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Forward=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/forward"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchFromUser=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/fromuser"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListPromotions=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/promotions"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.AddPromotion=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/promotions/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RemovePromotion=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e,"/promotions/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Ship=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/ship"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListShipments=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/shipments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetShippingAddress=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/orders/".concat(t,"/").concat(e,"/shipto"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.PatchShippingAddress=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/shipto"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Split=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/split"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Submit=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/submit"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Validate=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/validate"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SetActiveCart=this.SetActiveCart.bind(this),this.ApplyPromotions=this.ApplyPromotions.bind(this),this.SetBillingAddress=this.SetBillingAddress.bind(this),this.PatchBillingAddress=this.PatchBillingAddress.bind(this),this.CreateBundleItem=this.CreateBundleItem.bind(this),this.DeleteBundleItem=this.DeleteBundleItem.bind(this),this.Calculate=this.Calculate.bind(this),this.ListEligiblePromotions=this.ListEligiblePromotions.bind(this),this.EstimateShipping=this.EstimateShipping.bind(this),this.PatchFromUser=this.PatchFromUser.bind(this),this.ListLineItems=this.ListLineItems.bind(this),this.CreateLineItem=this.CreateLineItem.bind(this),this.GetLineItem=this.GetLineItem.bind(this),this.SaveLineItem=this.SaveLineItem.bind(this),this.DeleteLineItem=this.DeleteLineItem.bind(this),this.PatchLineItem=this.PatchLineItem.bind(this),this.ListPayments=this.ListPayments.bind(this),this.CreatePayment=this.CreatePayment.bind(this),this.GetPayment=this.GetPayment.bind(this),this.DeletePayment=this.DeletePayment.bind(this),this.PatchPayment=this.PatchPayment.bind(this),this.CreatePaymentTransaction=this.CreatePaymentTransaction.bind(this),this.DeletePaymentTransaction=this.DeletePaymentTransaction.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.AddPromotion=this.AddPromotion.bind(this),this.DeletePromotion=this.DeletePromotion.bind(this),this.SelectShipMethods=this.SelectShipMethods.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this),this.Submit=this.Submit.bind(this),this.Validate=this.Validate.bind(this),this.GetOrderWorksheet=this.GetOrderWorksheet.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/cart",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/cart",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SetActiveCart=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/cart/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ApplyPromotions=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/applypromotions",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SetBillingAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/cart/billto",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.PatchBillingAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart/billto",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.CreateBundleItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/bundles/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBundleItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart/bundles/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Calculate=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/calculate",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.ListEligiblePromotions=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/eligiblepromotions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.EstimateShipping=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/estimateshipping",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchFromUser=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart/fromuser",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListLineItems=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/lineitems",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreateLineItem=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/lineitems",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetLineItem=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/lineitems/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveLineItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/cart/lineitems/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteLineItem=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart/lineitems/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.PatchLineItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart/lineitems/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListPayments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/payments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreatePayment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/payments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetPayment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/payments/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.DeletePayment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart/payments/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.PatchPayment=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart/payments/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreatePaymentTransaction=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/payments/".concat(t,"/transactions"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeletePaymentTransaction=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart/payments/".concat(t,"/transactions/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListPromotions=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/promotions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.AddPromotion=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/promotions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.DeletePromotion=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/cart/promotions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SelectShipMethods=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/shipmethods",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SetShippingAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/cart/shipto",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.PatchShippingAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/cart/shipto",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Submit=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/submit",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Validate=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/cart/validate",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.GetOrderWorksheet=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/cart/worksheet",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.ListAcrossOrders=this.ListAcrossOrders.bind(this),this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this)}
1return t.prototype.ListAcrossOrders=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/lineitems/".concat(t),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.List=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/lineitems"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Create=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/lineitems"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Save=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.put("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Patch=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.SetShippingAddress=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.put("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i,"/shipto"),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.PatchShippingAddress=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/lineitems/").concat(i,"/shipto"),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/promotions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/promotions",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/promotions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/promotions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/promotions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/promotions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/promotions/".concat(t,"/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/promotions/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/promotions/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.CreateTransaction=this.CreateTransaction.bind(this),this.DeleteTransaction=this.DeleteTransaction.bind(this)}return t.prototype.List=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/payments"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Create=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/payments"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/payments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e,"/payments/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})}
1,t.prototype.Patch=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.patch("/orders/".concat(t,"/").concat(e,"/payments/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.CreateTransaction=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/payments/").concat(i,"/transactions"),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteTransaction=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e,"/payments/").concat(i,"/transactions/").concat(n),iW(iW({},s),{impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListItems=this.ListItems.bind(this),this.SaveItem=this.SaveItem.bind(this),this.GetItem=this.GetItem.bind(this),this.DeleteItem=this.DeleteItem.bind(this),this.SetShipFromAddress=this.SetShipFromAddress.bind(this),this.SetShipToAddress=this.SetShipToAddress.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/shipments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/shipments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/shipments/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/shipments/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/shipments/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/shipments/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListItems=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/shipments/".concat(t,"/items"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.SaveItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/shipments/".concat(t,"/items"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/shipments/".concat(t,"/items/").concat(e,"/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/shipments/".concat(t,"/items/").concat(e,"/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetShipFromAddress=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/shipments/".concat(t,"/shipfrom"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SetShipToAddress=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/shipments/".concat(t,"/shipto"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListApprovals=this.ListApprovals.bind(this),this.Approve=this.Approve.bind(this),this.Cancel=this.Cancel.bind(this),this.Complete=this.Complete.bind(this),this.Decline=this.Decline.bind(this),this.ListEligibleApprovers=this.ListEligibleApprovers.bind(this),this.DeleteItem=this.DeleteItem.bind(this),this.Submit=this.Submit.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/orderreturns",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/orderreturns/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/orderreturns/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/orderreturns/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/orderreturns/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListApprovals=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/orderreturns/".concat(t,"/approvals"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Approve=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns/".concat(t,"/approve"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Cancel=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns/".concat(t,"/cancel"),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Complete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns/".concat(t,"/complete"),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Decline=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns/".concat(t,"/decline"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListEligibleApprovers=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/orderreturns/".concat(t,"/eligibleapprovers"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/orderreturns/".concat(t,"/items/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Submit=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/orderreturns/".concat(t,"/submit"),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/approvalrules",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/approvalrules",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/approvalrules/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/approvalrules/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/approvalrules/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/approvalrules/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Create=this.Create.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.Create=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/bundles/").concat(i),iW(iW({},s),{data:n,impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,e,i,n,s){return void 0===s&&(s={}),iQ(this,void 0,void 0,function(){var r;return iJ(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,i6.delete("/orders/".concat(t,"/").concat(e,"/bundles/").concat(i,"/").concat(n),iW(iW({},s),{impersonating:r})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Create=this.Create.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.Create=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/subscriptions/".concat(t,"/bundles/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/subscriptions/".concat(t,"/bundles/").concat(e,"/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/subscriptions/".concat(t,"/items"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/subscriptions/".concat(t,"/items"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.Get=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/subscriptions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/subscriptions",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/subscriptions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/subscriptions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/subscriptions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/subscriptions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Patch=this.Patch.bind(this),this.ListAddresses=this.ListAddresses.bind(this),this.CreateAddress=this.CreateAddress.bind(this),this.GetAddress=this.GetAddress.bind(this),this.SaveAddress=this.SaveAddress.bind(this),this.DeleteAddress=this.DeleteAddress.bind(this),this.PatchAddress=this.PatchAddress.bind(this),this.ListCatalogs=this.ListCatalogs.bind(this),this.GetCatalog=this.GetCatalog.bind(this),this.ListCategories=this.ListCategories.bind(this),this.GetCategory=this.GetCategory.bind(this),this.ListCostCenters=this.ListCostCenters.bind(this),this.ListCreditCards=this.ListCreditCards.bind(this),this.CreateCreditCard=this.CreateCreditCard.bind(this),this.GetCredit
1Card=this.GetCreditCard.bind(this),this.SaveCreditCard=this.SaveCreditCard.bind(this),this.DeleteCreditCard=this.DeleteCreditCard.bind(this),this.PatchCreditCard=this.PatchCreditCard.bind(this),this.ListOrders=this.ListOrders.bind(this),this.TransferAnonUserOrder=this.TransferAnonUserOrder.bind(this),this.ListApprovableOrders=this.ListApprovableOrders.bind(this),this.ResetPasswordByToken=this.ResetPasswordByToken.bind(this),this.ListProductCollections=this.ListProductCollections.bind(this),this.CreateProductCollection=this.CreateProductCollection.bind(this),this.GetProductCollection=this.GetProductCollection.bind(this),this.SaveProductCollection=this.SaveProductCollection.bind(this),this.DeleteProductCollection=this.DeleteProductCollection.bind(this),this.PatchProductCollection=this.PatchProductCollection.bind(this),this.CreateProductCollectionEntry=this.CreateProductCollectionEntry.bind(this),this.DeleteProductCollectionEntry=this.DeleteProductCollectionEntry.bind(this),this.ListProductCollectionInvitations=this.ListProductCollectionInvitations.bind(this),this.CreateProductCollectionInvitation=this.CreateProductCollectionInvitation.bind(this),this.GetProductCollectionInvitation=this.GetProductCollectionInvitation.bind(this),this.DeleteProductCollectionInvitation=this.DeleteProductCollectionInvitation.bind(this),this.PatchProductCollectionInvitation=this.PatchProductCollectionInvitation.bind(this),this.AcceptProductCollectionInvitation=this.AcceptProductCollectionInvitation.bind(this),this.DeclineProductCollectionInvitation=this.DeclineProductCollectionInvitation.bind(this),this.ListProductCollectionEntries=this.ListProductCollectionEntries.bind(this),this.ListProducts=this.ListProducts.bind(this),this.GetProduct=this.GetProduct.bind(this),this.ListProductInventoryRecords=this.ListProductInventoryRecords.bind(this),this.ListProductSellers=this.ListProductSellers.bind(this),this.ListSpecs=this.ListSpecs.bind(this),this.GetSpec=this.GetSpec.bind(this),this.ListVariants=this.ListVariants.bind(this),this.GetVariant=this.GetVariant.bind(this),this.ListVariantInventoryRecords=this.ListVariantInventoryRecords.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.GetPromotion=this.GetPromotion.bind(this),this.Register=this.Register.bind(this),this.ListBuyerSellers=this.ListBuyerSellers.bind(this),this.ListShipments=this.ListShipments.bind(this),this.GetShipment=this.GetShipment.bind(this),this.ListShipmentItems=this.ListShipmentItems.bind(this),this.ListSpendingAccounts=this.ListSpendingAccounts.bind(this),this.GetSpendingAccount=this.GetSpendingAccount.bind(this),this.ListSubscriptions=this.ListSubscriptions.bind(this),this.CreateSubscription=this.CreateSubscription.bind(this),this.GetSubscription=this.GetSubscription.bind(this),this.SaveSubscription=this.SaveSubscription.bind(this),this.DeleteSubscription=this.DeleteSubscription.bind(this),this.PatchSubscription=this.PatchSubscription.bind(this),this.ListSubscriptionItems=this.ListSubscriptionItems.bind(this),this.CreateSubscriptionItem=this.CreateSubscriptionItem.bind(this),this.GetSubscriptionItem=this.GetSubscriptionItem.bind(this),this.SaveSubscriptionItem=this.SaveSubscriptionItem.bind(this),this.DeleteSubscriptionItem=this.DeleteSubscriptionItem.bind(this),this.PatchSubscriptionItem=this.PatchSubscriptionItem.bind(this),this.CreateSubscriptionBundleItem=this.CreateSubscriptionBundleItem.bind(this),this.DeleteSubscriptionBundleItem=this.DeleteSubscriptionBundleItem.bind(this),this.ListUserGroups=this.ListUserGroups.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/me",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/me",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/me",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListAddresses=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/addresses",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreateAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/me/addresses",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/addresses/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.SaveAddress=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/addresses/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAddress=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/addresses/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.PatchAddress=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/addresses/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListCatalogs=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/catalogs",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetCatalog=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/catalogs/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListCategories=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/categories",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetCategory=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/categories/".concat(t),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListCostCenters=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/costcenters",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListCreditCards=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/creditcards",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreateCreditCard=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/me/creditcards",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetCreditCard=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/creditcards/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.SaveCreditCard=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/creditcards/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteCreditCard=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/creditcards/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.PatchCreditCard=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/creditcards/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListOrders=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/orders",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.TransferAnonUserOrder=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/me/orders",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListApprovableOrders=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/orders/approvable",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ResetPasswordByToken=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/me/password",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListProductCollections=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/productcollections",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreateProductCollection=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/me/productcollections",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetProductCollection=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/productcollections/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveProductCollection=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/productcollections/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollection=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/productcollections/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.PatchProductCollection=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/productcollections/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateProductCollectionEntry=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/productcollections/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollectionEntry=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/productcollections/".concat(t,"/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductCollectionInvitations=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/productcollections/".concat(t,"/invitations"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateProductCollectionInvitation=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/me/productcollections/".concat(t,"/invitations"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetProductCollectionInvitation=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/productcollections/".concat(t,"/invitations/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollectionInvitation=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/productcollections/".concat(t,"/invitations/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchProductCollectionInvitation=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/productcollections/".concat(t,"/invitations/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.AcceptProductCollectionInvitation=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/me/productcollections/".concat(t,"/invitations/accept/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeclineProductCollectionInvitation=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/me/productcollections/".concat(t,"/invitations/decline/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.ListProductCollectionEntries=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/productcollections/".concat(t,"/products"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProducts=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetProduct=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductInventoryRecords=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/inventoryrecords"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductSellers=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/sellers"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSpecs=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/specs"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetSpec=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/specs/").concat(e),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListVariants=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/variants"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetVariant=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/variants/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariantInventoryRecords=function(t,e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.get("/me/products/".concat(t,"/variants/").concat(e,"/inventoryrecords"),iW(iW({},n),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListPromotions=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/promotions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetPromotion=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/promotions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Register=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/register",iW(iW({},i),{data:t,impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBuyerSellers=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/sellers",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListShipments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/shipments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetShipment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/shipments/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListShipmentItems=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/shipments/".concat(t,"/items"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSpendingAccounts=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/spendingAccounts",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetSpendingAccount=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/spendingaccounts/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListSubscriptions=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/subscriptions",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.CreateSubscription=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/me/subscriptions",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.GetSubscription=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/subscriptions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveSubscription=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/me/subscriptions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteSubscription=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/subscriptions/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.PatchSubscription=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/subscriptions/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSubscriptionItems=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/subscriptions/".concat(t,"/items"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateSubscriptionItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/me/subscriptions/".concat(t,"/items"),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetSubscriptionItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/me/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveSubscriptionItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.put("/me/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteSubscriptionItem=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchSubscriptionItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.patch("/me/subscriptions/".concat(t,"/items/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.CreateSubscriptionBundleItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/me/subscriptions/".concat(t,"/items/bundles/").concat(e),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteSubscriptionBundleItem=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.delete("/me/subscriptions/".concat(t,"/items/bundles/").concat(e,"/").concat(i),iW(iW({},n),{impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListUserGroups=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/me/usergroups",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/trackingEvents",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/integrations/trackingEvents",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/trackingEvents/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/trackingEvents/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/trackingEvents/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/trackingEvents/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/deliveryconfig",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/integrations/deliveryconfig",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/deliveryconfig/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/deliveryconfig/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/deliveryconfig/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/deliveryconfig/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.Validate=this.Validate.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/ErrorConfig",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/ErrorConfig",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/ErrorConfig",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/ErrorConfig",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Validate=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.post("/integrations/ErrorConfig/validate",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.Calculate=this.Calculate.bind(this),this.EstimateShipping=this.EstimateShipping.bind(this),this.SelectShipmethods=this.SelectShipmethods.bind(this),this.GetWorksheet=this.GetWorksheet.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrationEvents",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/integrationEvents",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/integrationEvents/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/integrationEvents/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrationEvents/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrationEvents/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Calculate=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/calculate"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.EstimateShipping=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/estimateshipping"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SelectShipmethods=function(t,e,i,n){return void 0===n&&(n={}),iQ(this,void 0,void 0,function(){var s;return iJ(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,i6.post("/orders/".concat(t,"/").concat(e,"/shipmethods"),iW(iW({},n),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetWorksheet=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.get("/orders/".concat(t,"/").concat(e,"/worksheet"),iW(iW({},i),{impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListCCListenerAssignments=this.ListCCListenerAssignments.bind(this),this.SaveCCListenerAssignment=this.SaveCCListenerAssignment.bind(this)}return t.prototype.List=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/messagesenders",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Create=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/messagesenders",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Get=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/messagesenders/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})}
1,t.prototype.Save=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.put("/messagesenders/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.delete("/messagesenders/".concat(t),iW(iW({},e),{impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Patch=function(t,e,i){return void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.patch("/messagesenders/".concat(t),iW(iW({},i),{data:e,impersonating:n})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,e,i){return void 0===e&&(e={}),void 0===i&&(i={}),iQ(this,void 0,void 0,function(){var n;return iJ(this,function(s){switch(s.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,i6.delete("/messagesenders/".concat(t,"/assignments"),iW(iW({},i),{impersonating:n,params:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/messagesenders/assignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/messagesenders/assignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.ListCCListenerAssignments=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.get("/messagesenders/CCListenerAssignments",iW(iW({},e),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.SaveCCListenerAssignment=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.post("/messagesenders/CCListenerAssignments",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/OrderSync",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/OrderSync",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/OrderSync",iW
1(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/OrderSync",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/productsync",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/productsync",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/productsync",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/productsync",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("/integrations/subscription",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.put("/integrations/subscription",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.delete("/integrations/subscription",iW(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,e){return void 0===e&&(e={}),iQ(this,void 0,void 0,function(){var i;return iJ(this,function(n){switch(n.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,i6.patch("/integrations/subscription",iW(iW({},e),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,n.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),new(function(){function t(){this.impersonating=!1,this.GetToken=this.GetToken.bind(this)}return t.prototype.GetToken=function(t){return void 0===t&&(t={}),iQ(this,void 0,void 0,function(){var e;return iJ(this,function(i){switch(i.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,i6.get("oauth/userinfo",iW
1(iW({},t),{impersonating:e})).catch(function(t){if(t.response)throw new iX(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}());let i8={sitecore:{async getAuthHeader(){let{apiKey:t}=t1();return Promise.resolve(t)}},oc:{async getAuthHeader(){let t=i5.GetIdentityToken();if(!t)throw tH.error("Could not found an Order Cloud Cloud logged user."),Error("Could not found an Order Cloud Cloud logged user.");return tH.info("Using existing Order Cloud Token."),`Bearer ${t}`}}},i9=async()=>{let{connector:t="oc"}=t1();return{"Content-Type":"application/json",Authorization:await i8[t].getAuthHeader()||""}},i7=new class{constructor(t){Object.defineProperty(this,"cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t,this.cache={},ei.RFK_CACHE||(ei.RFK_CACHE={}),ei.RFK_CACHE[t]=this.cache}hashKey(t){let e,i,n=0;for(e=0,i=t.length;e<i;e++)n=(n<<5)-n+t.charCodeAt(e)|0;return n}sortObjectKeys(t){return null==t?"":"object"!=typeof t?t:Object.keys(t).sort().reduce((e,i)=>(Array.isArray(t[i])?e[i]=t[i].map(t=>this.sortObjectKeys(t)):"object"==typeof t[i]?e[i]=this.sortObjectKeys(t[i]):e[i]=t[i],e),{})}createKey(t){let e=JSON.stringify(this.sortObjectKeys(t));return t0("debug")?(tH.debug("cache ::: createKey",t),e):String(this.hashKey(e))}has(t){return t in this.cache}get(t){return this.cache[t]}set(t,e){this.cache[t]=e}delete(t){delete this.cache[t]}all(){return this.cache}clear(){this.cache={},window.RFK_CACHE[this.name]=this.cache}getName(){return this.name}}("api-adapter"),nt={cache:!0};class ne{static async trackEvent(t){let e=nc(t),{eventUrl:i,apiKey:n}=t1();try{return(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify(e)})).json()}catch(t){return tH.error(t),tH.error("There was a problem on the service call"),t.message||null}}static async callApiWithoutCache(t,e){try{let i=await fetch(t,e),n=await i.json();return Promise.resolve(n)}catch(t){return tH.error(t),tH.error("There was a problem on the service call"),t.message||null}}static async callApiWithCache(t,e){let i=i7.createKey(e);if(i7.has(i))return i7.get(i);let n=await ne.callApiWithoutCache(t,e);return i7.set(i,n),n}static async callApi(t,e=nt){let{searchUrl:i}=t1(),n={method:"POST",headers:await i9(),body:JSON.stringify(t),signal:e.signal};return e.cache?ne.callApiWithCache(i,n):ne.callApiWithoutCache(i,n)}static clearCache(){i7.clear()}}let ni=async t=>{let{trackConsent:e}=t1();if(tH.debug("trackEvent ",`Consent: ${e} `,nc(t)),!e)return;let i={...t,...ee(),client_time_ms:Date.now()};return tH.debug("trackEvent","Sending: ",JSON.stringify(i,null,4)),await ne.trackEvent(i)},nn=t=>!t.find(({id:t,entity_type:e})=>tj(t)||tj(e)),ns=(t,e)=>e.map(({id:e,entitySubtype:i,attributes:n,variant:s,uri:r,sourceId:o})=>({id:e,entity_type:t,...i?{entity_subtype:i}:{},...n&&!tq(n)?{attributes:n}:{},...s?{variant:s}:{},...r?{uri:r}:{},...o?{source_id:o}:{}})),nr=(t,e,i,n)=>({order_id:t,...e?{order_total:e}:{},...i?{order_subtotal:i}:{},...n?{coupon:n}:{}}),no=({keyword:t,advancedQueryText:e,modifiedKeyword:i,numResults:n,totalResults:s,numRequested:r,pageSize:o,pageNumber:a,redirectUrl:c})=>({...t?{keyword:t}:{keyword:""},...e?{advanced_query_text:e}:{},...i?{modified_keyword:i}:{},...n?{num_results:n}:{},...s?{total_results:s}:{},...r?{num_requested:r}:{},...o?{page_size:o}:{},...a?{page_number:a}:{},...c?{redirect_url:c}:{}}),na=t=>t.map(({name:t,title:e,value:i,displayName:n,uri:s})=>({name:t,title:e,...i?{value:[i]}:{},...n?{display_name:[n]}:{},...s?{uri:[s]}:{}}));function nc(t){let e={};for(let i in t){let n=t[i];if(null!=n&&("object"!=typeof n||0!==Object.keys(n).length||Array.isArray(n))&&void 0!==n){if(Array.isArray(n)){let t=[];for(let e=0;e<n.length;e++){let i=n[e];if(null!=i&&("object"!=typeof i||0!==Object.keys(i).length||Array.isArray(i))){if("object"==typeof i){let e=nc(i);(Object.keys(e).length>0||Array.isArray(e))&&t.push(e)}else t.push(i)}}t.length>0&&(e[i]=t)}else if("object"==typeof n&&Object.keys(n).length>0){let t=nc(n);(Object.keys(t).length>0||Array.isArray(t))&&(e[i]=t)}else e[i]=n}}return e}let nu=async(t,e,{review:i,transaction:n,items:s,customAttributes:r,actionSubtype:o})=>{if(!e)return void tH.warn("trackEvent :::","Event name is not defined");let a=[];return t&&s&&(a=ns(t,s)),ni({name:e,action:"add",action_sub_type:o,value:{entities:a,transaction:n,review:i,custom_attributes:r,context:tN.toJson()}})};(E=q||(q={})).LOAD="core/LOAD",E.UNLOAD="core/UNLOAD",E.REQUEST="core/REQUEST",E.REQUEST_SUCCESS="core/REQUEST_SUCCESS",E.REQUEST_FAIL="core/REQUEST_FAIL",E.REQUEST_CANCELED="core/REQUEST_CANCELED",E.WIDGET_DATA_REQUEST="core/WIDGET_DATA_REQUEST",E.WIDGET_DATA_REQUEST_SUCCESS="core/WIDGET_DATA_REQUEST_SUCCESS",E.WIDGET_DATA_REQUEST_FAIL="core/WIDGET_DATA_REQUEST_FAIL",E.WIDGET_DATA_REQUEST_CANCELED="core/WIDGET_DATA_REQUEST_CANCELED",E.WIDGET_STATE_CHANGED="core/WIDGET_STATE_CHANGED",E.WIDGET_APPEAR="core/WIDGET_APPEAR",E.PAGE_CONTAINER_READY="core/PAGE_CONTAINER_READY",E.WIDGET_READY="core/WIDGET_READY",E.INITIALIZE="core/INITIALIZE",E.INITIALIZED="core/INITIALIZED",E.RESET_WIDGET="core/RESET_WIDGET",E.PAGE_CONTEXT_CHANGED="core/PAGE_CONTEXT_CHANGED",E.OC_CONTEXT_CHANGED="core/OC_CONTEXT_CHANGED",E.FOUND_WIDGETS="core/FOUND_WIDGETS",E.ADD_TO_CART="core/interaction/ADD_TO_CART",E.ORDER_CONFIRM="core/interaction/ORDER_CONFIRM",E.USER_LOGIN="core/interaction/USER_LOGIN",E.ADD_TO_WISHLIST="core/interaction/ADD_TO_WISHLIST",E.CART_STATUS="core/interaction/CART_STATUS",E.ITEM_CLICKED="core/interaction/ITEM_CLICKED",E.PAGE_WIDGETS_DATA_REQUEST="core/PAGE_WIDGETS_DATA_REQUEST",E.PAGE_WIDGETS_DATA_REQUEST_SUCCESS="core/PAGE_WIDGETS_DATA_REQUEST_SUCCESS",E.PAGE_WIDGETS_DATA_REQUEST_FAIL="core/PAGE_WIDGETS_DATA_REQUEST_FAIL",E.PAGE_WIDGETS_DATA_REQUEST_CANCELED="core/PAGE_WIDGETS_DATA_REQUEST_CANCELED";let nh=q,nl=[],np=[];class nd{static addActionHandler(t){nl.push(t)}static removeActionHandler(t){let e=np.indexOf(t);-1!==e&&np.splice(e,1)}static subscribe(t){nl.push(t)}static unsubscribe(t){let e=nl.indexOf(t);-1!==e&&nl.splice(e,1)}static dispatch(t){tH.debug("dispatcher ::: dispatch",`[${t.type}
1]`,t.payload),nl.forEach(e=>{e.handleAction(t)}),np.forEach(e=>{e.handleAction(t)})}}let nf=(t,e)=>`${t}${e?`@${e}`:""}`,nm={widgetTypesConfigMapping:{},widgetsConfigMapping:{},setWidgetType(t,e){tp(this.widgetTypesConfigMapping,{[t]:e},{mutate:!0})},getType(t){let{type:e}=this.widgetsConfigMapping[nf(t)]||{};return e},set(t,e,i){"string"==typeof e?this.widgetsConfigMapping[nf(t,e)]=i:this.widgetsConfigMapping[nf(t)]=e},update(t,e,i){tp("string"==typeof e?this.getOrCreate(t,e):this.getOrCreate(t),i,{mutate:!0})},get(t,e){let i=this.widgetsConfigMapping[nf(t,e)],n=this.widgetsConfigMapping[nf(t)];if(!n&&!i)return;let s=tp(n||{},i||{}),{component:r,options:o}=this.getForType(t)||{},{component:a=r,options:c}=s;return{...s,component:a,options:c?tp(o||{},c):o}},getWidgetIds(){return Object.keys(this.widgetsConfigMapping)},getByType(t){return this.widgetTypesConfigMapping[t]||void 0},getForType(t){let e=this.getType(t);return e?this.getByType(e):void 0},getOrCreate(t,e){return this.widgetsConfigMapping[nf(t,e)]||(this.widgetsConfigMapping[nf(t,e)]={}),this.widgetsConfigMapping[nf(t,e)]},getMetadata(t){let{metadata:e}=this.widgetsConfigMapping[nf(t)]||{};return e},setMetadata(t,e){Object.assign(this.getOrCreate(t),{metadata:e}),this.setType(t,e.type)},updateMetadata(t,e){tp(this.getOrCreate(t),{metadata:e},{mutate:!0}),this.setType(t,e.type)},setType(t,e){this.getType(t)||Object.assign(this.getOrCreate(t),{type:e})}};class nv{constructor(){Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}register(t){nd.subscribe(t)}unregister(t){nd.unsubscribe(t)}getDispatcher(){return nd}initialize(){this.initialized=!0,nd.dispatch({type:nh.INITIALIZED,payload:{}})}}let ng=new class extends nv{constructor(){super(),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.setContext(tN.get()),nd.subscribe(this)}getContext(){return this.context}setContext(t){this.context=t,this.context.addListener(this)}toggleTrackConsent(t){t?this.context.setUserUuid(ee().uuid):(t8.remove("__ruid"),t8.remove("__rutma"),t8.remove("__rutmb"),t8.remove("__ec"),tZ.trackConsent=!1)}handleAction(t){switch(t.type){case nh.INITIALIZE:this.initialize();break;case nh.ADD_TO_CART:{let{entity:e,items:i}=t.payload;(async(t,e)=>{nu(t,"cart",e)})(e,{items:i});break}case nh.ADD_TO_WISHLIST:{let{entity:e,items:i}=t.payload;(async(t,e)=>{nu(t,"wishlist",e)})(e,{items:i});break}case nh.USER_LOGIN:{let{id:e,email:i}=t.payload;(async t=>{if(!t||tq(t))return void tH.warn("trackEvent :::","User information is empty or not complete");ni({action:"identify",name:"login",action_sub_type:void 0,value:{context:tp(tN.toJson(),{user:{...t.id?{cuid:t.id}:{},...t.email?{email:t.email}:{}}})}})})({id:e,email:i});break}case nh.CART_STATUS:{let{entity:e,items:i}=t.payload;(async(t,{items:e,actionSubtype:i})=>{let n=[];if(t&&e&&(n=ns(t,e))&&!nn(n))return void tH.warn("trackEvent :::","A field is missing on one or more of the items provided");ni({action:"view",name:"cart",action_sub_type:i,value:{entities:n,context:tN.toJson()}})})(e,{items:i});break}case nh.ORDER_CONFIRM:{let{entity:e,items:i,orderId:n,orderTotal:s,orderSubtotal:r,coupon:o}=t.payload;(async(t,e)=>{let{orderId:i,orderTotal:n,orderSubtotal:s,coupon:r,items:o,actionSubtype:a}=e;if(!tj(i))return nu(t,"order_confirm",{items:o,transaction:nr(i,n,s,r),actionSubtype:a});tH.warn("trackEvent :::","Transaction orderId is not defined")})(e,{orderId:n,orderTotal:s,orderSubtotal:r,coupon:o,items:i});break}case nh.WIDGET_APPEAR:{let{rfkId:e,entity:i}=t.payload;(async(t,e,{request:i,items:n}={})=>{let s=[];if(e&&n&&(s=ns(e,n))&&!nn(s))return void tH.warn("trackEvent :::","A field is missing on one or more of the items provided");ni({action:"view",name:"widget",value:{rfk_id:t,request:i,entities:s,context:tN.toJson()}})})(e,i)}}}onChange(t,e,i){this.initialized&&nd.dispatch({type:nh.PAGE_CONTEXT_CHANGED,payload:{context:this.context}})}},nw=null,nb=async(t,e)=>{if(!nw)return Promise.reject(Error("No data processor configured"));try{let i=await ne.callApi(t,{cache:!1,...e}),n=nw.validateResponse(i,t);return n?Promise.reject(n):Promise.resolve(nw.processResponse(i,t))}catch(t){return Promise.reject(t)}},ny=t=>{nw=t};class nS{validateResponse(t,e){return t&&(t.errors||[]).length>0?t:null}processResponse(t,e){return t}}let nE=(t,{processor:e=new nS}={})=>{let i;i=tZ,"useToken"in t&&void 0!==t.useToken&&tH.warn('Parameter "useToken" has been deprecated'),tZ=t.customerKey?tY(i,t):tQ(i,t);
1let{useStorage:n=!1}=t;t8.init(n),e&&ny(e)};class nC extends nS{processResponse(t){return t.widgets?.forEach(({rfk_id:t,type:e,variation_id:i,used_in:n})=>{nm.setMetadata(t,{rfkId:t,type:e,variationId:i,usedIn:n})}),t}}let nA=!1,nT=()=>{nA||((()=>{let{trackConsent:t}=t1();ng.toggleTrackConsent(t),ng.getContext().setBrowserUserAgent(tU({navigator:{userAgent:""}}).navigator.userAgent)})(),nA=!0,ng.getDispatcher().dispatch({type:nh.INITIALIZE,payload:{options:{}}}))},nP="undefined"==typeof window||"Deno"in window;function nL(){}function nO(t){return"number"==typeof t&&t>=0&&t!==1/0}function nx(t,e){return Math.max(t+(e||0)-Date.now(),0)}function nD(t,e,i){return nU(t)?"function"==typeof e?{...i,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function n_(t,e,i){return nU(t)?[{...e,queryKey:t},i]:[t||{},e]}function nI(t,e){let{type:i="all",exact:n,fetchStatus:s,predicate:r,queryKey:o,stale:a}=t;if(nU(o)){if(n){if(e.queryHash!==nR(o,e.options))return!1}else{if(!nM(e.queryKey,o))return!1}}if("all"!==i){let t=e.isActive();if("active"===i&&!t||"inactive"===i&&t)return!1}return!("boolean"==typeof a&&e.isStale()!==a||void 0!==s&&s!==e.state.fetchStatus||r&&!r(e))}function nk(t,e){let{exact:i,fetching:n,predicate:s,mutationKey:r}=t;if(nU(r)){if(!e.options.mutationKey)return!1;if(i){if(nG(e.options.mutationKey)!==nG(r))return!1}else{if(!nM(e.options.mutationKey,r))return!1}}return!("boolean"==typeof n&&"loading"===e.state.status!==n||s&&!s(e))}function nR(t,e){return((null==e?void 0:e.queryKeyHashFn)||nG)(t)}function nG(t){return JSON.stringify(t,(t,e)=>nj(e)?Object.keys(e).sort().reduce((t,i)=>(t[i]=e[i],t),{}):e)}function nM(t,e){return t===e||typeof t==typeof e&&!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some(i=>!nM(t[i],e[i]))}function nN(t,e){if(t&&!e||e&&!t)return!1;for(let i in t)if(t[i]!==e[i])return!1;return!0}function nq(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function nj(t){if(!nF(t))return!1;let e=t.constructor;if(void 0===e)return!0;let i=e.prototype;return!!nF(i)&&!!i.hasOwnProperty("isPrototypeOf")}function nF(t){return"[object Object]"===Object.prototype.toString.call(t)}function nU(t){return Array.isArray(t)}function nB(t){return new Promise(e=>{setTimeout(e,t)})}function nV(t){nB(0).then(t)}function nz(t,e,i){return null!=i.isDataEqual&&i.isDataEqual(t,e)?t:"function"==typeof i.structuralSharing?i.structuralSharing(t,e):!1!==i.structuralSharing?function t(e,i){if(e===i)return e;let n=nq(e)&&nq(i);if(n||nj(e)&&nj(i)){let s=n?e.length:Object.keys(e).length,r=n?i:Object.keys(i),o=r.length,a=n?[]:{},c=0;for(let s=0;s<o;s++){let o=n?s:r[s];a[o]=t(e[o],i[o]),a[o]===e[o]&&c++}return s===o&&c===s?e:a}return i}(t,e):e}let nH=console,nK=function(){let t=[],e=0,i=t=>{t()},n=t=>{t()},s=n=>{e?t.push(n):nV(()=>{i(n)})};return{batch:s=>{let r;e++;try{r=s()}finally{--e||(()=>{let e=t;t=[],e.length&&nV(()=>{n(()=>{e.forEach(t=>{i(t)})})})})()}return r},batchCalls:t=>(...e)=>{s(()=>{t(...e)})},schedule:s,setNotifyFunction:t=>{i=t},setBatchNotifyFunction:t=>{n=t}}}();class n${constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let nW=new class extends n${constructor(){super(),this.setup=t=>{if(!nP&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},nQ=["online","offline"],nJ=new class extends n${constructor(){super(),this.setup=t=>{if(!nP&&window.addEventListener){let e=()=>t();
1return nQ.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{nQ.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function nY(t){return Math.min(1e3*2**t,3e4)}function nX(t){return"online"!==(null!=t?t:"online")||nJ.isOnline()}class nZ{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function n0(t){return t instanceof nZ}function n1(t){let e,i,n,s=!1,r=0,o=!1,a=new Promise((t,e)=>{i=t,n=e}),c=()=>!nW.isFocused()||"always"!==t.networkMode&&!nJ.isOnline(),u=n=>{o||(o=!0,null==t.onSuccess||t.onSuccess(n),null==e||e(),i(n))},h=i=>{o||(o=!0,null==t.onError||t.onError(i),null==e||e(),n(i))},l=()=>new Promise(i=>{e=t=>{let e=o||!c();return e&&i(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,o||null==t.onContinue||t.onContinue()}),p=()=>{let e;if(!o){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(u).catch(e=>{var i,n;if(o)return;let a=null!=(i=t.retry)?i:3,u=null!=(n=t.retryDelay)?n:nY,d="function"==typeof u?u(r,e):u,f=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,e);!s&&f?(r++,null==t.onFail||t.onFail(r,e),nB(d).then(()=>{if(c())return l()}).then(()=>{s?h(e):p()})):h(e)})}};return nX(t.networkMode)?p():l().then(p),{promise:a,cancel:e=>{o||(h(new nZ(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1}}}class n2{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nO(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:nP?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class n4 extends n2{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||nH,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,i=void 0!==e,n=i?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let i=nz(this.state.data,t,this.options);return this.dispatch({data:i,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),i}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let i=this.promise;return null==(e=this.retryer)||e.cancel(t),i?i.then(nL).catch(nL):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!nx(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>
1e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var i,n,s,r;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(s=this.retryer)||s.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let o=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};c(a);let u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};c(u),null==(i=this.options.behavior)||i.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=u.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(r=u.fetchOptions)?void 0:r.meta});let h=t=>{var e,i,n,s;n0(t)&&t.silent||this.dispatch({type:"error",error:t}),n0(t)||(null==(e=(i=this.cache.config).onError)||e.call(i,t,this),null==(n=(s=this.cache.config).onSettled)||n.call(s,this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=n1({fn:u.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:t=>{var e,i,n,s;void 0!==t?(this.setData(t),null==(e=(i=this.cache.config).onSuccess)||e.call(i,t,this),null==(n=(s=this.cache.config).onSettled)||n.call(s,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):h(Error(this.queryHash+" data is undefined"))},onError:h,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){this.state=(e=>{var i,n;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(i=t.meta)?i:null,fetchStatus:nX(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(n=t.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let s=t.error;return n0(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...e,error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),nK.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class n3 extends n${constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,i){var n;let s=e.queryKey,r=null!=(n=e.queryHash)?n:nR(s,e),o=this.get(r);return o||(o=new n4({cache:this,logger:t.getLogger(),queryKey:s,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];
1e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){nK.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[i]=n_(t,e);return void 0===i.exact&&(i.exact=!0),this.queries.find(t=>nI(i,t))}findAll(t,e){let[i]=n_(t,e);return Object.keys(i).length>0?this.queries.filter(t=>nI(i,t)):this.queries}notify(t){nK.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){nK.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){nK.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class n5 extends n2{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||nH,this.observers=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,i,n,s,r,o,a,c,u,h,l,p,d,f,m,v,g,w,b;let y="loading"===this.state.status;try{if(!y){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(u=this.mutationCache.config).onMutate)?void 0:c.call(u,this.state.variables,this));let t=await (null==(h=(l=this.options).onMutate)?void 0:h.call(l,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let p=await (()=>{var t;return this.retryer=n1({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,p,this.state.variables,this.state.context,this)),await (null==(i=(n=this.options).onSuccess)?void 0:i.call(n,p,this.state.variables,this.state.context)),await (null==(s=(r=this.mutationCache.config).onSettled)?void 0:s.call(r,p,null,this.state.variables,this.state.context,this)),await (null==(o=(a=this.options).onSettled)?void 0:o.call(a,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(t){try{throw await (null==(p=(d=this.mutationCache.config).onError)?void 0:p.call(d,t,this.state.variables,this.state.context,this)),await (null==(f=(m=this.options).onError)?void 0:f.call(m,t,this.state.variables,this.state.context)),await (null==(v=(g=this.mutationCache.config).onSettled)?void 0:v.call(g,void 0,t,this.state.variables,this.state.context,this)),await (null==(w=(b=this.options).onSettled)?void 0:w.call(b,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!nX(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPau
1sed:!1,status:"error"};case"setState":return{...e,...t.state}}})(this.state),nK.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}class n6 extends n${constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,i){let n=new n5({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:i,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(n),n}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){nK.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>nk(t,e))}findAll(t){return this.mutations.filter(e=>nk(t,e))}notify(t){nK.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>
1t.state.isPaused);return nK.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(nL)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function n8(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}class n9{constructor(t={}){this.queryCache=t.queryCache||new n3,this.mutationCache=t.mutationCache||new n6,this.logger=t.logger||nH,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=nW.subscribe(()=>{nW.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=nJ.subscribe(()=>{nJ.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[i]=n_(t,e);return i.fetchStatus="fetching",this.queryCache.findAll(i).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var i;return null==(i=this.queryCache.find(t,e))?void 0:i.state.data}ensureQueryData(t,e,i){let n=nD(t,e,i),s=this.getQueryData(n.queryKey);return s?Promise.resolve(s):this.fetchQuery(n)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,i){var n;let s=this.queryCache.find(t),r=(n=null==s?void 0:s.state.data,"function"==typeof e?e(n):e);if(void 0===r)return;let o=nD(t),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(r,{...i,manual:!0})}setQueriesData(t,e,i){return nK.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t,e){var i;return null==(i=this.queryCache.find(t,e))?void 0:i.state}removeQueries(t,e){let[i]=n_(t,e),n=this.queryCache;nK.batch(()=>{n.findAll(i).forEach(t=>{n.remove(t)})})}resetQueries(t,e,i){let[n,s]=n_(t,e,i),r=this.queryCache,o={type:"active",...n};return nK.batch(()=>(r.findAll(n).forEach(t=>{t.reset()}),this.refetchQueries(o,s)))}cancelQueries(t,e,i){let[n,s={}]=n_(t,e,i);return void 0===s.revert&&(s.revert=!0),Promise.all(nK.batch(()=>this.queryCache.findAll(n).map(t=>t.cancel(s)))).then(nL).catch(nL)}invalidateQueries(t,e,i){let[n,s]=n_(t,e,i);return nK.batch(()=>{var t,e;if(this.queryCache.findAll(n).forEach(t=>{t.invalidate()}),"none"===n.refetchType)return Promise.resolve();let i={...n,type:null!=(t=null!=(e=n.refetchType)?e:n.type)?t:"active"};return this.refetchQueries(i,s)})}refetchQueries(t,e,i){let[n,s]=n_(t,e,i),r=Promise.all(nK.batch(()=>this.queryCache.findAll(n).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...s,cancelRefetch:null==(e=null==s?void 0:s.cancelRefetch)||e,meta:{refetchPage:n.refetchPage}})}))).then(nL);return null!=s&&s.throwOnError||(r=r.catch(nL)),r}fetchQuery(t,e,i){let n=nD(t,e,i),s=this.defaultQueryOptions(n);void 0===s.retry&&(s.retry=!1);let r=this.queryCache.build(this,s);return r.isStaleByTime(s.staleTime)?r.fetch(s):Promise.resolve(r.state.data)}prefetchQuery(t,e,i){return this.fetchQuery(t,e,i).then(nL).catch(nL)}fetchInfiniteQuery(t,e,i){let n=nD(t,e,i);return n.behavior={onFetch:t=>{t.fetchFn=()=>{var e,i,n,s,r,o,a;let c;let u=null==(e=t.fetchOptions)||null==(i=e.meta)?void 0:i.refetchPage,h=null==(n=t.fetchOptions)||null==(s=n.meta)?void 0:s.fetchMore,l=null==h?void 0:h.pageParam,p="forward"===(null==h?void 0:h.direction),d="backward"===(null==h?void 0:h.direction),f=(null==(r=t.state.data)?void 0:r.pages)||[],m=(null==(o=t.state.data)?void 0:o.pageParams)||[],v=m,g=!1,w=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,i,n)=>(v=n?[e,...v]:[...v,e],n?[i,...t]:[...t,i]),y=(e,i,n,s)=>{if(g)return Promise.reject("Cancelled");if(void 0===n&&!i&&e.length)return Promise.resolve(e);let r={queryKey:t.queryKey,pageParam:n,meta:t.options.meta};return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>{var e,i;return null!=(e=t.signal)&&e.aborted?g=!0:null==(i=t.signal)||i.addEventListener("abort",()=>{g=!0}),t.signal}}),Promise.resolve(w(r)).then(t=>b(e,n,t,s))};if(f.length){if(p){let e=void 0!==l,i=e?l:n8(t.options,f);c=y(f,e,i)}else if(d){let e=void 0!==l,i=e?l:null==(a=t.options).getPreviousPageParam?void 0:a.getPreviousPageParam(f[0],f);c=y(f,e,i,!0)}else{v=[];let e=void 0===t.options.getNextPageParam;c=u&&f[0]&&!u(f[0],0,f)?Promise.resolve(b([],m[0],f[0])):y([],e,m[0]);for(let i=1;i<f.length;i++)c=c.then(n=>{if(!u||!f[i]||u(f[i],i,f)){let s=e?m[i]:n8(t.options,n);return y(n,e,s)}return Promise.resolve(b(n,m[i],f[i]))})}}else c=y([]);return c.then(t=>({pages:t,pageParams:v}))}}},this.fetchQuery(n)}prefetchInfiniteQuery(t,e,i){return this.fetchInfiniteQuery(t,e,i).then(nL).catch(nL)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let i=this.queryDefaults.find(e=>nG(t)===nG(e.queryKey));i?i.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>nM(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let i=this.mutationDefaults.find(e=>nG(t)===nG(e.mutationKey));i?i.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>nM(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=nR(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}let n7=X.createContext(void 0),st=X.createContext(!1);function se(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=n7),window.ReactQueryClientContext):n7)}let si=({context:t}={})=>{let e=X.useContext(se(t,X.useContext(st)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},sn=({client:t,children:e,context:i,contextSharing:n=!1})=>{X.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let s=se(i,n);return X.createElement(st.Provider,{value:!i&&n},X.createElement(s.Provider,{value:t},e))};class ss{constructor(){Object.defineProperty(this,"containerHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),ng.register(this)}handleAction(t){switch(t.type){case nh.PAGE_CONTAINER_READY:this.containerHandled||(this.containerHandled=this.handlePageContainerReadyAction(t.payload));break;case nh.FOUND_WIDGETS:{let{widgets:e=[]}=t.payload;e.forEach(({rfkId:t,entity:e,node:i}
1)=>{this.handleAddWidget(t,e,i)})}}}handlePageContainerReadyAction(t){return!0}handleAddWidget(t,e,i){}}let sr='[data-rfkid="rfkid_container"]',so=()=>{if(u)return;let t=document.querySelector(sr);(u=new MutationObserver(e=>{let i=[];e.forEach(e=>{e.addedNodes.forEach(e=>{let n=e.dataset.rfkid,s=e.dataset.entity;e.nodeType!==Node.ELEMENT_NODE||t&&t.contains(e)||!n||!s||i.push({rfkId:n,entity:s,node:e})})}),Object.keys(i).length>0&&ng.getDispatcher().dispatch({type:nh.FOUND_WIDGETS,payload:{widgets:i}})})).observe(document.body,{subtree:!0,childList:!0,characterData:!0})},sa={keyphrase:(t,e)=>e.keyphrase&&t.setSearchQueryKeyphrase(e.keyphrase),suggestionsList:(t,e)=>e.suggestionsList&&t.setSearchSuggestion(e.suggestionsList.map(({suggestion:t,max:e=3})=>({name:t,max:e}))),itemsPerPage:(t,e)=>t.setSearchLimit(e.itemsPerPage)};(C=j||(j={})).ITEM_CLICKED="search/ITEM_CLICKED",C.SUGGESTION_CLICKED="search/SUGGESTION_CLICKED",C.SUGGESTION_ADDED="search/SUGGESTION_ADDED",C.SUGGESTION_REMOVED="search/SUGGESTION_REMOVED",C.KEYPHRASE_CHANGED="search/KEYPHRASE_CHANGED";let sc={onItemClick:j.ITEM_CLICKED,onSuggestionClick:j.SUGGESTION_CLICKED,onSuggestionAdded:j.SUGGESTION_ADDED,onSuggestionRemoved:j.SUGGESTION_REMOVED,onKeyphraseChange:j.KEYPHRASE_CHANGED},su={itemsPerPage:(t,e)=>t.setRecommendationsLimit(e.itemsPerPage)};(A=F||(F={})).ITEM_CLICKED="recommendation/ITEM_CLICKED",A.NAVIGATION_NEXT="recommendation/NAVIGATION_NEXT",A.NAVIGATION_PREV="recommendation/NAVIGATION_PREV";let sh={onNavigationNext:F.NAVIGATION_NEXT,onNavigationPrev:F.NAVIGATION_PREV,onItemClick:F.ITEM_CLICKED},sl={keyphrase:(t,e)=>e.keyphrase&&t.setQuestionsKeyphrase(e.keyphrase),relatedQuestions:(t,e)=>e.relatedQuestions&&t.setQuestionsRelatedQuestionsLimit(e.relatedQuestions)};(U||(U={})).KEYPHRASE_CHANGED="questions/KEYPHRASE_CHANGED";let sp={onKeyphraseChanged:U.KEYPHRASE_CHANGED},sd={keyphrase:(t,e)=>e.keyphrase&&t.setSearchQueryKeyphrase(e.keyphrase),page:(t,e)=>t.setSearchOffset((e.itemsPerPage??t.getSearchLimit())*((e.page??1)-1)||0),itemsPerPage:(t,e)=>t.setSearchLimit(e.itemsPerPage),sortType:(t,e)=>t.setSearchSortCriteriaName(e.sortType)};(T=B||(B={})).FACET_CLICKED="searchResults/FACET_CLICKED",T.FILTER_CLICKED="searchResults/FILTER_CLICKED",T.REMOVE_FILTER="searchResults/REMOVE_FILTER",T.SORT_CHANGED="searchResults/SORT_CHANGED",T.PAGE_NUMBER_CHANGED="searchResults/PAGE_NUMBER_CHANGED",T.ITEM_CLICKED="searchResults/ITEM_CLICKED",T.RESULTS_PER_PAGE_CHANGED="searchResults/RESULTS_PER_PAGE_CHANGED",T.KEYPHRASE_CHANGED="searchResults/KEYPHRASE_CHANGED",T.CLEAR_FILTERS="searchResults/CLEAR_FILTERS";let sf={onKeyphraseChange:B.KEYPHRASE_CHANGED,onClearFilters:B.CLEAR_FILTERS,onResultsPerPageChange:B.RESULTS_PER_PAGE_CHANGED,onPageNumberChange:B.PAGE_NUMBER_CHANGED,onItemClick:B.ITEM_CLICKED,onSortChange:B.SORT_CHANGED,onFacetClick:B.FACET_CLICKED,onFilterClick:B.FILTER_CLICKED,onRemoveFilter:B.REMOVE_FILTER};(P=V||(V={})).DESKTOP="pc",P.MOBILE="mobile",P.TABLET="tablet",(L=z||(z={})).JS="js",L.HTML="html",L.CSS="css",(O=H||(H={})).PAGE="page",O.COMMON_ACROSS_PAGES="common_across_pages",O.DIALOG="dialog";let sm=(0,X.createContext)({}),sv=(0,X.createContext)({}),sg=()=>(0,X.useContext)(sm);
1class sw extends Error{constructor({_requestId:t,_canceled:e,...i}){super("Request canceled"),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="AbortError",this.response=i}getResponse(){return this.response}}class sb extends n${constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),sy(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sS(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sS(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let i=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),nN(i,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();let s=this.hasListeners();s&&sE(this.currentQuery,n,this.options,i)&&this.executeFetch(),this.updateResult(e),s&&(this.currentQuery!==n||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();let r=this.computeRefetchInterval();s&&(this.currentQuery!==n||this.options.enabled!==i.enabled||r!==this.currentRefetchInterval)&&this.updateRefetchInterval(r)}getOptimisticResult(t){let e=this.client.getQueryCache().build(this.client,t),i=this.createResult(e,t);return t.keepPreviousData||(void 0!==t.placeholderData?!i.isPlaceholderData:nN(this.getCurrentResult(),i))||(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(i=>{Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),t[i])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),i=this.client.getQueryCache().build(this.client,e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(nL)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),nP||this.currentResult.isStale||!nO(this.options.staleTime))return;let t=nx(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!nP&&!1!==this.options.enabled&&nO(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||nW.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let i=this.currentQuery,n=this.options,s=this.currentResult,r=this.currentResultState,o=this.currentResultOptions,a=t!==i,c=a?t.state:this.currentQueryInitialState,u=a?this.currentResult:this.previousQueryResult,{state:h}=t,l,{dataUpdatedAt:p,error:d,errorUpdatedAt:f,fetchStatus:m,status:v}=h,g=!1,w=!1;if(e._optimisticResults){let s=this.hasListeners(),r=!s&&sy(t,e),o=s&&sE(t,i,e,n);(r||o)&&(m=nX(t.options.networkMode)?"fetching":"paused",p||(v="loading")),"isRestoring"===e._optimisticResults&&(m="idle")}if(e.keepPreviousData&&!h.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==v)l=u.data,p=u.dataUpdatedAt,v=u.status,g=!0;else if(e.select&&void 0!==h.data){if(s&&h.data===(null==r?void 0:r.data)&&e.select===this.selectFn)l=this.selectResult;else try{this.selectFn=e.select,l=e.select(h.data),l=nz(null==s?void 0:s.data,l,e),this.selectResult=l,this.selectError=null}catch(t){this.selectError=t}}else l=h.data;if(void 0!==e.placeholderData&&void 0===l&&"loading"===v){let t;if(null!=s&&s.isPlaceholderData&&e.placeholderData===(null==o?void 0:o.placeholderData))t=s.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",l=nz(null==s?void 0:s.data,t,e),w=!0)}this.selectError&&(d=this.selectError,l=this.selectResult,f=Date.now(),v="error");let b="fetching"===m,y="loading"===v,S="error"===v;return{status:v,fetchStatus:m,isLoading:y,isSuccess:"success"===v,isError:S,isInitialLoading:y&&b,data:l,dataUpdatedAt:p,error:d,errorUpdatedAt:f,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdate
1Count:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!y,isLoadingError:S&&0===h.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:w,isPreviousData:g,isRefetchError:S&&0!==h.dataUpdatedAt,isStale:sC(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,nN(i,e))return;this.currentResult=i;let n={cache:!0};!1!==(null==t?void 0:t.listeners)&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,i="function"==typeof t?t():t;if("all"===i||!i&&!this.trackedProps.size)return!0;let n=new Set(null!=i?i:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&n.has(t))})()&&(n.listeners=!0),this.notify({...n,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||n0(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){nK.batch(()=>{var e,i,n,s,r,o,a,c;t.onSuccess?(null==(e=(i=this.options).onSuccess)||e.call(i,this.currentResult.data),null==(n=(s=this.options).onSettled)||n.call(s,this.currentResult.data,null)):t.onError&&(null==(r=(o=this.options).onError)||r.call(o,this.currentResult.error),null==(a=(c=this.options).onSettled)||a.call(c,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function sy(t,e){return!(!1===e.enabled||t.state.dataUpdatedAt||"error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&sS(t,e,e.refetchOnMount)}function sS(t,e,i){if(!1!==e.enabled){let n="function"==typeof i?i(t):i;return"always"===n||!1!==n&&sC(t,e)}return!1}function sE(t,e,i,n){return!1!==i.enabled&&(t!==e||!1===n.enabled)&&(!i.suspense||"error"!==t.state.status)&&sC(t,i)}function sC(t,e){return t.isStaleByTime(e.staleTime)}let sA=W(634).useSyncExternalStore,sT=X.createContext((w=!1,{clearReset:()=>{w=!1},reset:()=>{w=!0},isReset:()=>w})),sP=X.createContext(!1);sP.Provider;let sL=t=>{let[e,i]=(0,X.useState)(()=>t.getKey()),n=si();return(0,X.useEffect)(()=>(t.onUpdate(()=>{i(t.getKey())}),()=>{n.cancelQueries({queryKey:t.getKey(),exact:!0}),t.destroy()}),[t,n]),function(t,e){let i=si({context:t.context}),n=X.useContext(sP),s=X.useContext(sT),r=i.defaultQueryOptions(t);r._optimisticResults=n?"isRestoring":"optimistic",r.onError&&(r.onError=nK.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=nK.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=nK.batchCalls(r.onSettled)),r.suspense&&"number"!=typeof r.staleTime&&(r.staleTime=1e3),(r.suspense||r.useErrorBoundary)&&(s.isReset()||(r.retryOnMount=!1)),X.useEffect(()=>{s.clearReset()},[s]);let[o]=X.useState(()=>new e(i,r)),a=o.getOptimisticResult(r);if(sA(X.useCallback(t=>{let e=n?()=>{}:o.subscribe(nK.batchCalls(t));return o.updateResult(),e},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),X.useEffect(()=>{o.setOptions(r,{listeners:!1})},[r,o]),(null==r?void 0:r.suspense)&&a.isLoading&&a.isFetching&&!n)throw o.fetchOptimistic(r).then(({data:t})=>{null==r.onSuccess||r.onSuccess(t),null==r.onSettled||r.onSettled(t,null)}).catch(t=>{s.clearReset(),null==r.onError||r.onError(t),null==r.onSettled||r.onSettled(void 0,t)});if((({result:t,errorResetBoundary:e,useErrorBoundary:i,query:n})=>{var s;return t.isError&&!e.isReset()&&!t.isFetching&&(s=[t.error,n],"function"==typeof i?i(...s):!!i)})({result:a,errorResetBoundary:s,useErrorBoundary:r.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return r.notifyOnChangeProps?a:o.trackResult(a)}(nD({queryKey:e,queryFn:e=>t.run({signal:e.signal}).catch(t=>t instanceof sw?n.cancelQueries({queryKey:e.queryKey,exact:!0}).then(()=>null):Promise.reject(t)),refetchOnMount:!1,enabled:t.isEnabled()},void 0,void 0),sb)},sO=()=>(0,X.useContext)(sv);function sx(){return(sx=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}
1function sD(t,e){return(sD=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s_=new Map,sI=new WeakMap,sk=0;function sR(t,e,i,n){if(void 0===i&&(i={}),void 0===n&&(n=void 0),void 0===window.IntersectionObserver&&void 0!==n){var s=t.getBoundingClientRect();return e(n,{isIntersecting:n,target:t,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),function(){}}var r=function(t){var e=Object.keys(t).sort().filter(function(e){return void 0!==t[e]}).map(function(e){var i;return e+"_"+("root"===e?(i=t.root)?(sI.has(i)||(sk+=1,sI.set(i,sk.toString())),sI.get(i)):"0":t[e])}).toString(),i=s_.get(e);if(!i){var n,s=new Map,r=new IntersectionObserver(function(e){e.forEach(function(e){var i,r=e.isIntersecting&&n.some(function(t){return e.intersectionRatio>=t});t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=r),null==(i=s.get(e.target))||i.forEach(function(t){t(r,e)})})},t);n=r.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:r,elements:s},s_.set(e,i)}return i}(i),o=r.id,a=r.observer,c=r.elements,u=c.get(t)||[];return c.has(t)||c.set(t,u),u.push(e),a.observe(t),function(){u.splice(u.indexOf(e),1),0===u.length&&(c.delete(t),a.unobserve(t)),0===c.size&&(a.disconnect(),s_.delete(o))}}var sG=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function sM(t){return"function"!=typeof t.children}var sN=function(t){function e(e){var i;return(i=t.call(this,e)||this).node=null,i._unobserveCb=null,i.handleNode=function(t){i.node&&(i.unobserve(),t||i.props.triggerOnce||i.props.skip||i.setState({inView:!!i.props.initialInView,entry:void 0})),i.node=t||null,i.observeNode()},i.handleChange=function(t,e){t&&i.props.triggerOnce&&i.unobserve(),sM(i.props)||i.setState({inView:t,entry:e}),i.props.onChange&&i.props.onChange(t,e)},i.state={inView:!!e.initialInView,entry:void 0},i}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sD(e,t);var i=e.prototype;return i.componentDidUpdate=function(t){t.rootMargin===this.props.rootMargin&&t.root===this.props.root&&t.threshold===this.props.threshold&&t.skip===this.props.skip&&t.trackVisibility===this.props.trackVisibility&&t.delay===this.props.delay||(this.unobserve(),this.observeNode())},i.componentWillUnmount=function(){this.unobserve(),this.node=null},i.observeNode=function(){if(this.node&&!this.props.skip){var t=this.props,e=t.threshold,i=t.root,n=t.rootMargin,s=t.trackVisibility,r=t.delay,o=t.fallbackInView;this._unobserveCb=sR(this.node,this.handleChange,{threshold:e,root:i,rootMargin:n,trackVisibility:s,delay:r},o)}},i.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},i.render=function(){if(!sM(this.props)){var t=this.state,e=t.inView,i=t.entry;return this.props.children({inView:e,entry:i,ref:this.handleNode})}var n=this.props,s=n.children,r=n.as,o=function(t,e){if(null==t)return{};var i,n,s={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(s[i]=t[i]);return s}(n,sG);return X.createElement(r||"div",sx({ref:this.handleNode},o),s)},e}(X.Component);sN.displayName="InView",sN.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};let sq=t=>{t({type:nh.WIDGET_APPEAR,payload:{}})},sj=()=>{let{options:t}=sO(),{visibility:{onInView:e,onUpdate:i}={}}=t,{ref:n,inView:s,entry:r}=(()=>{var t,e,i,n,s,r,o,a,c,u,h,l,p,d,f,m,v;let{dispatch:g}=sg(),{options:{visibility:w={}}={}}=sO(),{triggerOnce:b=!0}=w,y=(0,X.useRef)(!0),{ref:S,inView:E,entry:C}=(i=(e={...w,triggerOnce:b}).threshold,n=e.delay,s=e.trackVisibility,r=e.rootMargin,o=e.root,a=e.triggerOnce,c=e.skip,u=e.initialInView,h=e.fallbackInView,l=X.useRef(),d=(p=X.useState({inView:!!u}))[0],f=p[1],m=X.useCallback(function(t){void 0!==l.current&&(l.current(),l.current=void 0),c||t&&(l.current=sR(t,function(t,e){f({inView:t,entry:e}),e.isIntersecting&&a&&l.current&&(l.current(),l.current=void 0)},{root:o,rootMargin:r,threshold:i,trackVisibility:s,delay:n},h))},[Array.isArray(i)?i.toString():i,o,r,a,c,s,h,n]),(0,X.useEffect)(function(){l.current||!d.entry||a||c||f({inView:!!u})}),(v=[m,d.inView,d.entry]).ref=v[0],v.inView=v[1],v.entry=v[2],v),A=(0,X.useCallback)(()=>{sq(g)},[g]);return(0,X.useEffect)(()=>{y.current&&E&&(y.current=!b,sq(g))},[g,E,C,b]),{ref:S,inView:E,entry:C,trigger:A}})();return(0,X.useEffect)(()=>{s&&e&&e(r),i&&i(s,r)},[s,r,i,e]),n},sF=()=>{let t=sO(),{rfkId:e,instanceId:i}=sg(),[n,s]=(0,X.useState)(t.state),r=(0,X.useRef)({});return(0,X.useEffect)(()=>{let t={handleAction(t){if(t.type===nh.WIDGET_STATE_CHANGED){let{rfkId:n,instanceId:o=null,state:a}=t.payload;if(n===e&&i===o){let t=((t,e)=>{let i=Object.fromEntries(Object.entries(t).filter(([t])=>e[t]));return 0===Object.keys(i).length?null:i})(a,r.current);t&&s(e=>({...e,...t}))}}}};return ng.register(t),()=>ng.unregister(t)},[e,i]),((t,e)=>{let i={};for(let n in t)"request"!==n&&"response"!==n&&Object.defineProperty(i,n,{get:()=>(e[n]=!0,t[n])});return i})(n,r.current)}
1,sU=function(t){let{rfkId:e,dispatch:i}=sg(),n=sO();n.isInitialized()||n.initialize(t||{});let{query:s,options:r,actions:o}=n,a=sF(),c=sL(s);return{widgetRef:sj(),rfkId:e,state:a,queryResult:c,actions:o,options:r,dispatch:i,query:s}},sB=()=>{let{rfkId:t}=sU(),{widgetRef:e,queryResult:{data:{appearance:{css_names:i=[],templates:{html:{devices:{[V.DESKTOP]:{content:n=null}={}}={}}={},css:{devices:{[V.DESKTOP]:{content:s=null}={}}={}}={}}={}}={}}={}}}=sU(),r=(0,X.useRef)(null);return(0,X.useLayoutEffect)(()=>{var e;let i;r.current&&s&&(e=r.current,(i=document.querySelector(`[data-rfk-id-style=${t}]`))||((i=document.createElement("style")).setAttribute("type","text/css"),i.dataset.rfkIdStyle=t,e.parentNode?.appendChild(i)),i.innerHTML=s)},[t,s]),(0,X.useLayoutEffect)(()=>{r.current&&n&&(r.current.innerHTML=n)},[n]),(0,X.createElement)("div",{ref:e,"data-rfkid":t,className:i.join(" ")},(0,X.createElement)("div",{ref:r}))},sV=()=>{let{queryResult:{data:{appearance:{templates:{html:{devices:{[V.DESKTOP]:{content:t=null}={}}={}}={}}={}}={}}={}}}=sU();return(0,X.useLayoutEffect)(()=>{t&&document.head.insertAdjacentHTML("afterbegin",t)},[t]),null},sz={component:sB,options:{state:{}}},sH=(t,e)=>{tH.debug("setWidgetType",`Type: ${t}`,`Mapping: ${JSON.stringify(e)}`),nm.setWidgetType(t,e)},sK=class{constructor(){Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}getWidgetComponentConfig(t,e){let i=nm.get(t,e);if(i&&i.type&&i.component)return i}getWidget(t,e){if(!this.widgets[t]){let i=this.getWidgetComponentConfig(t,e);i&&(this.widgets[t]=this.doSetup({...i,entity:e},t))}return this.widgets[t]}setup(t,e){return this.getWidget(t,e)}},s$=({rfkId:t,entity:e,children:i})=>{let n=(0,X.useMemo)(()=>Math.random().toString(36).substring(2,9),[]),s=(0,X.useCallback)(i=>nd.dispatch({...i,payload:{rfkId:t,instanceId:n,entity:e,...i.payload}}),[t,e,n]),r=(0,X.useMemo)(()=>({rfkId:t,instanceId:n,dispatch:s,entity:e}),[t,s,e,n]);return(0,X.createElement)(sm.Provider,{value:r},i)},sW=t=>{let{children:e}=t,i=sg();return i?.rfkId===t.rfkId?(0,X.createElement)(X.Fragment,{},e||null):(0,X.createElement)(s$,t,e)},sQ={visibility:{threshold:.2,triggerOnce:!0}},sJ={name:"Ordercloud",buildInterface:!0,file:"ocContext",properties:{sellerId:{type:"string"},requiredInventoryLocations:{type:"array",name:"requiredInventoryLocations"}}},sY=tC(sJ);class sX extends sY{}let sZ=new class extends nv{constructor(){super(),Object.defineProperty(this,"ocContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.setContext(new sX),nd.subscribe(this)}setContext(t){this.ocContext=t,this.ocContext.addListener(this)}getContext(){return this.ocContext}handleAction(t){switch(t.type){case nh.OC_CONTEXT_CHANGED:tH.info("OC Context changed");break;case nh.INITIALIZE:this.initialize()}}onChange(t,e,i){this.initialized&&nd.dispatch({type:nh.OC_CONTEXT_CHANGED,payload:{context:this.ocContext}})}};var s0=W(1);let s1=(t,e)=>(t.cancel=()=>{e.abort()},t),s2={async getData(t,e){let i=new AbortController,n={...e,signal:i.signal,abortController:i};return s1(this.fetch(t.toJson(),n),i)},async fetch(t,e){let i=String(Date.now().toString(32)+Math.random().toString(16)).replace(/\./g,""),n=ng.getContext(),s=tp({context:n.toJson()},t);nd.dispatch({type:nh.REQUEST,payload:{requestId:i,request:t,pageContext:n,payload:s}});try{let r=await nb(s,{signal:e?.signal});return nd.dispatch({type:nh.REQUEST_SUCCESS,payload:{requestId:i,request:t,pageContext:n,payload:s,response:r}}),{_requestId:i,...r}}catch(e){return nd.dispatch({type:nh.REQUEST_FAIL,payload:{error:e,requestId:i,request:t,pageContext:n,payload:s}}),Promise.reject(e)}}},s4={context:{type:"model",model:tR},rfk_flags:{type:"array",name:"rfkFlags"},widget:{type:"model",model:{name:"Widget",properties:{items:{type:"array",model:tO}}}}},s3=tC({name:"OCSearchRequest",file:"OCSearchRequest",buildInterface:!0,properties:{...s4,ordercloud:{type:"model",model:sJ,setter:"setOrderCloudContext",getter:"getOrderCloudContext"}}});class s5 extends s3{getWidgetInfo(t){return this.getWidgetItems()?.find(e=>e.rfk_id&&e.rfk_id===t)}addWidgets(t){return t.forEach(t=>this.addWidgetItem(t)),this}}let s6=tC({name:"SearchRequest",file:"SearchRequest",buildInterface:!0,properties:{...s4}});class s8 extends s6{getWidgetInfo(t){return this.getWidgetItems()?.find(e=>e.rfk_id&&e.rfk_id===t)}addWidgets(t){return t.forEach(t=>this.addWidgetItem(t)),this}}let s9=()=>{let{connector:t}=t1();if("oc"===t){tH.info("Using OC Request");let t=new s5;return t.setOrderCloudContext(sZ.getContext().toJson()),t}return tH.info("Using default Request"),new s8},s7=async t=>{let e=s9(),i=Array.from((t=>{let e=new Map;
1return t.slice().reverse().forEach(([t,i])=>{var n,s;let{rfkId:r,instanceId:o,payload:a}=t,c=(({rfkId:t,entity:e})=>`${t}@${e}`)(t);e.get(c)?.get(o||"")?i.abortController.abort():(n=o||"",s={...a,rfk_id:r},e.has(c)||e.set(c,new Map([[n,{}]])),e.get(c).set(n,s))}),e})(t.filter(([t,e])=>!e.signal.aborted)).values()).map(t=>Array.from(t.values())).flat();e.addWidgets(i),t[0][0].context&&e.setContext(t[0][0].context.toJson());let{requestMiddleware:n}=t1();n&&await n();let s=await s2.fetch(e.toJson());return t.map(([,{abortController:t}])=>t.signal.aborted?Object.assign({},s,{_canceled:!0}):s)},rt={},re=(t,e)=>{if(e?.debounceBy)return`debounceBy@${e.debounceBy}`;let i=t.context?.toJson();return i?JSON.stringify(i):"default"},ri={async getWidgetData(t,e){let{rfkId:i,entity:n,request:s}=t,r=ng.getContext(),o=s.toJson();nd.dispatch({type:nh.WIDGET_DATA_REQUEST,payload:{...t,pageContext:r,payload:o}});try{let s=await this.fetchWidgetData({...t,payload:o},e);if(s._canceled)return nd.dispatch({type:nh.WIDGET_DATA_REQUEST_CANCELED,payload:{...t,pageContext:r,payload:o}}),Promise.reject(new sw(s));let{_requestId:a,...c}=s,{widgets:u=[]}=c,h=u.find(({rfk_id:t,entity:e})=>t===i&&e===n);if(!h)throw Error(`Response processing error: could not find ${i} in response`);return nd.dispatch({type:nh.WIDGET_DATA_REQUEST_SUCCESS,payload:{...t,pageContext:r,response:h,payload:o,requestId:a}}),h}catch(e){return nd.dispatch({type:nh.WIDGET_DATA_REQUEST_FAIL,payload:{error:e,...t,pageContext:r,payload:o}}),Promise.reject(e)}},fetchWidgetData(t,e){var i;let n=new AbortController,s={...e,signal:n.signal,abortController:n,groupBy:re(t,e)};return e?.signal?.addEventListener("abort",()=>{n.abort()}),s1(e?.debounce?(rt[i=s.groupBy]||(rt[i]=s0(s7,250,{accumulate:!0})),rt[i])(t,s):((t,e)=>{let{payload:i}=t,n=s9();return n.addWidgetItem(i),t.context&&n.setContext(t.context.toJson()),s2.fetch(n.toJson(),e)})(t,s),n)}};class rn{constructor(t,e){Object.defineProperty(this,"instanceId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:new tM}),Object.defineProperty(this,"ocContext",{enumerable:!0,configurable:!0,writable:!0,value:new sX}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"debounced",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"debounceBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgetRequest",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastResponse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"enabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"enabledChangeListeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"destroyListeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.widgetRequest=e,this.instanceId=t}onUpdate(t){var e;let i;let n=(e=()=>{t()},function(...t){let n=this;clearTimeout(i),i=setTimeout(function(){i=null,e.apply(n,t)},50)}),s={handleAction(t){switch(t.type){case nh.OC_CONTEXT_CHANGED:case nh.PAGE_CONTEXT_CHANGED:n()}}};ng.register(s);let r={onChange(t,e,i){n()}};this.getRequest().addListener(r),this.getContext().addListener(r),this.getOCContext().addListener(r);let o=t=>{t&&n()};this.enabledChangeListeners.push(o),this.destroyListeners.push(()=>{ng.unregister(s),this.getRequest().removeListener(r),this.getContext().removeListener(r),this.getOCContext().removeListener(r),this.enabledChangeListeners=this.enabledChangeListeners.filter(t=>t!==o)})}destroy(){this.destroyListeners.forEach(t=>{t()}),this.destroyListeners=[]}getContext(){return this.context}getOCContext(){return this.ocContext}getRequest(){return this.widgetRequest}getKey(){return((t,e,...i)=>[e.getRfkId(),t,ng.getContext().toJson(),e.toJson(),sZ.getContext().toJson(),...i])(this.instanceId,this.widgetRequest,this.context.toJson())}getLastResponse(){return this.lastResponse}getRequestContext(){return tp(ng.getContext().toJson(),this.context.toJson())}getRequestOCContext(){return tp(sZ.getContext().toJson(),this.ocContext.toJson())}setDebounced(t){this.debounced=t}isDebounced(){return this.debounced}setDebounceBy(...t){this.debounceBy=t.join("#")}getDebounceBy(){return this.debounceBy}fetch(t={}){return this.run(t)}run(t={}
1){let e={rfkId:this.getRequest().getRfkId(),entity:this.getRequest().getEntity(),instanceId:this.instanceId,request:this.getRequest(),context:this.getContext(),ocContext:this.getOCContext()};return ri.getWidgetData(e,{debounceBy:this.getDebounceBy(),debounce:this.isDebounced(),...t}).then(t=>(this.lastResponse=t,t))}setEnabled(t){t!==this.enabled&&(this.enabled=t,this.enabledChangeListeners.forEach(e=>{e(t)}))}toggleEnabled(){this.setEnabled(!this.enabled)}isEnabled(){return this.enabled}getInstanceId(){return this.instanceId}}let rs=(t,e,i)=>{t({type:e,payload:i})},rr=({dispatch:t,entity:e,instanceId:i,rfkId:n})=>{let s={},r={},o=!1,a=(t=>{let{type:e,options:{setupRequest:i=()=>{}}={}}=nm.get(t)||{},n=e?((t,e)=>{if(tk[t])return tk[t](e);throw Error(`Invalid widget type: "${t}"`)})(e,t):new tD(t);return n.setRfkId(t),i(n),n})(n);a.setEntity(e);let c=new rn(i,a),u=tp(sQ,nm.get(n,e)?.options);return{actions:((t,e)=>{let{actionProps:i={}}=e;return Object.keys(i).reduce((e,n)=>({...e,[n]:rs.bind(null,t,i[n])}),{})})(t,u),options:u,query:c,state:s,config:r,updateState:r=>{let o=Object.fromEntries(Object.entries(r).filter(([t,e])=>s[t]!==e));Object.assign(s,r),t({type:nh.WIDGET_STATE_CHANGED,payload:{rfkId:n,entity:e,instanceId:i,state:o}})},initialize:t=>{var e,i;o||(Object.assign(s,"function"==typeof(i=t.state)?i():i),e=t.query,((t,e,i={})=>{let{options:{propStateMapping:n=null,props:{initial:s={}}={}}={}}=nm.get(t)||{};n&&((t,e,i)=>
1{Object.keys(i).forEach(n=>{"function"==typeof t[n]&&t[n](e,i)})})(n,e,tp(s,i))})(c.getRequest().getRfkId(),c.getRequest(),s),e&&e(c),c.getRequest().takeSnapshot(),Object.assign(r,t.config),o=!0)},isInitialized:()=>o}},ro=({children:t})=>{let{rfkId:e,entity:i,dispatch:n,instanceId:s}=sg(),r=(0,X.useRef)();return r.current||(r.current=rr({dispatch:n,entity:i,instanceId:s,rfkId:e})),(0,X.useEffect)(()=>(n({type:nh.LOAD,payload:{rfkId:e,entity:i,instanceId:s}}),()=>{n({type:nh.UNLOAD,payload:{rfkId:e,entity:i,instanceId:s}})}),[n,e,i,s]),(0,X.createElement)(sv.Provider,{value:r.current},t)},ra=(t,e,i)=>((...t)=>(e,i)=>t.reduceRight((t,e)=>(0,X.createElement)(e,i,t),e))(sW,ro)((0,X.createElement)(i,t),e),rc=(t,e,i)=>(tH.debug("widget",t&&t.name,e),((t,e,i)=>{if(!0===t.__wrapped)throw Error(`Seems you are trying to wrap an already wrapped Widget component (entity: ${e})`);return i.__wrapped=!0,i})(t,i,n=>{let{rfkId:s}=n;return(0,X.useMemo)(()=>{nm.setType(s,e)},[s]),ra(n,{rfkId:s,entity:i},t)}));rc(sB,Y.BANNER,"content"),rc(sB,Y.HTML_BLOCK,"content"),rc(sV,Y.SEO,"content");let ru=class extends sK{doSetup({type:t,entity:e,component:i}){return rc(i,t,e)}},rh=(...t)=>{sH(Y.CONTENT_BLOCK,sz),sH(Y.HTML_BLOCK,sz),sH(Y.BANNER,sz),sH(Y.SEO,{...sz,component:sV}),sH(Y.PREVIEW_SEARCH,{options:{propStateMapping:sa,actionProps:sc,state:{}}}),sH(Y.RECOMMENDATION,{options:{propStateMapping:su,actionProps:sh,state:{}}}),sH(Y.QUESTIONS,{options:{propStateMapping:sl,actionProps:sp,state:{}}}),sH(Y.SEARCH_RESULTS,{options:{propStateMapping:sd,actionProps:sf,state:{selectedFacets:{},page:1}}}),new ss,new ru,(t=>{let{autoIncludeNewWidgets:e=!1,autoIncludeWidgets:i=!0,uri:n}=t||{};if("undefined"==typeof document||!document.createElement)return n&&ng.getContext().setPageUri(n),void nT();if(ng.getContext().setPageUri(n||window.location.pathname),e&&so(),i){let t=Array.from(document.querySelectorAll(`:not(${sr}) > [data-rfkid]:not(${sr})`)).filter((t,e,i)=>i.indexOf(t)===e).map(t=>({rfkId:t.dataset.rfkid,entity:t.dataset.entity,node:t}));t.length&&setTimeout(()=>{ng.getDispatcher().dispatch({type:nh.FOUND_WIDGETS,payload:{widgets:t}})},0)}nT()})(...t)},rl=({apiKey:t,children:e,clientId:i,cookieOptions:n,customerKey:s,debug:r,discoverDomainId:o,env:a="prod",orderCloudRegion:c,publicSuffix:u=!1,requestMiddleware:l,serviceHost:p,trackConsent:d=!0,uri:f,useAccessToken:m,useStorage:v,useToken:g,...w})=>{var b;return(0,X.useMemo)(()=>{nE({apiKey:t,clientId:i,cookieOptions:n,customerKey:s,debug:r,discoverDomainId:o,env:a,orderCloudRegion:c,publicSuffix:u,requestMiddleware:l,serviceHost:p,trackConsent:d,useAccessToken:m,useStorage:v,useToken:g},{processor:new nC}),rh({uri:f,autoIncludeWidgets:!1,autoIncludeNewWidgets:!1})},[]),(0,X.useEffect)(()=>{ng.toggleTrackConsent(d)},[d]),(0,X.createElement)(sn,{...w,client:(b=w.client,!h&&b?h=b:h||(h=new n9({defaultOptions:{queries:{retry:!1,keepPreviousData:!0,refetchOnWindowFocus:!1}}})),h)},e)};var rp=W(824);let rd={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},rf=new Uint8Array(16),rm=[];for(let t=0;t<256;++t)rm.push((t+256).toString(16).slice(1));let rv=function(t,e,i){if(rd.randomUUID&&!e&&!t)return rd.randomUUID();let n=(t=t||{}).random||(t.rng||function(){if(!l&&!(l="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(rf)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(let t=0;t<16;++t)e[i+t]=n[t];return e}return function(t,e=0){return rm[t[e+0]]+rm[t[e+1]]+rm[t[e+2]]+rm[t[e+3]]+"-"+rm[t[e+4]]+rm[t[e+5]]+"-"+rm[t[e+6]]+rm[t[e+7]]+"-"+rm[t[e+8]]+rm[t[e+9]]+"-"+rm[t[e+10]]+rm[t[e+11]]+rm[t[e+12]]+rm[t[e+13]]+rm[t[e+14]]+rm[t[e+15]]}(n)},rg=(t,e)=>{let i=(0,X.useRef)(e),n=(0,X.useRef)(t);return i.current!==e&&(i.current.length!==e.length||i.current.some((t,i)=>t!==e[i]))&&(i.current=e,n.current=t),n},rw=t=>{let e=t.getRequest().getSearchLimit()?t.getRequest().getSearchLimit():t.getLastResponse()?.limit,i=e?Math.floor((t.getRequest
1().getSearchOffset()||0)/e+1):0;return{keyword:t.getRequest().getSearchQueryKeyphrase(),pageNumber:isNaN(i)?void 0:i,pageSize:e,numResults:t.getLastResponse()?.content?.length,totalResults:t.getLastResponse()?.total_item}},rb=(t,e)=>{switch(e.type){case j.KEYPHRASE_CHANGED:{let{keyphrase:i}=e.payload;return{...t,keyphrase:i}}case j.SUGGESTION_ADDED:{let{suggestion:i,max:n=3}=e.payload;return{...t,suggestionsList:[...t.suggestionsList||[],{suggestion:i,max:n}]}}case j.SUGGESTION_REMOVED:{let{suggestion:i}=e.payload;return{...t,suggestionsList:(t.suggestionsList||[]).filter(({suggestion:t})=>t!==i)}}default:return t}},ry=function(t){let{rfkId:e,dispatch:i}=sg(),n=sO();n.isInitialized()||n.initialize(t||{});let{query:s,options:r,actions:o}=n,a=sF(),c=sL(s),u=sj();return((t,e)=>{let i=sO(),{rfkId:n,instanceId:s}=sg(),r=rg(t,e);(0,X.useEffect)(()=>{let t={handleAction(t){let{rfkId:e,instanceId:o=null}=t.payload;if(e===n&&s===o){let e=r.current(((t,e)=>{switch(e.type){case nh.WIDGET_DATA_REQUEST_SUCCESS:{let{response:i}=e.payload;return{...t,response:i}}case nh.WIDGET_DATA_REQUEST:{let{request:i}=e.payload;return{...t,request:i}}default:return t}})(i.state,t),t);e!==i.state&&i.updateState(e)}}};return ng.register(t),()=>ng.unregister(t)},[n,s,i,r])})(rb,[]),((t,e)=>{let{rfkId:i,instanceId:n}=sg(),s=rg(t,e);(0,X.useEffect)(()=>{let t={handleAction(t){let{rfkId:e,instanceId:r}=t.payload;e&&(e!==i||r!==n)||s.current(t)}};return ng.register(t),()=>ng.unregister(t)},[i,n,s])})(t=>{switch(t.type){case j.ITEM_CLICKED:{let{id:i,index:n,entity:r,sourceId:o}=t.payload;(async(t,e,{index:i,items:n,...s})=>{if(t)return await (async(t,e,{actionCause:i,index:n,request:s,items:r})=>{let o=[];return e&&r&&(o=ns(e,r))&&!nn(o)?void tH.warn("trackEvent :::","A field is missing on one or more of the items provided"):i&&"entity"===i&&tj(n)?void tH.warn("trackEvent :::","Field index is mandatory for widget click entity events and is having invalid/missing value"):ni({name:"widget",action:"click",action_cause:i,value:{rfk_id:t,index:n,entities:o,request:s,context:tN.toJson()}})})(t,e,{actionCause:"entity",index:i,items:n,request:no(s)});tH.warn("trackEvent :::","Widget's rfkId mandatory field is empty")})(e,r,{index:n,items:[{id:i,sourceId:o}],...rw(s)});break}case j.KEYPHRASE_CHANGED:{let{keyphrase:e}=t.payload,i=s.getRequest();""!==e?i.setSearchQueryKeyphrase(e):i.resetSearchQueryKeyphrase();break}case j.SUGGESTION_CLICKED:{let{name:i,title:n,value:r,displayName:o,uri:a}=t.payload;(async(t,{filters:e,...i})=>{if(t)return await (async(t,{request:e,filters:i})=>ni({name:"widget",action:"click",action_cause:"suggestion",value:{rfk_id:t,request:e,filters:i,context:tN.toJson()}}))(t,{...e?{filters:na(e)}:{},request:no(i)});tH.warn("trackEvent :::","Widget's rfkId mandatory field is empty")})(e,{filters:[{name:i,title:n,value:r,displayName:o,uri:a}],...rw(s)});break}case j.SUGGESTION_ADDED:{let{suggestion:e,max:i=3}=t.payload;s.getRequest().resetSearchFilter().removeSearchSuggestion({name:e},({name:t})=>t===e).addSearchSuggestion({name:e,max:i});break}case j.SUGGESTION_REMOVED:{let{suggestion:e}=t.payload;s.getRequest().resetSearchFilter().removeSearchSuggestion({name:e},({name:t})=>t===e)}}},[e,s]),{widgetRef:u,rfkId:e,state:a,queryResult:c,actions:o,options:r,dispatch:i,query:s}},rS=rc(function({defaultItemsPerPage:t=8,props:e}){var i,n,s,r,o,a,c,u;let{params:h,fields:l}=e,p=(0,X.useRef)(null),d=(0,X.useRef)(null),[f,m]=(0,X.useState)(""),[v,g]=(0,X.useState)(!1),{sourcebody:w}=l,b=(null==l?void 0:l.searchResultsUrl)||"",y=f.length>=3;(0,X.useEffect)(()=>{let t=t=>{var e,i;!(null==d?void 0:d.current)||(null===(e=null==p?void 0:p.current)||void 0===e?void 0:e.contains(null==t?void 0:t.target))||(null===(i=null==d?void 0:d.current)||void 0===i?void 0:i.contains(null==t?void 0:t.target))||g(!1)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]);let{widgetRef:S,actions:{onKeyphraseChange:E},queryResult:{data:C}}=ry({query:t=>{t.getRequest().setEntity("content").setSources(l.sitecoreSource).setSearch(w)},state:{itemsPerPage:t}}),A=(null===(i=null==C?void 0:C.suggestion)||void 0===i?void 0:i.title_auto_complete)||[],T=(null===(n=null==C?void 0:C.suggestion)||void 0===n?void 0:n.did_you_mean_title)||[],P=(null!==(s=null==A?void 0:A.length)&&void 0!==s?s:0)>0||(null!==(r=null==T?void 0:T.length)&&void 0!==r?r:0)>0,L=Array.isArray(A)&&A.length>0,O=(0,X.useCallback)(t=>{let{target:e}=t;E({keyphrase:e.value}),m(e.value)},[E]),x=(0,X.useCallback)(t=>{"Enter"===t.key&&""!==f&&(window.location.href=`${b}?query=${encodeURIComponent(f)}`)},[f,b]),D=(t,e)=>{let i=t.toLowerCase().indexOf(e.toLowerCase());if(-1===i||!e)return t;let n=t.slice(0,i),s=t.slice(i,i+e.length),r=t.slice(i+e.length);return Z().createElement(Z().Fragment,null,n,Z().createElement("span",{style:{fontWeight:900}},s),r)},_=t=>{t&&b&&(window.location.href=`${b}?query=${encodeURIComponent(t)}`)};
1return Z().createElement("div",Object.assign({ref:S,className:`component faq-search ${h.styles||""}`},(null==h?void 0:h.searchIgnore)?{"data-attribute-search-ignore":!0}:{}),Z().createElement("div",{className:"faq-search__input-wrapper "+(v?"faq-search__input-wrapper--hasFocused":"")},Z().createElement(rp.Icon,{name:"search_white",className:"faq-search__icon-left"}),Z().createElement("input",{ref:d,type:"text",onChange:O,autoComplete:"off",placeholder:null!==(o=null==l?void 0:l.searchBarText)&&void 0!==o?o:"",value:f,className:"faq-search__input",name:"search-input",onFocus:()=>g(!0),onKeyDown:x,"aria-label":null!==(a=null==l?void 0:l.searchBarText)&&void 0!==a?a:""}),Z().createElement("button",{type:"button",className:"faq-search__button",onClick:()=>_(f),"aria-label":"Search"},Z().createElement(rp.Icon,{name:"arrowRight",className:"faq-search__icon-right"})),y&&v&&Z().createElement("div",{className:"faq-search__results",ref:p},Z().createElement("div",{className:"faq-search__results__wrapper"},Array.isArray(A)&&A.length>0&&Z().createElement("div",{className:"faq-search__results__list"},null===(c=null==C?void 0:C.suggestion)||void 0===c?void 0:c.title_auto_complete.map(t=>Z().createElement("div",{key:rv(),className:"faq-search__results__link",onClick:()=>_((null==t?void 0:t.text)||""),role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||_(null==t?void 0:t.text)},"aria-label":`Search for ${t.text}`},D(t.text,f)))),Array.isArray(T)&&T.length>0&&!L&&Z().createElement(Z().Fragment,null,Z().createElement("p",{className:"faq-search__results__ask"},"DID YOU MEAN?"),Z().createElement("div",{className:"faq-search__results__list"},null===(u=null==C?void 0:C.suggestion)||void 0===u?void 0:u.did_you_mean_title.map(t=>Z().createElement("div",{key:rv(),className:"faq-search__results__link"},Z().createElement("div",{key:rv(),className:"faq-search__results__link",onClick:()=>_((null==t?void 0:t.text)||""),role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||_(null==t?void 0:t.text)},"aria-label":`Search for ${t.text}`},D(t.text,f)))))),!P&&Z().createElement("p",{className:"faq-search__results__ask"},"No results found for ",Z().createElement("span",null,f))))))},Y.PREVIEW_SEARCH,"content"),rE=function({params:t,fields:e}){return ng.getContext().setLocaleLanguage("en"),ng.getContext().setLocaleCountry("us"),Z().createElement(rl,Object.assign({env:null==e?void 0:e.sitecoreEnv,customerKey:null==e?void 0:e.sitecoreCustomerKey},(null==e?void 0:e.sitecoreServiceHost)&&(null==e?void 0:e.sitecoreIsSubdomain)?{serviceHost:null==e?void 0:e.sitecoreServiceHost}:{apiKey:null==e?void 0:e.sitecoreApiKey}),Z().createElement(rS,{rfkId:null==e?void 0:e.sitecoreWidgetId,props:{params:t,fields:e}}))};function rC(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function rA(t,e){void 0===t&&(t={}),void 0===e&&(e={});let i=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>0>i.indexOf(t)).forEach(i=>{void 0===t[i]?t[i]=e[i]:rC(e[i])&&rC(t[i])&&Object.keys(e[i]).length>0&&rA(t[i],e[i])})}let rT={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function rP(){let t="undefined"!=typeof document?document:{};return rA(t,rT),t}let rL={document:rT,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function rO(){let t="undefined"!=typeof window?window:{};return rA(t,rL),t}function rx(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function rD(){return Date.now()}function r_(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function rI(){let t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){let n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType))){let i=Object.keys(Object(n)).filter(t=>0>e.indexOf(t));for(let e=0,s=i.length;e<s;e+=1){let s=i[e],r=Object.getOwnPropertyDescriptor(n,s);void 0!==r&&r.enumerable&&(r_(t[s])&&r_(n[s])?n[s].__swiper__?t[s]=n[s]:rI(t[s],n[s]):!r_(t[s])&&r_(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:rI(t[s],n[s])):t[s]=n[s])}}}return t}function rk(t,e,i){t.style.setProperty(e,i)}function rR(t){let{swiper:e,targetPosition:i,side:n}=t,s=rO(),r=-e.translate,o,a=null,c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);let u=i>r?"next":"prev",h=(t,e)=>"next"===u&&t>=e||"prev"===u&&t<=e,l=()=>{o=(new Date).getTime(),null===a&&(a=o);let t=r+(.5-Math.cos(Math.max(Math.min((o-a)/c,1),0)*Math.PI)/2)*(i-r);if(h(t,i)&&(t=i),e.wrapperEl.scrollTo({[n]:t}),h(t,i))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:t})}),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(l)};l()}function rG(t,e){void 0===e&&(e="");let i=rO(),n=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(t=>t.matches(e)):n}function rM(t){try{return void console.warn(t)}catch(t){}}function rN(t,e){var i;void 0===e&&(e=[]);let n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:(void 0===(i=e)&&(i=""),i.trim().split(" ").filter(t=>!!t.trim()))),n}function rq(t,e){return rO().getComputedStyle(t,null).getPropertyValue(e)}function rj(t){let e,i=t;if(i){for(e=0;
1null!==(i=i.previousSibling);)1===i.nodeType&&(e+=1);return e}}function rF(t,e){let i=[],n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function rU(t,e){e&&t.addEventListener("transitionend",function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))})}function rB(t,e,i){let n=rO();return i?t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom")):t.offsetWidth}function rV(t){return(Array.isArray(t)?t:[t]).filter(t=>!!t)}function rz(t,e){void 0===e&&(e=""),"undefined"!=typeof trustedTypes?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}function rH(){return p||(p=function(){let t=rO(),e=rP();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),p}function rK(t){return void 0===t&&(t={}),d||(d=function(t){let{userAgent:e}=void 0===t?{}:t,i=rH(),n=rO(),s=n.navigator.platform,r=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,c=n.screen.height,u=r.match(/(Android);?[\s\/]+([\d.]+)?/),h=r.match(/(iPad).*OS\s([\d_]+)/),l=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d="MacIntel"===s;return!h&&d&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${c}`)>=0&&((h=r.match(/(Version)\/([\d.]+)/))||(h=[0,1,"13_0_0"]),d=!1),u&&"Win32"!==s&&(o.os="android",o.android=!0),(h||p||l)&&(o.os="ios",o.ios=!0),o}(t)),d}function r$(){return f||(f=function(){let t=rO(),e=rK(),i=!1;function n(){let e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&0>e.indexOf("chrome")&&0>e.indexOf("android")}if(n()){let e=String(t.navigator.userAgent);if(e.includes("Version/")){let[t,n]=e.split("Version/")[1].split(" ")[0].split(".").map(t=>Number(t));i=t<16||16===t&&n<2}}let s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=n();return{isSafari:i||r,needPerspectiveFix:i,need3dFix:r||s&&e.ios,isWebView:s}}()),f}let rW=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},rQ=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},rJ=(t,e)=>{if(!t||t.destroyed||!t.params)return;let i=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){let e=i.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(i.shadowRoot?e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`))&&e.remove()})),e&&e.remove()}},rY=(t,e)=>{if(!t.slides[e])return;let i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},rX=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext,i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);let n="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){let i=[s-e];return i.push(...Array.from({length:e}).map((t,e)=>s+n+e)),void t.slides.forEach((e,n)=>{i.includes(e.column)&&rY(t,n)})}let r=s+n-1;if(t.params.rewind||t.params.loop)for(let n=s-e;n<=r+e;n+=1){let e=(n%i+i)%i;(e<s||e>r)&&rY(t,e)}else for(let n=Math.max(s-e,0);n<=Math.min(r+e,i-1);n+=1)n!==s&&(n>r||n<s)&&rY(t,n)};function rZ(t){let{swiper:e,runCallbacks:i,direction:n,step:s}=t,{activeIndex:r,previousIndex:o}=e,a=n;a||(a=r>o?"next":r<o?"prev":"reset"),e.emit(`transition${s}`),i&&"reset"===a?e.emit(`slideResetTransition${s}`):i&&r!==o&&(e.emit(`slideChangeTransition${s}`),"next"===a?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}function r0(t,e,i){let n=rO(),{params:s}=t,r=s.edgeSwipeDetection,o=s.edgeSwipeThreshold;return!r||!(i<=o||i>=n.innerWidth-o)||"prevent"===r&&(e.preventDefault(),!0)}function r1(t){let e=rP(),i=t;i.originalEvent&&(i=i.originalEvent);let n=this.touchEventsData;
1if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void r0(this,i,i.targetTouches[0].pageX);let{params:s,touches:r,enabled:o}=this;if(!o||!s.simulateTouch&&"mouse"===i.pointerType||this.animating&&s.preventInteractionOnTransition)return;!this.animating&&s.cssMode&&s.loop&&this.loopFix();let a=i.target;if("wrapper"===s.touchEventsTarget&&!function(t,e){let i=rO(),n=e.contains(t);return!n&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&((n=[...e.assignedElements()].includes(t))||(n=function(t,e){let i=[e];for(;i.length>0;){let e=i.shift();if(t===e)return!0;i.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e))),n}(a,this.wrapperEl)||"which"in i&&3===i.which||"button"in i&&i.button>0||n.isTouched&&n.isMoved)return;let c=!!s.noSwipingClass&&""!==s.noSwipingClass,u=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&u&&(a=u[0]);let h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,l=!(!i.target||!i.target.shadowRoot);if(s.noSwiping&&(l?function(t,e){return void 0===e&&(e=this),function e(i){if(!i||i===rP()||i===rO())return null;i.assignedSlot&&(i=i.assignedSlot);let n=i.closest(t);return n||i.getRootNode?n||e(i.getRootNode().host):null}(e)}(h,a):a.closest(h)))return void(this.allowClick=!0);if(s.swipeHandler&&!a.closest(s.swipeHandler))return;r.currentX=i.pageX,r.currentY=i.pageY;let p=r.currentX,d=r.currentY;if(!r0(this,i,p))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=d,n.touchStartTime=rD(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,s.threshold>0&&(n.allowThresholdMove=!1);let f=!0;a.matches(n.focusableElements)&&(f=!1,"SELECT"===a.nodeName&&(n.isTouched=!1)),e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==a&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!a.matches(n.focusableElements))&&e.activeElement.blur();let m=f&&this.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||m)&&!a.isContentEditable&&i.preventDefault(),s.freeMode&&s.freeMode.enabled&&this.freeMode&&this.animating&&!s.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",i)}function r2(t){let e=rP(),i=this.touchEventsData,{params:n,touches:s,rtlTranslate:r,enabled:o}=this;if(!o||!n.simulateTouch&&"mouse"===t.pointerType)return;let a,c=t;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==i.touchId||c.pointerId!==i.pointerId))return;if("touchmove"===c.type){if(!(a=[...c.changedTouches].find(t=>t.identifier===i.touchId))||a.identifier!==i.touchId)return}else a=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",c));let u=a.pageX,h=a.pageY;if(c.preventedByNestedSwiper)return s.startX=u,void(s.startY=h);if(!this.allowTouchMove)return c.target.matches(i.focusableElements)||(this.allowClick=!1),void(i.isTouched&&(Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h}),i.touchStartTime=rD()));if(n.touchReleaseOnEdges&&!n.loop){if(this.isVertical()){if(h<s.startY&&this.translate<=this.maxTranslate()||h>s.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(r&&(u>s.startX&&-this.translate<=this.maxTranslate()||u<s.startX&&-this.translate>=this.minTranslate())||!r&&(u<s.startX&&this.translate<=this.maxTranslate()||u>s.startX&&this.translate>=this.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==c.target&&"mouse"!==c.pointerType&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(this.allowClick=!1);i.allowTouchCallbacks&&this.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=h;let l=s.currentX-s.startX,p=s.currentY-s.startY;if(this.params.threshold&&Math.sqrt(l**2+p**2)<this.params.threshold)return;if(void 0===i.isScrolling){let t;this.isHorizontal()&&s.currentY===s.startY||this.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:l*l+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(l))/Math.PI,i.isScrolling=this.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}
1if(i.isScrolling&&this.emit("touchMoveOpposite",c),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;this.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation();let d=this.isHorizontal()?l:p,f=this.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;n.oneWayMovement&&(d=Math.abs(d)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),s.diff=d,d*=n.touchRatio,r&&(d=-d,f=-f);let m=this.touchesDirection;this.swipeDirection=d>0?"prev":"next",this.touchesDirection=f>0?"prev":"next";let v=this.params.loop&&!n.cssMode,g="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!i.isMoved){if(v&&g&&this.loopFix({direction:this.swipeDirection}),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(t)}i.allowMomentumBounce=!1,n.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==n._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&m!==this.touchesDirection&&v&&g&&Math.abs(d)>=1)return Object.assign(s,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);this.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=d+i.startTranslate;let w=!0,b=n.resistanceRatio;if(n.touchReleaseOnEdges&&(b=0),d>0?(v&&g&&i.allowThresholdMove&&i.currentTranslate>(n.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>this.minTranslate()&&(w=!1,n.resistance&&(i.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+i.startTranslate+d)**b))):d<0&&(v&&g&&i.allowThresholdMove&&i.currentTranslate<(n.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==n.slidesPerView&&this.slides.length-n.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===n.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),i.currentTranslate<this.maxTranslate()&&(w=!1,n.resistance&&(i.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-i.startTranslate-d)**b))),w&&(c.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),this.allowSlidePrev||this.allowSlideNext||(i.currentTranslate=i.startTranslate),n.threshold>0){if(!(Math.abs(d)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
1if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=this.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&this.freeMode||n.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}function r4(t){let e;let i=this,n=i.touchEventsData,s,r=t;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(!(s=[...r.changedTouches].find(t=>t.identifier===n.touchId))||s.identifier!==n.touchId)return}else{if(null!==n.touchId||r.pointerId!==n.pointerId)return;s=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!i.browser.isSafari&&!i.browser.isWebView))return;n.pointerId=null,n.touchId=null;let{params:o,touches:a,rtlTranslate:c,slidesGrid:u,enabled:h}=i;if(!h||!o.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&i.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&i.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);let l=rD(),p=l-n.touchStartTime;if(i.allowClick){let t=r.path||r.composedPath&&r.composedPath();i.updateClickedSlide(t&&t[0]||r.target,t),i.emit("tap click",r),p<300&&l-n.lastClickTime<300&&i.emit("doubleTap doubleClick",r)}if(n.lastClickTime=rD(),rx(()=>{i.destroyed||(i.allowClick=!0)}),!n.isTouched||!n.isMoved||!i.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,e=o.followFinger?c?i.translate:-i.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void i.freeMode.onTouchEnd({currentPos:e});let d=e>=-i.maxTranslate()&&!i.params.loop,f=0,m=i.slidesSizesGrid[0];for(let t=0;t<u.length;t+=t<o.slidesPerGroupSkip?1:o.slidesPerGroup){let i=t<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==u[t+i]?(d||e>=u[t]&&e<u[t+i])&&(f=t,m=u[t+i]-u[t]):(d||e>=u[t])&&(f=t,m=u[u.length-1]-u[u.length-2])}let v=null,g=null;o.rewind&&(i.isBeginning?g=o.virtual&&o.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(v=0));let w=(e-u[f])/m,b=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(p>o.longSwipesMs){if(!o.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&(w>=o.longSwipesRatio?i.slideTo(o.rewind&&i.isEnd?v:f+b):i.slideTo(f)),"prev"===i.swipeDirection&&(w>1-o.longSwipesRatio?i.slideTo(f+b):null!==g&&w<0&&Math.abs(w)>o.longSwipesRatio?i.slideTo(g):i.slideTo(f))}else{if(!o.shortSwipes)return void i.slideTo(i.activeIndex);i.navigation&&(r.target===i.navigation.nextEl||r.target===i.navigation.prevEl)?r.target===i.navigation.nextEl?i.slideTo(f+b):i.slideTo(f):("next"===i.swipeDirection&&i.slideTo(null!==v?v:f+b),"prev"===i.swipeDirection&&i.slideTo(null!==g?g:f))}}function r3(){let t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let a=o&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||a?t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function r5(t){this.enabled&&(this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function r6(){let{wrapperEl:t,rtlTranslate:e,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-t.scrollLeft:this.translate=-t.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let n=this.maxTranslate()-this.minTranslate();(0===n?0:(this.translate-this.minTranslate())/n)!==this.progress&&this.updateProgress(e?-this.translate:this.translate),this.emit
1("setTranslate",this.translate,!1)}function r8(t){rJ(this,t.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}function r9(){this.documentTouchHandlerProceeded||(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let r7=(t,e)=>{let i=rP(),{params:n,el:s,wrapperEl:r,device:o}=t,a=!!n.nested,c="on"===e?"addEventListener":"removeEventListener";s&&"string"!=typeof s&&(i[c]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),s[c]("touchstart",t.onTouchStart,{passive:!1}),s[c]("pointerdown",t.onTouchStart,{passive:!1}),i[c]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[c]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[c]("touchend",t.onTouchEnd,{passive:!0}),i[c]("pointerup",t.onTouchEnd,{passive:!0}),i[c]("pointercancel",t.onTouchEnd,{passive:!0}),i[c]("touchcancel",t.onTouchEnd,{passive:!0}),i[c]("pointerout",t.onTouchEnd,{passive:!0}),i[c]("pointerleave",t.onTouchEnd,{passive:!0}),i[c]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[c]("click",t.onClick,!0),n.cssMode&&r[c]("scroll",t.onScroll),n.updateOnWindowResize?t[e](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",r3,!0):t[e]("observerUpdate",r3,!0),s[c]("load",t.onLoad,{capture:!0}))},ot=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var oe={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let oi={eventsEmitter:{on(t,e,i){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;let s=i?"unshift":"push";return t.split(" ").forEach(t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][s](e)}),n},once(t,e,i){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;function s(){n.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];e.apply(n,r)}return s.__emitterProxy=e,n.on(t,s,i)},onAny(t,e){return!this.eventsListeners||this.destroyed||"function"!=typeof t||0>this.eventsAnyListeners.indexOf(t)&&this.eventsAnyListeners[e?"unshift":"push"](t),this},offAny(t){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let e=this.eventsAnyListeners.indexOf(t);return e>=0&&this.eventsAnyListeners.splice(e,1),this},off(t,e){let i=this;return!i.eventsListeners||i.destroyed||i.eventsListeners&&t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach((n,s)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(s,1)})}),i},emit(){let t,e,i;let n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;for(var s=arguments.length,r=Array(s),o=0;o<s;o++)r[o]=arguments[o];return"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],e=r.slice(1,r.length),i=n):(t=r[0].events,e=r[0].data,i=r[0].context||n),e.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEac
1h(t=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(n=>{n.apply(i,[t,...e])}),n.eventsListeners&&n.eventsListeners[t]&&n.eventsListeners[t].forEach(t=>{t.apply(i,e)})}),n}},update:{updateSize:function(){let t,e;let i=this.el;t=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,e=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(rq(i,"padding-left")||0,10)-parseInt(rq(i,"padding-right")||0,10),e=e-parseInt(rq(i,"padding-top")||0,10)-parseInt(rq(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),Object.assign(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){let t;let e=this;function i(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}let n=e.params,{wrapperEl:s,slidesEl:r,size:o,rtlTranslate:a,wrongRTL:c}=e,u=e.virtual&&n.virtual.enabled,h=u?e.virtual.slides.length:e.slides.length,l=rG(r,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:l.length,d=[],f=[],m=[],v=n.slidesOffsetBefore;"function"==typeof v&&(v=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));let w=e.snapGrid.length,b=e.slidesGrid.length,y=n.spaceBetween,S=-v,E=0,C=0;if(void 0===o)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*o:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,l.forEach(t=>{a?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(rk(s,"--swiper-centered-offset-before",""),rk(s,"--swiper-centered-offset-after",""));let A=n.grid&&n.grid.rows>1&&e.grid;A?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let T="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(t=>void 0!==n.breakpoints[t].slidesPerView).length>0;for(let s=0;s<p;s+=1){let r;if(t=0,l[s]&&(r=l[s]),A&&e.grid.updateSlide(s,r,l),!l[s]||"none"!==rq(r,"display")){if("auto"===n.slidesPerView){T&&(l[s].style[e.getDirectionLabel("width")]="");let o=getComputedStyle(r),a=r.style.transform,c=r.style.webkitTransform;if(a&&(r.style.transform="none"),c&&(r.style.webkitTransform="none"),n.roundLengths)t=e.isHorizontal()?rB(r,"width",!0):rB(r,"height",!0);else{let e=i(o,"width"),n=i(o,"padding-left"),s=i(o,"padding-right"),a=i(o,"margin-left"),c=i(o,"margin-right"),u=o.getPropertyValue("box-sizing");if(u&&"border-box"===u)t=e+a+c;else{let{clientWidth:i,offsetWidth:o}=r;t=e+n+s+a+c+(o-i)}}a&&(r.style.transform=a),c&&(r.style.webkitTransform=c),n.roundLengths&&(t=Math.floor(t))}else t=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(t=Math.floor(t)),l[s]&&(l[s].style[e.getDirectionLabel("width")]=`${t}px`);l[s]&&(l[s].swiperSlideSize=t),m.push(t),n.centeredSlides?(S=S+t/2+E/2+y,0===E&&0!==s&&(S=S-o/2-y),0===s&&(S=S-o/2-y),.001>Math.abs(S)&&(S=0),n.roundLengths&&(S=Math.floor(S)),C%n.slidesPerGroup==0&&d.push(S),f.push(S)):(n.roundLengths&&(S=Math.floor(S)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&d.push(S),f.push(S),S=S+t+y),e.virtualSize+=t+y,E=t,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,a&&c&&("slide"===n.effect||"coverflow"===n.effect)&&(s.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),A&&e.grid.updateWrapperSize(t,d),!n.centeredSlides){let t=[];for(let i=0;i<d.length;i+=1){let s=d[i];n.roundLengths&&(s=Math.floor(s)),d[i]<=e.virtualSize-o&&t.push(s)}d=t,Math.floor(e.virtualSize-o)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-o)}if(u&&n.loop){let t=m[0]+y;if(n.slidesPerGroup>1){let i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let t=0;t<i;t+=1)d.push(d[d.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===d.length&&(d=[0]),0!==y){let t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");l.filter((t,e)=>
1!(n.cssMode&&!n.loop)||e!==l.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;m.forEach(e=>{t+=e+(y||0)});let e=(t-=y)>o?t-o:0;d=d.map(t=>t<=0?-v:t>e?e+g:t)}if(n.centerInsufficientSlides){let t=0;m.forEach(e=>{t+=e+(y||0)}),t-=y;let e=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(t+e<o){let i=(o-t-e)/2;d.forEach((t,e)=>{d[e]=t-i}),f.forEach((t,e)=>{f[e]=t+i})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){rk(s,"--swiper-centered-offset-before",-d[0]+"px"),rk(s,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");let t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(t=>t+i)}if(p!==h&&e.emit("slidesLengthChange"),d.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(u||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){let t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);p<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(t){let e=this,i=[],n=e.virtual&&e.params.virtual.enabled,s,r=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);let o=t=>n?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1){if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(t=>{i.push(t)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){let t=e.activeIndex+s;if(t>e.slides.length&&!n)break;i.push(o(t))}}else i.push(o(e.activeIndex));for(s=0;s<i.length;s+=1)if(void 0!==i[s]){let t=i[s].offsetHeight;r=t>r?t:r}(r||0===r)&&(e.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){let t=this.slides,e=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(this.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-e-this.cssOverflowAdjustment()},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);let e=this.params,{slides:i,rtlTranslate:n,snapGrid:s}=this;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();let r=-t;n&&(r=t),this.visibleSlidesIndexes=[],this.visibleSlides=[];let o=e.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*this.size:"string"==typeof o&&(o=parseFloat(o));for(let t=0;t<i.length;t+=1){let a=i[t],c=a.swiperSlideOffset;e.cssMode&&e.centeredSlides&&(c-=i[0].swiperSlideOffset);let u=(r+(e.centeredSlides?this.minTranslate():0)-c)/(a.swiperSlideSize+o),h=(r-s[0]+(e.centeredSlides?this.minTranslate():0)-c)/(a.swiperSlideSize+o),l=-(r-c),p=l+this.slidesSizesGrid[t],d=l>=0&&l<=this.size-this.slidesSizesGrid[t],f=l>=0&&l<this.size-1||p>1&&p<=this.size||l<=0&&p>=this.size;f&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(t)),rW(a,f,e.slideVisibleClass),rW(a,d,e.slideFullyVisibleClass),a.progress=n?-u:u,a.originalProgress=n?-h:h}},updateProgress:function(t){if(void 0===t){let e=this.rtlTranslate?-1:1;t=this&&this.translate&&this.translate*e||0}let e=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:n,isBeginning:s,isEnd:r,progressLoop:o}=this,a=s,c=r;if(0===i)n=0,s=!0,r=!0;else{n=(t-this.minTranslate())/i;let e=1>Math.abs(t-this.minTranslate()),o=1>Math.abs(t-this.maxTranslate());s=e||n<=0,r=o||n>=1,e&&(n=0),o&&(n=1)}if(e.loop){let e=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),n=this.slidesGrid[e],s=this.slidesGrid[i],r=this.slidesGrid[this.slidesGrid.length-1],a=Math.abs(t);(o=a>=n?(a-n)/r:(a+r-s)/r)>1&&(o-=1)}Object.assign(this,{progress:n,progressLoop:o,isBeginning:s,isEnd:r}),(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)&&this.updateSlidesProgress(t),s&&!a&&this.emit("reachBeginning toEdge"),r&&!c&&this.emit("reachEnd toEdge"),(a&&!s||c&&!r)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){let t,e,i;let{slides:n,params:s,slidesEl:r,activeIndex:o}=this,a=this.virtual&&s.virtual.enabled,c=this.grid&&s.grid&&s.grid.rows>1,u=t=>rG(r,`.${s.slideClass}${t}, swiper-slide${t}`)[0];if(a){if(s.loop){let e=o-this.virtual.slidesBefore;e<0&&(e=this.virtual.slides.length+e),e>=this.virtual.slides.length&&(e-=this.virtual.slides.length),t=u(`[data-swiper-slide-index="${e}"]`)}else t=u(`[data-swiper-slide-index="${o}"]`)}else c?(t=n.find(t=>t.column===o),i=n.find(t=>t.column===o+1),e=n.find(t=>t.column===o-1)):t=n[o];t&&(c||(i=function(t,e){let i=[];for(;t.nextElementSibling;){let n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}(t,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!i&&(i=n[0]),e=function(t,e){let i=[];for(;t.previousElementSibling;){let n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}(t,`.${s.slideClass}
1, swiper-slide`)[0],s.loop)),n.forEach(n=>{rQ(n,n===t,s.slideActiveClass),rQ(n,n===i,s.slideNextClass),rQ(n,n===e,s.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(t){let e;let i=this,n=i.rtlTranslate?i.translate:-i.translate,{snapGrid:s,params:r,activeIndex:o,realIndex:a,snapIndex:c}=i,u,h=t,l=t=>{let e=t-i.virtual.slidesBefore;return e<0&&(e=i.virtual.slides.length+e),e>=i.virtual.slides.length&&(e-=i.virtual.slides.length),e};if(void 0===h&&(h=function(t){let e;let{slidesGrid:i,params:n}=t,s=t.rtlTranslate?t.translate:-t.translate;for(let t=0;t<i.length;t+=1)void 0!==i[t+1]?s>=i[t]&&s<i[t+1]-(i[t+1]-i[t])/2?e=t:s>=i[t]&&s<i[t+1]&&(e=t+1):s>=i[t]&&(e=t);return n.normalizeSlideIndex&&(e<0||void 0===e)&&(e=0),e}(i)),s.indexOf(n)>=0)u=s.indexOf(n);else{let t=Math.min(r.slidesPerGroupSkip,h);u=t+Math.floor((h-t)/r.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),h===o&&!i.params.loop)return void(u!==c&&(i.snapIndex=u,i.emit("snapIndexChange")));if(h===o&&i.params.loop&&i.virtual&&i.params.virtual.enabled)return void(i.realIndex=l(h));let p=i.grid&&r.grid&&r.grid.rows>1;if(i.virtual&&r.virtual.enabled&&r.loop)e=l(h);else if(p){let t=i.slides.find(t=>t.column===h),n=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(i.slides.indexOf(t),0)),e=Math.floor(n/r.grid.rows)}else if(i.slides[h]){let t=i.slides[h].getAttribute("data-swiper-slide-index");e=t?parseInt(t,10):h}else e=h;Object.assign(i,{previousSnapIndex:c,snapIndex:u,previousRealIndex:a,realIndex:e,previousIndex:o,activeIndex:h}),i.initialized&&rX(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(a!==e&&i.emit("realIndexChange"),i.emit("slideChange"))},updateClickedSlide:function(t,e){let i=this.params,n=t.closest(`.${i.slideClass}, swiper-slide`);!n&&this.isElement&&e&&e.length>
11&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(t=>{!n&&t.matches&&t.matches(`.${i.slideClass}, swiper-slide`)&&(n=t)});let s,r=!1;if(n){for(let t=0;t<this.slides.length;t+=1)if(this.slides[t]===n){r=!0,s=t;break}}if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=s,i.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");let{params:e,rtlTranslate:i,translate:n,wrapperEl:s}=this;if(e.virtualTranslate)return i?-n:n;if(e.cssMode)return n;let r=function(t,e){let i,n,s;void 0===e&&(e="x");let r=rO(),o=function(t){let e;let i=rO();return i.getComputedStyle&&(e=i.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return r.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix("none"===n?"":n)):i=(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(n=r.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=r.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0}(s,t);return r+=this.cssOverflowAdjustment(),i&&(r=-r),r||0},setTranslate:function(t,e){let{rtlTranslate:i,params:n,wrapperEl:s,progress:r}=this,o=0,a=0;this.isHorizontal()?o=i?-t:t:a=t,n.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?o:a,n.cssMode?s[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-o:-a:n.virtualTranslate||(this.isHorizontal()?o-=this.cssOverflowAdjustment():a-=this.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${a}px, 0px)`);let c=this.maxTranslate()-this.minTranslate();(0===c?0:(t-this.minTranslate())/c)!==r&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,i,n,s){let r;void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);let o=this,{params:a,wrapperEl:c}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;let u=o.minTranslate(),h=o.maxTranslate();if(r=n&&t>u?u:n&&t<h?h:t,o.updateProgress(r),a.cssMode){let t=o.isHorizontal();if(0===e)c[t?"scrollLeft":"scrollTop"]=-r;else{if(!o.support.smoothScroll)return rR({swiper:o,targetPosition:-r,side:t?"left":"top"}),!0;c.scrollTo({[t?"left":"top"]:-r,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(r),i&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,i&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${t}ms`,this.wrapperEl.style.transitionDelay=0===t?"0ms":""),this.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);let{params:i}=this;i.cssMode||(i.autoHeight&&this.updateAutoHeight(),rZ({swiper:this,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t,e){void 0===t&&(t=!0);let{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),rZ({swiper:this,runCallbacks:t,direction:e,step:"End"}))}}
1,slide:{slideTo:function(t,e,i,n,s){let r;void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t&&(t=parseInt(t,10));let o=this,a=t;a<0&&(a=0);let{params:c,snapGrid:u,slidesGrid:h,previousIndex:l,activeIndex:p,rtlTranslate:d,wrapperEl:f,enabled:m}=o;if(!m&&!n&&!s||o.destroyed||o.animating&&c.preventInteractionOnTransition)return!1;void 0===e&&(e=o.params.speed);let v=Math.min(o.params.slidesPerGroupSkip,a),g=v+Math.floor((a-v)/o.params.slidesPerGroup);g>=u.length&&(g=u.length-1);let w=-u[g];if(c.normalizeSlideIndex)for(let t=0;t<h.length;t+=1){let e=-Math.floor(100*w),i=Math.floor(100*h[t]),n=Math.floor(100*h[t+1]);void 0!==h[t+1]?e>=i&&e<n-(n-i)/2?a=t:e>=i&&e<n&&(a=t+1):e>=i&&(a=t)}if(o.initialized&&a!==p&&(!o.allowSlideNext&&(d?w>o.translate&&w>o.minTranslate():w<o.translate&&w<o.minTranslate())||!o.allowSlidePrev&&w>o.translate&&w>o.maxTranslate()&&(p||0)!==a))return!1;a!==(l||0)&&i&&o.emit("beforeSlideChangeStart"),o.updateProgress(w),r=a>p?"next":a<p?"prev":"reset";let b=o.virtual&&o.params.virtual.enabled;if((!b||!s)&&(d&&-w===o.translate||!d&&w===o.translate))return o.updateActiveIndex(a),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==c.effect&&o.setTranslate(w),"reset"!==r&&(o.transitionStart(i,r),o.transitionEnd(i,r)),!1;if(c.cssMode){let t=o.isHorizontal(),i=d?w:-w;if(0===e)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[t?"scrollLeft":"scrollTop"]=i})):f[t?"scrollLeft":"scrollTop"]=i,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return rR({swiper:o,targetPosition:i,side:t?"left":"top"}),!0;f.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}let y=r$().isSafari;return b&&!s&&y&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(e),o.setTranslate(w),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,n),o.transitionStart(i,r),0===e?o.transitionEnd(i,r):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(i,r))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t,e,i,n){void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t&&(t=parseInt(t,10));let s=this;if(s.destroyed)return;void 0===e&&(e=s.params.speed);let r=s.grid&&s.params.grid&&s.params.grid.rows>1,o=t;if(s.params.loop){if(s.virtual&&s.params.virtual.enabled)o+=s.virtual.slidesBefore;else{let t;if(r){let e=o*s.params.grid.rows;t=s.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else t=s.getSlideIndexByData(o);let e=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:i}=s.params,a=s.params.slidesPerView;"auto"===a?a=s.slidesPerViewDynamic():(a=Math.ceil(parseFloat(s.params.slidesPerView,10)),i&&a%2==0&&(a+=1));let c=e-t<a;if(i&&(c=c||t<Math.ceil(a/2)),n&&i&&"auto"!==s.params.slidesPerView&&!r&&(c=!1),c){let n=i?t<s.activeIndex?"prev":"next":t-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?t+1:t-e+1,slideRealIndex:"next"===n?s.realIndex:void 0})}if(r){let t=o*s.params.grid.rows;o=s.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else o=s.getSlideIndexByData(o)}}return requestAnimationFrame(()=>{s.slideTo(o,e,i,n)}),s},slideNext:function(t,e,i){void 0===e&&(e=!0);let n=this,{enabled:s,params:r,animating:o}=n;if(!s||n.destroyed)return n;void 0===t&&(t=n.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));let c=n.activeIndex<r.slidesPerGroupSkip?1:a,u=n.virtual&&r.virtual.enabled;if(r.loop){if(o&&!u&&r.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+c,t,e,i)}),!0}return r.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+c,t,e,i)}
1,slidePrev:function(t,e,i){void 0===e&&(e=!0);let n=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:c,animating:u}=n;if(!c||n.destroyed)return n;void 0===t&&(t=n.params.speed);let h=n.virtual&&s.virtual.enabled;if(s.loop){if(u&&!h&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}let p=l(a?n.translate:-n.translate),d=r.map(t=>l(t)),f=s.freeMode&&s.freeMode.enabled,m=r[d.indexOf(p)-1];if(void 0===m&&(s.cssMode||f)){let t;r.forEach((e,i)=>{p>=e&&(t=i)}),void 0!==t&&(m=f?r[t]:r[t>0?t-1:t])}let v=0;if(void 0!==m&&((v=o.indexOf(m))<0&&(v=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(v=Math.max(v=v-n.slidesPerViewDynamic("previous",!0)+1,0))),s.rewind&&n.isBeginning){let s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,t,e,i)}return s.loop&&0===n.activeIndex&&s.cssMode?(requestAnimationFrame(()=>{n.slideTo(v,t,e,i)}),!0):n.slideTo(v,t,e,i)},slideReset:function(t,e,i){if(void 0===e&&(e=!0),!this.destroyed)return void 0===t&&(t=this.params.speed),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i,n){if(void 0===e&&(e=!0),void 0===n&&(n=.5),this.destroyed)return;void 0===t&&(t=this.params.speed);let s=this.activeIndex,r=Math.min(this.params.slidesPerGroupSkip,s),o=r+Math.floor((s-r)/this.params.slidesPerGroup),a=this.rtlTranslate?this.translate:-this.translate;if(a>=this.snapGrid[o]){let t=this.snapGrid[o];a-t>(this.snapGrid[o+1]-t)*n&&(s+=this.params.slidesPerGroup)}else{let t=this.snapGrid[o-1];a-t<=(this.snapGrid[o]-t)*n&&(s-=this.params.slidesPerGroup)}return s=Math.min(s=Math.max(s,0),this.slidesGrid.length-1),this.slideTo(s,t,e,i)},slideToClickedSlide:function(){let t=this;if(t.destroyed)return;let{params:e,slidesEl:i}=t,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView,s,r=t.clickedIndex,o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-n/2||r>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),r=t.getSlideIndex(rG(i,`${o}[data-swiper-slide-index="${s}"]`)[0]),rx(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-n?(t.loopFix(),r=t.getSlideIndex(rG(i,`${o}[data-swiper-slide-index="${s}"]`)[0]),rx(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}},loop:{loopCreate:function(t,e){let i=this,{params:n,slidesEl:s}=i;if(!n.loop||i.virtual&&i.params.virtual.enabled)return;let r=i.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(r?n.grid.rows:1),a=i.slides.length%o!=0,c=r&&i.slides.length%n.grid.rows!=0,u=t=>{for(let e=0;e<t;e+=1){let t=i.isElement?rN("swiper-slide",[n.slideBlankClass]):rN("div",[n.slideClass,n.slideBlankClass]);i.slidesEl.append(t)}};a?n.loopAddBlankSlides?(u(o-i.slides.length%o),i.recalcSlides(),i.updateSlides()):rM("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):c&&(n.loopAddBlankSlides?(u(n.grid.rows-i.slides.length%n.grid.rows),i.recalcSlides(),i.updateSlides()):rM("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),rG(s,`.${n.slideClass}, swiper-slide`).forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e)}),i.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next",initial:e})},loopFix:function(t){let{slideRealIndex:e,slideTo:i=!0,direction:n,setTranslate:s,activeSlideIndex:r,initial:o,byController:a,byMousewheel:c}=void 0===t?{}:t,u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");let{slides:h,allowSlidePrev:l,allowSlideNext:p,slidesEl:d,params:f}=u,{centeredSlides:m,initialSlide:v}=f;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&f.virtual.enabled)return i&&(f.centeredSlides||0!==u.snapIndex?f.centeredSlides&&u.snapIndex<f.slidesPerView?u.
1slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0):u.slideTo(u.virtual.slides.length,0,!1,!0)),u.allowSlidePrev=l,u.allowSlideNext=p,void u.emit("loopFix");let g=f.slidesPerView;"auto"===g?g=u.slidesPerViewDynamic():(g=Math.ceil(parseFloat(f.slidesPerView,10)),m&&g%2==0&&(g+=1));let w=f.slidesPerGroupAuto?g:f.slidesPerGroup,b=w;b%w!=0&&(b+=w-b%w),b+=f.loopAdditionalSlides,u.loopedSlides=b;let y=u.grid&&f.grid&&f.grid.rows>1;h.length<g+b||"cards"===u.params.effect&&h.length<g+2*b?rM("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===f.grid.fill&&rM("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let S=[],E=[],C=y?Math.ceil(h.length/f.grid.rows):h.length,A=o&&C-v<g&&!m,T=A?v:u.activeIndex;void 0===r?r=u.getSlideIndex(h.find(t=>t.classList.contains(f.slideActiveClass))):T=r;let P="next"===n||!n,L="prev"===n||!n,O=0,x=0,D=(y?h[r].column:r)+(m&&void 0===s?-g/2+.5:0);if(D<b){O=Math.max(b-D,w);for(let t=0;t<b-D;t+=1){let e=t-Math.floor(t/C)*C;if(y){let t=C-e-1;for(let e=h.length-1;e>=0;e-=1)h[e].column===t&&S.push(e)}else S.push(C-e-1)}}else if(D+g>C-b){x=Math.max(D-(C-2*b),w),A&&(x=Math.max(x,g-C+v+1));for(let t=0;t<x;t+=1){let e=t-Math.floor(t/C)*C;y?h.forEach((t,i)=>{t.column===e&&E.push(i)}):E.push(e)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),"cards"===u.params.effect&&h.length<g+2*b&&(E.includes(r)&&E.splice(E.indexOf(r),1),S.includes(r)&&S.splice(S.indexOf(r),1)),L&&S.forEach(t=>{h[t].swiperLoopMoveDOM=!0,d.prepend(h[t]),h[t].swiperLoopMoveDOM=!1}),P&&E.forEach(t=>{h[t].swiperLoopMoveDOM=!0,d.append(h[t]),h[t].swiperLoopMoveDOM=!1}),u.recalcSlides(),"auto"===f.slidesPerView?u.updateSlides():y&&(S.length>0&&L||E.length>0&&P)&&u.slides.forEach((t,e)=>{u.grid.updateSlide(e,t,u.slides)}),f.watchSlidesProgress&&u.updateSlidesOffset(),i){if(S.length>0&&L){if(void 0===e){let t=u.slidesGrid[T],e=u.slidesGrid[T+O]-t;c?u.setTranslate(u.translate-e):(u.slideTo(T+Math.ceil(O),0,!1,!0),s&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-e,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-e))}else if(s){let t=y?S.length/f.grid.rows:S.length;u.slideTo(u.activeIndex+t,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(E.length>0&&P){if(void 0===e){let t=u.slidesGrid[T],e=u.slidesGrid[T-x]-t;c?u.setTranslate(u.translate-e):(u.slideTo(T-x,0,!1,!0),s&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-e,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-e))}else{let t=y?E.length/f.grid.rows:E.length;u.slideTo(u.activeIndex-t,0,!1,!0)}}}if(u.allowSlidePrev=l,u.allowSlideNext=p,u.controller&&u.controller.control&&!a){let t={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...t,slideTo:e.params.slidesPerView===f.slidesPerView&&i})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...t,slideTo:u.controller.control.params.slidesPerView===f.slidesPerView&&i})}u.emit("loopFix")},loopDestroy:function(){let{params:t,slidesEl:e}=this;if(!t.loop||!e||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(t=>{i[void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex]=t}),this.slides.forEach(t=>{t.removeAttribute("data-swiper-slide-index")}),i.forEach(t=>{e.append(t)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(t){let e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;let i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})},unsetGrabCursor:function(){let t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:t}=this;this.onTouchStart=r1.bind(this),this.onTouchMove=r2.bind(this),this.onTouchEnd=r4.bind(this),this.onDocumentTouchStart=r9.bind(this),t.cssMode&&(this.onScroll=r6.bind(this)),this.onClick=r5.bind(this),this.onLoad=r8.bind(this),r7(this,"on")},detachEvents:function(){r7(this,"off")}},breakpoints:{setBreakpoint:function(){let t=this,{realIndex:e,initialized:i,params:n,el:s}=t,r=n.breakpoints;if(!r||r&&0===Object.keys(r).length)return;let o=rP(),a="window"!==n.breakpointsBase&&n.breakpointsBase?"container":n.breakpointsBase,c=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:o.querySelector(n.breakpointsBase),u=t.getBreakp
1oint(r,a,c);if(!u||t.currentBreakpoint===u)return;let h=(u in r?r[u]:void 0)||t.originalParams,l=ot(t,n),p=ot(t,h),d=t.params.grabCursor,f=h.grabCursor,m=n.enabled;l&&!p?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!l&&p&&(s.classList.add(`${n.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===n.grid.fill)&&s.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),d&&!f?t.unsetGrabCursor():!d&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{if(void 0===h[e])return;let i=n[e]&&n[e].enabled,s=h[e]&&h[e].enabled;i&&!s&&t[e].disable(),!i&&s&&t[e].enable()});let v=h.direction&&h.direction!==n.direction,g=n.loop&&(h.slidesPerView!==n.slidesPerView||v),w=n.loop;v&&i&&t.changeDirection(),rI(t.params,h);let b=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!b?t.disable():!m&&b&&t.enable(),t.currentBreakpoint=u,t.emit("_beforeBreakpoint",h),i&&(g?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!w&&y?(t.loopCreate(e),t.updateSlides()):w&&!y&&t.loopDestroy()),t.emit("breakpoint",h)},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),!t||"container"===e&&!i)return;let n=!1,s=rO(),r="window"===e?s.innerHeight:i.clientHeight,o=Object.keys(t).map(t=>"string"==typeof t&&0===t.indexOf("@")?{value:r*parseFloat(t.substr(1)),point:t}:{value:t,point:t});o.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;t<o.length;t+=1){let{point:r,value:a}=o[t];"window"===e?s.matchMedia(`(min-width: ${a}px)`).matches&&(n=r):a<=i.clientWidth&&(n=r)}return n||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:t,params:e}=this,{slidesOffsetBefore:i}=e;if(i){let t=this.slides.length-1,e=this.slidesGrid[t]+this.slidesSizesGrid[t]+2*i;this.isLocked=this.size>e}else this.isLocked=1===this.snapGrid.length;!0===e.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===e.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),t&&t!==this.isLocked&&(this.isEnd=!1),t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:t,params:e,rtl:i,el:n,device:s}=this,r=function(t,e){let i=[];return t.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(n=>{t[n]&&i.push(e+n)}):"string"==typeof t&&i.push(e+t)}),i}(["initialized",e.direction,{"free-mode":this.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:i},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&"column"===e.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);t.push(...r),n.classList.add(...t),this.emitContainerClasses()},removeClasses:function(){let{el:t,classNames:e}=this;t&&"string"!=typeof t&&(t.classList.remove(...e),this.emitContainerClasses())}}},on={};class os{constructor(){let t,e;for(var i=arguments.length,n=Array(i),s=0;s<i;s++)n[s]=arguments[s];1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?e=n[0]:[t,e]=n,e||(e={}),e=rI({},e),t&&!e.el&&(e.el=t);let r=rP();if(e.el&&"string"==typeof e.el&&r.querySelectorAll(e.el).length>1){let t=[];return r.querySelectorAll(e.el).forEach(i=>{let n=rI({},e,{el:i});t.push(new os(n))}),t}let o=this;o.__swiper__=!0,o.support=rH(),o.device=rK({userAgent:e.userAgent}),o.browser=r$(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],e.modules&&Array.isArray(e.modules)&&o.modules.push(...e.modules);let a={};o.modules.forEach(t=>{var i;t({params:e,swiper:o,extendParams:(i=e,function(t){void 0===t&&(t={});let e=Object.keys(t)[0],n=t[e];"object"==typeof n&&null!==n&&(!0===i[e]&&(i[e]={enabled:!0}),"navigation"===e&&i[e]&&i[e].enabled&&!i[e].prevEl&&!i[e].nextEl&&(i[e].auto=!0),["pagination","scrollbar"].indexOf(e)>=0&&i[e]&&i[e].enabled&&!i[e].el&&(i[e].auto=!0),e in i&&"enabled"in n&&("object"!=typeof i[e]||"enabled"in i[e]||(i[e].enabled=!0),i[e]||(i[e]={enabled:!1}))),rI(a,t)}),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});let c=rI({},oe,a);return o.params=rI({},c,on,e),o.originalParams=rI({},o.params),o.passedParams=rI({}
1,e),o.params&&o.params.on&&Object.keys(o.params.on).forEach(t=>{o.on(t,o.params.on[t])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(t){return this.isHorizontal()?t:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[t]}getSlideIndex(t){let{slidesEl:e,params:i}=this,n=rj(rG(e,`.${i.slideClass}, swiper-slide`)[0]);return rj(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t))}recalcSlides(){let{slidesEl:t,params:e}=this;this.slides=rG(t,`.${e.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(t,e){t=Math.min(Math.max(t,0),1);let i=this.minTranslate(),n=(this.maxTranslate()-i)*t+i;this.translateTo(n,void 0===e?0:e),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let t=this;if(!t.params._emitClasses||!t.el)return;let e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){let e=this;return e.destroyed?"":t.className.split(" ").filter(t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){let t=this;if(!t.params._emitClasses||!t.el)return;let e=[];t.slides.forEach(i=>{let n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);let{params:i,slides:n,slidesGrid:s,slidesSizesGrid:r,size:o,activeIndex:a}=this,c=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let t,e=n[a]?Math.ceil(n[a].swiperSlideSize):0;for(let i=a+1;i<n.length;i+=1)n[i]&&!t&&(e+=Math.ceil(n[i].swiperSlideSize),c+=1,e>o&&(t=!0));for(let i=a-1;i>=0;i-=1)n[i]&&!t&&(e+=n[i].swiperSlideSize,c+=1,e>o&&(t=!0))}else if("current"===t)for(let t=a+1;t<n.length;t+=1)(e?s[t]+r[t]-s[a]<o:s[t]-s[a]<o)&&(c+=1);else for(let t=a-1;t>=0;t-=1)s[a]-s[t]<o&&(c+=1);return c}update(){let t;let e=this;if(!e||e.destroyed)return;let{snapGrid:i,params:n}=e;function s(){let t=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&rJ(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let i=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;t=e.slideTo(i.length-1,0,!1,!0)}else t=e.slideTo(e.activeIndex,0,!1,!0);t||s()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);let i=this.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${t}`),this.emitContainerClasses(),this.params.direction=t,this.slides.forEac
1h(e=>{"vertical"===t?e.style.width="":e.style.height=""}),this.emit("changeDirection"),e&&this.update()),this}changeLanguageDirection(t){this.rtl&&"rtl"===t||!this.rtl&&"ltr"===t||(this.rtl="rtl"===t,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(t){let e=this;if(e.mounted)return!0;let i=t||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);let n=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`,s=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(n()):rG(i,n())[0];return!s&&e.params.createElements&&(s=rN("div",e.params.wrapperClass),i.append(s),rG(i,`.${e.params.slideClass}`).forEach(t=>{s.append(t)})),Object.assign(e,{el:i,wrapperEl:s,slidesEl:e.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:s,hostEl:e.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===rq(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===rq(i,"direction")),wrongRTL:"-webkit-box"===rq(s,"display")}),!0}init(t){let e=this;if(e.initialized||!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();let i=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&i.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(t=>{t.complete?rJ(e,t):t.addEventListener("load",t=>{rJ(e,t.target)})}),rX(e),e.initialized=!0,rX(e),e.emit("init"),e.emit("afterInit"),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);let i=this,{params:n,el:s,wrapperEl:r,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(t=>{t.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(t=>{i.off(t)}),!1!==t&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(t){Object.keys(t).forEach(e=>{try{t[e]=null}catch(t){}try{delete t[e]}catch(t){}})}(i)),i.destroyed=!0),null}static extendDefaults(t){rI(on,t)}static get extendedDefaults(){return on}static get defaults(){return oe}static installModule(t){os.prototype.__modules__||(os.prototype.__modules__=[]);let e=os.prototype.__modules__;"function"==typeof t&&0>e.indexOf(t)&&e.push(t)}static use(t){return Array.isArray(t)?t.forEach(t=>os.installModule(t)):os.installModule(t),os}}Object.keys(oi).forEach(t=>{Object.keys(oi[t]).forEach(e=>{os.prototype[e]=oi[t][e]})}),os.use([function(t){let{swiper:e,on:i,emit:n}=t,s=rO(),r=null,o=null,a=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},c=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};i("init",()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver(t=>{o=s.requestAnimationFrame(()=>{let{width:i,height:n}=e,s=i,r=n;t.forEach(t=>{let{contentBoxSize:i,contentRect:n,target:o}=t;o&&o!==e.el||(s=n?n.width:(i[0]||i).inlineSize,r=n?n.height:(i[0]||i).blockSize)}),s===i&&r===n||a()})})).observe(e.el):(s.addEventListener("resize",a),s.addEventListener("orientationchange",c))}),i("destroy",()=>{o&&s.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",c)})},function(t){let{swiper:e,extendParams:i,on:n,emit:s}=t,r=[],o=rO(),a=function(t,i){void 0===i&&(i={});let n=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void s("observerUpdate",t[0]);let i=function(){s("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)});n.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),r.push(n)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=rF(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{r.forEach(t=>{t.disconnect()}),r.splice(0,r.length)})}]);let or=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
1ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function oo(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)&&!t.__swiper__}function oa(t,e){let i=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>0>i.indexOf(t)).forEach(i=>{void 0===t[i]?t[i]=e[i]:oo(e[i])&&oo(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:oa(t[i],e[i]):t[i]=e[i]})}function oc(t){return void 0===t&&(t={}),t.navigation&&void 0===t.navigation.nextEl&&void 0===t.navigation.prevEl}function ou(t){return void 0===t&&(t={}),t.pagination&&void 0===t.pagination.el}function oh(t){return void 0===t&&(t={}),t.scrollbar&&void 0===t.scrollbar.el}function ol(t){void 0===t&&(t="");let e=t.split(" ").map(t=>t.trim()).filter(t=>!!t),i=[];return e.forEach(t=>{0>i.indexOf(t)&&i.push(t)}),i.join(" ")}function op(){return(op=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function od(t){return t.type&&t.type.displayName&&t.type.displayName.includes("SwiperSlide")}function of(t,e){return"undefined"==typeof window?(0,X.useEffect)(t,e):(0,X.useLayoutEffect)(t,e)}let om=(0,X.createContext)(null),ov=(0,X.createContext)(null),og=(0,X.forwardRef)(function(t,e){var i;let{className:n,tag:s="div",wrapperTag:r="div",children:o,onSwiper:a,...c}=void 0===t?{}:t,u=!1,[h,l]=(0,X.useState)("swiper"),[p,d]=(0,X.useState)(null),[f,m]=(0,X.useState)(!1),v=(0,X.useRef)(!1),g=(0,X.useRef)(null),w=(0,X.useRef)(null),b=(0,X.useRef)(null),y=(0,X.useRef)(null),S=(0,X.useRef)(null),E=(0,X.useRef)(null),C=(0,X.useRef)(null),A=(0,X.useRef)(null),{params:T,passedParams:P,rest:L,events:O}=function(t,e){void 0===t&&(t={}),void 0===e&&(e=!0);let i={on:{}},n={},s={};oa(i,oe),i._emitClasses=!0,i.init=!1;let r={},o=or.map(t=>t.replace(/_/,""));return Object.keys(Object.assign({},t)).forEach(a=>{void 0!==t[a]&&(o.indexOf(a)>=0?oo(t[a])?(i[a]={},s[a]={},oa(i[a],t[a]),oa(s[a],t[a])):(i[a]=t[a],s[a]=t[a]):0===a.search(/on[A-Z]/)&&"function"==typeof t[a]?e?n[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=t[a]:r[a]=t[a])}),["navigation","pagination","scrollbar"].forEach(t=>{!0===i[t]&&(i[t]={}),!1===i[t]&&delete i[t]}),{params:i,passedParams:s,rest:r,events:n}}(c),{slides:x,slots:D}=function(t){let e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return X.Children.toArray(t).forEach(t=>{if(od(t))e.push(t);else if(t.props&&t.props.slot&&i[t.props.slot])i[t.props.slot].push(t);else if(t.props&&t.props.children){let n=function t(e){let i=[];return X.Children.toArray(e).forEach(e=>{od(e)?i.push(e):e.props&&e.props.children&&t(e.props.children).forEach(t=>i.push(t))}),i}(t.props.children);n.length>
10?n.forEach(t=>e.push(t)):i["container-end"].push(t)}else i["container-end"].push(t)}),{slides:e,slots:i}}(o),_=()=>{m(!f)};Object.assign(T.on,{_containerClasses(t,e){l(e)}});let I=()=>{Object.assign(T.on,O),u=!0;let t={...T};if(delete t.wrapperClass,w.current=new os(t),w.current.virtual&&w.current.params.virtual.enabled){w.current.virtual.slides=x;let t={cache:!1,slides:x,renderExternal:d,renderExternalUpdate:!1};oa(w.current.params.virtual,t),oa(w.current.originalParams.virtual,t)}};return g.current||I(),w.current&&w.current.on("_beforeBreakpoint",_),(0,X.useEffect)(()=>()=>{w.current&&w.current.off("_beforeBreakpoint",_)}),(0,X.useEffect)(()=>{!v.current&&w.current&&(w.current.emitSlidesClasses(),v.current=!0)}),of(()=>{if(e&&(e.current=g.current),g.current)return w.current.destroyed&&I(),function(t,e){let{el:i,nextEl:n,prevEl:s,paginationEl:r,scrollbarEl:o,swiper:a}=t;oc(e)&&n&&s&&(a.params.navigation.nextEl=n,a.originalParams.navigation.nextEl=n,a.params.navigation.prevEl=s,a.originalParams.navigation.prevEl=s),ou(e)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),oh(e)&&o&&(a.params.scrollbar.el=o,a.originalParams.scrollbar.el=o),a.init(i)}({el:g.current,nextEl:S.current,prevEl:E.current,paginationEl:C.current,scrollbarEl:A.current,swiper:w.current},T),a&&!w.current.destroyed&&a(w.current),()=>{w.current&&!w.current.destroyed&&w.current.destroy(!0,!1)}},[]),of(()=>{!u&&O&&w.current&&Object.keys(O).forEach(t=>{w.current.on(t,O[t])});let t=function(t,e,i,n,s){let r=[];if(!e)return r;let o=t=>{0>r.indexOf(t)&&r.push(t)};if(i&&n){let t=n.map(s),e=i.map(s);t.join("")!==e.join("")&&o("children"),n.length!==i.length&&o("children")}return or.filter(t=>"_"===t[0]).map(t=>t.replace(/_/,"")).forEach(i=>{if(i in t&&i in e){if(oo(t[i])&&oo(e[i])){let n=Object.keys(t[i]),s=Object.keys(e[i]);n.length!==s.length?o(i):(n.forEach(n=>{t[i][n]!==e[i][n]&&o(i)}),s.forEach(n=>{t[i][n]!==e[i][n]&&o(i)}))}else t[i]!==e[i]&&o(i)}}),r}(P,b.current,x,y.current,t=>t.key);return b.current=P,y.current=x,t.length&&w.current&&!w.current.destroyed&&function(t){let e,i,n,s,r,o,a,c,{swiper:u,slides:h,passedParams:l,changedParams:p,nextEl:d,prevEl:f,scrollbarEl:m,paginationEl:v}=t,g=p.filter(t=>"children"!==t&&"direction"!==t&&"wrapperClass"!==t),{params:w,pagination:b,navigation:y,scrollbar:S,virtual:E,thumbs:C}=u;p.includes("thumbs")&&l.thumbs&&l.thumbs.swiper&&!l.thumbs.swiper.destroyed&&w.thumbs&&(!w.thumbs.swiper||w.thumbs.swiper.destroyed)&&(e=!0),p.includes("controller")&&l.controller&&l.controller.control&&w.controller&&!w.controller.control&&(i=!0),p.includes("pagination")&&l.pagination&&(l.pagination.el||v)&&(w.pagination||!1===w.pagination)&&b&&!b.el&&(n=!0),p.includes("scrollbar")&&l.scrollbar&&(l.scrollbar.el||m)&&(w.scrollbar||!1===w.scrollbar)&&S&&!S.el&&(s=!0),p.includes("navigation")&&l.navigation&&(l.navigation.prevEl||f)&&(l.navigation.nextEl||d)&&(w.navigation||!1===w.navigation)&&y&&!y.prevEl&&!y.nextEl&&(r=!0);let A=t=>{u[t]&&(u[t].destroy(),"navigation"===t?(u.isElement&&(u[t].prevEl.remove(),u[t].nextEl.remove()),w[t].prevEl=void 0,w[t].nextEl=void 0,u[t].prevEl=void 0,u[t].nextEl=void 0):(u.isElement&&u[t].el.remove(),w[t].el=void 0,u[t].el=void 0))};p.includes("loop")&&u.isElement&&(w.loop&&!l.loop?o=!0:!w.loop&&l.loop?a=!0:c=!0),g.forEach(t=>{if(oo(w[t])&&oo(l[t]))Object.assign(w[t],l[t]),("navigation"===t||"pagination"===t||"scrollbar"===t)&&"enabled"in l[t]&&!l[t].enabled&&A(t);else{let e=l[t];!0!==e&&!1!==e||"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t?w[t]=l[t]:!1===e&&A(t)}}),g.includes("controller")&&!i&&u.controller&&u.controller.control&&w.controller&&w.controller.control&&(u.controller.control=w.controller.control),p.includes("children")&&h&&E&&w.virtual.enabled?(E.slides=h,E.update(!0)):p.includes("virtual")&&E&&w.virtual.enabled&&(h&&(E.slides=h),E.update(!0)),p.includes("children")&&h&&w.loop&&(c=!0),e&&C.init()&&C.update(!0),i&&(u.controller.control=w.controller.control),n&&(!u.isElement||v&&"string"!=typeof v||((v=document.createElement("div")).classList.add("swiper-pagination"),v.part.add("pagination"),u.el.appendChild(v)),v&&(w.pagination.el=v),b.init(),b.render(),b.update(
1)),s&&(!u.isElement||m&&"string"!=typeof m||((m=document.createElement("div")).classList.add("swiper-scrollbar"),m.part.add("scrollbar"),u.el.appendChild(m)),m&&(w.scrollbar.el=m),S.init(),S.updateSize(),S.setTranslate()),r&&(u.isElement&&(d&&"string"!=typeof d||((d=document.createElement("div")).classList.add("swiper-button-next"),rz(d,u.hostEl.constructor.nextButtonSvg),d.part.add("button-next"),u.el.appendChild(d)),f&&"string"!=typeof f||((f=document.createElement("div")).classList.add("swiper-button-prev"),rz(f,u.hostEl.constructor.prevButtonSvg),f.part.add("button-prev"),u.el.appendChild(f))),d&&(w.navigation.nextEl=d),f&&(w.navigation.prevEl=f),y.init(),y.update()),p.includes("allowSlideNext")&&(u.allowSlideNext=l.allowSlideNext),p.includes("allowSlidePrev")&&(u.allowSlidePrev=l.allowSlidePrev),p.includes("direction")&&u.changeDirection(l.direction,!1),(o||c)&&u.loopDestroy(),(a||c)&&u.loopCreate(),u.update()}({swiper:w.current,slides:x,passedParams:P,changedParams:t,nextEl:S.current,prevEl:E.current,scrollbarEl:A.current,paginationEl:C.current}),()=>{O&&w.current&&Object.keys(O).forEach(t=>{w.current.off(t,O[t])})}}),of(()=>{var t;!(t=w.current)||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())},[p]),X.createElement(s,op({ref:g,className:ol(`${h}${n?` ${n}`:""}`)},L),X.createElement(ov.Provider,{value:w.current},D["container-start"],X.createElement(r,{className:(void 0===(i=T.wrapperClass)&&(i=""),i?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper")},D["wrapper-start"],T.virtual?function(t,e,i){if(!i)return null;let n=t=>{let i=t;return t<0?i=e.length+t:i>=e.length&&(i-=e.length),i},s=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:r,to:o}=i,a=t.params.loop?-e.length:0,c=t.params.loop?2*e.length:e.length,u=[];for(let t=a;t<c;t+=1)t>=r&&t<=o&&u.push(e[n(t)]);return u.map((e,i)=>X.cloneElement(e,{swiper:t,style:s,key:e.props.virtualIndex||e.key||`slide-${i}`}))}(w.current,x,p):x.map((t,e)=>X.cloneElement(t,{swiper:w.current,swiperSlideIndex:e})),D["wrapper-end"]),oc(T)&&X.createElement(X.Fragment,null,X.createElement("div",{ref:E,className:"swiper-button-prev"}),X.createElement("div",{ref:S,className:"swiper-button-next"})),oh(T)&&X.createElement("div",{ref:A,className:"swiper-scrollbar"}),ou(T)&&X.createElement("div",{ref:C,className:"swiper-pagination"}),D["container-end"]))});og.displayName="Swiper";let ow=(0,X.forwardRef)(function(t,e){let{tag:i="div",children:n,className:s="",swiper:r,zoom:o,lazy:a,virtualIndex:c,swiperSlideIndex:u,...h}=void 0===t?{}:t,l=(0,X.useRef)(null),[p,d]=(0,X.useState)("swiper-slide"),[f,m]=(0,X.useState)(!1);function v(t,e,i){e===l.current&&d(i)}of(()=>{if(void 0!==u&&(l.current.swiperSlideIndex=u),e&&(e.current=l.current),l.current&&r){if(!r.destroyed)return r.on("_slideClass",v),()=>{r&&r.off("_slideClass",v)};"swiper-slide"!==p&&d("swiper-slide")}}),of(()=>{r&&l.current&&!r.destroyed&&d(r.getSlideClasses(l.current))},[r]);let g={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},w=()=>"function"==typeof n?n(g):n;return X.createElement(i,op({ref:l,className:ol(`${p}${s?` ${s}`:""}`),"data-swiper-slide-index":c,onLoad:()=>{m(!0)}},h),o&&X.createElement(om.Provider,{value:g},X.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},w(),a&&!f&&X.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&X.createElement(om.Provider,{value:g},w(),a&&!f&&X.createElement("div",{className:"swiper-lazy-preloader"})))});function ob(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(s=>{if(!i[s]&&!0===i.auto){let r=rG(t.el,`.${n[s]}`)[0];r||((r=rN("div",n[s])).className=n[s],t.el.append(r)),i[s]=r,e[s]=r}}),i}function oy(t){let{swiper:e,extendParams:i,on:n,emit:s}=t;function r(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t))?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i?t:i)}function o(t,i){let n=e.params.navigation;
1(t=rV(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass))})}function a(){let{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop)return o(i,!1),void o(t,!1);o(i,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function c(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function u(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function h(){let t=e.params.navigation;if(e.params.navigation=ob(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let i=r(t.nextEl),n=r(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:n}),i=rV(i),n=rV(n);let s=(i,n)=>{i&&i.addEventListener("click","next"===n?u:c),!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};i.forEach(t=>
1s(t,"next")),n.forEach(t=>s(t,"prev"))}function l(){let{nextEl:t,prevEl:i}=e.navigation;t=rV(t),i=rV(i);let n=(t,i)=>{t.removeEventListener("click","next"===i?u:c),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(t=>n(t,"next")),i.forEach(t=>n(t,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null},n("init",()=>{!1===e.params.navigation.enabled?p():(h(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{l()}),n("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;t=rV(t),i=rV(i),e.enabled?a():[...t,...i].filter(t=>!!t).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n("click",(t,i)=>{let{nextEl:n,prevEl:r}=e.navigation;n=rV(n),r=rV(r);let o=i.target,a=r.includes(o)||n.includes(o);if(e.isElement&&!a){let t=i.path||i.composedPath&&i.composedPath();t&&(a=t.find(t=>n.includes(t)||r.includes(t)))}if(e.params.navigation.hideOnClick&&!a){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;n.length?t=n[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),[...n,...r].filter(t=>!!t).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),l()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),h(),a()},disable:p,update:a,init:h,destroy:l})}function oS(t){return void 0===t&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function oE(t){let e,{swiper:i,extendParams:n,on:s,emit:r}=t,o="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),i.pagination={el:null,bullets:[]};let a=0;function c(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&0===i.pagination.el.length}function u(t,e){let{bulletActiveClass:n}=i.params.pagination;t&&(t=t[("prev"===e?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${n}-${e}`),(t=t[("prev"===e?"previous":"next")+"ElementSibling"])&&t.classList.add(`${n}-${e}-${e}`))}function h(t){var e,n,s;let r=t.target.closest(oS(i.params.pagination.bulletClass));if(!r)return;t.preventDefault();let o=rj(r)*i.params.slidesPerGroup;if(i.params.loop){if(i.realIndex===o)return;let t=(e=i.realIndex,(n=o%(s=i.slides.length))==1+(e%=s)?"next":n===e-1?"previous":void 0);"next"===t?i.slideNext():"previous"===t?i.slidePrev():i.slideToLoop(o)}else i.slideTo(o)}function l(){let t=i.rtl,n=i.params.pagination;if(c())return;let s,o,h=i.pagination.el;h=rV(h);let l=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,p=i.params.loop?Math.ceil(l/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(o=i.previousRealIndex||0,s=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):void 0!==i.snapIndex?(s=i.snapIndex,o=i.previousSnapIndex):(o=i.previousIndex||0,s=i.activeIndex||0),"bullets"===n.type&&i.pagination.bullets&&i.pagination.bullets.length>0){let r,c,l;let p=i.pagination.bullets;if(n.dynamicBullets&&(e=rB(p[0],i.isHorizontal()?"width":"height",!0),h.forEach(t=>{t.style[i.isHorizontal()?"width":"height"]=e*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==o&&((a+=s-(o||0))>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),l=((c=(r=Math.max(s-a,0))+(Math.min(p.length,n.dynamicMainBullets)-1))+r)/2),p.forEach(t=>{let e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>`${n.bulletActiveClass}${t}`)].map(t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t).flat();t.classList.remove(...e)}),h.length>
11)p.forEach(t=>{let e=rj(t);e===s?t.classList.add(...n.bulletActiveClass.split(" ")):i.isElement&&t.setAttribute("part","bullet"),n.dynamicBullets&&(e>=r&&e<=c&&t.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),e===r&&u(t,"prev"),e===c&&u(t,"next"))});else{let t=p[s];if(t&&t.classList.add(...n.bulletActiveClass.split(" ")),i.isElement&&p.forEach((t,e)=>{t.setAttribute("part",e===s?"bullet-active":"bullet")}),n.dynamicBullets){let t=p[r],e=p[c];for(let t=r;t<=c;t+=1)p[t]&&p[t].classList.add(...`${n.bulletActiveClass}-main`.split(" "));u(t,"prev"),u(e,"next")}}if(n.dynamicBullets){let s=Math.min(p.length,n.dynamicMainBullets+4),r=(e*s-e)/2-l*e,o=t?"right":"left";p.forEach(t=>{t.style[i.isHorizontal()?o:"top"]=`${r}px`})}}h.forEach((t,e)=>{if("fraction"===n.type&&(t.querySelectorAll(oS(n.currentClass)).forEach(t=>{t.textContent=n.formatFractionCurrent(s+1)}),t.querySelectorAll(oS(n.totalClass)).forEach(t=>{t.textContent=n.formatFractionTotal(p)})),"progressbar"===n.type){let e;e=n.progressbarOpposite?i.isHorizontal()?"vertical":"horizontal":i.isHorizontal()?"horizontal":"vertical";let r=(s+1)/p,o=1,a=1;"horizontal"===e?o=r:a=r,t.querySelectorAll(oS(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${a})`,t.style.transitionDuration=`${i.params.speed}ms`})}"custom"===n.type&&n.renderCustom?(rz(t,n.renderCustom(i,s+1,p)),0===e&&r("paginationRender",t)):(0===e&&r("paginationRender",t),r("paginationUpdate",t)),i.params.watchOverflow&&i.enabled&&t.classList[i.isLocked?"add":"remove"](n.lockClass)})}function p(){let t=i.params.pagination;if(c())return;let e=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length,n=i.pagination.el;n=rV(n);let s="";if("bullets"===t.type){let n=i.params.loop?Math.ceil(e/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&n>e&&(n=e);for(let e=0;e<n;e+=1)t.renderBullet?s+=t.renderBullet.call(i,e,t.bulletClass):s+=`<${t.bulletElement} ${i.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(i,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(i,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),i.pagination.bullets=[],n.forEach(e=>{"custom"!==t.type&&rz(e,s||""),"bullets"===t.type&&i.pagination.bullets.push(...e.querySelectorAll(oS(t.bulletClass)))}),"custom"!==t.type&&r("paginationRender",n[0])}function d(){let t;i.params.pagination=ob(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});let e=i.params.pagination;e.el&&("string"==typeof e.el&&i.isElement&&(t=i.el.querySelector(e.el)),t||"string"!=typeof e.el||(t=[...document.querySelectorAll(e.el)]),t||(t=e.el),t&&0!==t.length&&(i.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(t)&&t.length>1&&(t=[...i.el.querySelectorAll(e.el)]).length>1&&(t=t.find(t=>rF(t,".swiper")[0]===i.el)),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(i.pagination,{el:t}),(t=rV(t)).forEach(t=>{"bullets"===e.type&&e.clickable&&t.classList.add(...(e.clickableClass||"").split(" ")),t.classList.add(e.modifierClass+e.type),t.classList.add(i.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(t.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&t.classList.add(e.progressbarOppositeClass),e.clickable&&t.addEventListener("click",h),i.enabled||t.classList.add(e.lockClass)})))}function f(){let t=i.params.pagination;if(c())return;let e=i.pagination.el;e&&(e=rV(e)).forEach(e=>{e.classList.remove(t.hiddenClass),e.classList.remove(t.modifierClass+t.type),e.classList.remove(i.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(e.classList.remove(...(t.clickableClass||"").split(" ")),e.removeEventListener("click",h))}
1),i.pagination.bullets&&i.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!i.pagination||!i.pagination.el)return;let t=i.params.pagination,{el:e}=i.pagination;(e=rV(e)).forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass),e.classList.add(i.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===i.params.pagination.enabled?m():(d(),p(),l())}),s("activeIndexChange",()=>{void 0===i.snapIndex&&l()}),s("snapIndexChange",()=>{l()}),s("snapGridLengthChange",()=>{p(),l()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{el:t}=i.pagination;t&&(t=rV(t)).forEach(t=>t.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass))}),s("lock unlock",()=>{l()}),s("click",(t,e)=>{let n=e.target,s=rV(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&n===i.navigation.nextEl||i.navigation.prevEl&&n===i.navigation.prevEl))return;r(!0===s[0].classList.contains(i.params.pagination.hiddenClass)?"paginationShow":"paginationHide"),s.forEach(t=>t.classList.toggle(i.params.pagination.hiddenClass))}});let m=()=>{i.el.classList.add(i.params.pagination.paginationDisabledClass);let{el:t}=i.pagination;t&&(t=rV(t)).forEach(t=>t.classList.add(i.params.pagination.paginationDisabledClass)),f()};Object.assign(i.pagination,{enable:()=>{i.el.classList.remove(i.params.pagination.paginationDisabledClass);let{el:t}=i.pagination;t&&(t=rV(t)).forEach(t=>t.classList.remove(i.params.pagination.paginationDisabledClass)),d(),p(),l()},disable:m,render:p,update:l,init:d,destroy:f})}function oC(t){let{swiper:e,extendParams:i,emit:n,once:s}=t;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;let t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;let{touchEventsData:t,touches:i}=e;0===t.velocities.length&&t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:rD()})},onTouchEnd:function(t){let{currentPos:i}=t;if(e.params.cssMode)return;let{params:r,wrapperEl:o,rtlTranslate:a,snapGrid:c,touchEventsData:u}=e,h=rD()-u.touchStartTime;if(i<-e.minTranslate())e.slideTo(e.activeIndex);else if(i>-e.maxTranslate())e.slides.length<c.length?e.slideTo(c.length-1):e.slideTo(e.slides.length-1);else{if(r.freeMode.momentum){let t;if(u.velocities.length>1){let t=u.velocities.pop(),i=u.velocities.pop(),n=t.position-i.position,s=t.time-i.time;e.velocity=n/s,e.velocity/=2,Math.abs(e.velocity)<r.freeMode.minimumVelocity&&(e.velocity=0),(s>150||rD()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeMode.momentumVelocityRatio,u.velocities.length=0;let i=1e3*r.freeMode.momentumRatio,h=e.velocity*i,l=e.translate+h;a&&(l=-l);let p,d=!1,f=20*Math.abs(e.velocity)*r.freeMode.momentumBounceRatio;if(l<e.maxTranslate())r.freeMode.momentumBounce?(l+e.maxTranslate()<-f&&(l=e.maxTranslate()-f),p=e.maxTranslate(),d=!0,u.allowMomentumBounce=!0):l=e.maxTranslate(),r.loop&&r.centeredSlides&&(t=!0);else if(l>e.minTranslate())r.freeMode.momentumBounce?(l-e.minTranslate()>f&&(l=e.minTranslate()+f),p=e.minTranslate(),d=!0,u.allowMomentumBounce=!0):l=e.minTranslate(),r.loop&&r.centeredSlides&&(t=!0);else if(r.freeMode.sticky){let t;for(let e=0;e<c.length;e+=1)if(c[e]>-l){t=e;break}l=-(l=Math.abs(c[t]-l)<Math.abs(c[t-1]-l)||"next"===e.swipeDirection?c[t]:c[t-1])}if(t&&s("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(i=a?Math.abs((-l-e.translate)/e.velocity):Math.abs((l-e.translate)/e.velocity),r.freeMode.sticky){let t=Math.abs((a?-l:l)-e.translate),n=e.slidesSizesGrid[e.activeIndex];i=t<n?r.speed:t<2*n?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void e.slideToClosest();r.freeMode.momentumBounce&&d?(e.updateProgress(p),e.setTransition(i),e.setTranslate(l),e.transitionStart(!0,e.swipeDirection),e.animating=!0,rU(o,()=>{e&&!e.destroyed&&u.allowMomentumBounce&&(n("momentumBounce"),e.setTransition(r.speed),setTimeout(()=>{e.setTranslate(p),rU(o,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(l),e.setTransition(i),e.setTranslate(l),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,rU(o,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(l),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(r.freeMode.sticky)return void e.slideToClosest();r.freeMode&&n("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||h>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})}ow.displayName="SwiperSlide";var oA=W(288);let oT=function({cards:t,swiperEnabled:e=!0,previousButtonText:i,nextButtonText:n}){let s=(0,X.useRef)(),{isTablet:r}=(0,tt.useDeviceContext)(),o="undefined"==typeof window?304:null,a="undefined"==typeof window?405:null;return Z().createElement("div",{className:"component faq-preview-card-carousel"},Z().createElement("div",{className:"faq-preview-card-carouselswiper-container"},Z().createElement("div",{className:"related-results-content"},Z().createElement(og,Object.assign({allowTouchMove:e,onInit:t=>{s.current=t},slidesPerView:1,spaceBetween:16},r&&{freeMode:!0},{modules:[oC,oE,oy],className:"faq-preview-card-carouselswiper",height:o,width:a,pagination:{clickable:!0,el:".swiper-pagination",type:"bullets",renderBullet:(e,i)=>t.length<=1?"":`<span class="${i}"></span>`},navigation:{nextEl:".faq-preview-card-carouselnext-button",prevEl:".faq-preview-card-carouselprev-button"},preventInteractionOnTransition:!0,centerInsufficientSlides:!0,loop:!0,watchOverflow:!0}),t.map((t,e)=>{let i=Object.assign({},t);return i.params&&(i.params.styles="page-preview-cardcarousel-card"),i.dataPosition=e+1,Z().createElement(ow,{key:`faq-preview-card-carousel-${rv()}`},Z().createElement(oA.FaqCard,Object.assign({},i)))}),Z().createElement("div",{className:"slider-controller"},Z().createElement("button",{className:"faq-preview-card-carouselprev-button",type:"button","aria-label":"Previous"},Z().createElement(rp.Icon,{name:"caretLeftBig"}),Z().createElement("span",null,i||"Previous")),Z().createElement("div",{className:"swiper-pagination"}),Z().createElement("button",{className:"faq-preview-card-carouselnext-button",type:"button","aria-label":"Next"},Z().createElement("span",null,n||"Next"),Z().createElement(rp.Icon,{name:"caretLeftBig"})))))))};function oP({params:t,fields:e,variant:i="search-with-carousel"}){var n;let s={params:{styles:(null==t?void 0:t.styles)||""},fields:{sitecoreApiKey:null==e?void 0:e.sitecoreApiKey,sitecoreCustomerKey:null==e?void 0:e.sitecoreCustomerKey,sitecoreIsSubdomain:null==e?void 0:e.sitecoreIsSubdomain,sitecoreServiceHost:null==e?void 0:e.sitecoreServiceHost,sitecoreSource:null==e?void 0:e.sitecoreSource,sitecoreEnv:null==e?void 0:e.sitecoreEnv,sitecoreWidgetId:null==e?void 0:e.sitecoreWidgetId,searchBarText:null==e?void 0:e.searchBarText,sourcebody:null==e?void 0:e.sourcebody,searchResultsUrl:null==e?void 0:e.searchResultsUrl}},r=(null==e?void 0:e.FAQs)||[],{isTablet:o,isDesktop:a}=(0,tt.useDeviceContext)();return Z().createElement("div",Object.assign({id:null!==(n=null==t?void 0:t.identifier)&&void 0!==n?n:"",className:`component search-widget-faq ${t.styles}`},(null==t?void 0:t.searchIgnore)?{"data-attribute-search-ignore":!0}:{}),Z().createElement("div",{className:`search-widget-faq--${i}`,style:(o||a)&&(null==e?void 0:e.backgroundImageUrl)?{backgroundImage:`url(${e.backgroundImageUrl})`}:{}},Z().createElement("div",{className:"search-widget-faq--search-with-carousel__text-content"},Z().createElement("div",{className:"search-widget-faq--search-with-carousel__text-content__left"},Z().createElement("h4",null,(null==e?void 0:e.preHeading)&&Z().createElement("span",{className:"search-widget-faq__preHeading"},e.preHeading," "),(null==e?void 0:e.heading)&&Z().createElement("span",{className:"search-widget-faq__heading"},e.heading),(null==e?void 0:e.subHeading)&&Z().createElement("span",{className:"search-widget-faq__subHeading"}," ",e.subHeading))),(null==e?void 0:e.description)&&Z().createElement("div",{className:"search-widget-faq--search-with-carousel__text-content__right"},Z().createElement(te.RichText,{params:{styles:"search-widget-faq__description",identifier:"search-widget-faq__description"},fields:{content:e.description}}))),Z().createElement("div",{className:"search-widget-faq--search-with-carousel__search-container"},(null==e?void 0:e.eyebrowText)&&Z().createElement("p",{className:"search-widget-faq__eyebrowText"},e.eyebrowText),Z().createElement(rE,Object.assign({},s))),Z().createElement("div",{className:"search-widget-faq--search-with-carousel__carousel-container"},Z().createElement(oT,{cards:r,swiperEnabled:!0,previousButtonText:null==e?void 0:e.previousButtonText,nextButtonText:null==e?void 0:e.nextButtonText}))))}function oL({params:t,fields:e,variant:i="search-only"}){var n;let s={params:{styles:(null==t?void 0:t.styles)||""},fields:{sitecoreApiKey:null==e?void 0:e.sitecoreApiKey,sitecoreCustomerKey:null==e?void 0:e.sitecoreCustomerKey,sitecoreIsSubdomain:null==e?void 0:e.sitecoreIsSubdomain,sitecoreServiceHost:null==e?void 0:e.sitecoreServiceHost,sitecoreSource:null==e?void 0:e.sitecoreSource,sitecoreEnv:null==e?void 0:e.sitecoreEnv,sitecoreWidgetId:null==e?void 0:e.sitecoreWidgetId,searchBarText:null==e?void 0:e.searchBarText,sourcebody:null==e?void 0:e.sourcebody,searchResultsUrl:null==e?void 0:e.searchResultsUrl}},{isTablet:r,isDesktop:o}=(0,tt.useDeviceContext)();return Z().createElement("div",Object.assign({id:null!==(n=null==t?void 0:t.identifier)&&void 0!==n?n:"",className:`component search-widget-faq ${t.styles}`},(null==t?void 0:t.searchIgnore)?{"data-attribute-search-ignore":!0}:{}),Z().createElement("div",{className:`search-widget-faq--${i}`,style:(r||o)&&(null==e?void 0:e.backgroundImageUrl)?{backgroundImage:`url(${e.backgroundImageUrl})`}:{}},Z().createElement("div",{className:"search-widget-faq--search-only__left-column"},Z().createElement("h4",null,(null==e?void 0:e.preHeading)&&Z().createElement("span",{className:"search-widget-faq__preHeading"},e.preHeading," "),(null==e?void 0:e.heading)&&Z().createElement("span",{className:"search-widget-faq__heading"},e.heading),(null==e?void 0:e.subHeading)&&Z().createElement("span",{className:"search-widget-faq__subHeading"}," ",e.subHeading))),Z().createElement("div",{className:"search-widget-faq--search-only__right-column"},Z().createElement("div",{className:"search-widget-faq--search-only__right-column__content"},(null==e?void 0:e.eyebrowText)&&Z().createElement("p",{className:"search-widget-faq__eyebrowText"},e.eyebrowText),Z().createElement(rE,Object.assign({},s))))))}function oO({params:t,fields:e,variant:i="search-only"}){return"search-with-carousel"===i?Z().createElement(oP,{params:t,fields:e,variant:i}):Z().createElement(oL,{params:t,fields:e,variant:i})}return Q})(),t.exports=n(i(3936),i(1136),i(2938),i(6664),i(7294))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.