@agentica/chat 0.10.1 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AgenticaChatApplication-DdzM9BYl.js +4072 -0
- package/dist/assets/{OpenApi-CGb-Vryh.js → OpenApi-CGA4MzNI.js} +1 -1
- package/dist/assets/bbs/{index-W3yuE4AY.js → index-4PK4AnVx.js} +1 -1
- package/dist/assets/{index-BZb7BC3J.js → index-BHv9GvT-.js} +1 -1
- package/dist/assets/shopping/{index.html-B7wM1x_y.js → index.html-DBj6ogT_.js} +1 -1
- package/dist/assets/{playground/index.html-qvfdbFE0.js → uploader/index.html-CWQwfKre.js} +1 -1
- package/dist/bbs/index.html +3 -3
- package/dist/index.html +2 -2
- package/dist/shopping/index.html +4 -4
- package/dist/{playground → uploader}/index.html +4 -4
- package/lib/AgenticaChatApplication.d.ts +2 -1
- package/lib/examples/uploader/AgenticaChatPlaygroundApplication.d.ts +9 -0
- package/lib/examples/uploader/AgenticaChatUploaderMovie.d.ts +7 -0
- package/lib/index.mjs +28 -28
- package/lib/index.mjs.map +1 -1
- package/lib/movies/AgenticaChatMovie.d.ts +2 -1
- package/package.json +3 -4
- package/src/AgenticaChatApplication.tsx +5 -4
- package/src/movies/AgenticaChatMovie.tsx +30 -28
- package/dist/assets/AgenticaChatApplication-BKEsRS5q.js +0 -4092
- package/lib/examples/playground/AgenticaChatPlaygroundApplication.d.ts +0 -9
- package/lib/examples/playground/AgenticaChatPlaygroundFileUploadMovie.d.ts +0 -7
- /package/lib/examples/{playground → uploader}/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var mo=Object.defineProperty;var Ao=(e,t,s)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var k=(e,t,s)=>Ao(e,typeof t!="symbol"?t+"":t,s);import{a as fo,g as To,J as Qn,i as In,r as q,u as yo,j,s as go,e as Eo,z as to,f as Do,T as Xn,m as Mo,D as jo,K as Va,M as so,N as b,o as $o}from"../client-BwmHWUFW.js";import{O as no,a as vo,b as Co,S as _o}from"../OpenApi-CGb-Vryh.js";import{u as So,C as xo,f as bo,G as Uo,h as Ro,H as ao,i as qo,L as wo,j as Oo,k as Po,l as ko,v as Ea,A as Fo,e as zo,F as Go,T as Yn,R as Ho,c as Ja,d as Wa,B as Lo,O as No}from"../AgenticaChatApplication-BKEsRS5q.js";import{_ as C,a as O}from"../_isFormatUri-YqTfGpHo.js";import{D as Bo}from"../Divider-D4B39gYv.js";function Vo(e){return To("MuiLink",e)}const Jo=fo("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wo=({theme:e,ownerState:t})=>{const s=t.color,a=Qn(e,`palette.${s}.main`,!1)||Qn(e,`palette.${s}`,!1)||t.color,o=Qn(e,`palette.${s}.mainChannel`)||Qn(e,`palette.${s}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:In(a,.4)},Ka={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ko=e=>{const{classes:t,component:s,focusVisible:a,underline:o}=e,i={root:["root",`underline${to(o)}`,s==="button"&&"button",a&&"focusVisible"]};return Do(i,Vo,t)},Qo=go(Xn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`underline${to(s.underline)}`],s.component==="button"&&t.button]}})(Mo(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:s})=>t==="always"&&s.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(jo()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:In(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:In(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:In(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jo.focusVisible}`]:{outline:"auto"}}}]}))),Yo=q.forwardRef(function(t,s){const a=yo({props:t,name:"MuiLink"}),o=So(),{className:i,color:p="primary",component:A="a",onBlur:f,onFocus:h,TypographyClasses:y,underline:M="always",variant:x="inherit",sx:E,...g}=a,[D,S]=q.useState(!1),c=_=>{Va(_.target)||S(!1),f&&f(_)},T=_=>{Va(_.target)&&S(!0),h&&h(_)},l={...a,color:p,component:A,focusVisible:D,underline:M,variant:x},$=Ko(l);return j.jsx(Qo,{color:p,className:Eo($.root,i),classes:y,component:A,onBlur:c,onFocus:T,ref:s,ownerState:l,variant:x,...g,sx:[...Ka[p]===void 0?[{color:p}]:[],...Array.isArray(E)?E:[E]],style:{...g.style,...M==="always"&&p!=="inherit"&&!Ka[p]&&{"--Link-underlineColor":Wo({theme:o,ownerState:l})}}})});var Da;Da||(Da={});var Ma;Ma||(Ma={});const Zo=Object.freeze(Object.defineProperty({__proto__:null,get ChatGptTypeChecker(){return xo},ClaudeTypeChecker:bo,get GeminiTypeChecker(){return Uo},HttpError:Ro,get HttpLlm(){return ao},get HttpMigration(){return qo},get IClaudeSchema(){return Da},get ILlamaSchema(){return Ma},LlamaTypeChecker:wo,get LlmTypeCheckerV3(){return Oo},get LlmTypeCheckerV3_1(){return Po},get OpenApi(){return no},get OpenApiTypeChecker(){return ko},get OpenApiV3(){return vo},get OpenApiV3_1(){return Co},get SwaggerV2(){return _o}},Symbol.toStringTag,{value:"Module"}));var oo={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});var Ra={};const Io=so(Zo);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HttpError=void 0;var t=Io;Object.defineProperty(e,"HttpError",{enumerable:!0,get:function(){return t.HttpError}})})(Ra);var po={};Object.defineProperty(po,"__esModule",{value:!0});var io={};Object.defineProperty(io,"__esModule",{value:!0});var co={};Object.defineProperty(co,"__esModule",{value:!0});var lo={};Object.defineProperty(lo,"__esModule",{value:!0});var ho={};Object.defineProperty(ho,"__esModule",{value:!0});(function(e){var t=b&&b.__createBinding||(Object.create?function(a,o,i,p){p===void 0&&(p=i);var A=Object.getOwnPropertyDescriptor(o,i);(!A||("get"in A?!o.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(a,p,A)}:function(a,o,i,p){p===void 0&&(p=i),a[p]=o[i]}),s=b&&b.__exportStar||function(a,o){for(var i in a)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,a,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(ro,e),s(Ra,e),s(po,e),s(io,e),s(co,e),s(lo,e),s(ho,e)})(oo);var qa={};Object.defineProperty(qa,"__esModule",{value:!0});var zn=qa._isFormatIpv4=void 0;const Xo=e=>er.test(e);zn=qa._isFormatIpv4=Xo;const er=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});var Gn=wa._isFormatIpv6=void 0;const tr=e=>sr.test(e);Gn=wa._isFormatIpv6=tr;const sr=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});var v=Oa._isFormatDateTime=void 0;const nr=e=>ar.test(e);v=Oa._isFormatDateTime=nr;const ar=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i;var Pa={};class or extends Error{constructor(s){super(s.message||`Error on ${s.method}(): invalid type${s.path?` on ${s.path}`:""}, expect to be ${s.expected}`);k(this,"method");k(this,"path");k(this,"expected");k(this,"value");k(this,"fake_expected_typed_value_");const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.method=s.method,this.path=s.path,this.expected=s.expected,this.value=s.value}}const rr=Object.freeze(Object.defineProperty({__proto__:null,TypeGuardError:or},Symbol.toStringTag,{value:"Module"})),pr=so(rr);Object.defineProperty(Pa,"__esModule",{value:!0});var u=Pa._assertGuard=void 0;const ir=pr,cr=(e,t,s)=>{if(e===!0)throw s?s(t):new ir.TypeGuardError(t);return!1};u=Pa._assertGuard=cr;var ka={};Object.defineProperty(ka,"__esModule",{value:!0});var Fa=ka._miscCloneAny=void 0;const lr=e=>P(e);Fa=ka._miscCloneAny=lr;const P=e=>{if(e!==void 0){if(typeof e=="object"){if(e===null)return null;if(Array.isArray(e))return e.map(P);if(e instanceof Date)return new Date(e);if(e instanceof Uint8Array)return new Uint8Array(e);if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);if(e instanceof Uint16Array)return new Uint16Array(e);if(e instanceof Uint32Array)return new Uint32Array(e);if(e instanceof BigUint64Array)return new BigUint64Array(e);if(e instanceof Int8Array)return new Int8Array(e);if(e instanceof Int16Array)return new Int16Array(e);if(e instanceof Int32Array)return new Int32Array(e);if(e instanceof BigInt64Array)return new BigInt64Array(e);if(e instanceof Float32Array)return new Float32Array(e);if(e instanceof Float64Array)return new Float64Array(e);if(e instanceof ArrayBuffer)return e.slice(0);if(e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView)return new DataView(e.buffer.slice(0));if(typeof File<"u"&&e instanceof File)return new File([e],e.name,{type:e.type});if(typeof Blob<"u"&&e instanceof Blob)return new Blob([e],{type:e.type});if(e instanceof Set)return new Set([...e].map(P));if(e instanceof Map)return new Map([...e].map(([t,s])=>[P(t),P(s)]));if(e instanceof WeakSet||e instanceof WeakMap)throw new Error("WeakSet and WeakMap are not supported");return e.valueOf()!==e?P(e.valueOf()):Object.fromEntries(Object.entries(e).map(([t,s])=>[t,P(s)]).filter(([,t])=>t!==void 0))}else if(typeof e=="function")return;return e}};var za={};Object.defineProperty(za,"__esModule",{value:!0});var Hn=za._isFormatEmail=void 0;const hr=e=>ur.test(e);Hn=za._isFormatEmail=hr;const ur=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;var Ga={},pa={},N=b&&b.__assign||function(){return N=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},N.apply(this,arguments)},ya=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},ga=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ea=b&&b.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],a=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ia=b&&b.__read||function(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var a=s.call(e),o,i=[],p;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(A){p={error:A}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return i},dr=b&&b.__spreadArray||function(e,t,s){if(s||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(pa,"__esModule",{value:!0});pa.FetcherBase=void 0;var mr=Ra,Qa;(function(e){var t=this;e.request=function(a){return function(o,i,p,A){return ya(t,void 0,void 0,function(){var f;return ga(this,function(h){switch(h.label){case 0:return[4,s("fetch")(a)(o,i,p,A)];case 1:if(f=h.sent(),f.success===!1)throw new mr.HttpError(i.method,i.path,f.status,f.headers,f.data);return[2,f.data]}})})}},e.propagate=function(a){return function(o,i,p,A){return ya(t,void 0,void 0,function(){return ga(this,function(f){return[2,s("propagate")(a)(o,i,p,A)]})})}};var s=function(a){return function(o){return function(i,p,A,f){return ya(t,void 0,void 0,function(){var h,y,M,x,E,g,D,S,c,T,l,$,_,n,m,d,R,G,ca,la,ha,ua,da,ma,Aa;return ga(this,function(U){switch(U.label){case 0:if(h=N({},(R=i.headers)!==null&&R!==void 0?R:{}),A!==void 0){if(((G=p.request)===null||G===void 0?void 0:G.type)===void 0)throw new Error("Error on ".concat(o.className,".fetch(): no content-type being configured."));p.request.type!=="multipart/form-data"&&(h["Content-Type"]=p.request.type)}else A===void 0&&h["Content-Type"]!==void 0&&delete h["Content-Type"];y=N(N({},(ca=i.options)!==null&&ca!==void 0?ca:{}),{method:p.method,headers:function(){var Bn,Ha,Vn,La,fa=[];try{for(var Jn=ea(Object.entries(h)),H=Jn.next();!H.done;H=Jn.next()){var Na=ia(H.value,2),Ba=Na[0],Wn=Na[1];if(Wn!==void 0)if(Array.isArray(Wn))try{for(var Kn=(Vn=void 0,ea(Wn)),L=Kn.next();!L.done;L=Kn.next()){var uo=L.value;fa.push([Ba,String(uo)])}}catch(Ta){Vn={error:Ta}}finally{try{L&&!L.done&&(La=Kn.return)&&La.call(Kn)}finally{if(Vn)throw Vn.error}}else fa.push([Ba,String(Wn)])}}catch(Ta){Bn={error:Ta}}finally{try{H&&!H.done&&(Ha=Jn.return)&&Ha.call(Jn)}finally{if(Bn)throw Bn.error}}return fa}()}),A!==void 0&&(y.body=o.encode(((la=p.request)===null||la===void 0?void 0:la.type)==="application/x-www-form-urlencoded"?Ar(A):((ha=p.request)===null||ha===void 0?void 0:ha.type)==="multipart/form-data"?fr(A):((ua=p.request)===null||ua===void 0?void 0:ua.type)!=="text/plain"?(f??JSON.stringify)(A):A,h)),M=i.host[i.host.length-1]!=="/"&&p.path[0]!=="/"?"/".concat(p.path):p.path,x=new URL("".concat(i.host).concat(M)),E={route:p,path:M,status:null,input:A,output:void 0,started_at:new Date,respond_at:null,completed_at:null},U.label=1;case 1:return U.trys.push([1,12,13,18]),[4,((da=i.fetch)!==null&&da!==void 0?da:fetch)(x.href,y)];case 2:return g=U.sent(),E.respond_at=new Date,E.status=g.status,D={success:g.status===200||g.status===201||g.status===p.status,status:g.status,headers:Tr(g.headers),data:void 0},D.success!==!1?[3,4]:(S=D,[4,g.text()]);case 3:if(S.data=U.sent(),c=g.headers.get("content-type"),a!=="fetch"&&c&&c.indexOf("application/json")!==-1)try{D.data=JSON.parse(D.data)}catch{}return[3,11];case 4:return p.method!=="HEAD"?[3,5]:(D.data=void 0,[3,11]);case 5:return((ma=p.response)===null||ma===void 0?void 0:ma.type)!=="application/json"?[3,7]:[4,g.text()];case 6:return T=U.sent(),D.data=T.length?JSON.parse(T):void 0,[3,11];case 7:return((Aa=p.response)===null||Aa===void 0?void 0:Aa.type)!=="application/x-www-form-urlencoded"?[3,9]:($=URLSearchParams.bind,[4,g.text()]);case 8:return l=new($.apply(URLSearchParams,[void 0,U.sent()])),D.data=p.parseQuery?p.parseQuery(l):l,[3,11];case 9:return _=D,m=(n=o).decode,[4,g.text()];case 10:_.data=m.apply(n,[U.sent(),D.headers]),U.label=11;case 11:return E.output=D.data,[2,D];case 12:throw d=U.sent(),d;case 13:if(E.completed_at=new Date,!i.logger)return[3,17];U.label=14;case 14:return U.trys.push([14,16,,17]),[4,i.logger(E)];case 15:return U.sent(),[3,17];case 16:return U.sent(),[3,17];case 17:return[7];case 18:return[2]}})})}}}})(Qa||(pa.FetcherBase=Qa={}));var Ar=function(e){var t,s,a=new URLSearchParams,o=function(y,M){if(M===void 0)return"continue";Array.isArray(M)?M.forEach(function(x){return a.append(y,String(x))}):a.set(y,String(M))};try{for(var i=ea(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=ia(p.value,2),f=A[0],h=A[1];o(f,h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},fr=function(e){var t,s,a=new FormData,o=function(y){return function(M){M!==void 0&&(typeof File=="function"&&M instanceof File?a.append(y,M,M.name):a.append(y,M))}};try{for(var i=ea(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=ia(p.value,2),f=A[0],h=A[1];Array.isArray(h)?h.map(o(f)):o(f)(h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},Tr=function(e){var t={};return e.forEach(function(s,a){var o,i;a==="set-cookie"?((i=t[a])!==null&&i!==void 0||(t[a]=[]),(o=t[a]).push.apply(o,dr([],ia(s.split(";").map(function(p){return p.trim()})),!1))):t[a]=s}),t},Ya=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},Za=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(Ga,"__esModule",{value:!0});var r=Ga.PlainFetcher=void 0,Ia=pa,Xa;(function(e){function t(a,o,i,p){return Ya(this,void 0,void 0,function(){var A,f;return Za(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ia.FetcherBase.request({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.fetch=t;function s(a,o,i,p){return Ya(this,void 0,void 0,function(){var A,f;return Za(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ia.FetcherBase.propagate({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.propagate=s})(Xa||(r=Ga.PlainFetcher=Xa={}));var ja;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.administrator;return!s||!a||!o?null:{id:o.id,type:"administrator",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&C(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip))&&typeof n.created_at=="string"&&v(n.created_at),A=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&C(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Fa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const $=(n,m)=>(T(n)===!1&&(l=m,((d,R,G=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_($(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&C(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&v(c.created_at),f=c=>typeof c.id=="string"&&C(c.id)&&typeof c.value=="string"&&Hn(c.value)&&typeof c.created_at=="string"&&v(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every(($,_)=>(typeof $=="object"&&$!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))&&y($,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Hn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,$,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,$+"",!0)||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})(ja||(ja={}));var $a;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.seller;return!s||!a||!o?null:{id:o.id,type:"seller",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&C(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip))&&typeof n.created_at=="string"&&v(n.created_at),A=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&C(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Fa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const $=(n,m)=>(T(n)===!1&&(l=m,((d,R,G=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_($(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&C(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&v(c.created_at),f=c=>typeof c.id=="string"&&C(c.id)&&typeof c.value=="string"&&Hn(c.value)&&typeof c.created_at=="string"&&v(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every(($,_)=>(typeof $=="object"&&$!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))&&y($,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Hn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,$,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,$+"",!0)||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})($a||($a={}));var ta;(function(e){e.adjustable=s=>{const a=t(s);return s.criteria.direction==="include"?a:!a};const t=s=>s.criteria.type==="section"?s.criteria.sections.some(a=>a.id===s.sale.section.id):s.criteria.type==="seller"?s.criteria.sellers.some(a=>a.id===s.sale.seller.id):s.criteria.type==="sale"?s.criteria.sales.some(a=>a.id===s.sale.id):s.criteria.type==="funnel"?s.criteria.funnels.some(a=>{if(a.kind==="url")return s.customer.href.startsWith(a.value);if(a.kind==="referrer")return s.customer.referrer!==null&&s.customer.referrer.startsWith(a.value);if(a.kind==="variable"){const o=s.customer.href.lastIndexOf("?");return o===-1?!1:new URLSearchParams(s.customer.href.substring(o+1)).get(a.key)===a.value}return!1}):!1})(ta||(ta={}));var va;(function(e){e.take=(t,s,a)=>{const o=t.get(s);if(o)return o;const i=a();return t.set(s,i),i}})(va||(va={}));var w;(function(e){e.validate=t=>{const s=[],a=new Set;return t.items.forEach((o,i)=>{if(t.filter&&t.filter(o)===!1)return;const p=t.key(o);a.has(p)===!0?s.push(t.message(o,i)):a.add(p)}),s}})(w||(w={}));var sa;(function(e){e.replica=t=>({name:t.name,extension:t.extension,url:t.url})})(sa||(sa={}));var Ca;(function(e){e.replica=t=>({title:t.title,body:t.body,format:t.format,thumbnails:t.thumbnails.map(sa.replica),files:t.files.map(sa.replica)})})(Ca||(Ca={}));var na;(function(e){e.validate=t=>{if(t.option.type!=="select")return[];const s=`input.units[${t.unitIndex}].options[${t.index}]`,a=[];return t.option.candidates.length===0&&a.push({accessor:`${s}.candidates`,message:'Candidates must not be empty when type of the option is "select".'}),a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.candidates[${i}]`,message:`Duplicated candidate name: "${o.name}"`}),items:t.option.candidates})),a},e.replica=t=>t.type==="select"?{type:t.type,name:t.name,variable:t.variable,candidates:t.candidates.map(s=>({name:s.name}))}:{type:t.type,name:t.name}})(na||(na={}));var aa;(function(e){e.validate=t=>{const s=`input.units.[${t.unitIndex}].stocks[${t.stockIndex}].choices[${t.index}]`,a=[],o=t.unit.options[t.choice.option_index];return o===void 0?a.push({accessor:s,message:`Option index ${t.choice.option_index} is out of bounds.`}):o.type!=="select"?a.push({accessor:s,message:'Option type must be "select".'}):o.variable===!1?a.push({accessor:s,message:"Option is not variable."}):o.candidates[t.choice.candidate_index]===void 0&&a.push({accessor:s,message:`Candidate index ${t.choice.candidate_index} is out of bounds.`}),a},e.replica=t=>{const s=t.options.findIndex(i=>i.id===t.choice.option_id);if(s===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched option.");const a=t.options[s];if(a.type!=="select")throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option type must be 'select'.");if(a.variable===!1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option must be variable.");const o=a.candidates.findIndex(i=>i.id===t.choice.candidate_id);if(o===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched candidate.");return{option_index:s,candidate_index:o}}})(aa||(aa={}));var _a;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>JSON.stringify([a.option_index,a.candidate_index]),message:(a,o)=>({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].choices[${o}]`,message:`Duplicated choice: (${a.option_index}, ${a.candidate_index})`}),items:t.stock.choices})),t.stock.choices.forEach((a,o)=>{s.push(...aa.validate({unit:t.unit,unitIndex:t.unitIndex,stock:t.stock,stockIndex:t.index,choice:a,index:o}))}),t.stock.price.nominal<t.stock.price.real&&s.push({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].price.real`,message:"Real price cannot be greater than nominal price"}),s},e.replica=t=>({name:t.stock.name,choices:t.stock.choices.map(s=>aa.replica({options:t.options,choice:s})),quantity:Math.max(0,t.stock.inventory.income-t.stock.inventory.outcome),price:{nominal:t.stock.price.nominal,real:t.stock.price.real}})})(_a||(_a={}));var oa;(function(e){e.validate=t=>{const s=`input.units[${t.index}]`,a=[];if(a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.options[${i}]`,message:`Duplicated option name: "${o.name}"`}),items:t.unit.options})),t.unit.options.forEach((o,i)=>a.push(...na.validate({unit:t.unit,unitIndex:t.index,option:o,index:i}))),t.unit.stocks.length===0)a.push({accessor:`${s}.stocks.length`,message:"No stock exists."});else{const o=t.unit.options.map(i=>i.type==="select"&&i.variable?i.candidates.length:1).reduce((i,p)=>i*p,1);t.unit.stocks.length>o&&a.push({accessor:`${s}.stocks.length`,message:`Incorrect number of stocks: must not over the ${o} but ${t.unit.stocks.length}.`})}return a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.stocks[${i}]`,message:`Duplicated stock name: "${o.name}"`}),items:t.unit.stocks})),a},e.replica=t=>({name:t.name,primary:t.primary,required:t.required,options:t.options.map(na.replica),stocks:t.stocks.map(s=>_a.replica({options:t.options,stock:s}))})})(oa||(oa={}));var Ln;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.category_codes[${o}]`,message:`Duplicated category code: "${a}"`}),items:t.category_codes})),t.units.length===0?s.push({accessor:"input.units",message:"No unit"}):t.units.every(a=>a.required===!1)&&s.push({accessor:"input.units[].required",message:"No required unit"}),s.push(...w.validate({key:a=>a.name,message:(a,o)=>({accessor:`input.units[${o}]`,message:`Duplicated unit name: "${a.name}"`}),items:t.units})),t.units.forEach((a,o)=>s.push(...oa.validate({unit:a,index:o}))),s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.tags[${o}]`,message:`Duplicated tags: "${a}"`}),items:t.tags})),s},e.replica=t=>({category_codes:t.categories.map(s=>s.code),content:Ca.replica(t.content),units:t.units.map(oa.replica),tags:t.tags.slice()})})(Ln||(Ln={}));var Nn;(function(e){e.validate=t=>{const s=[];return t.opened_at&&t.closed_at&&new Date(t.closed_at).getTime()<new Date(t.opened_at).getTime()&&s.push({accessor:"input.closed_at",message:"Closed date is earlier than opened date"}),s.push(...Ln.validate(t)),s},e.replica=t=>({...Ln.replica(t),section_code:t.section.code,opened_at:t.opened_at,closed_at:t.closed_at}),e.readable=t=>{const s=[];t.sale.opened_at===null?s.push({accessor:t.accessor,message:"The sale has not been opened."}):new Date(t.sale.opened_at).getTime()>Date.now()&&s.push({accessor:t.accessor,message:"The sale has not been opened yet."});const a=(o,i)=>{i!==null&&Date.now()>=new Date(i).getTime()&&s.push({accessor:t.accessor,message:`The sale has been ${o}.`})};return a("closed",t.sale.closed_at),t.checkPause&&a("paused",t.sale.paused_at),a("suspended",t.sale.suspended_at),s}})(Nn||(Nn={}));var ra;(function(e){e.validate=t=>{const s=[],a=t.unit.options.find(o=>o.id===t.input.option_id);return a===void 0?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].option_id`,message:"Unable to find the matched option."}):a.type==="select"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}]`,message:"The select option does not require the choice composition."}):t.input.value!==null&&(a.type==="boolean"&&typeof t.input.value!="boolean"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be boolean type."}):a.type==="number"&&typeof t.input.value!="number"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be number type."}):a.type==="string"&&typeof t.input.value!="string"&&s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be string type."})),s},e.replica=t=>t.option.type==="select"?null:{option_id:t.option.id,value:t.value}})(ra||(ra={}));var z;(function(e){e.validate=t=>{const s=[];t.input.choices.forEach((o,i)=>{ra.validate({unit:t.unit,stockIndex:t.index,input:o,index:i})});const a=t.unit.stocks.find(o=>o.id===t.input.stock_id);return a===void 0?s.push({accessor:`$input.stocks[${t.index}].stock_id`,message:"Unable to find the matched stock."}):a.inventory.income-a.inventory.outcome<t.input.quantity*t.commodity.volume&&s.push({accessor:`$input.stocks[${t.index}].quantity`,message:"Insufficient inventory."}),s},e.replica=t=>({unit_id:t.unit.id,stock_id:t.stock.id,choices:t.stock.choices.map(ra.replica).filter(s=>s!==null),quantity:t.stock.quantity}),e.preview=t=>{const s=t.unit.stocks.find(a=>a.id===t.input.stock_id);if(s===void 0)throw new Error("Unable to find the matched stock.");return{id:s.id,name:s.name,price:s.price,inventory:s.inventory,quantity:t.input.quantity,choices:[...s.choices.map(a=>{const o=t.unit.options.find(p=>p.id===a.option_id),i=o.candidates.find(p=>p.id===a.candidate_id);return{id:a.id,option:o,candidate:i,value:null}}),...t.input.choices.map(a=>{const o=t.unit.options.find(i=>i.id===a.option_id);return{id:Ea(),option:o,candidate:null,value:a.value}})]}}})(z||(z={}));var Sa;(function(e){e.validate=t=>{const s=Nn.readable({accessor:"$input.sale_id",checkPause:!0,sale:t.sale});return t.input.stocks.forEach((a,o)=>{const i=t.sale.units.find(p=>p.id===a.unit_id);i===void 0?s.push({accessor:`$input.stocks[${o}].unit_id`,message:"Unable to find the matched unit."}):s.push(...z.validate({unit:i,commodity:t.input,input:a,index:o}))}),s},e.replica=t=>({sale_id:t.sale.id,stocks:t.sale.units.map(s=>s.stocks.map(a=>z.replica({unit:s,stock:a}))).flat(),volume:t.volume}),e.preview=t=>{const s=t.input.stocks.map(o=>{const i=t.sale.units.find(p=>p.id===o.unit_id);if(i===void 0)throw new Error(`Error on ShoppingCartItemDiagnoser.preview(): unable to find the matched unit by its id "${o.unit_id}".`);return[{id:i.id,name:i.name,primary:i.primary,required:i.required,stocks:[]},z.preview({unit:i,input:o})]}),a=new Map;for(const[o,i]of s)va.take(a,o.id,()=>o).stocks.push(i);return{id:Ea(),sale:{...t.sale,content:{id:Ea(),title:t.sale.content.title,thumbnails:t.sale.content.thumbnails},units:[...a.values()]},pseudo:!0,volume:t.input.volume,price:{nominal:s.map(([,o])=>o.price.nominal).reduce((o,i)=>o+i),real:s.map(([,o])=>o.price.real).reduce((o,i)=>o+i)},created_at:new Date().toISOString(),orderable:!0}}})(Sa||(Sa={}));var xa;(function(e){e.validate=t=>{const s=Nn.readable({accessor:`input.goods.${t.index}.commodity.sale`,checkPause:!0,sale:t.commodity.sale});for(const a of t.commodity.sale.units)for(const o of a.stocks)o.quantity*t.input.volume>o.inventory.income-o.inventory.outcome&&s.push({accessor:`input.goods.${t.index}.volume`,message:`Not enough inventory on nested stock#${o.id}.`});return s}})(xa||(xa={}));var ba;(function(e){e.validate=t=>t.input.goods.map((s,a)=>{const o=t.commodities.find(i=>i.id===s.commodity_id);return o===void 0?{accessor:`input.goods[${a}].commodity_id`,message:`Commodity#${s.commodity_id} is not found.`}:xa.validate({commodity:o,input:s,index:a})}).flat()})(ba||(ba={}));var B;(function(e){e.adjustable=s=>s.coupon.criterias.every(a=>ta.adjustable({customer:s.customer,sale:s.sale,criteria:a})),e.coexistable=s=>s.length<=1||s.every(a=>a.restriction.exclusive===!1),e.sort=s=>s.sort(t);function t(s,a){return s.discount.unit!==a.discount.unit?s.discount.unit==="percent"?-1:1:s.discount.unit==="amount"&&a.discount.unit==="amount"?Number(s.discount.value)-Number(a.discount.value):a.discount.value-s.discount.value}})(B||(B={}));var F;(function(e){e.checkCoupon=p=>e.filterItems(p).length!==0,e.filterItems=p=>t(p);const t=p=>s({accessor:p.accessor,coupon:p.coupon,data:p.data.filter(A=>B.adjustable({customer:p.customer,sale:p.accessor.item(A).sale,coupon:p.coupon}))}),s=p=>p.coupon.discount.threshold===null?p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.value):p.data:p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.threshold&&p.accessor.item(f).price.real>=p.coupon.discount.value):p.data.map(f=>a(p.accessor)(f)).reduce((f,h)=>f+h,0)>=p.coupon.discount.threshold?p.data:[],a=p=>A=>p.item(A).price.real*p.volume(A);e.discount=p=>o({...p,title:`${p.className}.discount`});const o=p=>{if(B.sort(p.coupons),B.coexistable(p.coupons)===!1)throw new Error(`Error on ${p.title}(): target coupons are not coexistable.`);const A={amount:0,coupon_to_elem_dict:new Map};for(const f of p.coupons)t({accessor:p.accessor,customer:p.customer,data:p.data,coupon:f}).length!==0&&i({accessor:p.accessor,coupon:f,data:p.data,output:A});return A},i=p=>{const A=(f,h)=>{yr(p.output.coupon_to_elem_dict,p.coupon.id,()=>new Map).set(f.id,h)};if(p.coupon.discount.unit==="percent")for(const f of p.data){const h=p.coupon.discount.value/100*a(p.accessor)(f);p.output.amount+=h,A(f,h)}else if(p.coupon.discount.multiplicative===!0)for(const f of p.data){const h=p.coupon.discount.value*p.accessor.volume(f);A(f,h),p.output.amount+=h}else{const f=p.data.map(h=>a(p.accessor)(h)).reduce((h,y)=>h+y,0);for(const h of p.data){const y=p.coupon.discount.value/100*a(p.accessor)(h)/f;A(h,y)}p.output.amount+=p.coupon.discount.value}};e.combine=p=>{const A=new Map(p.tickets.map(E=>[E.coupon.id,E])),f=p.coupons.filter(E=>A.has(E.id)===!1&&e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E})),h=[...A.values()].filter(E=>e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E.coupon})),y=[...f,...h.map(E=>E.coupon)],M=[y.filter(E=>E.restriction.exclusive===!1),...y.filter(E=>E.restriction.exclusive===!0).map(E=>[E])].filter(E=>E.length!==0);return M.map(E=>o({title:`${p.className}.combine`,accessor:p.accessor,customer:p.customer,data:p.data,coupons:E})).map((E,g)=>({coupons:M[g].filter(D=>f.some(S=>D.id===S.id)),tickets:h.filter(D=>M[g].some(S=>S.id===D.coupon.id)),entries:[...E.coupon_to_elem_dict.entries()].map(([D,S])=>[...S.entries()].map(([c,T])=>({coupon_id:D,item_id:c,amount:T}))).flat(),amount:E.amount}))}})(F||(F={}));const yr=(e,t,s)=>{const a=e.get(t);if(a)return a;const o=s();return e.set(t,o),o};var Ua;(function(e){e.checkCoupon=t=>F.checkCoupon({accessor:Zn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.filterGoods=t=>F.filterItems({accessor:Zn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.combine=t=>F.combine({className:"ShoppingOrderDiscountableDiagnoser",accessor:Zn,customer:t.customer,coupons:t.coupons,tickets:t.tickets,data:t.goods}).map(s=>({...s,entries:s.entries.map(a=>({coupon_id:a.coupon_id,good_id:a.item_id,amount:a.amount}))})),e.discount=t=>F.discount({className:"ShoppingOrderDiscountableDiagnoser",accessor:Zn,customer:t.customer,coupons:t.coupons,data:t.goods})})(Ua||(Ua={}));const Zn={item:e=>e.commodity,volume:e=>e.volume};var gr=Object.freeze({__proto__:null,get ShoppingAdministratorDiagnoser(){return ja},get ShoppingCartCommodityDiagnoser(){return Sa},get ShoppingCartCommodityStockDiagnoser(){return z},get ShoppingCouponCriteriaDiagnoser(){return ta},get ShoppingOrderDiagnoser(){return ba},get ShoppingOrderDiscountableDiagnoser(){return Ua},get ShoppingSaleDiagnoser(){return Nn},get ShoppingSaleSnapshotDiagnoser(){return Ln},get ShoppingSellerDiagnoser(){return $a}}),Er=Object.freeze({__proto__:null,shoppings:gr});async function V(e){return r.fetch(e,{...V.METADATA,template:V.METADATA.path,path:V.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/health",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/health"})(V);var Dr=Object.freeze({__proto__:null,get:V});async function J(e){return r.fetch(e,{...J.METADATA,template:J.METADATA.path,path:J.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/performance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/performance"})(J);var Mr=Object.freeze({__proto__:null,get:J});async function W(e){return r.fetch(e,{...W.METADATA,template:W.METADATA.path,path:W.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system"})(W);async function K(e){return r.fetch(e,{...K.METADATA,template:K.METADATA.path,path:K.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/internal_server_error",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/internal_server_error"})(K);async function Q(e){return r.fetch(e,{...Q.METADATA,template:Q.METADATA.path,path:Q.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/uncaught_exception",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/uncaught_exception"})(Q);var jr=Object.freeze({__proto__:null,get:W,internal_server_error:K,uncaught_exception:Q}),$r=Object.freeze({__proto__:null,health:Dr,performance:Mr,system:jr});async function Y(e){return r.fetch(e,{...Y.METADATA,template:Y.METADATA.path,path:Y.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate"})(Y);async function Z(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Z.METADATA,template:Z.METADATA.path,path:Z.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/authenticate"})(Z);async function I(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...I.METADATA,template:I.METADATA.path,path:I.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate/login"})(I);var vr=Object.freeze({__proto__:null,get:Y,join:Z,login:I});async function X(e,t){return r.fetch(e,{...X.METADATA,template:X.METADATA.path,path:X.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id/destroy",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/destroy`})(X);async function ee(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ee.METADATA,template:ee.METADATA.path,path:ee.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/coupons"})(ee);async function te(e,t){return r.fetch(e,{...te.METADATA,template:te.METADATA.path,path:te.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(te);async function se(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...se.METADATA,template:se.METADATA.path,path:se.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/coupons"})(se);async function ne(e,t){return r.fetch(e,{...ne.METADATA,template:ne.METADATA.path,path:ne.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ne);var Cr=Object.freeze({__proto__:null,at:ne,create:ee,destroy:X,erase:te,index:se});async function ae(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ae.METADATA,template:ae.METADATA.path,path:ae.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/deposits"})(ae);async function oe(e,t){return r.fetch(e,{...oe.METADATA,template:oe.METADATA.path,path:oe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(oe);async function re(e,t){return r.fetch(e,{...re.METADATA,template:re.METADATA.path,path:re.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(re);async function pe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pe.METADATA,template:pe.METADATA.path,path:pe.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/deposits"})(pe);async function ie(e,t){return r.fetch(e,{...ie.METADATA,template:ie.METADATA.path,path:ie.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ie);var _r=Object.freeze({__proto__:null,at:oe,create:pe,erase:ie,get:re,index:ae});async function ce(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ce.METADATA,template:ce.METADATA.path,path:ce.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages/donations"})(ce);async function le(e,t){return r.fetch(e,{...le.METADATA,template:le.METADATA.path,path:le.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/donations/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/donations/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(le);async function he(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...he.METADATA,template:he.METADATA.path,path:he.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages/donations"})(he);var Sr=Object.freeze({__proto__:null,at:le,create:he,index:ce});async function ue(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ue.METADATA,template:ue.METADATA.path,path:ue.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages"})(ue);async function de(e,t){return r.fetch(e,{...de.METADATA,template:de.METADATA.path,path:de.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(de);async function me(e,t){return r.fetch(e,{...me.METADATA,template:me.METADATA.path,path:me.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(me);async function Ae(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ae.METADATA,template:Ae.METADATA.path,path:Ae.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages"})(Ae);async function fe(e,t){return r.fetch(e,{...fe.METADATA,template:fe.METADATA.path,path:fe.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(fe);var xr=Object.freeze({__proto__:null,at:de,create:Ae,donations:Sr,erase:fe,get:me,index:ue});async function Te(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Te.METADATA,template:Te.METADATA.path,path:Te.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/orders"})(Te);async function ye(e,t){return r.fetch(e,{...ye.METADATA,template:ye.METADATA.path,path:ye.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ye);var br=Object.freeze({__proto__:null,at:ye,index:Te});async function ge(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ge.METADATA,template:ge.METADATA.path,path:ge.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(ge);async function Ee(e,t,s,a){return r.fetch(e,{...Ee.METADATA,template:Ee.METADATA.path,path:Ee.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ee);async function De(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...De.METADATA,template:De.METADATA.path,path:De.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(De);async function Me(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Me.METADATA,template:Me.METADATA.path,path:Me.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Me);var Ur=Object.freeze({__proto__:null,at:Ee,create:De,index:ge,update:Me});async function je(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...je.METADATA,template:je.METADATA.path,path:je.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(je);async function $e(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$e.METADATA,template:$e.METADATA.path,path:$e.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})($e);async function ve(e,t,s){return r.fetch(e,{...ve.METADATA,template:ve.METADATA.path,path:ve.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ve);var Rr=Object.freeze({__proto__:null,abridges:$e,at:ve,comments:Ur,index:je});async function Ce(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ce.METADATA,template:Ce.METADATA.path,path:Ce.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ce);async function _e(e,t,s,a){return r.fetch(e,{..._e.METADATA,template:_e.METADATA.path,path:_e.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(_e);async function Se(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Se.METADATA,template:Se.METADATA.path,path:Se.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Se);async function xe(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xe.METADATA,template:xe.METADATA.path,path:xe.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(xe);var qr=Object.freeze({__proto__:null,at:_e,create:Se,index:Ce,update:xe});async function be(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...be.METADATA,template:be.METADATA.path,path:be.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(be);async function Ue(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ue.METADATA,template:Ue.METADATA.path,path:Ue.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(Ue);async function Re(e,t,s){return r.fetch(e,{...Re.METADATA,template:Re.METADATA.path,path:Re.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Re);var wr=Object.freeze({__proto__:null,abridges:Ue,at:Re,comments:qr,index:be});async function qe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qe.METADATA,template:qe.METADATA.path,path:qe.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(qe);async function we(e,t,s){return r.fetch(e,{...we.METADATA,template:we.METADATA.path,path:we.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(we);async function Oe(e,t,s){return r.fetch(e,{...Oe.METADATA,template:Oe.METADATA.path,path:Oe.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(Oe);var Or=Object.freeze({__proto__:null,at:we,flip:Oe,index:qe});async function Pe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pe.METADATA,template:Pe.METADATA.path,path:Pe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales/details"})(Pe);async function ke(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ke.METADATA,template:ke.METADATA.path,path:ke.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales"})(ke);async function Fe(e,t){return r.fetch(e,{...Fe.METADATA,template:Fe.METADATA.path,path:Fe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Fe);var Pr=Object.freeze({__proto__:null,at:Fe,details:Pe,index:ke,questions:Rr,reviews:wr,snapshots:Or});async function ze(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ze.METADATA,template:ze.METADATA.path,path:ze.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(ze);async function Ge(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ge.METADATA,template:Ge.METADATA.path,path:Ge.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ge);async function He(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...He.METADATA,template:He.METADATA.path,path:He.path(t)},s)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/:channelCode/categories/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/merge`})(He);async function Le(e,t){return r.fetch(e,{...Le.METADATA,template:Le.METADATA.path,path:Le.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Le);async function Ne(e,t,s){return r.fetch(e,{...Ne.METADATA,template:Ne.METADATA.path,path:Ne.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ne);async function Be(e,t,s){return r.fetch(e,{...Be.METADATA,template:Be.METADATA.path,path:Be.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Be);var kr=Object.freeze({__proto__:null,at:Ne,create:ze,index:Le,invert:Be,merge:He,update:Ge});async function Ve(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ve.METADATA,template:Ve.METADATA.path,path:Ve.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/channels"})(Ve);async function Je(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Je.METADATA,template:Je.METADATA.path,path:Je.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Je);async function We(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...We.METADATA,template:We.METADATA.path,path:We.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/merge"})(We);async function Ke(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ke.METADATA,template:Ke.METADATA.path,path:Ke.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels"})(Ke);async function Qe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qe.METADATA,template:Qe.METADATA.path,path:Qe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/hierarchical"})(Qe);async function Ye(e,t){return r.fetch(e,{...Ye.METADATA,template:Ye.METADATA.path,path:Ye.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ye);async function Ze(e,t){return r.fetch(e,{...Ze.METADATA,template:Ze.METADATA.path,path:Ze.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Ze);var Fr=Object.freeze({__proto__:null,at:Ye,categories:kr,create:Ve,get:Ze,hierarchical:Qe,index:Ke,merge:We,update:Je});async function Ie(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ie.METADATA,template:Ie.METADATA.path,path:Ie.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/sections"})(Ie);async function Xe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xe.METADATA,template:Xe.METADATA.path,path:Xe.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/sections/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Xe);async function et(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...et.METADATA,template:et.METADATA.path,path:et.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/sections/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections/merge"})(et);async function tt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tt.METADATA,template:tt.METADATA.path,path:tt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections"})(tt);async function st(e,t){return r.fetch(e,{...st.METADATA,template:st.METADATA.path,path:st.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(st);async function nt(e,t){return r.fetch(e,{...nt.METADATA,template:nt.METADATA.path,path:nt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(nt);var zr=Object.freeze({__proto__:null,at:st,create:Ie,get:nt,index:tt,merge:et,update:Xe}),Gr=Object.freeze({__proto__:null,channels:Fr,sections:zr}),Hr=Object.freeze({__proto__:null,authenticate:vr,coupons:Cr,deposits:_r,mileages:xr,orders:br,sales:Pr,systematic:Gr});async function at(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...at.METADATA,template:at.METADATA.path,path:at.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/password/change",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/password/change"})(at);var Lr=Object.freeze({__proto__:null,change:at});async function ot(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ot.METADATA,template:ot.METADATA.path,path:ot.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/authenticate/refresh",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/refresh"})(ot);async function rt(e){return r.fetch(e,{...rt.METADATA,template:rt.METADATA.path,path:rt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate"})(rt);async function pt(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pt.METADATA,template:pt.METADATA.path,path:pt.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate"})(pt);async function it(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...it.METADATA,template:it.METADATA.path,path:it.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/join",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/join"})(it);async function ct(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ct.METADATA,template:ct.METADATA.path,path:ct.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/login"})(ct);async function lt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...lt.METADATA,template:lt.METADATA.path,path:lt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/activate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/activate"})(lt);async function ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ht.METADATA,template:ht.METADATA.path,path:ht.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/external",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/external"})(ht);var Nr=Object.freeze({__proto__:null,activate:lt,create:pt,external:ht,get:rt,join:it,login:ct,password:Lr,refresh:ot});async function ut(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ut.METADATA,template:ut.METADATA.path,path:ut.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons/tickets"})(ut);async function dt(e,t){return r.fetch(e,{...dt.METADATA,template:dt.METADATA.path,path:dt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/tickets/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/tickets/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(dt);async function mt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...mt.METADATA,template:mt.METADATA.path,path:mt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/coupons/tickets"})(mt);var Br=Object.freeze({__proto__:null,at:dt,create:mt,index:ut});async function At(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...At.METADATA,template:At.METADATA.path,path:At.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons"})(At);async function ft(e,t){return r.fetch(e,{...ft.METADATA,template:ft.METADATA.path,path:ft.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ft);var Vr=Object.freeze({__proto__:null,at:ft,index:At,tickets:Br});async function Tt(e,t){return r.fetch(e,{...Tt.METADATA,template:Tt.METADATA.path,path:Tt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:chargeId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(Tt);async function yt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yt.METADATA,template:yt.METADATA.path,path:yt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges/:chargeId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(yt);var Jr=Object.freeze({__proto__:null,able:Tt,create:yt});async function gt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gt.METADATA,template:gt.METADATA.path,path:gt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/charges"})(gt);async function Et(e,t){return r.fetch(e,{...Et.METADATA,template:Et.METADATA.path,path:Et.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Et);async function Dt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dt.METADATA,template:Dt.METADATA.path,path:Dt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/deposits/charges"})(Dt);async function Mt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Mt.METADATA,template:Mt.METADATA.path,path:Mt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/deposits/charges/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Mt);async function jt(e,t){return r.fetch(e,{...jt.METADATA,template:jt.METADATA.path,path:jt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(jt);var Wr=Object.freeze({__proto__:null,at:Et,create:Dt,erase:jt,index:gt,publish:Jr,update:Mt});async function $t(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$t.METADATA,template:$t.METADATA.path,path:$t.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories"})($t);async function vt(e,t){return r.fetch(e,{...vt.METADATA,template:vt.METADATA.path,path:vt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(vt);async function Ct(e){return r.fetch(e,{...Ct.METADATA,template:Ct.METADATA.path,path:Ct.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories/balance"})(Ct);var Kr=Object.freeze({__proto__:null,at:vt,balance:Ct,index:$t}),Qr=Object.freeze({__proto__:null,charges:Wr,histories:Kr});async function _t(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._t.METADATA,template:_t.METADATA.path,path:_t.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/mileages/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories"})(_t);async function St(e,t){return r.fetch(e,{...St.METADATA,template:St.METADATA.path,path:St.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/mileages/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(St);async function xt(e){return r.fetch(e,{...xt.METADATA,template:xt.METADATA.path,path:xt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories/balance"})(xt);var Yr=Object.freeze({__proto__:null,at:St,balance:xt,index:_t}),Zr=Object.freeze({__proto__:null,histories:Yr});async function bt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bt.METADATA,template:bt.METADATA.path,path:bt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities"})(bt);async function Ut(e,t){return r.fetch(e,{...Ut.METADATA,template:Ut.METADATA.path,path:Ut.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ut);async function Rt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rt.METADATA,template:Rt.METADATA.path,path:Rt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/carts/commodities"})(Rt);async function qt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qt.METADATA,template:qt.METADATA.path,path:qt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/carts/commodities/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(qt);async function wt(e,t){return r.fetch(e,{...wt.METADATA,template:wt.METADATA.path,path:wt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(wt);async function Ot(e,t){return r.fetch(e,{...Ot.METADATA,template:Ot.METADATA.path,path:Ot.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ot);async function Pt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pt.METADATA,template:Pt.METADATA.path,path:Pt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities/discountable"})(Pt);var Ir=Object.freeze({__proto__:null,at:Ut,create:Rt,discountable:Pt,erase:Ot,index:bt,replica:wt,update:qt}),Xr=Object.freeze({__proto__:null,commodities:Ir});async function kt(e,t,s){return r.fetch(e,{...kt.METADATA,template:kt.METADATA.path,path:kt.path(t,s)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:orderId/goods/:id/confirm",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/goods/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/confirm`})(kt);var ep=Object.freeze({__proto__:null,confirm:kt});async function Ft(e,t){return r.fetch(e,{...Ft.METADATA,template:Ft.METADATA.path,path:Ft.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:orderId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(Ft);async function zt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zt.METADATA,template:zt.METADATA.path,path:zt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/:orderId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(zt);async function Gt(e,t){return r.fetch(e,{...Gt.METADATA,template:Gt.METADATA.path,path:Gt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:orderId/publish",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(Gt);var tp=Object.freeze({__proto__:null,able:Ft,cancel:Gt,create:zt});async function Ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ht.METADATA,template:Ht.METADATA.path,path:Ht.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders"})(Ht);async function Lt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Lt.METADATA,template:Lt.METADATA.path,path:Lt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/direct",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders/direct"})(Lt);async function Nt(e,t){return r.fetch(e,{...Nt.METADATA,template:Nt.METADATA.path,path:Nt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Nt);async function Bt(e,t){return r.fetch(e,{...Bt.METADATA,template:Bt.METADATA.path,path:Bt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id/price",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/price`})(Bt);async function Vt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Vt.METADATA,template:Vt.METADATA.path,path:Vt.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders/:id/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discountable`})(Vt);async function Jt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Jt.METADATA,template:Jt.METADATA.path,path:Jt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:id/discount",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discount`})(Jt);async function Wt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Wt.METADATA,template:Wt.METADATA.path,path:Wt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/orders"})(Wt);async function Kt(e,t){return r.fetch(e,{...Kt.METADATA,template:Kt.METADATA.path,path:Kt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Kt);var sp=Object.freeze({__proto__:null,at:Kt,create:Ht,direct:Lt,discount:Jt,discountable:Vt,erase:Nt,goods:ep,index:Wt,price:Bt,publish:tp});async function Qt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qt.METADATA,template:Qt.METADATA.path,path:Qt.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Qt);async function Yt(e,t,s,a){return r.fetch(e,{...Yt.METADATA,template:Yt.METADATA.path,path:Yt.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Yt);async function Zt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zt.METADATA,template:Zt.METADATA.path,path:Zt.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Zt);async function It(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...It.METADATA,template:It.METADATA.path,path:It.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(It);var np=Object.freeze({__proto__:null,at:Yt,create:Zt,index:Qt,update:It});async function Xt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xt.METADATA,template:Xt.METADATA.path,path:Xt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Xt);async function es(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...es.METADATA,template:es.METADATA.path,path:es.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(es);async function ts(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ts.METADATA,template:ts.METADATA.path,path:ts.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(ts);async function ss(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ss.METADATA,template:ss.METADATA.path,path:ss.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(ss);async function ns(e,t,s){return r.fetch(e,{...ns.METADATA,template:ns.METADATA.path,path:ns.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ns);var ap=Object.freeze({__proto__:null,abridges:ss,at:ns,comments:np,create:Xt,index:ts,update:es});async function as(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...as.METADATA,template:as.METADATA.path,path:as.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(as);async function os(e,t,s,a){return r.fetch(e,{...os.METADATA,template:os.METADATA.path,path:os.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(os);async function rs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rs.METADATA,template:rs.METADATA.path,path:rs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(rs);async function ps(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ps.METADATA,template:ps.METADATA.path,path:ps.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(ps);var op=Object.freeze({__proto__:null,at:os,create:rs,index:as,update:ps});async function is(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...is.METADATA,template:is.METADATA.path,path:is.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(is);async function cs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cs.METADATA,template:cs.METADATA.path,path:cs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(cs);async function ls(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ls.METADATA,template:ls.METADATA.path,path:ls.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(ls);async function hs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...hs.METADATA,template:hs.METADATA.path,path:hs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(hs);async function us(e,t,s){return r.fetch(e,{...us.METADATA,template:us.METADATA.path,path:us.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(us);var rp=Object.freeze({__proto__:null,abridges:hs,at:us,comments:op,create:is,index:ls,update:cs});async function ds(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ds.METADATA,template:ds.METADATA.path,path:ds.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(ds);async function ms(e,t,s){return r.fetch(e,{...ms.METADATA,template:ms.METADATA.path,path:ms.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ms);async function As(e,t,s){return r.fetch(e,{...As.METADATA,template:As.METADATA.path,path:As.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(As);var pp=Object.freeze({__proto__:null,at:ms,flip:As,index:ds});async function fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fs.METADATA,template:fs.METADATA.path,path:fs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales/details"})(fs);async function Ts(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ts.METADATA,template:Ts.METADATA.path,path:Ts.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales"})(Ts);async function ys(e,t){return r.fetch(e,{...ys.METADATA,template:ys.METADATA.path,path:ys.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ys);var ip=Object.freeze({__proto__:null,at:ys,details:fs,index:Ts,questions:ap,reviews:rp,snapshots:pp});async function gs(e,t){return r.fetch(e,{...gs.METADATA,template:gs.METADATA.path,path:gs.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(gs);async function Es(e,t,s){return r.fetch(e,{...Es.METADATA,template:Es.METADATA.path,path:Es.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Es);async function Ds(e,t,s){return r.fetch(e,{...Ds.METADATA,template:Ds.METADATA.path,path:Ds.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Ds);var cp=Object.freeze({__proto__:null,at:Es,index:gs,invert:Ds});async function Ms(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ms.METADATA,template:Ms.METADATA.path,path:Ms.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels"})(Ms);async function js(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...js.METADATA,template:js.METADATA.path,path:js.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels/hierarchical"})(js);async function $s(e,t){return r.fetch(e,{...$s.METADATA,template:$s.METADATA.path,path:$s.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})($s);async function vs(e,t){return r.fetch(e,{...vs.METADATA,template:vs.METADATA.path,path:vs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(vs);var lp=Object.freeze({__proto__:null,at:$s,categories:cp,get:vs,hierarchical:js,index:Ms});async function Cs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Cs.METADATA,template:Cs.METADATA.path,path:Cs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/sections"})(Cs);async function _s(e,t){return r.fetch(e,{..._s.METADATA,template:_s.METADATA.path,path:_s.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(_s);async function Ss(e,t){return r.fetch(e,{...Ss.METADATA,template:Ss.METADATA.path,path:Ss.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Ss);var hp=Object.freeze({__proto__:null,at:_s,get:Ss,index:Cs}),up=Object.freeze({__proto__:null,channels:lp,sections:hp}),dp=Object.freeze({__proto__:null,authenticate:Nr,carts:Xr,coupons:Vr,deposits:Qr,mileages:Zr,orders:sp,sales:ip,systematic:up});async function xs(e){return r.fetch(e,{...xs.METADATA,template:xs.METADATA.path,path:xs.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate"})(xs);async function bs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bs.METADATA,template:bs.METADATA.path,path:bs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/authenticate"})(bs);async function Us(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Us.METADATA,template:Us.METADATA.path,path:Us.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate/login"})(Us);var mp=Object.freeze({__proto__:null,get:xs,join:bs,login:Us});async function Rs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rs.METADATA,template:Rs.METADATA.path,path:Rs.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/journeys",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys`})(Rs);async function qs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qs.METADATA,template:qs.METADATA.path,path:qs.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id/complete",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/complete`})(qs);async function ws(e,t,s){return r.fetch(e,{...ws.METADATA,template:ws.METADATA.path,path:ws.path(t,s)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ws);var Ap=Object.freeze({__proto__:null,complete:qs,create:Rs,erase:ws});async function Os(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Os.METADATA,template:Os.METADATA.path,path:Os.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/shippers",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/shippers`})(Os);var fp=Object.freeze({__proto__:null,create:Os});async function Ps(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ps.METADATA,template:Ps.METADATA.path,path:Ps.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries"})(Ps);async function ks(e,t){return r.fetch(e,{...ks.METADATA,template:ks.METADATA.path,path:ks.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/deliveries/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ks);async function Fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fs.METADATA,template:Fs.METADATA.path,path:Fs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/deliveries"})(Fs);async function zs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zs.METADATA,template:zs.METADATA.path,path:zs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries/incompletes",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries/incompletes"})(zs);var Tp=Object.freeze({__proto__:null,at:ks,create:Fs,incompletes:zs,index:Ps,journeys:Ap,shippers:fp});async function Gs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Gs.METADATA,template:Gs.METADATA.path,path:Gs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/coupons"})(Gs);async function Hs(e,t){return r.fetch(e,{...Hs.METADATA,template:Hs.METADATA.path,path:Hs.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Hs);async function Ls(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ls.METADATA,template:Ls.METADATA.path,path:Ls.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/coupons"})(Ls);async function Ns(e,t){return r.fetch(e,{...Ns.METADATA,template:Ns.METADATA.path,path:Ns.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ns);var yp=Object.freeze({__proto__:null,at:Ns,create:Gs,erase:Hs,index:Ls});async function Bs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Bs.METADATA,template:Bs.METADATA.path,path:Bs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/orders"})(Bs);async function Vs(e,t){return r.fetch(e,{...Vs.METADATA,template:Vs.METADATA.path,path:Vs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Vs);var gp=Object.freeze({__proto__:null,at:Vs,index:Bs});async function Js(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Js.METADATA,template:Js.METADATA.path,path:Js.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Js);async function Ws(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ws.METADATA,template:Ws.METADATA.path,path:Ws.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Ws);var Ep=Object.freeze({__proto__:null,create:Js,update:Ws});async function Ks(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ks.METADATA,template:Ks.METADATA.path,path:Ks.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ks);async function Qs(e,t,s,a){return r.fetch(e,{...Qs.METADATA,template:Qs.METADATA.path,path:Qs.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Qs);async function Ys(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ys.METADATA,template:Ys.METADATA.path,path:Ys.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ys);async function Zs(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zs.METADATA,template:Zs.METADATA.path,path:Zs.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Zs);var Dp=Object.freeze({__proto__:null,at:Qs,create:Ys,index:Ks,update:Zs});async function Is(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Is.METADATA,template:Is.METADATA.path,path:Is.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Is);async function Xs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xs.METADATA,template:Xs.METADATA.path,path:Xs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Xs);async function en(e,t,s){return r.fetch(e,{...en.METADATA,template:en.METADATA.path,path:en.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(en);var Mp=Object.freeze({__proto__:null,abridges:Xs,answer:Ep,at:en,comments:Dp,index:Is});async function tn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tn.METADATA,template:tn.METADATA.path,path:tn.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(tn);async function sn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...sn.METADATA,template:sn.METADATA.path,path:sn.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(sn);var jp=Object.freeze({__proto__:null,create:tn,update:sn});async function nn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...nn.METADATA,template:nn.METADATA.path,path:nn.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(nn);async function an(e,t,s,a){return r.fetch(e,{...an.METADATA,template:an.METADATA.path,path:an.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(an);async function on(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...on.METADATA,template:on.METADATA.path,path:on.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(on);async function rn(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rn.METADATA,template:rn.METADATA.path,path:rn.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(rn);var $p=Object.freeze({__proto__:null,at:an,create:on,index:nn,update:rn});async function pn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pn.METADATA,template:pn.METADATA.path,path:pn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(pn);async function cn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cn.METADATA,template:cn.METADATA.path,path:cn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(cn);async function ln(e,t,s){return r.fetch(e,{...ln.METADATA,template:ln.METADATA.path,path:ln.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ln);var vp=Object.freeze({__proto__:null,abridges:cn,answer:jp,at:ln,comments:$p,index:pn});async function hn(e,t,s){return r.fetch(e,{...hn.METADATA,template:hn.METADATA.path,path:hn.path(t,s)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/replica`})(hn);async function un(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...un.METADATA,template:un.METADATA.path,path:un.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(un);async function dn(e,t,s){return r.fetch(e,{...dn.METADATA,template:dn.METADATA.path,path:dn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(dn);async function mn(e,t,s){return r.fetch(e,{...mn.METADATA,template:mn.METADATA.path,path:mn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(mn);var Cp=Object.freeze({__proto__:null,at:dn,flip:mn,index:un,replica:hn});async function An(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...An.METADATA,template:An.METADATA.path,path:An.path(t,s,a)},o)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(An);async function fn(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fn.METADATA,template:fn.METADATA.path,path:fn.path(t,s,a)},o)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(fn);async function Tn(e,t,s,a,o,i){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Tn.METADATA,template:Tn.METADATA.path,path:Tn.path(t,s,a,o)},i)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(Tn);async function yn(e,t,s,a,o){return r.fetch(e,{...yn.METADATA,template:yn.METADATA.path,path:yn.path(t,s,a,o)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(yn);var _p=Object.freeze({__proto__:null,create:fn,erase:yn,index:An,update:Tn}),Sp=Object.freeze({__proto__:null,supplements:_p}),xp=Object.freeze({__proto__:null,stocks:Sp});async function gn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gn.METADATA,template:gn.METADATA.path,path:gn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/sales"})(gn);async function En(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...En.METADATA,template:En.METADATA.path,path:En.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(En);async function Dn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dn.METADATA,template:Dn.METADATA.path,path:Dn.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/open",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/open`})(Dn);async function Mn(e,t){return r.fetch(e,{...Mn.METADATA,template:Mn.METADATA.path,path:Mn.path(t)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(Mn);async function jn(e,t){return r.fetch(e,{...jn.METADATA,template:jn.METADATA.path,path:jn.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/pause",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/pause`})(jn);async function $n(e,t){return r.fetch(e,{...$n.METADATA,template:$n.METADATA.path,path:$n.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/suspend",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/suspend`})($n);async function vn(e,t){return r.fetch(e,{...vn.METADATA,template:vn.METADATA.path,path:vn.path(t)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/restore",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/restore`})(vn);async function Cn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Cn.METADATA,template:Cn.METADATA.path,path:Cn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales/details"})(Cn);async function _n(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._n.METADATA,template:_n.METADATA.path,path:_n.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales"})(_n);async function Sn(e,t){return r.fetch(e,{...Sn.METADATA,template:Sn.METADATA.path,path:Sn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Sn);var bp=Object.freeze({__proto__:null,at:Sn,create:gn,details:Cn,index:_n,open:Dn,pause:jn,questions:Mp,replica:Mn,restore:vn,reviews:vp,snapshots:Cp,suspend:$n,units:xp,update:En});async function xn(e,t){return r.fetch(e,{...xn.METADATA,template:xn.METADATA.path,path:xn.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(xn);async function bn(e,t,s){return r.fetch(e,{...bn.METADATA,template:bn.METADATA.path,path:bn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(bn);async function Un(e,t,s){return r.fetch(e,{...Un.METADATA,template:Un.METADATA.path,path:Un.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Un);var Up=Object.freeze({__proto__:null,at:bn,index:xn,invert:Un});async function Rn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rn.METADATA,template:Rn.METADATA.path,path:Rn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels"})(Rn);async function qn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qn.METADATA,template:qn.METADATA.path,path:qn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels/hierarchical"})(qn);async function wn(e,t){return r.fetch(e,{...wn.METADATA,template:wn.METADATA.path,path:wn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(wn);async function On(e,t){return r.fetch(e,{...On.METADATA,template:On.METADATA.path,path:On.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(On);var Rp=Object.freeze({__proto__:null,at:wn,categories:Up,get:On,hierarchical:qn,index:Rn});async function Pn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pn.METADATA,template:Pn.METADATA.path,path:Pn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/sections"})(Pn);async function kn(e,t){return r.fetch(e,{...kn.METADATA,template:kn.METADATA.path,path:kn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(kn);async function Fn(e,t){return r.fetch(e,{...Fn.METADATA,template:Fn.METADATA.path,path:Fn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Fn);var qp=Object.freeze({__proto__:null,at:kn,get:Fn,index:Pn}),wp=Object.freeze({__proto__:null,channels:Rp,sections:qp}),Op=Object.freeze({__proto__:null,authenticate:mp,coupons:yp,deliveries:Tp,orders:gp,sales:bp,systematic:wp}),Pp=Object.freeze({__proto__:null,admins:Hr,customers:dp,sellers:Op}),kp=Object.freeze({__proto__:null,monitors:$r,shoppings:Pp}),eo=Object.freeze({__proto__:null,HttpError:oo.HttpError,diagnosers:Er,functional:kp});const Fp=e=>{const[t,s]=q.useState(null);if(q.useEffect(()=>{(async()=>{s(ao.application({model:"chatgpt",document:no.convert(await fetch("https://raw.githubusercontent.com/samchon/shopping-backend/refs/heads/master/packages/api/customer.swagger.json").then(o=>o.json()))}))})().catch(console.error)},[]),t===null)return j.jsxs("div",{children:[j.jsx("h2",{children:"Loading Swagger document"}),j.jsx("hr",{}),j.jsx("p",{children:"Wait for a moment please."}),j.jsx("p",{children:"Loading Swagger document..."})]});const a=new Fo({model:"chatgpt",vendor:{api:e.api,model:"gpt-4o-mini"},controllers:[{protocol:"http",name:"main",application:t,connection:e.connection}],config:{locale:e.locale}});return j.jsx(zo,{agent:a})},zp=()=>{const[e,t]=q.useState(""),[s,a]=q.useState("gpt-4o-mini"),[o,i]=q.useState(window.navigator.language),[p,A]=q.useState("John Doe"),[f,h]=q.useState("821012345678"),[y,M]=q.useState(!1),[x,E]=q.useState(null),g=async()=>{M(!0);const D={host:"https://shopping-be.wrtn.ai"};await eo.functional.shoppings.customers.authenticate.create(D,{channel_code:"samchon",external_user:null,href:window.location.href,referrer:window.document.referrer}),await eo.functional.shoppings.customers.authenticate.activate(D,{mobile:f,name:p}),E({api:new No({apiKey:e,dangerouslyAllowBrowser:!0}),connection:D,name:p,mobile:f,locale:o})};return j.jsx("div",{style:{width:"100%",height:"100%",overflow:x!==null?void 0:"auto"},children:x!==null?j.jsx(Fp,{...x}):j.jsxs(Go,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[j.jsx(Xn,{variant:"h4",children:"Shopping AI Chatbot"}),j.jsx("br",{}),j.jsx(Bo,{}),j.jsx("br",{}),"Demonstration of Agentica with Shopping Backend API.",j.jsx("br",{}),j.jsx("br",{}),j.jsx(Yo,{href:"https://github.com/samchon/shopping-backend",target:"_blank",children:"https://github.com/samchon/shopping-backend"}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(Xn,{variant:"h6",children:" OpenAI Configuration "}),j.jsx(Yn,{onChange:D=>t(D.target.value),defaultValue:e,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:e.length===0}),j.jsx("br",{}),j.jsxs(Ho,{defaultValue:s,onChange:(D,S)=>a(S),style:{paddingLeft:15},children:[j.jsx(Ja,{control:j.jsx(Wa,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),j.jsx(Ja,{control:j.jsx(Wa,{}),label:"GPT-4o",value:"gpt-4o"})]}),j.jsx("br",{}),j.jsx(Xn,{variant:"h6",children:" Membership Information "}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>i(D.target.value),defaultValue:o,label:"Locale",variant:"outlined",error:o.length===0}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>A(D.target.value),defaultValue:p,label:"Name",variant:"outlined",error:p.length===0}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>h(D.target.value),defaultValue:f,label:"Mobile",variant:"outlined",error:f.length===0}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(Lo,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:y||e.length===0||o.length===0||p.length===0||f.length===0,onClick:()=>g(),children:y?"Starting...":"Start AI Chatbot"})]})})};$o(window.document.getElementById("root")).render(j.jsx(zp,{}));
|
|
1
|
+
var mo=Object.defineProperty;var Ao=(e,t,s)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var k=(e,t,s)=>Ao(e,typeof t!="symbol"?t+"":t,s);import{a as fo,g as To,J as Qn,i as In,r as q,u as yo,j,s as go,e as Eo,z as to,f as Do,T as Xn,m as Mo,D as jo,K as Va,M as so,N as b,o as $o}from"../client-BwmHWUFW.js";import{O as no,a as vo,b as Co,S as _o}from"../OpenApi-CGA4MzNI.js";import{u as So,C as xo,f as bo,G as Uo,h as Ro,H as ao,i as qo,L as wo,j as Oo,k as Po,l as ko,v as Ea,A as Fo,e as zo,F as Go,T as Yn,R as Ho,c as Ja,d as Wa,B as Lo,O as No}from"../AgenticaChatApplication-DdzM9BYl.js";import{_ as C,a as O}from"../_isFormatUri-YqTfGpHo.js";import{D as Bo}from"../Divider-D4B39gYv.js";function Vo(e){return To("MuiLink",e)}const Jo=fo("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wo=({theme:e,ownerState:t})=>{const s=t.color,a=Qn(e,`palette.${s}.main`,!1)||Qn(e,`palette.${s}`,!1)||t.color,o=Qn(e,`palette.${s}.mainChannel`)||Qn(e,`palette.${s}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:In(a,.4)},Ka={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ko=e=>{const{classes:t,component:s,focusVisible:a,underline:o}=e,i={root:["root",`underline${to(o)}`,s==="button"&&"button",a&&"focusVisible"]};return Do(i,Vo,t)},Qo=go(Xn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`underline${to(s.underline)}`],s.component==="button"&&t.button]}})(Mo(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:s})=>t==="always"&&s.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(jo()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:In(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:In(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:In(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jo.focusVisible}`]:{outline:"auto"}}}]}))),Yo=q.forwardRef(function(t,s){const a=yo({props:t,name:"MuiLink"}),o=So(),{className:i,color:p="primary",component:A="a",onBlur:f,onFocus:h,TypographyClasses:y,underline:M="always",variant:x="inherit",sx:E,...g}=a,[D,S]=q.useState(!1),c=_=>{Va(_.target)||S(!1),f&&f(_)},T=_=>{Va(_.target)&&S(!0),h&&h(_)},l={...a,color:p,component:A,focusVisible:D,underline:M,variant:x},$=Ko(l);return j.jsx(Qo,{color:p,className:Eo($.root,i),classes:y,component:A,onBlur:c,onFocus:T,ref:s,ownerState:l,variant:x,...g,sx:[...Ka[p]===void 0?[{color:p}]:[],...Array.isArray(E)?E:[E]],style:{...g.style,...M==="always"&&p!=="inherit"&&!Ka[p]&&{"--Link-underlineColor":Wo({theme:o,ownerState:l})}}})});var Da;Da||(Da={});var Ma;Ma||(Ma={});const Zo=Object.freeze(Object.defineProperty({__proto__:null,get ChatGptTypeChecker(){return xo},ClaudeTypeChecker:bo,get GeminiTypeChecker(){return Uo},HttpError:Ro,get HttpLlm(){return ao},get HttpMigration(){return qo},get IClaudeSchema(){return Da},get ILlamaSchema(){return Ma},LlamaTypeChecker:wo,get LlmTypeCheckerV3(){return Oo},get LlmTypeCheckerV3_1(){return Po},get OpenApi(){return no},get OpenApiTypeChecker(){return ko},get OpenApiV3(){return vo},get OpenApiV3_1(){return Co},get SwaggerV2(){return _o}},Symbol.toStringTag,{value:"Module"}));var oo={},ro={};Object.defineProperty(ro,"__esModule",{value:!0});var Ra={};const Io=so(Zo);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HttpError=void 0;var t=Io;Object.defineProperty(e,"HttpError",{enumerable:!0,get:function(){return t.HttpError}})})(Ra);var po={};Object.defineProperty(po,"__esModule",{value:!0});var io={};Object.defineProperty(io,"__esModule",{value:!0});var co={};Object.defineProperty(co,"__esModule",{value:!0});var lo={};Object.defineProperty(lo,"__esModule",{value:!0});var ho={};Object.defineProperty(ho,"__esModule",{value:!0});(function(e){var t=b&&b.__createBinding||(Object.create?function(a,o,i,p){p===void 0&&(p=i);var A=Object.getOwnPropertyDescriptor(o,i);(!A||("get"in A?!o.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(a,p,A)}:function(a,o,i,p){p===void 0&&(p=i),a[p]=o[i]}),s=b&&b.__exportStar||function(a,o){for(var i in a)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,a,i)};Object.defineProperty(e,"__esModule",{value:!0}),s(ro,e),s(Ra,e),s(po,e),s(io,e),s(co,e),s(lo,e),s(ho,e)})(oo);var qa={};Object.defineProperty(qa,"__esModule",{value:!0});var zn=qa._isFormatIpv4=void 0;const Xo=e=>er.test(e);zn=qa._isFormatIpv4=Xo;const er=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;var wa={};Object.defineProperty(wa,"__esModule",{value:!0});var Gn=wa._isFormatIpv6=void 0;const tr=e=>sr.test(e);Gn=wa._isFormatIpv6=tr;const sr=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;var Oa={};Object.defineProperty(Oa,"__esModule",{value:!0});var v=Oa._isFormatDateTime=void 0;const nr=e=>ar.test(e);v=Oa._isFormatDateTime=nr;const ar=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i;var Pa={};class or extends Error{constructor(s){super(s.message||`Error on ${s.method}(): invalid type${s.path?` on ${s.path}`:""}, expect to be ${s.expected}`);k(this,"method");k(this,"path");k(this,"expected");k(this,"value");k(this,"fake_expected_typed_value_");const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.method=s.method,this.path=s.path,this.expected=s.expected,this.value=s.value}}const rr=Object.freeze(Object.defineProperty({__proto__:null,TypeGuardError:or},Symbol.toStringTag,{value:"Module"})),pr=so(rr);Object.defineProperty(Pa,"__esModule",{value:!0});var u=Pa._assertGuard=void 0;const ir=pr,cr=(e,t,s)=>{if(e===!0)throw s?s(t):new ir.TypeGuardError(t);return!1};u=Pa._assertGuard=cr;var ka={};Object.defineProperty(ka,"__esModule",{value:!0});var Fa=ka._miscCloneAny=void 0;const lr=e=>P(e);Fa=ka._miscCloneAny=lr;const P=e=>{if(e!==void 0){if(typeof e=="object"){if(e===null)return null;if(Array.isArray(e))return e.map(P);if(e instanceof Date)return new Date(e);if(e instanceof Uint8Array)return new Uint8Array(e);if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);if(e instanceof Uint16Array)return new Uint16Array(e);if(e instanceof Uint32Array)return new Uint32Array(e);if(e instanceof BigUint64Array)return new BigUint64Array(e);if(e instanceof Int8Array)return new Int8Array(e);if(e instanceof Int16Array)return new Int16Array(e);if(e instanceof Int32Array)return new Int32Array(e);if(e instanceof BigInt64Array)return new BigInt64Array(e);if(e instanceof Float32Array)return new Float32Array(e);if(e instanceof Float64Array)return new Float64Array(e);if(e instanceof ArrayBuffer)return e.slice(0);if(e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView)return new DataView(e.buffer.slice(0));if(typeof File<"u"&&e instanceof File)return new File([e],e.name,{type:e.type});if(typeof Blob<"u"&&e instanceof Blob)return new Blob([e],{type:e.type});if(e instanceof Set)return new Set([...e].map(P));if(e instanceof Map)return new Map([...e].map(([t,s])=>[P(t),P(s)]));if(e instanceof WeakSet||e instanceof WeakMap)throw new Error("WeakSet and WeakMap are not supported");return e.valueOf()!==e?P(e.valueOf()):Object.fromEntries(Object.entries(e).map(([t,s])=>[t,P(s)]).filter(([,t])=>t!==void 0))}else if(typeof e=="function")return;return e}};var za={};Object.defineProperty(za,"__esModule",{value:!0});var Hn=za._isFormatEmail=void 0;const hr=e=>ur.test(e);Hn=za._isFormatEmail=hr;const ur=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;var Ga={},pa={},N=b&&b.__assign||function(){return N=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},N.apply(this,arguments)},ya=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},ga=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ea=b&&b.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],a=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ia=b&&b.__read||function(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var a=s.call(e),o,i=[],p;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(A){p={error:A}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(p)throw p.error}}return i},dr=b&&b.__spreadArray||function(e,t,s){if(s||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(pa,"__esModule",{value:!0});pa.FetcherBase=void 0;var mr=Ra,Qa;(function(e){var t=this;e.request=function(a){return function(o,i,p,A){return ya(t,void 0,void 0,function(){var f;return ga(this,function(h){switch(h.label){case 0:return[4,s("fetch")(a)(o,i,p,A)];case 1:if(f=h.sent(),f.success===!1)throw new mr.HttpError(i.method,i.path,f.status,f.headers,f.data);return[2,f.data]}})})}},e.propagate=function(a){return function(o,i,p,A){return ya(t,void 0,void 0,function(){return ga(this,function(f){return[2,s("propagate")(a)(o,i,p,A)]})})}};var s=function(a){return function(o){return function(i,p,A,f){return ya(t,void 0,void 0,function(){var h,y,M,x,E,g,D,S,c,T,l,$,_,n,m,d,R,G,ca,la,ha,ua,da,ma,Aa;return ga(this,function(U){switch(U.label){case 0:if(h=N({},(R=i.headers)!==null&&R!==void 0?R:{}),A!==void 0){if(((G=p.request)===null||G===void 0?void 0:G.type)===void 0)throw new Error("Error on ".concat(o.className,".fetch(): no content-type being configured."));p.request.type!=="multipart/form-data"&&(h["Content-Type"]=p.request.type)}else A===void 0&&h["Content-Type"]!==void 0&&delete h["Content-Type"];y=N(N({},(ca=i.options)!==null&&ca!==void 0?ca:{}),{method:p.method,headers:function(){var Bn,Ha,Vn,La,fa=[];try{for(var Jn=ea(Object.entries(h)),H=Jn.next();!H.done;H=Jn.next()){var Na=ia(H.value,2),Ba=Na[0],Wn=Na[1];if(Wn!==void 0)if(Array.isArray(Wn))try{for(var Kn=(Vn=void 0,ea(Wn)),L=Kn.next();!L.done;L=Kn.next()){var uo=L.value;fa.push([Ba,String(uo)])}}catch(Ta){Vn={error:Ta}}finally{try{L&&!L.done&&(La=Kn.return)&&La.call(Kn)}finally{if(Vn)throw Vn.error}}else fa.push([Ba,String(Wn)])}}catch(Ta){Bn={error:Ta}}finally{try{H&&!H.done&&(Ha=Jn.return)&&Ha.call(Jn)}finally{if(Bn)throw Bn.error}}return fa}()}),A!==void 0&&(y.body=o.encode(((la=p.request)===null||la===void 0?void 0:la.type)==="application/x-www-form-urlencoded"?Ar(A):((ha=p.request)===null||ha===void 0?void 0:ha.type)==="multipart/form-data"?fr(A):((ua=p.request)===null||ua===void 0?void 0:ua.type)!=="text/plain"?(f??JSON.stringify)(A):A,h)),M=i.host[i.host.length-1]!=="/"&&p.path[0]!=="/"?"/".concat(p.path):p.path,x=new URL("".concat(i.host).concat(M)),E={route:p,path:M,status:null,input:A,output:void 0,started_at:new Date,respond_at:null,completed_at:null},U.label=1;case 1:return U.trys.push([1,12,13,18]),[4,((da=i.fetch)!==null&&da!==void 0?da:fetch)(x.href,y)];case 2:return g=U.sent(),E.respond_at=new Date,E.status=g.status,D={success:g.status===200||g.status===201||g.status===p.status,status:g.status,headers:Tr(g.headers),data:void 0},D.success!==!1?[3,4]:(S=D,[4,g.text()]);case 3:if(S.data=U.sent(),c=g.headers.get("content-type"),a!=="fetch"&&c&&c.indexOf("application/json")!==-1)try{D.data=JSON.parse(D.data)}catch{}return[3,11];case 4:return p.method!=="HEAD"?[3,5]:(D.data=void 0,[3,11]);case 5:return((ma=p.response)===null||ma===void 0?void 0:ma.type)!=="application/json"?[3,7]:[4,g.text()];case 6:return T=U.sent(),D.data=T.length?JSON.parse(T):void 0,[3,11];case 7:return((Aa=p.response)===null||Aa===void 0?void 0:Aa.type)!=="application/x-www-form-urlencoded"?[3,9]:($=URLSearchParams.bind,[4,g.text()]);case 8:return l=new($.apply(URLSearchParams,[void 0,U.sent()])),D.data=p.parseQuery?p.parseQuery(l):l,[3,11];case 9:return _=D,m=(n=o).decode,[4,g.text()];case 10:_.data=m.apply(n,[U.sent(),D.headers]),U.label=11;case 11:return E.output=D.data,[2,D];case 12:throw d=U.sent(),d;case 13:if(E.completed_at=new Date,!i.logger)return[3,17];U.label=14;case 14:return U.trys.push([14,16,,17]),[4,i.logger(E)];case 15:return U.sent(),[3,17];case 16:return U.sent(),[3,17];case 17:return[7];case 18:return[2]}})})}}}})(Qa||(pa.FetcherBase=Qa={}));var Ar=function(e){var t,s,a=new URLSearchParams,o=function(y,M){if(M===void 0)return"continue";Array.isArray(M)?M.forEach(function(x){return a.append(y,String(x))}):a.set(y,String(M))};try{for(var i=ea(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=ia(p.value,2),f=A[0],h=A[1];o(f,h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},fr=function(e){var t,s,a=new FormData,o=function(y){return function(M){M!==void 0&&(typeof File=="function"&&M instanceof File?a.append(y,M,M.name):a.append(y,M))}};try{for(var i=ea(Object.entries(e)),p=i.next();!p.done;p=i.next()){var A=ia(p.value,2),f=A[0],h=A[1];Array.isArray(h)?h.map(o(f)):o(f)(h)}}catch(y){t={error:y}}finally{try{p&&!p.done&&(s=i.return)&&s.call(i)}finally{if(t)throw t.error}}return a},Tr=function(e){var t={};return e.forEach(function(s,a){var o,i;a==="set-cookie"?((i=t[a])!==null&&i!==void 0||(t[a]=[]),(o=t[a]).push.apply(o,dr([],ia(s.split(";").map(function(p){return p.trim()})),!1))):t[a]=s}),t},Ya=b&&b.__awaiter||function(e,t,s,a){function o(i){return i instanceof s?i:new s(function(p){p(i)})}return new(s||(s=Promise))(function(i,p){function A(y){try{h(a.next(y))}catch(M){p(M)}}function f(y){try{h(a.throw(y))}catch(M){p(M)}}function h(y){y.done?i(y.value):o(y.value).then(A,f)}h((a=a.apply(e,t||[])).next())})},Za=b&&b.__generator||function(e,t){var s={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,o,i,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=A(0),p.throw=A(1),p.return=A(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function A(h){return function(y){return f([h,y])}}function f(h){if(a)throw new TypeError("Generator is already executing.");for(;p&&(p=0,h[0]&&(s=0)),s;)try{if(a=1,o&&(i=h[0]&2?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return s.label++,{value:h[1],done:!1};case 5:s.label++,o=h[1],h=[0];continue;case 7:h=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){s=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){s.label=h[1];break}if(h[0]===6&&s.label<i[1]){s.label=i[1],i=h;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(h);break}i[2]&&s.ops.pop(),s.trys.pop();continue}h=t.call(e,s)}catch(y){h=[6,y],o=0}finally{a=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(Ga,"__esModule",{value:!0});var r=Ga.PlainFetcher=void 0,Ia=pa,Xa;(function(e){function t(a,o,i,p){return Ya(this,void 0,void 0,function(){var A,f;return Za(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ia.FetcherBase.request({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.fetch=t;function s(a,o,i,p){return Ya(this,void 0,void 0,function(){var A,f;return Za(this,function(h){if(((A=o.request)===null||A===void 0?void 0:A.encrypted)===!0||((f=o.response)===null||f===void 0?void 0:f.encrypted)===!0)throw new Error("Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Ia.FetcherBase.propagate({className:"PlainFetcher",encode:function(y){return y},decode:function(y){return y}})(a,o,i,p)]})})}e.propagate=s})(Xa||(r=Ga.PlainFetcher=Xa={}));var ja;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.administrator;return!s||!a||!o?null:{id:o.id,type:"administrator",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&C(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip))&&typeof n.created_at=="string"&&v(n.created_at),A=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&C(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Fa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const $=(n,m)=>(T(n)===!1&&(l=m,((d,R,G=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_($(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&C(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&v(c.created_at),f=c=>typeof c.id=="string"&&C(c.id)&&typeof c.value=="string"&&Hn(c.value)&&typeof c.created_at=="string"&&v(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every(($,_)=>(typeof $=="object"&&$!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))&&y($,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Hn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,$,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,$+"",!0)||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})(ja||(ja={}));var $a;(function(e){e.invert=t=>{var i;const s=t.citizen,a=t.member,o=(i=t.member)==null?void 0:i.seller;return!s||!a||!o?null:{id:o.id,type:"seller",citizen:s,customer:(()=>{const p=n=>typeof n.id=="string"&&C(n.id)&&typeof n.channel=="object"&&n.channel!==null&&A(n.channel)&&(n.external_user===null||typeof n.external_user=="object"&&n.external_user!==null&&f(n.external_user))&&typeof n.href=="string"&&O(n.href)&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0))&&typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip))&&typeof n.created_at=="string"&&v(n.created_at),A=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.code=="string"&&typeof n.name=="string",f=n=>typeof n.id=="string"&&C(n.id)&&(n.citizen===null||typeof n.citizen=="object"&&n.citizen!==null&&h(n.citizen))&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.application=="string"&&typeof n.uid=="string"&&typeof n.nickname=="string"&&!0,h=n=>typeof n.id=="string"&&C(n.id)&&typeof n.created_at=="string"&&v(n.created_at)&&typeof n.mobile=="string"&&RegExp("^[0-9]*$").test(n.mobile)&&typeof n.name=="string",y=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&((typeof n.channel=="object"&&n.channel!==null||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&M(n.channel,m+".channel",d)||u(d,{method:"typia.misc.assertClone",path:m+".channel",expected:"IShoppingChannel",value:n.channel},l))&&(n.external_user===null||(typeof n.external_user=="object"&&n.external_user!==null||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&x(n.external_user,m+".external_user",d)||u(d,{method:"typia.misc.assertClone",path:m+".external_user",expected:"(IShoppingExternalUser | null)",value:n.external_user},l))&&(typeof n.href=="string"&&(O(n.href)||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'string & Format<"uri">',value:n.href},l))||u(d,{method:"typia.misc.assertClone",path:m+".href",expected:'(string & Format<"uri">)',value:n.href},l))&&(n.referrer===null||typeof n.referrer=="string"&&(O(n.referrer)||n.referrer.length<=0||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:n.referrer},l))||u(d,{method:"typia.misc.assertClone",path:m+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:n.referrer},l))&&(typeof n.ip=="string"&&(zn(n.ip)||Gn(n.ip)||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))||u(d,{method:"typia.misc.assertClone",path:m+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:n.ip},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l)),M=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.code=="string"||u(d,{method:"typia.misc.assertClone",path:m+".code",expected:"string",value:n.code},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"string",value:n.name},l)),x=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(n.citizen===null||(typeof n.citizen=="object"&&n.citizen!==null||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&E(n.citizen,m+".citizen",d)||u(d,{method:"typia.misc.assertClone",path:m+".citizen",expected:"(IShoppingCitizen | null)",value:n.citizen},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.application=="string"||u(d,{method:"typia.misc.assertClone",path:m+".application",expected:"string",value:n.application},l))&&(typeof n.uid=="string"||u(d,{method:"typia.misc.assertClone",path:m+".uid",expected:"string",value:n.uid},l))&&(typeof n.nickname=="string"||u(d,{method:"typia.misc.assertClone",path:m+".nickname",expected:"string",value:n.nickname},l))&&!0,E=(n,m,d=!0)=>(typeof n.id=="string"&&(C(n.id)||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'string & Format<"uuid">',value:n.id},l))||u(d,{method:"typia.misc.assertClone",path:m+".id",expected:'(string & Format<"uuid">)',value:n.id},l))&&(typeof n.created_at=="string"&&(v(n.created_at)||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'string & Format<"date-time">',value:n.created_at},l))||u(d,{method:"typia.misc.assertClone",path:m+".created_at",expected:'(string & Format<"date-time">)',value:n.created_at},l))&&(typeof n.mobile=="string"&&(RegExp("^[0-9]*$").test(n.mobile)||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:n.mobile},l))||u(d,{method:"typia.misc.assertClone",path:m+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:n.mobile},l))&&(typeof n.name=="string"||u(d,{method:"typia.misc.assertClone",path:m+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:n.name},l)),g=n=>({id:n.id,channel:D(n.channel),external_user:n.external_user?S(n.external_user):n.external_user,href:n.href,referrer:n.referrer,ip:n.ip,created_at:n.created_at}),D=n=>({id:n.id,created_at:n.created_at,code:n.code,name:n.name}),S=n=>({id:n.id,citizen:n.citizen?c(n.citizen):n.citizen,created_at:n.created_at,application:n.application,uid:n.uid,nickname:n.nickname,data:Fa(n.data)}),c=n=>({id:n.id,created_at:n.created_at,mobile:n.mobile,name:n.name}),T=n=>typeof n=="object"&&n!==null&&p(n);let l;const $=(n,m)=>(T(n)===!1&&(l=m,((d,R,G=!0)=>(typeof d=="object"&&d!==null||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))&&y(d,R+"",!0)||u(!0,{method:"typia.misc.assertClone",path:R+"",expected:"IShoppingCustomer.IInvert",value:d},l))(n,"$input",!0)),n),_=n=>g(n);return(n,m)=>_($(n,m))})()(t),member:(()=>{const p=c=>c.map(T=>x(T)),A=c=>typeof c.id=="string"&&C(c.id)&&typeof c.nickname=="string"&&Array.isArray(c.emails)&&c.emails.every(T=>typeof T=="object"&&T!==null&&f(T))&&typeof c.created_at=="string"&&v(c.created_at),f=c=>typeof c.id=="string"&&C(c.id)&&typeof c.value=="string"&&Hn(c.value)&&typeof c.created_at=="string"&&v(c.created_at),h=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.nickname=="string"||u(l,{method:"typia.misc.assertClone",path:T+".nickname",expected:"string",value:c.nickname},g))&&((Array.isArray(c.emails)||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&c.emails.every(($,_)=>(typeof $=="object"&&$!==null||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))&&y($,T+".emails["+_+"]",l)||u(l,{method:"typia.misc.assertClone",path:T+".emails["+_+"]",expected:"IShoppingMemberEmail",value:$},g))||u(l,{method:"typia.misc.assertClone",path:T+".emails",expected:"Array<IShoppingMemberEmail>",value:c.emails},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),y=(c,T,l=!0)=>(typeof c.id=="string"&&(C(c.id)||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'string & Format<"uuid">',value:c.id},g))||u(l,{method:"typia.misc.assertClone",path:T+".id",expected:'(string & Format<"uuid">)',value:c.id},g))&&(typeof c.value=="string"&&(Hn(c.value)||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'string & Format<"email">',value:c.value},g))||u(l,{method:"typia.misc.assertClone",path:T+".value",expected:'(string & Format<"email">)',value:c.value},g))&&(typeof c.created_at=="string"&&(v(c.created_at)||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'string & Format<"date-time">',value:c.created_at},g))||u(l,{method:"typia.misc.assertClone",path:T+".created_at",expected:'(string & Format<"date-time">)',value:c.created_at},g)),M=c=>({id:c.id,nickname:c.nickname,emails:p(c.emails),created_at:c.created_at}),x=c=>({id:c.id,value:c.value,created_at:c.created_at}),E=c=>typeof c=="object"&&c!==null&&A(c);let g;const D=(c,T)=>(E(c)===!1&&(g=T,((l,$,_=!0)=>(typeof l=="object"&&l!==null||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))&&h(l,$+"",!0)||u(!0,{method:"typia.misc.assertClone",path:$+"",expected:"IShoppingMember.IInvert",value:l},g))(c,"$input",!0)),c),S=c=>M(c);return(c,T)=>S(D(c,T))})()(a),created_at:o.created_at}}})($a||($a={}));var ta;(function(e){e.adjustable=s=>{const a=t(s);return s.criteria.direction==="include"?a:!a};const t=s=>s.criteria.type==="section"?s.criteria.sections.some(a=>a.id===s.sale.section.id):s.criteria.type==="seller"?s.criteria.sellers.some(a=>a.id===s.sale.seller.id):s.criteria.type==="sale"?s.criteria.sales.some(a=>a.id===s.sale.id):s.criteria.type==="funnel"?s.criteria.funnels.some(a=>{if(a.kind==="url")return s.customer.href.startsWith(a.value);if(a.kind==="referrer")return s.customer.referrer!==null&&s.customer.referrer.startsWith(a.value);if(a.kind==="variable"){const o=s.customer.href.lastIndexOf("?");return o===-1?!1:new URLSearchParams(s.customer.href.substring(o+1)).get(a.key)===a.value}return!1}):!1})(ta||(ta={}));var va;(function(e){e.take=(t,s,a)=>{const o=t.get(s);if(o)return o;const i=a();return t.set(s,i),i}})(va||(va={}));var w;(function(e){e.validate=t=>{const s=[],a=new Set;return t.items.forEach((o,i)=>{if(t.filter&&t.filter(o)===!1)return;const p=t.key(o);a.has(p)===!0?s.push(t.message(o,i)):a.add(p)}),s}})(w||(w={}));var sa;(function(e){e.replica=t=>({name:t.name,extension:t.extension,url:t.url})})(sa||(sa={}));var Ca;(function(e){e.replica=t=>({title:t.title,body:t.body,format:t.format,thumbnails:t.thumbnails.map(sa.replica),files:t.files.map(sa.replica)})})(Ca||(Ca={}));var na;(function(e){e.validate=t=>{if(t.option.type!=="select")return[];const s=`input.units[${t.unitIndex}].options[${t.index}]`,a=[];return t.option.candidates.length===0&&a.push({accessor:`${s}.candidates`,message:'Candidates must not be empty when type of the option is "select".'}),a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.candidates[${i}]`,message:`Duplicated candidate name: "${o.name}"`}),items:t.option.candidates})),a},e.replica=t=>t.type==="select"?{type:t.type,name:t.name,variable:t.variable,candidates:t.candidates.map(s=>({name:s.name}))}:{type:t.type,name:t.name}})(na||(na={}));var aa;(function(e){e.validate=t=>{const s=`input.units.[${t.unitIndex}].stocks[${t.stockIndex}].choices[${t.index}]`,a=[],o=t.unit.options[t.choice.option_index];return o===void 0?a.push({accessor:s,message:`Option index ${t.choice.option_index} is out of bounds.`}):o.type!=="select"?a.push({accessor:s,message:'Option type must be "select".'}):o.variable===!1?a.push({accessor:s,message:"Option is not variable."}):o.candidates[t.choice.candidate_index]===void 0&&a.push({accessor:s,message:`Candidate index ${t.choice.candidate_index} is out of bounds.`}),a},e.replica=t=>{const s=t.options.findIndex(i=>i.id===t.choice.option_id);if(s===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched option.");const a=t.options[s];if(a.type!=="select")throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option type must be 'select'.");if(a.variable===!1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option must be variable.");const o=a.candidates.findIndex(i=>i.id===t.choice.candidate_id);if(o===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched candidate.");return{option_index:s,candidate_index:o}}})(aa||(aa={}));var _a;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>JSON.stringify([a.option_index,a.candidate_index]),message:(a,o)=>({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].choices[${o}]`,message:`Duplicated choice: (${a.option_index}, ${a.candidate_index})`}),items:t.stock.choices})),t.stock.choices.forEach((a,o)=>{s.push(...aa.validate({unit:t.unit,unitIndex:t.unitIndex,stock:t.stock,stockIndex:t.index,choice:a,index:o}))}),t.stock.price.nominal<t.stock.price.real&&s.push({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].price.real`,message:"Real price cannot be greater than nominal price"}),s},e.replica=t=>({name:t.stock.name,choices:t.stock.choices.map(s=>aa.replica({options:t.options,choice:s})),quantity:Math.max(0,t.stock.inventory.income-t.stock.inventory.outcome),price:{nominal:t.stock.price.nominal,real:t.stock.price.real}})})(_a||(_a={}));var oa;(function(e){e.validate=t=>{const s=`input.units[${t.index}]`,a=[];if(a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.options[${i}]`,message:`Duplicated option name: "${o.name}"`}),items:t.unit.options})),t.unit.options.forEach((o,i)=>a.push(...na.validate({unit:t.unit,unitIndex:t.index,option:o,index:i}))),t.unit.stocks.length===0)a.push({accessor:`${s}.stocks.length`,message:"No stock exists."});else{const o=t.unit.options.map(i=>i.type==="select"&&i.variable?i.candidates.length:1).reduce((i,p)=>i*p,1);t.unit.stocks.length>o&&a.push({accessor:`${s}.stocks.length`,message:`Incorrect number of stocks: must not over the ${o} but ${t.unit.stocks.length}.`})}return a.push(...w.validate({key:o=>o.name,message:(o,i)=>({accessor:`${s}.stocks[${i}]`,message:`Duplicated stock name: "${o.name}"`}),items:t.unit.stocks})),a},e.replica=t=>({name:t.name,primary:t.primary,required:t.required,options:t.options.map(na.replica),stocks:t.stocks.map(s=>_a.replica({options:t.options,stock:s}))})})(oa||(oa={}));var Ln;(function(e){e.validate=t=>{const s=[];return s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.category_codes[${o}]`,message:`Duplicated category code: "${a}"`}),items:t.category_codes})),t.units.length===0?s.push({accessor:"input.units",message:"No unit"}):t.units.every(a=>a.required===!1)&&s.push({accessor:"input.units[].required",message:"No required unit"}),s.push(...w.validate({key:a=>a.name,message:(a,o)=>({accessor:`input.units[${o}]`,message:`Duplicated unit name: "${a.name}"`}),items:t.units})),t.units.forEach((a,o)=>s.push(...oa.validate({unit:a,index:o}))),s.push(...w.validate({key:a=>a,message:(a,o)=>({accessor:`input.tags[${o}]`,message:`Duplicated tags: "${a}"`}),items:t.tags})),s},e.replica=t=>({category_codes:t.categories.map(s=>s.code),content:Ca.replica(t.content),units:t.units.map(oa.replica),tags:t.tags.slice()})})(Ln||(Ln={}));var Nn;(function(e){e.validate=t=>{const s=[];return t.opened_at&&t.closed_at&&new Date(t.closed_at).getTime()<new Date(t.opened_at).getTime()&&s.push({accessor:"input.closed_at",message:"Closed date is earlier than opened date"}),s.push(...Ln.validate(t)),s},e.replica=t=>({...Ln.replica(t),section_code:t.section.code,opened_at:t.opened_at,closed_at:t.closed_at}),e.readable=t=>{const s=[];t.sale.opened_at===null?s.push({accessor:t.accessor,message:"The sale has not been opened."}):new Date(t.sale.opened_at).getTime()>Date.now()&&s.push({accessor:t.accessor,message:"The sale has not been opened yet."});const a=(o,i)=>{i!==null&&Date.now()>=new Date(i).getTime()&&s.push({accessor:t.accessor,message:`The sale has been ${o}.`})};return a("closed",t.sale.closed_at),t.checkPause&&a("paused",t.sale.paused_at),a("suspended",t.sale.suspended_at),s}})(Nn||(Nn={}));var ra;(function(e){e.validate=t=>{const s=[],a=t.unit.options.find(o=>o.id===t.input.option_id);return a===void 0?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].option_id`,message:"Unable to find the matched option."}):a.type==="select"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}]`,message:"The select option does not require the choice composition."}):t.input.value!==null&&(a.type==="boolean"&&typeof t.input.value!="boolean"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be boolean type."}):a.type==="number"&&typeof t.input.value!="number"?s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be number type."}):a.type==="string"&&typeof t.input.value!="string"&&s.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be string type."})),s},e.replica=t=>t.option.type==="select"?null:{option_id:t.option.id,value:t.value}})(ra||(ra={}));var z;(function(e){e.validate=t=>{const s=[];t.input.choices.forEach((o,i)=>{ra.validate({unit:t.unit,stockIndex:t.index,input:o,index:i})});const a=t.unit.stocks.find(o=>o.id===t.input.stock_id);return a===void 0?s.push({accessor:`$input.stocks[${t.index}].stock_id`,message:"Unable to find the matched stock."}):a.inventory.income-a.inventory.outcome<t.input.quantity*t.commodity.volume&&s.push({accessor:`$input.stocks[${t.index}].quantity`,message:"Insufficient inventory."}),s},e.replica=t=>({unit_id:t.unit.id,stock_id:t.stock.id,choices:t.stock.choices.map(ra.replica).filter(s=>s!==null),quantity:t.stock.quantity}),e.preview=t=>{const s=t.unit.stocks.find(a=>a.id===t.input.stock_id);if(s===void 0)throw new Error("Unable to find the matched stock.");return{id:s.id,name:s.name,price:s.price,inventory:s.inventory,quantity:t.input.quantity,choices:[...s.choices.map(a=>{const o=t.unit.options.find(p=>p.id===a.option_id),i=o.candidates.find(p=>p.id===a.candidate_id);return{id:a.id,option:o,candidate:i,value:null}}),...t.input.choices.map(a=>{const o=t.unit.options.find(i=>i.id===a.option_id);return{id:Ea(),option:o,candidate:null,value:a.value}})]}}})(z||(z={}));var Sa;(function(e){e.validate=t=>{const s=Nn.readable({accessor:"$input.sale_id",checkPause:!0,sale:t.sale});return t.input.stocks.forEach((a,o)=>{const i=t.sale.units.find(p=>p.id===a.unit_id);i===void 0?s.push({accessor:`$input.stocks[${o}].unit_id`,message:"Unable to find the matched unit."}):s.push(...z.validate({unit:i,commodity:t.input,input:a,index:o}))}),s},e.replica=t=>({sale_id:t.sale.id,stocks:t.sale.units.map(s=>s.stocks.map(a=>z.replica({unit:s,stock:a}))).flat(),volume:t.volume}),e.preview=t=>{const s=t.input.stocks.map(o=>{const i=t.sale.units.find(p=>p.id===o.unit_id);if(i===void 0)throw new Error(`Error on ShoppingCartItemDiagnoser.preview(): unable to find the matched unit by its id "${o.unit_id}".`);return[{id:i.id,name:i.name,primary:i.primary,required:i.required,stocks:[]},z.preview({unit:i,input:o})]}),a=new Map;for(const[o,i]of s)va.take(a,o.id,()=>o).stocks.push(i);return{id:Ea(),sale:{...t.sale,content:{id:Ea(),title:t.sale.content.title,thumbnails:t.sale.content.thumbnails},units:[...a.values()]},pseudo:!0,volume:t.input.volume,price:{nominal:s.map(([,o])=>o.price.nominal).reduce((o,i)=>o+i),real:s.map(([,o])=>o.price.real).reduce((o,i)=>o+i)},created_at:new Date().toISOString(),orderable:!0}}})(Sa||(Sa={}));var xa;(function(e){e.validate=t=>{const s=Nn.readable({accessor:`input.goods.${t.index}.commodity.sale`,checkPause:!0,sale:t.commodity.sale});for(const a of t.commodity.sale.units)for(const o of a.stocks)o.quantity*t.input.volume>o.inventory.income-o.inventory.outcome&&s.push({accessor:`input.goods.${t.index}.volume`,message:`Not enough inventory on nested stock#${o.id}.`});return s}})(xa||(xa={}));var ba;(function(e){e.validate=t=>t.input.goods.map((s,a)=>{const o=t.commodities.find(i=>i.id===s.commodity_id);return o===void 0?{accessor:`input.goods[${a}].commodity_id`,message:`Commodity#${s.commodity_id} is not found.`}:xa.validate({commodity:o,input:s,index:a})}).flat()})(ba||(ba={}));var B;(function(e){e.adjustable=s=>s.coupon.criterias.every(a=>ta.adjustable({customer:s.customer,sale:s.sale,criteria:a})),e.coexistable=s=>s.length<=1||s.every(a=>a.restriction.exclusive===!1),e.sort=s=>s.sort(t);function t(s,a){return s.discount.unit!==a.discount.unit?s.discount.unit==="percent"?-1:1:s.discount.unit==="amount"&&a.discount.unit==="amount"?Number(s.discount.value)-Number(a.discount.value):a.discount.value-s.discount.value}})(B||(B={}));var F;(function(e){e.checkCoupon=p=>e.filterItems(p).length!==0,e.filterItems=p=>t(p);const t=p=>s({accessor:p.accessor,coupon:p.coupon,data:p.data.filter(A=>B.adjustable({customer:p.customer,sale:p.accessor.item(A).sale,coupon:p.coupon}))}),s=p=>p.coupon.discount.threshold===null?p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.value):p.data:p.coupon.discount.unit==="amount"&&p.coupon.discount.multiplicative===!0?p.data.filter(f=>p.accessor.item(f).price.real>=p.coupon.discount.threshold&&p.accessor.item(f).price.real>=p.coupon.discount.value):p.data.map(f=>a(p.accessor)(f)).reduce((f,h)=>f+h,0)>=p.coupon.discount.threshold?p.data:[],a=p=>A=>p.item(A).price.real*p.volume(A);e.discount=p=>o({...p,title:`${p.className}.discount`});const o=p=>{if(B.sort(p.coupons),B.coexistable(p.coupons)===!1)throw new Error(`Error on ${p.title}(): target coupons are not coexistable.`);const A={amount:0,coupon_to_elem_dict:new Map};for(const f of p.coupons)t({accessor:p.accessor,customer:p.customer,data:p.data,coupon:f}).length!==0&&i({accessor:p.accessor,coupon:f,data:p.data,output:A});return A},i=p=>{const A=(f,h)=>{yr(p.output.coupon_to_elem_dict,p.coupon.id,()=>new Map).set(f.id,h)};if(p.coupon.discount.unit==="percent")for(const f of p.data){const h=p.coupon.discount.value/100*a(p.accessor)(f);p.output.amount+=h,A(f,h)}else if(p.coupon.discount.multiplicative===!0)for(const f of p.data){const h=p.coupon.discount.value*p.accessor.volume(f);A(f,h),p.output.amount+=h}else{const f=p.data.map(h=>a(p.accessor)(h)).reduce((h,y)=>h+y,0);for(const h of p.data){const y=p.coupon.discount.value/100*a(p.accessor)(h)/f;A(h,y)}p.output.amount+=p.coupon.discount.value}};e.combine=p=>{const A=new Map(p.tickets.map(E=>[E.coupon.id,E])),f=p.coupons.filter(E=>A.has(E.id)===!1&&e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E})),h=[...A.values()].filter(E=>e.checkCoupon({accessor:p.accessor,customer:p.customer,data:p.data,coupon:E.coupon})),y=[...f,...h.map(E=>E.coupon)],M=[y.filter(E=>E.restriction.exclusive===!1),...y.filter(E=>E.restriction.exclusive===!0).map(E=>[E])].filter(E=>E.length!==0);return M.map(E=>o({title:`${p.className}.combine`,accessor:p.accessor,customer:p.customer,data:p.data,coupons:E})).map((E,g)=>({coupons:M[g].filter(D=>f.some(S=>D.id===S.id)),tickets:h.filter(D=>M[g].some(S=>S.id===D.coupon.id)),entries:[...E.coupon_to_elem_dict.entries()].map(([D,S])=>[...S.entries()].map(([c,T])=>({coupon_id:D,item_id:c,amount:T}))).flat(),amount:E.amount}))}})(F||(F={}));const yr=(e,t,s)=>{const a=e.get(t);if(a)return a;const o=s();return e.set(t,o),o};var Ua;(function(e){e.checkCoupon=t=>F.checkCoupon({accessor:Zn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.filterGoods=t=>F.filterItems({accessor:Zn,customer:t.customer,coupon:t.coupon,data:t.goods}),e.combine=t=>F.combine({className:"ShoppingOrderDiscountableDiagnoser",accessor:Zn,customer:t.customer,coupons:t.coupons,tickets:t.tickets,data:t.goods}).map(s=>({...s,entries:s.entries.map(a=>({coupon_id:a.coupon_id,good_id:a.item_id,amount:a.amount}))})),e.discount=t=>F.discount({className:"ShoppingOrderDiscountableDiagnoser",accessor:Zn,customer:t.customer,coupons:t.coupons,data:t.goods})})(Ua||(Ua={}));const Zn={item:e=>e.commodity,volume:e=>e.volume};var gr=Object.freeze({__proto__:null,get ShoppingAdministratorDiagnoser(){return ja},get ShoppingCartCommodityDiagnoser(){return Sa},get ShoppingCartCommodityStockDiagnoser(){return z},get ShoppingCouponCriteriaDiagnoser(){return ta},get ShoppingOrderDiagnoser(){return ba},get ShoppingOrderDiscountableDiagnoser(){return Ua},get ShoppingSaleDiagnoser(){return Nn},get ShoppingSaleSnapshotDiagnoser(){return Ln},get ShoppingSellerDiagnoser(){return $a}}),Er=Object.freeze({__proto__:null,shoppings:gr});async function V(e){return r.fetch(e,{...V.METADATA,template:V.METADATA.path,path:V.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/health",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/health"})(V);var Dr=Object.freeze({__proto__:null,get:V});async function J(e){return r.fetch(e,{...J.METADATA,template:J.METADATA.path,path:J.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/performance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/performance"})(J);var Mr=Object.freeze({__proto__:null,get:J});async function W(e){return r.fetch(e,{...W.METADATA,template:W.METADATA.path,path:W.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system"})(W);async function K(e){return r.fetch(e,{...K.METADATA,template:K.METADATA.path,path:K.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/internal_server_error",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/internal_server_error"})(K);async function Q(e){return r.fetch(e,{...Q.METADATA,template:Q.METADATA.path,path:Q.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/uncaught_exception",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/uncaught_exception"})(Q);var jr=Object.freeze({__proto__:null,get:W,internal_server_error:K,uncaught_exception:Q}),$r=Object.freeze({__proto__:null,health:Dr,performance:Mr,system:jr});async function Y(e){return r.fetch(e,{...Y.METADATA,template:Y.METADATA.path,path:Y.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate"})(Y);async function Z(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Z.METADATA,template:Z.METADATA.path,path:Z.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/authenticate"})(Z);async function I(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...I.METADATA,template:I.METADATA.path,path:I.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate/login"})(I);var vr=Object.freeze({__proto__:null,get:Y,join:Z,login:I});async function X(e,t){return r.fetch(e,{...X.METADATA,template:X.METADATA.path,path:X.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id/destroy",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/destroy`})(X);async function ee(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ee.METADATA,template:ee.METADATA.path,path:ee.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/coupons"})(ee);async function te(e,t){return r.fetch(e,{...te.METADATA,template:te.METADATA.path,path:te.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(te);async function se(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...se.METADATA,template:se.METADATA.path,path:se.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/coupons"})(se);async function ne(e,t){return r.fetch(e,{...ne.METADATA,template:ne.METADATA.path,path:ne.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ne);var Cr=Object.freeze({__proto__:null,at:ne,create:ee,destroy:X,erase:te,index:se});async function ae(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ae.METADATA,template:ae.METADATA.path,path:ae.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/deposits"})(ae);async function oe(e,t){return r.fetch(e,{...oe.METADATA,template:oe.METADATA.path,path:oe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(oe);async function re(e,t){return r.fetch(e,{...re.METADATA,template:re.METADATA.path,path:re.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(re);async function pe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pe.METADATA,template:pe.METADATA.path,path:pe.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/deposits"})(pe);async function ie(e,t){return r.fetch(e,{...ie.METADATA,template:ie.METADATA.path,path:ie.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ie);var _r=Object.freeze({__proto__:null,at:oe,create:pe,erase:ie,get:re,index:ae});async function ce(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ce.METADATA,template:ce.METADATA.path,path:ce.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages/donations"})(ce);async function le(e,t){return r.fetch(e,{...le.METADATA,template:le.METADATA.path,path:le.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/donations/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/donations/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(le);async function he(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...he.METADATA,template:he.METADATA.path,path:he.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages/donations"})(he);var Sr=Object.freeze({__proto__:null,at:le,create:he,index:ce});async function ue(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ue.METADATA,template:ue.METADATA.path,path:ue.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages"})(ue);async function de(e,t){return r.fetch(e,{...de.METADATA,template:de.METADATA.path,path:de.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(de);async function me(e,t){return r.fetch(e,{...me.METADATA,template:me.METADATA.path,path:me.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(me);async function Ae(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ae.METADATA,template:Ae.METADATA.path,path:Ae.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages"})(Ae);async function fe(e,t){return r.fetch(e,{...fe.METADATA,template:fe.METADATA.path,path:fe.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(fe);var xr=Object.freeze({__proto__:null,at:de,create:Ae,donations:Sr,erase:fe,get:me,index:ue});async function Te(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Te.METADATA,template:Te.METADATA.path,path:Te.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/orders"})(Te);async function ye(e,t){return r.fetch(e,{...ye.METADATA,template:ye.METADATA.path,path:ye.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ye);var br=Object.freeze({__proto__:null,at:ye,index:Te});async function ge(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ge.METADATA,template:ge.METADATA.path,path:ge.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(ge);async function Ee(e,t,s,a){return r.fetch(e,{...Ee.METADATA,template:Ee.METADATA.path,path:Ee.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ee);async function De(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...De.METADATA,template:De.METADATA.path,path:De.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(De);async function Me(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Me.METADATA,template:Me.METADATA.path,path:Me.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Me);var Ur=Object.freeze({__proto__:null,at:Ee,create:De,index:ge,update:Me});async function je(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...je.METADATA,template:je.METADATA.path,path:je.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(je);async function $e(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$e.METADATA,template:$e.METADATA.path,path:$e.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})($e);async function ve(e,t,s){return r.fetch(e,{...ve.METADATA,template:ve.METADATA.path,path:ve.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ve);var Rr=Object.freeze({__proto__:null,abridges:$e,at:ve,comments:Ur,index:je});async function Ce(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ce.METADATA,template:Ce.METADATA.path,path:Ce.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ce);async function _e(e,t,s,a){return r.fetch(e,{..._e.METADATA,template:_e.METADATA.path,path:_e.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(_e);async function Se(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Se.METADATA,template:Se.METADATA.path,path:Se.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Se);async function xe(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xe.METADATA,template:xe.METADATA.path,path:xe.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(xe);var qr=Object.freeze({__proto__:null,at:_e,create:Se,index:Ce,update:xe});async function be(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...be.METADATA,template:be.METADATA.path,path:be.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(be);async function Ue(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ue.METADATA,template:Ue.METADATA.path,path:Ue.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(Ue);async function Re(e,t,s){return r.fetch(e,{...Re.METADATA,template:Re.METADATA.path,path:Re.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Re);var wr=Object.freeze({__proto__:null,abridges:Ue,at:Re,comments:qr,index:be});async function qe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qe.METADATA,template:qe.METADATA.path,path:qe.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(qe);async function we(e,t,s){return r.fetch(e,{...we.METADATA,template:we.METADATA.path,path:we.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(we);async function Oe(e,t,s){return r.fetch(e,{...Oe.METADATA,template:Oe.METADATA.path,path:Oe.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(Oe);var Or=Object.freeze({__proto__:null,at:we,flip:Oe,index:qe});async function Pe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pe.METADATA,template:Pe.METADATA.path,path:Pe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales/details"})(Pe);async function ke(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ke.METADATA,template:ke.METADATA.path,path:ke.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales"})(ke);async function Fe(e,t){return r.fetch(e,{...Fe.METADATA,template:Fe.METADATA.path,path:Fe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Fe);var Pr=Object.freeze({__proto__:null,at:Fe,details:Pe,index:ke,questions:Rr,reviews:wr,snapshots:Or});async function ze(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ze.METADATA,template:ze.METADATA.path,path:ze.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(ze);async function Ge(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ge.METADATA,template:Ge.METADATA.path,path:Ge.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ge);async function He(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...He.METADATA,template:He.METADATA.path,path:He.path(t)},s)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/:channelCode/categories/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/merge`})(He);async function Le(e,t){return r.fetch(e,{...Le.METADATA,template:Le.METADATA.path,path:Le.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Le);async function Ne(e,t,s){return r.fetch(e,{...Ne.METADATA,template:Ne.METADATA.path,path:Ne.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Ne);async function Be(e,t,s){return r.fetch(e,{...Be.METADATA,template:Be.METADATA.path,path:Be.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Be);var kr=Object.freeze({__proto__:null,at:Ne,create:ze,index:Le,invert:Be,merge:He,update:Ge});async function Ve(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ve.METADATA,template:Ve.METADATA.path,path:Ve.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/channels"})(Ve);async function Je(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Je.METADATA,template:Je.METADATA.path,path:Je.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Je);async function We(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...We.METADATA,template:We.METADATA.path,path:We.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/merge"})(We);async function Ke(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ke.METADATA,template:Ke.METADATA.path,path:Ke.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels"})(Ke);async function Qe(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qe.METADATA,template:Qe.METADATA.path,path:Qe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/hierarchical"})(Qe);async function Ye(e,t){return r.fetch(e,{...Ye.METADATA,template:Ye.METADATA.path,path:Ye.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ye);async function Ze(e,t){return r.fetch(e,{...Ze.METADATA,template:Ze.METADATA.path,path:Ze.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Ze);var Fr=Object.freeze({__proto__:null,at:Ye,categories:kr,create:Ve,get:Ze,hierarchical:Qe,index:Ke,merge:We,update:Je});async function Ie(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ie.METADATA,template:Ie.METADATA.path,path:Ie.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/sections"})(Ie);async function Xe(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xe.METADATA,template:Xe.METADATA.path,path:Xe.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/sections/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Xe);async function et(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...et.METADATA,template:et.METADATA.path,path:et.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/sections/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections/merge"})(et);async function tt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tt.METADATA,template:tt.METADATA.path,path:tt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections"})(tt);async function st(e,t){return r.fetch(e,{...st.METADATA,template:st.METADATA.path,path:st.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(st);async function nt(e,t){return r.fetch(e,{...nt.METADATA,template:nt.METADATA.path,path:nt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(nt);var zr=Object.freeze({__proto__:null,at:st,create:Ie,get:nt,index:tt,merge:et,update:Xe}),Gr=Object.freeze({__proto__:null,channels:Fr,sections:zr}),Hr=Object.freeze({__proto__:null,authenticate:vr,coupons:Cr,deposits:_r,mileages:xr,orders:br,sales:Pr,systematic:Gr});async function at(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...at.METADATA,template:at.METADATA.path,path:at.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/password/change",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/password/change"})(at);var Lr=Object.freeze({__proto__:null,change:at});async function ot(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ot.METADATA,template:ot.METADATA.path,path:ot.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/authenticate/refresh",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/refresh"})(ot);async function rt(e){return r.fetch(e,{...rt.METADATA,template:rt.METADATA.path,path:rt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate"})(rt);async function pt(e,t){const s=await r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pt.METADATA,template:pt.METADATA.path,path:pt.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,s.setHeaders),s}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate"})(pt);async function it(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...it.METADATA,template:it.METADATA.path,path:it.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/join",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/join"})(it);async function ct(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ct.METADATA,template:ct.METADATA.path,path:ct.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/login"})(ct);async function lt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...lt.METADATA,template:lt.METADATA.path,path:lt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/activate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/activate"})(lt);async function ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ht.METADATA,template:ht.METADATA.path,path:ht.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/external",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/external"})(ht);var Nr=Object.freeze({__proto__:null,activate:lt,create:pt,external:ht,get:rt,join:it,login:ct,password:Lr,refresh:ot});async function ut(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ut.METADATA,template:ut.METADATA.path,path:ut.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons/tickets"})(ut);async function dt(e,t){return r.fetch(e,{...dt.METADATA,template:dt.METADATA.path,path:dt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/tickets/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/tickets/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(dt);async function mt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...mt.METADATA,template:mt.METADATA.path,path:mt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/coupons/tickets"})(mt);var Br=Object.freeze({__proto__:null,at:dt,create:mt,index:ut});async function At(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...At.METADATA,template:At.METADATA.path,path:At.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons"})(At);async function ft(e,t){return r.fetch(e,{...ft.METADATA,template:ft.METADATA.path,path:ft.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ft);var Vr=Object.freeze({__proto__:null,at:ft,index:At,tickets:Br});async function Tt(e,t){return r.fetch(e,{...Tt.METADATA,template:Tt.METADATA.path,path:Tt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:chargeId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(Tt);async function yt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yt.METADATA,template:yt.METADATA.path,path:yt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges/:chargeId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(yt);var Jr=Object.freeze({__proto__:null,able:Tt,create:yt});async function gt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gt.METADATA,template:gt.METADATA.path,path:gt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/charges"})(gt);async function Et(e,t){return r.fetch(e,{...Et.METADATA,template:Et.METADATA.path,path:Et.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Et);async function Dt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dt.METADATA,template:Dt.METADATA.path,path:Dt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/deposits/charges"})(Dt);async function Mt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Mt.METADATA,template:Mt.METADATA.path,path:Mt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/deposits/charges/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Mt);async function jt(e,t){return r.fetch(e,{...jt.METADATA,template:jt.METADATA.path,path:jt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(jt);var Wr=Object.freeze({__proto__:null,at:Et,create:Dt,erase:jt,index:gt,publish:Jr,update:Mt});async function $t(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$t.METADATA,template:$t.METADATA.path,path:$t.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories"})($t);async function vt(e,t){return r.fetch(e,{...vt.METADATA,template:vt.METADATA.path,path:vt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(vt);async function Ct(e){return r.fetch(e,{...Ct.METADATA,template:Ct.METADATA.path,path:Ct.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories/balance"})(Ct);var Kr=Object.freeze({__proto__:null,at:vt,balance:Ct,index:$t}),Qr=Object.freeze({__proto__:null,charges:Wr,histories:Kr});async function _t(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._t.METADATA,template:_t.METADATA.path,path:_t.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/mileages/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories"})(_t);async function St(e,t){return r.fetch(e,{...St.METADATA,template:St.METADATA.path,path:St.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/mileages/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(St);async function xt(e){return r.fetch(e,{...xt.METADATA,template:xt.METADATA.path,path:xt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories/balance"})(xt);var Yr=Object.freeze({__proto__:null,at:St,balance:xt,index:_t}),Zr=Object.freeze({__proto__:null,histories:Yr});async function bt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bt.METADATA,template:bt.METADATA.path,path:bt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities"})(bt);async function Ut(e,t){return r.fetch(e,{...Ut.METADATA,template:Ut.METADATA.path,path:Ut.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ut);async function Rt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rt.METADATA,template:Rt.METADATA.path,path:Rt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/carts/commodities"})(Rt);async function qt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qt.METADATA,template:qt.METADATA.path,path:qt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/carts/commodities/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(qt);async function wt(e,t){return r.fetch(e,{...wt.METADATA,template:wt.METADATA.path,path:wt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(wt);async function Ot(e,t){return r.fetch(e,{...Ot.METADATA,template:Ot.METADATA.path,path:Ot.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ot);async function Pt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pt.METADATA,template:Pt.METADATA.path,path:Pt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities/discountable"})(Pt);var Ir=Object.freeze({__proto__:null,at:Ut,create:Rt,discountable:Pt,erase:Ot,index:bt,replica:wt,update:qt}),Xr=Object.freeze({__proto__:null,commodities:Ir});async function kt(e,t,s){return r.fetch(e,{...kt.METADATA,template:kt.METADATA.path,path:kt.path(t,s)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:orderId/goods/:id/confirm",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/goods/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/confirm`})(kt);var ep=Object.freeze({__proto__:null,confirm:kt});async function Ft(e,t){return r.fetch(e,{...Ft.METADATA,template:Ft.METADATA.path,path:Ft.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:orderId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(Ft);async function zt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zt.METADATA,template:zt.METADATA.path,path:zt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/:orderId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(zt);async function Gt(e,t){return r.fetch(e,{...Gt.METADATA,template:Gt.METADATA.path,path:Gt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:orderId/publish",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(Gt);var tp=Object.freeze({__proto__:null,able:Ft,cancel:Gt,create:zt});async function Ht(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ht.METADATA,template:Ht.METADATA.path,path:Ht.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders"})(Ht);async function Lt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Lt.METADATA,template:Lt.METADATA.path,path:Lt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/direct",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders/direct"})(Lt);async function Nt(e,t){return r.fetch(e,{...Nt.METADATA,template:Nt.METADATA.path,path:Nt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Nt);async function Bt(e,t){return r.fetch(e,{...Bt.METADATA,template:Bt.METADATA.path,path:Bt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id/price",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/price`})(Bt);async function Vt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Vt.METADATA,template:Vt.METADATA.path,path:Vt.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders/:id/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discountable`})(Vt);async function Jt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Jt.METADATA,template:Jt.METADATA.path,path:Jt.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:id/discount",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discount`})(Jt);async function Wt(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Wt.METADATA,template:Wt.METADATA.path,path:Wt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/orders"})(Wt);async function Kt(e,t){return r.fetch(e,{...Kt.METADATA,template:Kt.METADATA.path,path:Kt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Kt);var sp=Object.freeze({__proto__:null,at:Kt,create:Ht,direct:Lt,discount:Jt,discountable:Vt,erase:Nt,goods:ep,index:Wt,price:Bt,publish:tp});async function Qt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qt.METADATA,template:Qt.METADATA.path,path:Qt.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Qt);async function Yt(e,t,s,a){return r.fetch(e,{...Yt.METADATA,template:Yt.METADATA.path,path:Yt.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Yt);async function Zt(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zt.METADATA,template:Zt.METADATA.path,path:Zt.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Zt);async function It(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...It.METADATA,template:It.METADATA.path,path:It.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(It);var np=Object.freeze({__proto__:null,at:Yt,create:Zt,index:Qt,update:It});async function Xt(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xt.METADATA,template:Xt.METADATA.path,path:Xt.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Xt);async function es(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...es.METADATA,template:es.METADATA.path,path:es.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(es);async function ts(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ts.METADATA,template:ts.METADATA.path,path:ts.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(ts);async function ss(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ss.METADATA,template:ss.METADATA.path,path:ss.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(ss);async function ns(e,t,s){return r.fetch(e,{...ns.METADATA,template:ns.METADATA.path,path:ns.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ns);var ap=Object.freeze({__proto__:null,abridges:ss,at:ns,comments:np,create:Xt,index:ts,update:es});async function as(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...as.METADATA,template:as.METADATA.path,path:as.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(as);async function os(e,t,s,a){return r.fetch(e,{...os.METADATA,template:os.METADATA.path,path:os.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(os);async function rs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rs.METADATA,template:rs.METADATA.path,path:rs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(rs);async function ps(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ps.METADATA,template:ps.METADATA.path,path:ps.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(ps);var op=Object.freeze({__proto__:null,at:os,create:rs,index:as,update:ps});async function is(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...is.METADATA,template:is.METADATA.path,path:is.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(is);async function cs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cs.METADATA,template:cs.METADATA.path,path:cs.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(cs);async function ls(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ls.METADATA,template:ls.METADATA.path,path:ls.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(ls);async function hs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...hs.METADATA,template:hs.METADATA.path,path:hs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(hs);async function us(e,t,s){return r.fetch(e,{...us.METADATA,template:us.METADATA.path,path:us.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(us);var rp=Object.freeze({__proto__:null,abridges:hs,at:us,comments:op,create:is,index:ls,update:cs});async function ds(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ds.METADATA,template:ds.METADATA.path,path:ds.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(ds);async function ms(e,t,s){return r.fetch(e,{...ms.METADATA,template:ms.METADATA.path,path:ms.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ms);async function As(e,t,s){return r.fetch(e,{...As.METADATA,template:As.METADATA.path,path:As.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(As);var pp=Object.freeze({__proto__:null,at:ms,flip:As,index:ds});async function fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fs.METADATA,template:fs.METADATA.path,path:fs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales/details"})(fs);async function Ts(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ts.METADATA,template:Ts.METADATA.path,path:Ts.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales"})(Ts);async function ys(e,t){return r.fetch(e,{...ys.METADATA,template:ys.METADATA.path,path:ys.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ys);var ip=Object.freeze({__proto__:null,at:ys,details:fs,index:Ts,questions:ap,reviews:rp,snapshots:pp});async function gs(e,t){return r.fetch(e,{...gs.METADATA,template:gs.METADATA.path,path:gs.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(gs);async function Es(e,t,s){return r.fetch(e,{...Es.METADATA,template:Es.METADATA.path,path:Es.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(Es);async function Ds(e,t,s){return r.fetch(e,{...Ds.METADATA,template:Ds.METADATA.path,path:Ds.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Ds);var cp=Object.freeze({__proto__:null,at:Es,index:gs,invert:Ds});async function Ms(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ms.METADATA,template:Ms.METADATA.path,path:Ms.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels"})(Ms);async function js(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...js.METADATA,template:js.METADATA.path,path:js.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels/hierarchical"})(js);async function $s(e,t){return r.fetch(e,{...$s.METADATA,template:$s.METADATA.path,path:$s.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})($s);async function vs(e,t){return r.fetch(e,{...vs.METADATA,template:vs.METADATA.path,path:vs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(vs);var lp=Object.freeze({__proto__:null,at:$s,categories:cp,get:vs,hierarchical:js,index:Ms});async function Cs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Cs.METADATA,template:Cs.METADATA.path,path:Cs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/sections"})(Cs);async function _s(e,t){return r.fetch(e,{..._s.METADATA,template:_s.METADATA.path,path:_s.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(_s);async function Ss(e,t){return r.fetch(e,{...Ss.METADATA,template:Ss.METADATA.path,path:Ss.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Ss);var hp=Object.freeze({__proto__:null,at:_s,get:Ss,index:Cs}),up=Object.freeze({__proto__:null,channels:lp,sections:hp}),dp=Object.freeze({__proto__:null,authenticate:Nr,carts:Xr,coupons:Vr,deposits:Qr,mileages:Zr,orders:sp,sales:ip,systematic:up});async function xs(e){return r.fetch(e,{...xs.METADATA,template:xs.METADATA.path,path:xs.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate"})(xs);async function bs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bs.METADATA,template:bs.METADATA.path,path:bs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/authenticate"})(bs);async function Us(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Us.METADATA,template:Us.METADATA.path,path:Us.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate/login"})(Us);var mp=Object.freeze({__proto__:null,get:xs,join:bs,login:Us});async function Rs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rs.METADATA,template:Rs.METADATA.path,path:Rs.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/journeys",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys`})(Rs);async function qs(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qs.METADATA,template:qs.METADATA.path,path:qs.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id/complete",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/complete`})(qs);async function ws(e,t,s){return r.fetch(e,{...ws.METADATA,template:ws.METADATA.path,path:ws.path(t,s)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ws);var Ap=Object.freeze({__proto__:null,complete:qs,create:Rs,erase:ws});async function Os(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Os.METADATA,template:Os.METADATA.path,path:Os.path(t)},s)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/shippers",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/shippers`})(Os);var fp=Object.freeze({__proto__:null,create:Os});async function Ps(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ps.METADATA,template:Ps.METADATA.path,path:Ps.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries"})(Ps);async function ks(e,t){return r.fetch(e,{...ks.METADATA,template:ks.METADATA.path,path:ks.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/deliveries/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ks);async function Fs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fs.METADATA,template:Fs.METADATA.path,path:Fs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/deliveries"})(Fs);async function zs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zs.METADATA,template:zs.METADATA.path,path:zs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries/incompletes",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries/incompletes"})(zs);var Tp=Object.freeze({__proto__:null,at:ks,create:Fs,incompletes:zs,index:Ps,journeys:Ap,shippers:fp});async function Gs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Gs.METADATA,template:Gs.METADATA.path,path:Gs.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/coupons"})(Gs);async function Hs(e,t){return r.fetch(e,{...Hs.METADATA,template:Hs.METADATA.path,path:Hs.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Hs);async function Ls(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ls.METADATA,template:Ls.METADATA.path,path:Ls.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/coupons"})(Ls);async function Ns(e,t){return r.fetch(e,{...Ns.METADATA,template:Ns.METADATA.path,path:Ns.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ns);var yp=Object.freeze({__proto__:null,at:Ns,create:Gs,erase:Hs,index:Ls});async function Bs(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Bs.METADATA,template:Bs.METADATA.path,path:Bs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/orders"})(Bs);async function Vs(e,t){return r.fetch(e,{...Vs.METADATA,template:Vs.METADATA.path,path:Vs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Vs);var gp=Object.freeze({__proto__:null,at:Vs,index:Bs});async function Js(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Js.METADATA,template:Js.METADATA.path,path:Js.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Js);async function Ws(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ws.METADATA,template:Ws.METADATA.path,path:Ws.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(Ws);var Ep=Object.freeze({__proto__:null,create:Js,update:Ws});async function Ks(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ks.METADATA,template:Ks.METADATA.path,path:Ks.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ks);async function Qs(e,t,s,a){return r.fetch(e,{...Qs.METADATA,template:Qs.METADATA.path,path:Qs.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Qs);async function Ys(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ys.METADATA,template:Ys.METADATA.path,path:Ys.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(Ys);async function Zs(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Zs.METADATA,template:Zs.METADATA.path,path:Zs.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Zs);var Dp=Object.freeze({__proto__:null,at:Qs,create:Ys,index:Ks,update:Zs});async function Is(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Is.METADATA,template:Is.METADATA.path,path:Is.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Is);async function Xs(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xs.METADATA,template:Xs.METADATA.path,path:Xs.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Xs);async function en(e,t,s){return r.fetch(e,{...en.METADATA,template:en.METADATA.path,path:en.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(en);var Mp=Object.freeze({__proto__:null,abridges:Xs,answer:Ep,at:en,comments:Dp,index:Is});async function tn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tn.METADATA,template:tn.METADATA.path,path:tn.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(tn);async function sn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...sn.METADATA,template:sn.METADATA.path,path:sn.path(t,s)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/answer`})(sn);var jp=Object.freeze({__proto__:null,create:tn,update:sn});async function nn(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...nn.METADATA,template:nn.METADATA.path,path:nn.path(t,s)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(nn);async function an(e,t,s,a){return r.fetch(e,{...an.METADATA,template:an.METADATA.path,path:an.path(t,s,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(an);async function on(e,t,s,a){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...on.METADATA,template:on.METADATA.path,path:on.path(t,s)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments`})(on);async function rn(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rn.METADATA,template:rn.METADATA.path,path:rn.path(t,s,a)},o)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(rn);var $p=Object.freeze({__proto__:null,at:an,create:on,index:nn,update:rn});async function pn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pn.METADATA,template:pn.METADATA.path,path:pn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(pn);async function cn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cn.METADATA,template:cn.METADATA.path,path:cn.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(cn);async function ln(e,t,s){return r.fetch(e,{...ln.METADATA,template:ln.METADATA.path,path:ln.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(ln);var vp=Object.freeze({__proto__:null,abridges:cn,answer:jp,at:ln,comments:$p,index:pn});async function hn(e,t,s){return r.fetch(e,{...hn.METADATA,template:hn.METADATA.path,path:hn.path(t,s)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/replica`})(hn);async function un(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...un.METADATA,template:un.METADATA.path,path:un.path(t)},s)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(un);async function dn(e,t,s){return r.fetch(e,{...dn.METADATA,template:dn.METADATA.path,path:dn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(dn);async function mn(e,t,s){return r.fetch(e,{...mn.METADATA,template:mn.METADATA.path,path:mn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/flip`})(mn);var Cp=Object.freeze({__proto__:null,at:dn,flip:mn,index:un,replica:hn});async function An(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...An.METADATA,template:An.METADATA.path,path:An.path(t,s,a)},o)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(An);async function fn(e,t,s,a,o){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...fn.METADATA,template:fn.METADATA.path,path:fn.path(t,s,a)},o)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,s,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(fn);async function Tn(e,t,s,a,o,i){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Tn.METADATA,template:Tn.METADATA.path,path:Tn.path(t,s,a,o)},i)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(Tn);async function yn(e,t,s,a,o){return r.fetch(e,{...yn.METADATA,template:yn.METADATA.path,path:yn.path(t,s,a,o)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s,a,o)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((o==null?void 0:o.toString())??"null")}`})(yn);var _p=Object.freeze({__proto__:null,create:fn,erase:yn,index:An,update:Tn}),Sp=Object.freeze({__proto__:null,supplements:_p}),xp=Object.freeze({__proto__:null,stocks:Sp});async function gn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gn.METADATA,template:gn.METADATA.path,path:gn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/sales"})(gn);async function En(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...En.METADATA,template:En.METADATA.path,path:En.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(En);async function Dn(e,t,s){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dn.METADATA,template:Dn.METADATA.path,path:Dn.path(t)},s)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/open",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/open`})(Dn);async function Mn(e,t){return r.fetch(e,{...Mn.METADATA,template:Mn.METADATA.path,path:Mn.path(t)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(Mn);async function jn(e,t){return r.fetch(e,{...jn.METADATA,template:jn.METADATA.path,path:jn.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/pause",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/pause`})(jn);async function $n(e,t){return r.fetch(e,{...$n.METADATA,template:$n.METADATA.path,path:$n.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/suspend",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/suspend`})($n);async function vn(e,t){return r.fetch(e,{...vn.METADATA,template:vn.METADATA.path,path:vn.path(t)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/restore",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/restore`})(vn);async function Cn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Cn.METADATA,template:Cn.METADATA.path,path:Cn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales/details"})(Cn);async function _n(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._n.METADATA,template:_n.METADATA.path,path:_n.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales"})(_n);async function Sn(e,t){return r.fetch(e,{...Sn.METADATA,template:Sn.METADATA.path,path:Sn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Sn);var bp=Object.freeze({__proto__:null,at:Sn,create:gn,details:Cn,index:_n,open:Dn,pause:jn,questions:Mp,replica:Mn,restore:vn,reviews:vp,snapshots:Cp,suspend:$n,units:xp,update:En});async function xn(e,t){return r.fetch(e,{...xn.METADATA,template:xn.METADATA.path,path:xn.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(xn);async function bn(e,t,s){return r.fetch(e,{...bn.METADATA,template:bn.METADATA.path,path:bn.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}`})(bn);async function Un(e,t,s){return r.fetch(e,{...Un.METADATA,template:Un.METADATA.path,path:Un.path(t,s)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,s)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((s==null?void 0:s.toString())??"null")}/invert`})(Un);var Up=Object.freeze({__proto__:null,at:bn,index:xn,invert:Un});async function Rn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rn.METADATA,template:Rn.METADATA.path,path:Rn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels"})(Rn);async function qn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qn.METADATA,template:qn.METADATA.path,path:qn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels/hierarchical"})(qn);async function wn(e,t){return r.fetch(e,{...wn.METADATA,template:wn.METADATA.path,path:wn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(wn);async function On(e,t){return r.fetch(e,{...On.METADATA,template:On.METADATA.path,path:On.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(On);var Rp=Object.freeze({__proto__:null,at:wn,categories:Up,get:On,hierarchical:qn,index:Rn});async function Pn(e,t){return r.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pn.METADATA,template:Pn.METADATA.path,path:Pn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/sections"})(Pn);async function kn(e,t){return r.fetch(e,{...kn.METADATA,template:kn.METADATA.path,path:kn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(kn);async function Fn(e,t){return r.fetch(e,{...Fn.METADATA,template:Fn.METADATA.path,path:Fn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Fn);var qp=Object.freeze({__proto__:null,at:kn,get:Fn,index:Pn}),wp=Object.freeze({__proto__:null,channels:Rp,sections:qp}),Op=Object.freeze({__proto__:null,authenticate:mp,coupons:yp,deliveries:Tp,orders:gp,sales:bp,systematic:wp}),Pp=Object.freeze({__proto__:null,admins:Hr,customers:dp,sellers:Op}),kp=Object.freeze({__proto__:null,monitors:$r,shoppings:Pp}),eo=Object.freeze({__proto__:null,HttpError:oo.HttpError,diagnosers:Er,functional:kp});const Fp=e=>{const[t,s]=q.useState(null);if(q.useEffect(()=>{(async()=>{s(ao.application({model:"chatgpt",document:no.convert(await fetch("https://raw.githubusercontent.com/samchon/shopping-backend/refs/heads/master/packages/api/customer.swagger.json").then(o=>o.json()))}))})().catch(console.error)},[]),t===null)return j.jsxs("div",{children:[j.jsx("h2",{children:"Loading Swagger document"}),j.jsx("hr",{}),j.jsx("p",{children:"Wait for a moment please."}),j.jsx("p",{children:"Loading Swagger document..."})]});const a=new Fo({model:"chatgpt",vendor:{api:e.api,model:"gpt-4o-mini"},controllers:[{protocol:"http",name:"main",application:t,connection:e.connection}],config:{locale:e.locale}});return j.jsx(zo,{agent:a,title:"Agentica Shopping Chatbot"})},zp=()=>{const[e,t]=q.useState(""),[s,a]=q.useState("gpt-4o-mini"),[o,i]=q.useState(window.navigator.language),[p,A]=q.useState("John Doe"),[f,h]=q.useState("821012345678"),[y,M]=q.useState(!1),[x,E]=q.useState(null),g=async()=>{M(!0);const D={host:"https://shopping-be.wrtn.ai"};await eo.functional.shoppings.customers.authenticate.create(D,{channel_code:"samchon",external_user:null,href:window.location.href,referrer:window.document.referrer}),await eo.functional.shoppings.customers.authenticate.activate(D,{mobile:f,name:p}),E({api:new No({apiKey:e,dangerouslyAllowBrowser:!0}),connection:D,name:p,mobile:f,locale:o})};return j.jsx("div",{style:{width:"100%",height:"100%",overflow:x!==null?void 0:"auto"},children:x!==null?j.jsx(Fp,{...x}):j.jsxs(Go,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[j.jsx(Xn,{variant:"h4",children:"Shopping AI Chatbot"}),j.jsx("br",{}),j.jsx(Bo,{}),j.jsx("br",{}),"Demonstration of Agentica with Shopping Backend API.",j.jsx("br",{}),j.jsx("br",{}),j.jsx(Yo,{href:"https://github.com/samchon/shopping-backend",target:"_blank",children:"https://github.com/samchon/shopping-backend"}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(Xn,{variant:"h6",children:" OpenAI Configuration "}),j.jsx(Yn,{onChange:D=>t(D.target.value),defaultValue:e,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:e.length===0}),j.jsx("br",{}),j.jsxs(Ho,{defaultValue:s,onChange:(D,S)=>a(S),style:{paddingLeft:15},children:[j.jsx(Ja,{control:j.jsx(Wa,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),j.jsx(Ja,{control:j.jsx(Wa,{}),label:"GPT-4o",value:"gpt-4o"})]}),j.jsx("br",{}),j.jsx(Xn,{variant:"h6",children:" Membership Information "}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>i(D.target.value),defaultValue:o,label:"Locale",variant:"outlined",error:o.length===0}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>A(D.target.value),defaultValue:p,label:"Name",variant:"outlined",error:p.length===0}),j.jsx("br",{}),j.jsx(Yn,{onChange:D=>h(D.target.value),defaultValue:f,label:"Mobile",variant:"outlined",error:f.length===0}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(Lo,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:y||e.length===0||o.length===0||p.length===0||f.length===0,onClick:()=>g(),children:y?"Starting...":"Start AI Chatbot"})]})})};$o(window.document.getElementById("root")).render(j.jsx(zp,{}));
|