@cinerino/sdk 16.4.0-alpha.14 → 16.4.0-alpha.16
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/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
package/lib/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ry=o(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0})});var ft=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var sw;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.ServiceUnavailable="ServiceUnavailable",t.RateLimitExceeded="RateLimitExceeded",t.Unauthorized="Unauthorized"})(sw=Tn.ErrorCode||(Tn.ErrorCode={}))});var Tt=o((xF,ny)=>{"use strict";ny.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?iw:ow);function iw(t,e){return t.__proto__=e,t}function ow(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(br=>{"use strict";var aw=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(br,"__esModule",{value:!0});var cw=(function(t){aw(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);br.WaiterError=cw});var sy=o(Ar=>{"use strict";var uw=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ar,"__esModule",{value:!0});var dw=Tt(),lw=ft(),fw=ht(),hw=(function(t){uw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Invalid or missing argument supplied: "+r),s=t.call(this,lw.ErrorCode.Argument,i)||this,s.argumentName=r,dw(s,e.prototype),s}return e})(fw.WaiterError);Ar.ArgumentError=hw});var iy=o(Pr=>{"use strict";var yw=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pr,"__esModule",{value:!0});var pw=Tt(),vw=ft(),Sw=ht(),mw=(function(t){yw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Missing argument: "+r),s=t.call(this,vw.ErrorCode.Argument,i)||this,s.argumentName=r,pw(s,e.prototype),s}return e})(Sw.WaiterError);Pr.ArgumentNullError=mw});var oy=o(wr=>{"use strict";var _w=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var Ow=Tt(),Tw=ft(),Ew=ht(),Cw=(function(t){_w(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,Tw.ErrorCode.Forbidden,s)||this,Ow(n,e.prototype),n}return e})(Ew.WaiterError);wr.ForbiddenError=Cw});var ay=o(Rr=>{"use strict";var gw=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var bw=Tt(),Aw=ft(),Pw=ht(),ww=(function(t){gw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,Aw.ErrorCode.NotFound,i)||this,s.entityName=r,bw(s,e.prototype),s}return e})(Pw.WaiterError);Rr.NotFoundError=ww});var cy=o(Mr=>{"use strict";var Rw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var Mw=Tt(),Iw=ft(),qw=ht(),Nw=(function(t){Rw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Rate limit exceeded."),n=t.call(this,Iw.ErrorCode.RateLimitExceeded,s)||this,Mw(n,e.prototype),n}return e})(qw.WaiterError);Mr.RateLimitExceededError=Nw});var uy=o(Ir=>{"use strict";var jw=Ir&&Ir.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ir,"__esModule",{value:!0});var xw=Tt(),Uw=ft(),Dw=ht(),Lw=(function(t){jw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,Uw.ErrorCode.ServiceUnavailable,s)||this,xw(n,e.prototype),n}return e})(Dw.WaiterError);Ir.ServiceUnavailableError=Lw});var dy=o(qr=>{"use strict";var Fw=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var kw=Tt(),Bw=ft(),Gw=ht(),$w=(function(t){Fw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Bw.ErrorCode.Unauthorized,s)||this,kw(n,e.prototype),n}return e})(Gw.WaiterError);qr.UnauthorizedError=$w});var ly=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Kw=sy();at.Argument=Kw.ArgumentError;var Hw=iy();at.ArgumentNull=Hw.ArgumentNullError;var Ww=oy();at.Forbidden=Ww.ForbiddenError;var Vw=ay();at.NotFound=Vw.NotFoundError;var zw=cy();at.RateLimitExceeded=zw.RateLimitExceededError;var Yw=uy();at.ServiceUnavailable=Yw.ServiceUnavailableError;var Qw=dy();at.Unauthorized=Qw.UnauthorizedError;var Zw=ht();at.Waiter=Zw.WaiterError});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var Sy=o(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0})});var _y=o(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0})});var Oy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Jw=ry();yt.client=Jw;var Xw=ft();yt.errorCode=Xw.ErrorCode;var e0=ly();yt.errors=e0;var t0=hy();yt.passport=t0;var r0=py();yt.project=r0;var n0=Sy();yt.rule=n0;var s0=_y();yt.ruleSet=s0});var Ey=o(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0})});var gy=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.FlgMember=void 0;var Cy;(function(t){t.NonMember="0",t.Member="1"})(Cy||(En.FlgMember=Cy={}))});var Ay=o(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0})});var wy=o(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0})});var My=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ObjectType=void 0;var Ry;(function(t){t.SeatReservation="SeatReservation"})(Ry||(Cn.ObjectType=Ry={}))});var Iy=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.ObjectType=void 0;var i0=My();Object.defineProperty(gn,"ObjectType",{enumerable:!0,get:function(){return i0.ObjectType}})});var jy=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var qy;(function(t){t.Payment="Payment"})(qy||(Vt.ResultType=qy={}));var Ny;(function(t){t.Chevre="Chevre"})(Ny||(Vt.ServiceIdentifier=Ny={}))});var Uy=o(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0})});var Ly=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Wy=o(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0})});var zy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=o(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Jy=o(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0})});var ep=o(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var rp=o(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0})});var sp=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var cp=o(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0})});var dp=o(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0})});var fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var yp=o(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0})});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var mp=o(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0})});var Op=o(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0})});var Tp=o(qt=>{"use strict";var o0=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),a0=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&o0(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});a0(Op(),qt)});var Cp=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ObjectAsTransactionSpecifyingMethod=void 0;var Ep;(function(t){t.Id="Id"})(Ep||(bn.ObjectAsTransactionSpecifyingMethod=Ep={}))});var bp=o(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var Rp=o(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0})});var Ip=o(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0})});var qp=o(pt=>{"use strict";var c0=pt&&pt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&c0(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});Rc(Pp(),pt);Rc(Rp(),pt);Rc(Ip(),pt)});var jp=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ActionStatusType=void 0;var Np;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Np||(An.ActionStatusType=Np={}))});var Up=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ActionType=void 0;var xp;(function(t){t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.AddAction="AddAction",t.DeleteAction="DeleteAction",t.ReplaceAction="ReplaceAction",t.UpdateAction="UpdateAction",t.InformAction="InformAction",t.UseAction="UseAction"})(xp||(Pn.ActionType=xp={}))});var Lp=o(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0})});var kp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var Gp=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.AggregationType=void 0;var Bp;(function(t){t.AggregateAuthorizeEventServiceOfferAction="AggregateAuthorizeEventServiceOfferAction",t.AggregateAuthorizeOrderAction="AggregateAuthorizeOrderAction",t.AggregateAuthorizePaymentAction="AggregateAuthorizePaymentAction",t.AggregateCancelReservationAction="AggregateCancelReservationAction",t.AggregateCheckMovieTicketAction="AggregateCheckMovieTicketAction",t.AggregateEvent="AggregateEvent",t.AggregateOrder="AggregateOrder",t.AggregateOrderAction="AggregateOrderAction",t.AggregatePay="AggregatePay",t.AggregatePayMovieTicketAction="AggregatePayMovieTicketAction",t.AggregatePlaceOrder="AggregatePlaceOrder",t.AggregateReserve="AggregateReserve",t.AggregateReserveAction="AggregateReserveAction",t.AggregateTask="AggregateTask",t.AggregateScheduledTask="AggregateScheduledTask",t.AggregateUseAction="AggregateUseAction"})(Bp||(wn.AggregationType=Bp={}))});var Kp=o($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0})});var Wp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.CategorySetIdentifier=void 0;var Hp;(function(t){t.ContentRatingType="ContentRatingType",t.CurrencyType="CurrencyType",t.CustomerType="CustomerType",t.DistributorType="DistributorType",t.MembershipType="MembershipType",t.OfferCategoryType="OfferCategoryType",t.PaymentMethodType="PaymentMethodType",t.SeatingType="SeatingType",t.ServiceType="ServiceType",t.SoundFormatType="SoundFormatType",t.VideoFormatType="VideoFormatType"})(Hp||(Rn.CategorySetIdentifier=Hp={}))});var Mc=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CertificationStatusEnumeration=void 0;var Vp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Vp||(Mn.CertificationStatusEnumeration=Vp={}))});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0})});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var nv=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.AboutIdentifier=void 0;var rv;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(rv||(In.AboutIdentifier=rv={}))});var iv=o(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var ov;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(ov||(zt.DigitalDocumentPermissionType=ov={}));var av;(function(t){t.Public="public"})(av||(zt.PermissionGranteeAudienceType=av={}))});var dv=o(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0})});var fv=o(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var Ic=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CreativeWorkType=void 0;var hv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(hv||(qn.CreativeWorkType=hv={}))});var pv=o(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0})});var Av=o(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.Video=ae.Text=ae.Multipart=ae.Model=ae.Message=ae.Image=ae.Example=ae.Font=ae.Audio=ae.Application=void 0;var vv;(function(t){t.pdf="application/pdf",t.json="application/json"})(vv||(ae.Application=vv={}));var Sv;Sv||(ae.Audio=Sv={});var mv;mv||(ae.Font=mv={});var _v;_v||(ae.Example=_v={});var Ov;Ov||(ae.Image=Ov={});var Tv;Tv||(ae.Message=Tv={});var Ev;Ev||(ae.Model=Ev={});var Cv;Cv||(ae.Multipart=Cv={});var gv;(function(t){t.csv="text/csv"})(gv||(ae.Text=gv={}));var bv;bv||(ae.Video=bv={})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Mv=o(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=o(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var qc=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.EventStatusType=void 0;var Nv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Nv||(Nn.EventStatusType=Nv={}))});var Nc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.EventType=void 0;var jv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(jv||(jn.EventType=jv={}))});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Lv=o(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var kv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Gv=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.ItemAvailability=void 0;var Bv;(function(t){t.Discontinued="Discontinued",t.InStock="InStock",t.InStoreOnly="InStoreOnly",t.LimitedAvailability="LimitedAvailability",t.OnlineOnly="OnlineOnly",t.OutOfStock="OutOfStock",t.PreOrder="PreOrder",t.PreSale="PreSale",t.SoldOut="SoldOut"})(Bv||(xn.ItemAvailability=Bv={}))});var Kv=o($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var jc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Hv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Hv||(Et.RefundTypeEnumeration=Hv={}));var Wv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Wv||(Et.ReturnFeesEnumeration=Wv={}));var Vv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Vv||(Et.MerchantReturnEnumeration=Vv={}))});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CategorySetIdentifier=void 0;var Qv;(function(t){t.MovieTicketType="MovieTicketType"})(Qv||(Un.CategorySetIdentifier=Qv={}))});var Xv=o(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var tS=o(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0})});var nS=o(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0})});var iS=o(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0})});var aS=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.OfferItemCondition=void 0;var oS;(function(t){t.NewCondition="NewCondition"})(oS||(Dn.OfferItemCondition=oS={}))});var xc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.OfferType=void 0;var cS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(cS||(Ln.OfferType=cS={}))});var dS=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OrderType=void 0;var uS;(function(t){t.Order="Order"})(uS||(Fn.OrderType=uS={}))});var Uc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OrderType=void 0;var u0=dS();Object.defineProperty(kn,"OrderType",{enumerable:!0,get:function(){return u0.OrderType}})});var Dc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OrderStatus=void 0;var lS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(lS||(Bn.OrderStatus=lS={}))});var hS=o(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0})});var Lc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrganizationType=void 0;var yS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(yS||(Gn.OrganizationType=yS={}))});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var mS=o(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0})});var OS=o(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0})});var Fc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.PaymentStatusType=void 0;var TS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(TS||($n.PaymentStatusType=TS={}))});var CS=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.PermitType=void 0;var ES;(function(t){t.Permit="Permit"})(ES||(Kn.PermitType=ES={}))});var bS=o(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0})});var kc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PersonType=void 0;var AS;(function(t){t.Person="Person"})(AS||(Hn.PersonType=AS={}))});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var MS=o(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0})});var qS=o(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0})});var jS=o(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0})});var US=o(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0})});var Bc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PlaceType=void 0;var DS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(DS||(Wn.PlaceType=DS={}))});var FS=o(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0})});var Gc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PriceCurrency=void 0;var kS;(function(t){t.JPY="JPY"})(kS||(Vn.PriceCurrency=kS={}))});var GS=o(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0})});var $c=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PriceSpecificationType=void 0;var $S;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})($S||(zn.PriceSpecificationType=$S={}))});var Kc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.ProductType=void 0;var KS;(function(t){t.EventService="EventService",t.Product="Product"})(KS||(Yn.ProductType=KS={}))});var WS=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ProgramMembershipType=void 0;var HS;(function(t){t.ProgramMembership="ProgramMembership"})(HS||(Qn.ProgramMembershipType=HS={}))});var zS=o(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var QS=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PropertyValueType=void 0;var YS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(YS||(Zn.PropertyValueType=YS={}))});var JS=o(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0})});var em=o(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0})});var rm=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.StringValue=void 0;var tm;(function(t){t.Infinity="Infinity"})(tm||(Jn.StringValue=tm={}))});var sm=o(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0})});var om=o(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0})});var Hc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ReservationStatusType=void 0;var am;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(am||(Xn.ReservationStatusType=am={}))});var Wc=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ReservationType=void 0;var cm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(cm||(es.ReservationType=cm={}))});var Vc=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.AssetTransactionType=void 0;var um;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(um||(ts.AssetTransactionType=um={}))});var zc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.SortType=void 0;var dm;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(dm||(rs.SortType=dm={}))});var Yc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.TaskStatus=void 0;var lm;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(lm||(ns.TaskStatus=lm={}))});var Qc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.TransactionStatusType=void 0;var fm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(fm||(ss.TransactionStatusType=fm={}))});var Zc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.TransactionType=void 0;var hm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(hm||(is.TransactionType=hm={}))});var Jc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.UnitCode=void 0;var ym;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(ym||(os.UnitCode=ym={}))});var Em=o(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.RESERVED_CODE_VALUES=void 0;var as=Vc(),pm=Mc(),Nt=Ic(),cs=qc(),vm=Nc(),ct=jc(),Sm=xc(),d0=Uc(),Yt=Dc(),Xc=Lc(),Nr=Fc(),l0=kc(),Qt=Bc(),f0=Gc(),jr=$c(),mm=Kc(),us=Hc(),_m=Wc(),Om=zc(),ds=Yc(),ls=Qc(),Tm=Zc(),fs=Jc();hs.RESERVED_CODE_VALUES=["AccountTitle",as.AssetTransactionType.CancelReservation,"MoneyTransfer",as.AssetTransactionType.Pay,as.AssetTransactionType.Refund,as.AssetTransactionType.Reserve,"Authorization",pm.CertificationStatusEnumeration.CertificationActive,pm.CertificationStatusEnumeration.CertificationInactive,Nt.CreativeWorkType.Certification,"Comment",Nt.CreativeWorkType.EmailMessage,Nt.CreativeWorkType.Movie,Nt.CreativeWorkType.NoteDigitalDocument,Nt.CreativeWorkType.SoftwareApplication,Nt.CreativeWorkType.WebApplication,Nt.CreativeWorkType.WebSite,"Event",cs.EventStatusType.EventCancelled,cs.EventStatusType.EventPostponed,cs.EventStatusType.EventRescheduled,cs.EventStatusType.EventScheduled,vm.EventType.ScreeningEvent,vm.EventType.ScreeningEventSeries,ct.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ct.MerchantReturnEnumeration.MerchantReturnNotPermitted,ct.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ct.MerchantReturnEnumeration.MerchantReturnUnspecified,ct.RefundTypeEnumeration.ExchangeRefund,ct.RefundTypeEnumeration.FullRefund,ct.RefundTypeEnumeration.StoreCreditRefund,ct.ReturnFeesEnumeration.FreeReturn,ct.ReturnFeesEnumeration.RestockingFees,ct.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",Sm.OfferType.AggregateOffer,Sm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",d0.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Xc.OrganizationType.Corporation,Xc.OrganizationType.Organization,Xc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,l0.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,f0.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,mm.ProductType.EventService,mm.ProductType.Product,us.ReservationStatusType.ReservationCancelled,us.ReservationStatusType.ReservationConfirmed,us.ReservationStatusType.ReservationPending,"ReservationHold",us.ReservationStatusType.ReservationPending,"BusReservation",_m.ReservationType.EventReservation,_m.ReservationType.ReservationPackage,Om.SortType.Ascending,Om.SortType.Descending,ds.TaskStatus.Aborted,ds.TaskStatus.Executed,ds.TaskStatus.Ready,ds.TaskStatus.Running,ls.TransactionStatusType.Canceled,ls.TransactionStatusType.Confirmed,ls.TransactionStatusType.Expired,ls.TransactionStatusType.InProgress,Tm.TransactionType.PlaceOrder,Tm.TransactionType.ReturnOrder,fs.UnitCode.Ann,fs.UnitCode.C62,fs.UnitCode.Day,fs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var gm=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.RoleType=void 0;var Cm;(function(t){t.OrganizationRole="OrganizationRole"})(Cm||(ys.RoleType=Cm={}))});var Am=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RoleName=void 0;var bm;(function(t){t.Customer="customer",t.POS="pos",t.EventsViewer="events.viewer",t.Owner="owner",t.User="user",t.SellerAdmin="sellerAdmin",t.TicketClerk="ticketClerk",t.InventoryManager="inventoryManager",t.Accountant="accountant",t.TicketCollector="ticketCollector",t.IAMRoleAdmin="iam.roleAdmin",t.PaymentServiceAdmin="paymentServiceAdmin",t.MemberAdmin="memberAdmin",t.SellersOwner="sellers.owner",t.SellersInventoryManager="sellers.inventoryManager",t.SellersIAMRoleAdmin="sellers.iam.roleAdmin",t.AdminInventoryManager="admin.inventoryManager"})(bm||(ps.RoleName=bm={}))});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0})});var qm=o(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0})});var jm=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.PaymentServiceType=void 0;var Nm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Nm||(vs.PaymentServiceType=Nm={}))});var Um=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.Identifier=void 0;var xm;(function(t){t.COA="COA",t.Chevre="Chevre"})(xm||(Ss.Identifier=xm={}))});var Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Wm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0})});var Qm=o(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0})});var Jm=o(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0})});var e_=o(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0})});var r_=o(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0})});var s_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var c_=o(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0})});var d_=o(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var f_=o(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0})});var y_=o(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0})});var v_=o(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0})});var m_=o(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0})});var O_=o(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0})});var E_=o(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0})});var g_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0})});var M_=o(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var q_=o(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0})});var j_=o(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0})});var U_=o(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0})});var L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var W_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0})});var Q_=o(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var J_=o(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0})});var eO=o(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0})});var rO=o(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var sO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var cO=o(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var dO=o(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0})});var fO=o(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var yO=o(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=o(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var mO=o(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0})});var OO=o(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0})});var EO=o(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var gO=o(CO=>{"use strict";Object.defineProperty(CO,"__esModule",{value:!0})});var AO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var MO=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.TaskName=void 0;var RO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(RO||(ms.TaskName=RO={}))});var qO=o(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var jO=o(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var UO=o(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0})});var LO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(FO=>{"use strict";Object.defineProperty(FO,"__esModule",{value:!0})});var GO=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.Reason=void 0;var BO;(function(t){t.Customer="Customer",t.Seller="Seller"})(BO||(_s.Reason=BO={}))});var we=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.ErrorCode=void 0;var $O;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.GatewayTimeout="GatewayTimeout",t.Internal="Internal",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.RateLimitExceeded="RateLimitExceeded",t.ServiceUnavailable="ServiceUnavailable",t.Unauthorized="Unauthorized",t.Unknown="Unknown"})($O||(Os.ErrorCode=$O={}))});var Re=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ChevreError=void 0;var eu=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Ts.ChevreError=eu});var KO=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.AlreadyInUseError=void 0;var h0=we(),y0=Re(),tu=class extends y0.ChevreError{entityName;fieldNames;constructor(e,r,n){let s=n;(n===void 0||n.length===0)&&(s=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(h0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Es.AlreadyInUseError=tu});var HO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ArgumentError=void 0;var p0=we(),v0=Re(),ru=class extends v0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(p0.ErrorCode.Argument,n),this.argumentName=e}};Cs.ArgumentError=ru});var WO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ArgumentNullError=void 0;var S0=we(),m0=Re(),nu=class extends m0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(S0.ErrorCode.ArgumentNull,n),this.argumentName=e}};gs.ArgumentNullError=nu});var VO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ForbiddenError=void 0;var _0=we(),O0=Re(),su=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(_0.ErrorCode.Forbidden,r)}};bs.ForbiddenError=su});var zO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GatewayTimeoutError=void 0;var T0=we(),E0=Re(),iu=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(T0.ErrorCode.GatewayTimeout,r)}};As.GatewayTimeoutError=iu});var YO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.InternalError=void 0;var C0=we(),g0=Re(),ou=class extends g0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(C0.ErrorCode.Internal,r)}};Ps.InternalError=ou});var QO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.NotFoundError=void 0;var b0=we(),A0=Re(),au=class extends A0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(b0.ErrorCode.NotFound,n),this.entityName=e}};ws.NotFoundError=au});var ZO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.NotImplementedError=void 0;var P0=we(),w0=Re(),cu=class extends w0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(P0.ErrorCode.NotImplemented,r)}};Rs.NotImplementedError=cu});var JO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.RateLimitExceededError=void 0;var R0=we(),M0=Re(),uu=class extends M0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(R0.ErrorCode.RateLimitExceeded,r)}};Ms.RateLimitExceededError=uu});var XO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.ServiceUnavailableError=void 0;var I0=we(),q0=Re(),du=class extends q0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(I0.ErrorCode.ServiceUnavailable,r)}};Is.ServiceUnavailableError=du});var eT=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.UnauthorizedError=void 0;var N0=we(),j0=Re(),lu=class extends j0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(N0.ErrorCode.Unauthorized,r)}};qs.UnauthorizedError=lu});var tT=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.UnknownError=void 0;var x0=we(),U0=Re(),fu=class extends U0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(x0.ErrorCode.Unknown,r)}};Ns.UnknownError=fu});var rT=o(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.Unknown=J.Unauthorized=J.ServiceUnavailable=J.RateLimitExceeded=J.NotImplemented=J.NotFound=J.Internal=J.GatewayTimeout=J.Forbidden=J.Chevre=J.ArgumentNull=J.Argument=J.AlreadyInUse=void 0;var D0=KO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return D0.AlreadyInUseError}});var L0=HO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return L0.ArgumentError}});var F0=WO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return F0.ArgumentNullError}});var k0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return k0.ChevreError}});var B0=VO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return B0.ForbiddenError}});var G0=zO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return G0.GatewayTimeoutError}});var $0=YO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return $0.InternalError}});var K0=QO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return K0.NotFoundError}});var H0=ZO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return H0.NotImplementedError}});var W0=JO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return W0.RateLimitExceededError}});var V0=XO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return V0.ServiceUnavailableError}});var z0=eT();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return z0.UnauthorizedError}});var Y0=tT();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return Y0.UnknownError}})});var iT=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.RecipeCategory=void 0;var nT;(function(t){t.payCreditCard="payCreditCard",t.payMovieTicket="payMovieTicket",t.publishPaymentUrl="publishPaymentUrl",t.checkMovieTicket="checkMovieTicket",t.refundCreditCard="refundCreditCard",t.refundMovieTicket="refundMovieTicket",t.acceptCOAOffer="acceptCOAOffer",t.cancelPendingCOAReserve="cancelPendingCOAReserve",t.confirmCOAReserve="confirmCOAReserve",t.returnCOAReserve="returnCOAReserve",t.authorizeInvoice="authorizeInvoice",t.authorizeInvoice3ds="authorizeInvoice3ds",t.sendEmailMessage="sendEmailMessage"})(nT||(Zt.RecipeCategory=nT={}));var sT;(function(t){t.entryTran="entryTran",t.execTran="execTran",t.searchTrade="searchTrade",t.alterTran="alterTran",t.secureTran2="secureTran2",t.seatInfoSync="seatInfoSync",t.seatInfoSyncCancel="seatInfoSyncCancel",t.purchaseNumberAuth="purchaseNumberAuth",t.updTmpReserveSeat="updTmpReserveSeat",t.updReserve="updReserve",t.stateReserve="stateReserve",t.delReserve="delReserve",t.delTmpReserve="delTmpReserve",t.sendMultiple="sendMultiple"})(sT||(Zt.StepIdentifier=sT={}))});var TT=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.person=O.permit=O.paymentStatusType=O.paymentMethod=O.ownershipInfo=O.organizationType=O.organization=O.orderStatus=O.offerType=O.offerItemCondition=O.offerCatalog=O.notification=O.movieTicketType=O.monetaryAmount=O.merchantReturnPolicy=O.language=O.itemAvailability=O.invoice=O.identityProvider=O.iam=O.eventType=O.eventStatusType=O.entryPoint=O.encodingFormat=O.event=O.customer=O.creativeWorkType=O.creativeWork=O.clientUser=O.CertificationStatusEnumeration=O.categoryCode=O.authorization=O.aggregation=O.additionalProperty=O.accountTitle=O.action=O.actionType=O.actionStatusType=O.errorCode=O.recipe=O.errors=O.unitPriceOffer=O.project=O.order=O.eventOffer=O.aggregateOffer=O.offer=O.eventSeries=O.cognito=O.waiter=void 0;O.unitCode=O.assetTransactionType=O.transactionStatusType=O.transactionType=O.transaction=O.assetTransaction=O.thing=O.taskStatus=O.taskName=O.sortType=O.serviceChannel=O.service=O.task=O.sellerReturnPolicy=O.seller=O.schedule=O.role=O.RESERVED_CODE_VALUES=O.reservationType=O.reservationStatusType=O.reservation=O.report=O.quantitativeValue=O.qualitativeValue=O.propertyValue=O.product=O.programMembership=O.priceSpecificationType=O.priceSpecification=O.potentialAction=O.placeType=O.place=O.priceCurrency=O.personType=void 0;O.waiter=Oy();O.cognito=Ey();var Q0=gy(),Z0=Ay(),J0=wy(),X0=Iy(),eR=jy(),tR=Uy(),rR=Ly(),nR=ky(),sR=Gy(),iR=Ky(),oR=Wy(),aR=zy(),cR=Qy(),uR=Jy(),dR=ep(),lR=rp(),fR=sp(),hR=op(),yR=cp(),pR=dp(),vR=fp(),SR=yp(),mR=vp(),_R=mp(),OR=Tp(),TR=Cp(),ER=bp(),CR=qp(),gR=jp(),bR=Up(),AR=Lp(),PR=kp(),wR=Gp(),RR=Kp(),MR=Wp(),IR=Mc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return IR.CertificationStatusEnumeration}});var qR=Yp(),NR=Zp(),jR=Xp(),xR=tv(),UR=nv(),DR=iv(),LR=cv(),FR=dv(),kR=fv(),BR=Ic(),GR=pv(),$R=Av(),KR=wv();O.entryPoint=KR;var HR=Mv();O.eventSeries=qv();var WR=qc(),VR=Nc(),zR=Uv(),YR=Lv(),QR=kv(),ZR=Gv(),JR=Kv(),XR=jc(),eM=Yv(),tM=Zv();O.offer=Xv();O.aggregateOffer=tS();O.eventOffer=nS();var rM=iS(),nM=aS(),sM=xc();O.order=Uc();var iM=Dc(),oM=hS(),aM=Lc(),cM=vS(),uM=mS(),dM=OS(),lM=Fc(),fM=CS(),hM=bS(),yM=kc(),pM=wS(),vM=MS(),SM=qS(),mM=jS(),_M=US(),OM=Bc(),TM=FS();O.potentialAction=TM;var EM=Gc(),CM=GS(),gM=$c(),bM=Kc(),AM=WS();O.project=zS();var PM=QS(),wM=JS(),RM=em(),MM=rm(),IM=sm(),qM=om(),NM=Hc(),jM=Wc(),xM=Em();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return xM.RESERVED_CODE_VALUES}});var UM=gm(),DM=Am(),LM=wm(),FM=Mm(),kM=qm(),BM=jm(),GM=Um(),$M=Lm(),KM=zc(),HM=km(),WM=Jc();O.unitPriceOffer=Gm();var VM=Km(),zM=Wm(),YM=zm(),QM=Qm(),ZM=Jm(),JM=e_(),XM=r_(),eI=s_(),tI=o_(),rI=c_(),nI=d_(),sI=f_(),iI=y_(),oI=v_(),aI=m_(),cI=O_(),uI=E_(),dI=g_(),lI=A_(),fI=w_(),hI=M_(),yI=q_(),pI=j_(),vI=U_(),SI=L_(),mI=k_(),_I=G_(),OI=K_(),TI=W_(),EI=z_(),CI=Q_(),gI=J_(),bI=eO(),AI=rO(),PI=sO(),wI=oO(),RI=cO(),MI=dO(),II=fO(),qI=yO(),NI=vO(),jI=mO(),xI=OO(),UI=EO(),DI=gO(),LI=AO(),FI=wO(),kI=MO(),BI=Yc(),GI=qO(),$I=jO(),KI=UO(),HI=LO(),WI=Vc(),VI=Qc(),zI=kO(),YI=GO(),QI=Zc(),ZI=we();O.errors=rT();O.recipe=iT();O.errorCode=ZI.ErrorCode;O.actionStatusType=gR.ActionStatusType;O.actionType=bR.ActionType;var oT;(function(t){let e;(function(y){y.coaOffer=Q0,y.pay=Z0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(b){b.any=eR})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(b){b.eventService=X0})(_=y.offer||(y.offer={})),y.invoice=J0,y.ticketedObject=tR})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=rR,y.reservation=nR})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(_){_.movieTicket=sR})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=iR})(s=t.check||(t.check={})),t.create=aR;let i;(function(y){let S;(function(_){_.pay=cR,_.reservation=uR})(S=y.confirm||(y.confirm={})),y.inform=dR})(i=t.interact||(t.interact={}));let u;(function(y){y.order=fR,y.pay=hR,y.refund=yR})(u=t.trade||(t.trade={}));let d;(function(y){let S;(function(b){b.invoice=pR,b.order=vR,b.reserveTransaction=SR})(S=y.returnAction||(y.returnAction={}));let _;(function(b){let w;(function(R){R.email=mR})(w=b.message||(b.message={})),b.order=_R})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=OR,y.deleteAction=TR,y.replace=ER,y.update=CR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=oR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=lR})(oT||(O.action=oT={}));O.accountTitle=AR;O.additionalProperty=PR;O.aggregation=wR;O.authorization=RR;O.categoryCode=MR;O.clientUser=qR;var aT;(function(t){let e;(function(s){s.softwareApplication=NR,s.webApplication=jR,s.webSite=xR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=UR})(r=t.message||(t.message={})),t.movie=DR,t.noteDigitalDocument=LR;let n;(function(s){s.softwareApplication=FR,s.webApplication=kR})(n=t.softwareApplication||(t.softwareApplication={}))})(aT||(O.creativeWork=aT={}));O.creativeWorkType=BR.CreativeWorkType;O.customer=GR;var cT;(function(t){t.screeningEvent=HR})(cT||(O.event=cT={}));O.encodingFormat=$R;O.eventStatusType=WR.EventStatusType;O.eventType=VR.EventType;O.iam=zR;O.identityProvider=YR;O.invoice=QR;O.itemAvailability=ZR.ItemAvailability;O.language=JR;O.merchantReturnPolicy=XR;O.monetaryAmount=eM;O.movieTicketType=tM;var uT;(function(t){t.event=QM,t.eventSeries=ZM,t.order=eI,t.reservation=oI,t.payAction=tI,t.refundAction=iI,t.accountTitle=VM,t.categoryCode=zM,t.creativeWork=YM,t.offer=JM,t.offerCatalog=XM,t.person=rI,t.place=nI,t.product=sI,t.task=aI})(uT||(O.notification=uT={}));O.offerCatalog=rM;O.offerItemCondition=nM;O.offerType=sM.OfferType;O.orderStatus=iM.OrderStatus;O.organization=oM;O.organizationType=aM.OrganizationType;O.ownershipInfo=cM;var dT;(function(t){let e;(function(r){r.creditCard=uM,r.movieTicket=dM})(e=t.paymentCard||(t.paymentCard={}))})(dT||(O.paymentMethod=dT={}));O.paymentStatusType=lM.PaymentStatusType;O.permit=fM;O.person=hM;O.personType=yM.PersonType;O.priceCurrency=EM.PriceCurrency;var lT;(function(t){t.entranceGate=pM,t.movieTheater=vM,t.screeningRoom=SM,t.screeningRoomSection=mM,t.seat=_M})(lT||(O.place=lT={}));O.placeType=OM.PlaceType;var fT;(function(t){t.unitPrice=CM})(fT||(O.priceSpecification=fT={}));O.priceSpecificationType=gM.PriceSpecificationType;O.programMembership=AM;O.product=bM;var hT;(function(t){t.PropertyValueType=PM.PropertyValueType,t.locationFeatureSpecification=wM})(hT||(O.propertyValue=hT={}));O.qualitativeValue=RM;O.quantitativeValue=MM;var yT;(function(t){t.accountingReport=IM})(yT||(O.report=yT={}));var pT;(function(t){t.eventReservation=qM})(pT||(O.reservation=pT={}));O.reservationStatusType=NM.ReservationStatusType;O.reservationType=jM.ReservationType;var vT;(function(t){t.RoleType=UM.RoleType,t.organizationRole=DM})(vT||(O.role=vT={}));O.schedule=LM;O.seller=FM;O.sellerReturnPolicy=kM;var ST;(function(t){t.acceptCOAOffer=cI,t.aggregateOffers=uI,t.aggregateOnSystem=dI,t.aggregateScreeningEvent=lI,t.authorizePayment=fI,t.cancelPendingReservation=hI,t.cancelReservation=yI,t.checkMovieTicket=pI,t.checkResource=vI,t.createAccountingReport=mI,t.confirmReserveTransaction=SI,t.deleteTransaction=_I,t.handleNotification=OI,t.importEventCapacitiesFromCOA=TI,t.importEventsFromCOA=EI,t.importOffersFromCOA=CI,t.invalidatePaymentUrl=gI,t.onAssetTransactionStatusChanged=bI,t.pay=MI,t.publishPaymentUrl=II,t.refund=qI,t.reserve=NI,t.sendEmailMessage=jI,t.syncResourcesFromCOA=xI,t.triggerWebhook=UI,t.useReservation=DI,t.voidPayment=LI,t.onAuthorizationCreated=AI,t.onEventChanged=PI,t.onResourceDeleted=wI,t.onResourceUpdated=RI,t.voidReserveTransaction=FI})(ST||(O.task=ST={}));var mT;(function(t){t.paymentService=BM,t.webAPI=GM})(mT||(O.service=mT={}));O.serviceChannel=$M;O.sortType=KM.SortType;O.taskName=kI.TaskName;O.taskStatus=BI.TaskStatus;O.thing=HM;var _T;(function(t){t.cancelReservation=GI,t.pay=$I,t.refund=KI,t.reserve=HI})(_T||(O.assetTransaction=_T={}));var OT;(function(t){t.placeOrder=zI,t.returnOrder=YI})(OT||(O.transaction=OT={}));O.transactionType=QI.TransactionType;O.transactionStatusType=VI.TransactionStatusType;O.assetTransactionType=WI.AssetTransactionType;O.unitCode=WM.UnitCode});var ET=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ChevreFactory=void 0;js.ChevreFactory=TT()});var Y=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.factory=void 0;var JI=ET();Object.defineProperty(xs,"factory",{enumerable:!0,get:function(){return JI.ChevreFactory}})});var gT=o((M2,CT)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,XI=jt*7,eq=jt*365.25;CT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return tq(t);if(r==="number"&&isFinite(t))return e.long?nq(t):rq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function tq(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*eq;case"weeks":case"week":case"w":return r*XI;case"days":case"day":case"d":return r*jt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function rq(t){var e=Math.abs(t);return e>=jt?Math.round(t/jt)+"d":e>=er?Math.round(t/er)+"h":e>=Xt?Math.round(t/Xt)+"m":e>=Jt?Math.round(t/Jt)+"s":t+"ms"}function nq(t){var e=Math.abs(t);return e>=jt?Us(t,e,jt,"day"):e>=er?Us(t,e,er,"hour"):e>=Xt?Us(t,e,Xt,"minute"):e>=Jt?Us(t,e,Jt,"second"):t+" ms"}function Us(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var AT=o((I2,bT)=>{function sq(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=gT(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let _=0;_<y.length;_++)S=(S<<5)-S+y.charCodeAt(_),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,_=null,b,w;function R(...q){if(!R.enabled)return;let N=R,C=Number(new Date),M=C-(S||C);N.diff=M,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,x)=>{if(K==="%%")return"%";D++;let G=r.formatters[x];if(typeof G=="function"){let H=q[D];K=G.call(N,H),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(b!==r.namespaces&&(b=r.namespaces,w=r.enabled(y)),w),set:q=>{_=q}}),typeof r.init=="function"&&r.init(R),R}function n(y,S){let _=r(this.namespace+(typeof S>"u"?":":S)+y);return _.log=this.log,_}function s(y){r.save(y),r.namespaces=y,r.names=[],r.skips=[];let S=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let _ of S)_[0]==="-"?r.skips.push(_.slice(1)):r.names.push(_)}function i(y,S){let _=0,b=0,w=-1,R=0;for(;_<y.length;)if(b<S.length&&(S[b]===y[_]||S[b]==="*"))S[b]==="*"?(w=b,R=_,b++):(_++,b++);else if(w!==-1)b=w+1,R++,_=R;else return!1;for(;b<S.length&&S[b]==="*";)b++;return b===S.length}function u(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}bT.exports=sq});var tr=o((Me,Ds)=>{Me.formatArgs=oq;Me.save=aq;Me.load=cq;Me.useColors=iq;Me.storage=uq();Me.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Me.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function iq(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function oq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ds.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}Me.log=console.debug||console.log||(()=>{});function aq(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function cq(){let t;try{t=Me.storage.getItem("debug")||Me.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function uq(){try{return localStorage}catch{}}Ds.exports=AT()(Me);var{formatters:dq}=Ds.exports;dq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ls=o(De=>{"use strict";var lq=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.StubTransporter=De.DefaultTransporter=De.RequestError=De.Transporter=void 0;var fq=lq(tr()),PT=(0,fq.default)("cinerino-sdk:transporters"),hu=class{};De.Transporter=hu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var yu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return PT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(PT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new rr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new rr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=yu;var pu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=pu});var RT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var I={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},wT=nr.a={classes:I,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":I.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":I.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":I.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":I.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":I.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":I.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":I.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":I.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":I.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":I.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":I.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":I.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":I.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":I.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":I.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":I.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":I.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":I.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":I.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":I.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":I.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":I.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":I.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":I.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":I.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":I.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":I.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":I.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":I.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":I.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":I.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":I.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":I.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":I.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":I.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":I.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":I.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":I.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":I.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":I.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":I.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":I.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":I.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":I.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":I.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":I.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":I.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":I.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":I.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":I.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":I.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":I.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":I.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":I.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":I.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":I.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":I.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":I.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":I.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":I.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":I.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":I.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":I.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":I.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":I.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":I.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":I.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":I.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":I.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":I.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":I.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":I.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":I.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":I.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":I.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":I.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":I.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":I.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":I.SERVER_ERROR,RAILGUN_ERROR:527}}},hq=nr.b=wT;nr.a=wT;nr.b=hq});var g=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var MT=RT();Fs.default=MT.b;Fs.status=MT.a});var xt=o((x2,IT)=>{"use strict";IT.exports=TypeError});var qT=o(()=>{});var Fr=o((L2,JT)=>{var bu=typeof Map=="function"&&Map.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bs=bu&&vu&&typeof vu.get=="function"?vu.get:null,NT=bu&&Map.prototype.forEach,Au=typeof Set=="function"&&Set.prototype,Su=Object.getOwnPropertyDescriptor&&Au?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Gs=Au&&Su&&typeof Su.get=="function"?Su.get:null,jT=Au&&Set.prototype.forEach,yq=typeof WeakMap=="function"&&WeakMap.prototype,Ur=yq?WeakMap.prototype.has:null,pq=typeof WeakSet=="function"&&WeakSet.prototype,Dr=pq?WeakSet.prototype.has:null,vq=typeof WeakRef=="function"&&WeakRef.prototype,xT=vq?WeakRef.prototype.deref:null,Sq=Boolean.prototype.valueOf,mq=Object.prototype.toString,_q=Function.prototype.toString,Oq=String.prototype.match,Pu=String.prototype.slice,Ct=String.prototype.replace,Tq=String.prototype.toUpperCase,UT=String.prototype.toLowerCase,HT=RegExp.prototype.test,DT=Array.prototype.concat,ut=Array.prototype.join,Eq=Array.prototype.slice,LT=Math.floor,Ou=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mu=Object.getOwnPropertySymbols,Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Lr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,WT=Object.prototype.propertyIsEnumerable,FT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function kT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||HT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-LT(-t):LT(t);if(n!==t){var s=String(n),i=Pu.call(e,s.length+1);return Ct.call(s,r,"$&_")+"."+Ct.call(Ct.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ct.call(e,r,"$&_")}var Eu=qT(),BT=Eu.custom,GT=YT(BT)?BT:null,VT={__proto__:null,double:'"',single:"'"},Cq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};JT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(VT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=vt(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ZT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?kT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?kT(e,p):p}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Cu(e)?"[Array]":"[Object]";var S=Bq(i,n);if(typeof s>"u")s=[];else if(QT(s,e)>=0)return"[Circular]";function _(oe,se,ie){if(se&&(s=Eq.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!$T(e)){var b=qq(e),w=ks(e,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(YT(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tu.call(e);return typeof e=="object"&&!sr?xr(R):R}if(Lq(e)){for(var q="<"+UT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+zT(gq(N[C].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+UT.call(String(e.nodeName))+">",q}if(Cu(e)){if(e.length===0)return"[]";var M=ks(e,_);return S&&!kq(M)?"["+gu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(Aq(e)){var D=ks(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!WT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(DT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(D,", ")+" }"}if(typeof e=="object"&&u){if(GT&&typeof e[GT]=="function"&&Eu)return Eu(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Nq(e)){var k=[];return NT&&NT.call(e,function(oe,se){k.push(_(se,e,!0)+" => "+_(oe,e))}),KT("Map",Bs.call(e),k,S)}if(Uq(e)){var K=[];return jT&&jT.call(e,function(oe){K.push(_(oe,e))}),KT("Set",Gs.call(e),K,S)}if(jq(e))return _u("WeakMap");if(Dq(e))return _u("WeakSet");if(xq(e))return _u("WeakRef");if(wq(e))return xr(_(Number(e)));if(Mq(e))return xr(_(Ou.call(e)));if(Rq(e))return xr(Sq.call(e));if(Pq(e))return xr(_(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!bq(e)&&!$T(e)){var x=ks(e,_),G=FT?FT(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",$=!G&&Lr&&Object(e)===e&&Lr in e?Pu.call(gt(e),8,-1):H?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Q+($||H?"["+ut.call(DT.call([],$||[],H||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+gu(x,S)+"}":Te+"{ "+ut.call(x,", ")+" }"}return String(e)};function zT(t,e,r){var n=r.quoteStyle||e,s=VT[n];return s+t+s}function gq(t){return Ct.call(String(t),/"/g,""")}function Ut(t){return!Lr||!(typeof t=="object"&&(Lr in t||typeof t[Lr]<"u"))}function Cu(t){return gt(t)==="[object Array]"&&Ut(t)}function bq(t){return gt(t)==="[object Date]"&&Ut(t)}function $T(t){return gt(t)==="[object RegExp]"&&Ut(t)}function Aq(t){return gt(t)==="[object Error]"&&Ut(t)}function Pq(t){return gt(t)==="[object String]"&&Ut(t)}function wq(t){return gt(t)==="[object Number]"&&Ut(t)}function Rq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function YT(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Tu)return!1;try{return Tu.call(t),!0}catch{}return!1}function Mq(t){if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}var Iq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return Iq.call(t,e)}function gt(t){return mq.call(t)}function qq(t){if(t.name)return t.name;var e=Oq.call(_q.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function QT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Nq(t){if(!Bs||!t||typeof t!="object")return!1;try{Bs.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function jq(t){if(!Ur||!t||typeof t!="object")return!1;try{Ur.call(t,Ur);try{Dr.call(t,Dr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function xq(t){if(!xT||!t||typeof t!="object")return!1;try{return xT.call(t),!0}catch{}return!1}function Uq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{Bs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Dq(t){if(!Dr||!t||typeof t!="object")return!1;try{Dr.call(t,Dr);try{Ur.call(t,Ur)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Lq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ZT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ZT(Pu.call(t,0,e.maxStringLength),e)+n}var s=Cq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Fq);return zT(i,"single",e)}function Fq(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Tq.call(e.toString(16))}function xr(t){return"Object("+t+")"}function _u(t){return t+" { ? }"}function KT(t,e,r,n){var s=n?gu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function kq(t){for(var e=0;e<t.length;e++)if(QT(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ry=o(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0})});var ft=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var rw;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.ServiceUnavailable="ServiceUnavailable",t.RateLimitExceeded="RateLimitExceeded",t.Unauthorized="Unauthorized"})(rw=Tn.ErrorCode||(Tn.ErrorCode={}))});var Tt=o((qF,ny)=>{"use strict";ny.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?nw:sw);function nw(t,e){return t.__proto__=e,t}function sw(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(br=>{"use strict";var iw=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(br,"__esModule",{value:!0});var ow=(function(t){iw(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);br.WaiterError=ow});var sy=o(Ar=>{"use strict";var aw=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ar,"__esModule",{value:!0});var cw=Tt(),uw=ft(),dw=ht(),lw=(function(t){aw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Invalid or missing argument supplied: "+r),s=t.call(this,uw.ErrorCode.Argument,i)||this,s.argumentName=r,cw(s,e.prototype),s}return e})(dw.WaiterError);Ar.ArgumentError=lw});var iy=o(Pr=>{"use strict";var fw=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pr,"__esModule",{value:!0});var hw=Tt(),yw=ft(),pw=ht(),vw=(function(t){fw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Missing argument: "+r),s=t.call(this,yw.ErrorCode.Argument,i)||this,s.argumentName=r,hw(s,e.prototype),s}return e})(pw.WaiterError);Pr.ArgumentNullError=vw});var oy=o(wr=>{"use strict";var Sw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var mw=Tt(),_w=ft(),Ow=ht(),Tw=(function(t){Sw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,_w.ErrorCode.Forbidden,s)||this,mw(n,e.prototype),n}return e})(Ow.WaiterError);wr.ForbiddenError=Tw});var ay=o(Rr=>{"use strict";var Ew=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var Cw=Tt(),gw=ft(),bw=ht(),Aw=(function(t){Ew(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,gw.ErrorCode.NotFound,i)||this,s.entityName=r,Cw(s,e.prototype),s}return e})(bw.WaiterError);Rr.NotFoundError=Aw});var cy=o(Mr=>{"use strict";var Pw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var ww=Tt(),Rw=ft(),Mw=ht(),Iw=(function(t){Pw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Rate limit exceeded."),n=t.call(this,Rw.ErrorCode.RateLimitExceeded,s)||this,ww(n,e.prototype),n}return e})(Mw.WaiterError);Mr.RateLimitExceededError=Iw});var uy=o(Ir=>{"use strict";var qw=Ir&&Ir.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ir,"__esModule",{value:!0});var Nw=Tt(),jw=ft(),xw=ht(),Uw=(function(t){qw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,jw.ErrorCode.ServiceUnavailable,s)||this,Nw(n,e.prototype),n}return e})(xw.WaiterError);Ir.ServiceUnavailableError=Uw});var dy=o(qr=>{"use strict";var Dw=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var Lw=Tt(),Fw=ft(),kw=ht(),Bw=(function(t){Dw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Fw.ErrorCode.Unauthorized,s)||this,Lw(n,e.prototype),n}return e})(kw.WaiterError);qr.UnauthorizedError=Bw});var ly=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Gw=sy();at.Argument=Gw.ArgumentError;var $w=iy();at.ArgumentNull=$w.ArgumentNullError;var Kw=oy();at.Forbidden=Kw.ForbiddenError;var Hw=ay();at.NotFound=Hw.NotFoundError;var Ww=cy();at.RateLimitExceeded=Ww.RateLimitExceededError;var Vw=uy();at.ServiceUnavailable=Vw.ServiceUnavailableError;var zw=dy();at.Unauthorized=zw.UnauthorizedError;var Yw=ht();at.Waiter=Yw.WaiterError});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var Sy=o(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0})});var _y=o(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0})});var Oy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Qw=ry();yt.client=Qw;var Zw=ft();yt.errorCode=Zw.ErrorCode;var Jw=ly();yt.errors=Jw;var Xw=hy();yt.passport=Xw;var e0=py();yt.project=e0;var t0=Sy();yt.rule=t0;var r0=_y();yt.ruleSet=r0});var Ey=o(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0})});var gy=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.FlgMember=void 0;var Cy;(function(t){t.NonMember="0",t.Member="1"})(Cy||(En.FlgMember=Cy={}))});var Ay=o(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0})});var wy=o(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0})});var My=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ObjectType=void 0;var Ry;(function(t){t.SeatReservation="SeatReservation"})(Ry||(Cn.ObjectType=Ry={}))});var Iy=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.ObjectType=void 0;var n0=My();Object.defineProperty(gn,"ObjectType",{enumerable:!0,get:function(){return n0.ObjectType}})});var jy=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var qy;(function(t){t.Payment="Payment"})(qy||(Vt.ResultType=qy={}));var Ny;(function(t){t.Chevre="Chevre"})(Ny||(Vt.ServiceIdentifier=Ny={}))});var Uy=o(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0})});var Ly=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Wy=o(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0})});var zy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=o(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Jy=o(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0})});var ep=o(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var rp=o(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0})});var sp=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var cp=o(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0})});var dp=o(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0})});var fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var yp=o(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0})});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var mp=o(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0})});var _p=o(qt=>{"use strict";var s0=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),i0=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&s0(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});i0(mp(),qt)});var Tp=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ObjectAsTransactionSpecifyingMethod=void 0;var Op;(function(t){t.Id="Id"})(Op||(bn.ObjectAsTransactionSpecifyingMethod=Op={}))});var Cp=o(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0})});var bp=o(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var Rp=o(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0})});var Mp=o(pt=>{"use strict";var o0=pt&&pt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&o0(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});Rc(bp(),pt);Rc(Pp(),pt);Rc(Rp(),pt)});var qp=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ActionStatusType=void 0;var Ip;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Ip||(An.ActionStatusType=Ip={}))});var jp=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ActionType=void 0;var Np;(function(t){t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.AddAction="AddAction",t.DeleteAction="DeleteAction",t.ReplaceAction="ReplaceAction",t.UpdateAction="UpdateAction",t.InformAction="InformAction",t.UseAction="UseAction"})(Np||(Pn.ActionType=Np={}))});var Up=o(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0})});var Lp=o(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0})});var kp=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.AggregationType=void 0;var Fp;(function(t){t.AggregateAuthorizeEventServiceOfferAction="AggregateAuthorizeEventServiceOfferAction",t.AggregateAuthorizeOrderAction="AggregateAuthorizeOrderAction",t.AggregateAuthorizePaymentAction="AggregateAuthorizePaymentAction",t.AggregateCancelReservationAction="AggregateCancelReservationAction",t.AggregateCheckMovieTicketAction="AggregateCheckMovieTicketAction",t.AggregateEvent="AggregateEvent",t.AggregateOrder="AggregateOrder",t.AggregateOrderAction="AggregateOrderAction",t.AggregatePay="AggregatePay",t.AggregatePayMovieTicketAction="AggregatePayMovieTicketAction",t.AggregatePlaceOrder="AggregatePlaceOrder",t.AggregateReserve="AggregateReserve",t.AggregateReserveAction="AggregateReserveAction",t.AggregateTask="AggregateTask",t.AggregateScheduledTask="AggregateScheduledTask",t.AggregateUseAction="AggregateUseAction"})(Fp||(wn.AggregationType=Fp={}))});var Gp=o(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0})});var Kp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.CategorySetIdentifier=void 0;var $p;(function(t){t.ContentRatingType="ContentRatingType",t.CurrencyType="CurrencyType",t.CustomerType="CustomerType",t.DistributorType="DistributorType",t.MembershipType="MembershipType",t.OfferCategoryType="OfferCategoryType",t.PaymentMethodType="PaymentMethodType",t.SeatingType="SeatingType",t.ServiceType="ServiceType",t.SoundFormatType="SoundFormatType",t.VideoFormatType="VideoFormatType"})($p||(Rn.CategorySetIdentifier=$p={}))});var Mc=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CertificationStatusEnumeration=void 0;var Hp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Hp||(Mn.CertificationStatusEnumeration=Hp={}))});var Vp=o(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0})});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0})});var tv=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.AboutIdentifier=void 0;var ev;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(ev||(In.AboutIdentifier=ev={}))});var nv=o(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0})});var ov=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var sv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(sv||(zt.DigitalDocumentPermissionType=sv={}));var iv;(function(t){t.Public="public"})(iv||(zt.PermissionGranteeAudienceType=iv={}))});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var dv=o(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0})});var Ic=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CreativeWorkType=void 0;var lv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(lv||(qn.CreativeWorkType=lv={}))});var hv=o(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var gv=o(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.Video=ae.Text=ae.Multipart=ae.Model=ae.Message=ae.Image=ae.Example=ae.Font=ae.Audio=ae.Application=void 0;var yv;(function(t){t.pdf="application/pdf",t.json="application/json"})(yv||(ae.Application=yv={}));var pv;pv||(ae.Audio=pv={});var vv;vv||(ae.Font=vv={});var Sv;Sv||(ae.Example=Sv={});var mv;mv||(ae.Image=mv={});var _v;_v||(ae.Message=_v={});var Ov;Ov||(ae.Model=Ov={});var Tv;Tv||(ae.Multipart=Tv={});var Ev;(function(t){t.csv="text/csv"})(Ev||(ae.Text=Ev={}));var Cv;Cv||(ae.Video=Cv={})});var Av=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Mv=o(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qc=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.EventStatusType=void 0;var Iv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Iv||(Nn.EventStatusType=Iv={}))});var Nc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.EventType=void 0;var qv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(qv||(jn.EventType=qv={}))});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Lv=o(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var kv=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.ItemAvailability=void 0;var Fv;(function(t){t.Discontinued="Discontinued",t.InStock="InStock",t.InStoreOnly="InStoreOnly",t.LimitedAvailability="LimitedAvailability",t.OnlineOnly="OnlineOnly",t.OutOfStock="OutOfStock",t.PreOrder="PreOrder",t.PreSale="PreSale",t.SoldOut="SoldOut"})(Fv||(xn.ItemAvailability=Fv={}))});var Gv=o(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0})});var jc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var $v;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})($v||(Et.RefundTypeEnumeration=$v={}));var Kv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Kv||(Et.ReturnFeesEnumeration=Kv={}));var Hv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Hv||(Et.MerchantReturnEnumeration=Hv={}))});var Vv=o(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Yv=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CategorySetIdentifier=void 0;var zv;(function(t){t.MovieTicketType="MovieTicketType"})(zv||(Un.CategorySetIdentifier=zv={}))});var Zv=o(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Xv=o(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var tS=o(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0})});var nS=o(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0})});var iS=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.OfferItemCondition=void 0;var sS;(function(t){t.NewCondition="NewCondition"})(sS||(Dn.OfferItemCondition=sS={}))});var xc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.OfferType=void 0;var oS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(oS||(Ln.OfferType=oS={}))});var cS=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OrderType=void 0;var aS;(function(t){t.Order="Order"})(aS||(Fn.OrderType=aS={}))});var Uc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OrderType=void 0;var a0=cS();Object.defineProperty(kn,"OrderType",{enumerable:!0,get:function(){return a0.OrderType}})});var Dc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OrderStatus=void 0;var uS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(uS||(Bn.OrderStatus=uS={}))});var lS=o(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0})});var Lc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrganizationType=void 0;var fS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(fS||(Gn.OrganizationType=fS={}))});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var mS=o(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0})});var Fc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.PaymentStatusType=void 0;var _S;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(_S||($n.PaymentStatusType=_S={}))});var TS=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.PermitType=void 0;var OS;(function(t){t.Permit="Permit"})(OS||(Kn.PermitType=OS={}))});var CS=o(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0})});var kc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PersonType=void 0;var gS;(function(t){t.Person="Person"})(gS||(Hn.PersonType=gS={}))});var AS=o(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0})});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var MS=o(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0})});var qS=o(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0})});var jS=o(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0})});var Bc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PlaceType=void 0;var xS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(xS||(Wn.PlaceType=xS={}))});var DS=o(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0})});var Gc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PriceCurrency=void 0;var LS;(function(t){t.JPY="JPY"})(LS||(Vn.PriceCurrency=LS={}))});var kS=o(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0})});var $c=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PriceSpecificationType=void 0;var BS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(BS||(zn.PriceSpecificationType=BS={}))});var Kc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.ProductType=void 0;var GS;(function(t){t.EventService="EventService",t.Product="Product"})(GS||(Yn.ProductType=GS={}))});var KS=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ProgramMembershipType=void 0;var $S;(function(t){t.ProgramMembership="ProgramMembership"})($S||(Qn.ProgramMembershipType=$S={}))});var WS=o(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0})});var zS=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PropertyValueType=void 0;var VS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(VS||(Zn.PropertyValueType=VS={}))});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0})});var em=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.StringValue=void 0;var XS;(function(t){t.Infinity="Infinity"})(XS||(Jn.StringValue=XS={}))});var rm=o(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0})});var sm=o(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0})});var Hc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ReservationStatusType=void 0;var im;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(im||(Xn.ReservationStatusType=im={}))});var Wc=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ReservationType=void 0;var om;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(om||(es.ReservationType=om={}))});var Vc=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.AssetTransactionType=void 0;var am;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(am||(ts.AssetTransactionType=am={}))});var zc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.SortType=void 0;var cm;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(cm||(rs.SortType=cm={}))});var Yc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.TaskStatus=void 0;var um;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(um||(ns.TaskStatus=um={}))});var Qc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.TransactionStatusType=void 0;var dm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(dm||(ss.TransactionStatusType=dm={}))});var Zc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.TransactionType=void 0;var lm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(lm||(is.TransactionType=lm={}))});var Jc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.UnitCode=void 0;var fm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(fm||(os.UnitCode=fm={}))});var Om=o(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.RESERVED_CODE_VALUES=void 0;var as=Vc(),hm=Mc(),Nt=Ic(),cs=qc(),ym=Nc(),ct=jc(),pm=xc(),c0=Uc(),Yt=Dc(),Xc=Lc(),Nr=Fc(),u0=kc(),Qt=Bc(),d0=Gc(),jr=$c(),vm=Kc(),us=Hc(),Sm=Wc(),mm=zc(),ds=Yc(),ls=Qc(),_m=Zc(),fs=Jc();hs.RESERVED_CODE_VALUES=["AccountTitle",as.AssetTransactionType.CancelReservation,"MoneyTransfer",as.AssetTransactionType.Pay,as.AssetTransactionType.Refund,as.AssetTransactionType.Reserve,"Authorization",hm.CertificationStatusEnumeration.CertificationActive,hm.CertificationStatusEnumeration.CertificationInactive,Nt.CreativeWorkType.Certification,"Comment",Nt.CreativeWorkType.EmailMessage,Nt.CreativeWorkType.Movie,Nt.CreativeWorkType.NoteDigitalDocument,Nt.CreativeWorkType.SoftwareApplication,Nt.CreativeWorkType.WebApplication,Nt.CreativeWorkType.WebSite,"Event",cs.EventStatusType.EventCancelled,cs.EventStatusType.EventPostponed,cs.EventStatusType.EventRescheduled,cs.EventStatusType.EventScheduled,ym.EventType.ScreeningEvent,ym.EventType.ScreeningEventSeries,ct.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ct.MerchantReturnEnumeration.MerchantReturnNotPermitted,ct.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ct.MerchantReturnEnumeration.MerchantReturnUnspecified,ct.RefundTypeEnumeration.ExchangeRefund,ct.RefundTypeEnumeration.FullRefund,ct.RefundTypeEnumeration.StoreCreditRefund,ct.ReturnFeesEnumeration.FreeReturn,ct.ReturnFeesEnumeration.RestockingFees,ct.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",pm.OfferType.AggregateOffer,pm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",c0.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Xc.OrganizationType.Corporation,Xc.OrganizationType.Organization,Xc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,u0.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,d0.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,vm.ProductType.EventService,vm.ProductType.Product,us.ReservationStatusType.ReservationCancelled,us.ReservationStatusType.ReservationConfirmed,us.ReservationStatusType.ReservationPending,"ReservationHold",us.ReservationStatusType.ReservationPending,"BusReservation",Sm.ReservationType.EventReservation,Sm.ReservationType.ReservationPackage,mm.SortType.Ascending,mm.SortType.Descending,ds.TaskStatus.Aborted,ds.TaskStatus.Executed,ds.TaskStatus.Ready,ds.TaskStatus.Running,ls.TransactionStatusType.Canceled,ls.TransactionStatusType.Confirmed,ls.TransactionStatusType.Expired,ls.TransactionStatusType.InProgress,_m.TransactionType.PlaceOrder,_m.TransactionType.ReturnOrder,fs.UnitCode.Ann,fs.UnitCode.C62,fs.UnitCode.Day,fs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Em=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.RoleType=void 0;var Tm;(function(t){t.OrganizationRole="OrganizationRole"})(Tm||(ys.RoleType=Tm={}))});var gm=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RoleName=void 0;var Cm;(function(t){t.Customer="customer",t.POS="pos",t.EventsViewer="events.viewer",t.Owner="owner",t.User="user",t.SellerAdmin="sellerAdmin",t.TicketClerk="ticketClerk",t.InventoryManager="inventoryManager",t.Accountant="accountant",t.TicketCollector="ticketCollector",t.IAMRoleAdmin="iam.roleAdmin",t.PaymentServiceAdmin="paymentServiceAdmin",t.MemberAdmin="memberAdmin",t.SellersOwner="sellers.owner",t.SellersInventoryManager="sellers.inventoryManager",t.SellersIAMRoleAdmin="sellers.iam.roleAdmin",t.AdminInventoryManager="admin.inventoryManager"})(Cm||(ps.RoleName=Cm={}))});var Am=o(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0})});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0})});var qm=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.PaymentServiceType=void 0;var Im;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Im||(vs.PaymentServiceType=Im={}))});var jm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.Identifier=void 0;var Nm;(function(t){t.COA="COA",t.Chevre="Chevre"})(Nm||(Ss.Identifier=Nm={}))});var Um=o(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0})});var Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Wm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0})});var Qm=o(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0})});var Jm=o(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0})});var e_=o(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0})});var r_=o(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0})});var s_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var c_=o(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0})});var d_=o(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var f_=o(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0})});var y_=o(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0})});var v_=o(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0})});var m_=o(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0})});var O_=o(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0})});var E_=o(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0})});var g_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0})});var M_=o(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var q_=o(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0})});var j_=o(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0})});var U_=o(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0})});var L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var W_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0})});var Q_=o(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var J_=o(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0})});var eO=o(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0})});var rO=o(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var sO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var cO=o(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var dO=o(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0})});var fO=o(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var yO=o(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=o(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var mO=o(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0})});var OO=o(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0})});var EO=o(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var gO=o(CO=>{"use strict";Object.defineProperty(CO,"__esModule",{value:!0})});var AO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.TaskName=void 0;var PO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(PO||(ms.TaskName=PO={}))});var MO=o(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0})});var qO=o(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var jO=o(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var UO=o(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0})});var LO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.Reason=void 0;var FO;(function(t){t.Customer="Customer",t.Seller="Seller"})(FO||(_s.Reason=FO={}))});var we=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.ErrorCode=void 0;var BO;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.GatewayTimeout="GatewayTimeout",t.Internal="Internal",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.RateLimitExceeded="RateLimitExceeded",t.ServiceUnavailable="ServiceUnavailable",t.Unauthorized="Unauthorized",t.Unknown="Unknown"})(BO||(Os.ErrorCode=BO={}))});var Re=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ChevreError=void 0;var eu=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Ts.ChevreError=eu});var GO=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.AlreadyInUseError=void 0;var l0=we(),f0=Re(),tu=class extends f0.ChevreError{entityName;fieldNames;constructor(e,r,n){let s=n;(n===void 0||n.length===0)&&(s=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(l0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Es.AlreadyInUseError=tu});var $O=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ArgumentError=void 0;var h0=we(),y0=Re(),ru=class extends y0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(h0.ErrorCode.Argument,n),this.argumentName=e}};Cs.ArgumentError=ru});var KO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ArgumentNullError=void 0;var p0=we(),v0=Re(),nu=class extends v0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(p0.ErrorCode.ArgumentNull,n),this.argumentName=e}};gs.ArgumentNullError=nu});var HO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ForbiddenError=void 0;var S0=we(),m0=Re(),su=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(S0.ErrorCode.Forbidden,r)}};bs.ForbiddenError=su});var WO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GatewayTimeoutError=void 0;var _0=we(),O0=Re(),iu=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(_0.ErrorCode.GatewayTimeout,r)}};As.GatewayTimeoutError=iu});var VO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.InternalError=void 0;var T0=we(),E0=Re(),ou=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(T0.ErrorCode.Internal,r)}};Ps.InternalError=ou});var zO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.NotFoundError=void 0;var C0=we(),g0=Re(),au=class extends g0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(C0.ErrorCode.NotFound,n),this.entityName=e}};ws.NotFoundError=au});var YO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.NotImplementedError=void 0;var b0=we(),A0=Re(),cu=class extends A0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(b0.ErrorCode.NotImplemented,r)}};Rs.NotImplementedError=cu});var QO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.RateLimitExceededError=void 0;var P0=we(),w0=Re(),uu=class extends w0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(P0.ErrorCode.RateLimitExceeded,r)}};Ms.RateLimitExceededError=uu});var ZO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.ServiceUnavailableError=void 0;var R0=we(),M0=Re(),du=class extends M0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(R0.ErrorCode.ServiceUnavailable,r)}};Is.ServiceUnavailableError=du});var JO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.UnauthorizedError=void 0;var I0=we(),q0=Re(),lu=class extends q0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(I0.ErrorCode.Unauthorized,r)}};qs.UnauthorizedError=lu});var XO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.UnknownError=void 0;var N0=we(),j0=Re(),fu=class extends j0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(N0.ErrorCode.Unknown,r)}};Ns.UnknownError=fu});var eT=o(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.Unknown=J.Unauthorized=J.ServiceUnavailable=J.RateLimitExceeded=J.NotImplemented=J.NotFound=J.Internal=J.GatewayTimeout=J.Forbidden=J.Chevre=J.ArgumentNull=J.Argument=J.AlreadyInUse=void 0;var x0=GO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return x0.AlreadyInUseError}});var U0=$O();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return U0.ArgumentError}});var D0=KO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return D0.ArgumentNullError}});var L0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return L0.ChevreError}});var F0=HO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return F0.ForbiddenError}});var k0=WO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return k0.GatewayTimeoutError}});var B0=VO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return B0.InternalError}});var G0=zO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return G0.NotFoundError}});var $0=YO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return $0.NotImplementedError}});var K0=QO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return K0.RateLimitExceededError}});var H0=ZO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return H0.ServiceUnavailableError}});var W0=JO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return W0.UnauthorizedError}});var V0=XO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return V0.UnknownError}})});var nT=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.RecipeCategory=void 0;var tT;(function(t){t.payCreditCard="payCreditCard",t.payMovieTicket="payMovieTicket",t.publishPaymentUrl="publishPaymentUrl",t.checkMovieTicket="checkMovieTicket",t.refundCreditCard="refundCreditCard",t.refundMovieTicket="refundMovieTicket",t.acceptCOAOffer="acceptCOAOffer",t.cancelPendingCOAReserve="cancelPendingCOAReserve",t.confirmCOAReserve="confirmCOAReserve",t.returnCOAReserve="returnCOAReserve",t.authorizeInvoice="authorizeInvoice",t.authorizeInvoice3ds="authorizeInvoice3ds",t.sendEmailMessage="sendEmailMessage"})(tT||(Zt.RecipeCategory=tT={}));var rT;(function(t){t.entryTran="entryTran",t.execTran="execTran",t.searchTrade="searchTrade",t.alterTran="alterTran",t.secureTran2="secureTran2",t.seatInfoSync="seatInfoSync",t.seatInfoSyncCancel="seatInfoSyncCancel",t.purchaseNumberAuth="purchaseNumberAuth",t.updTmpReserveSeat="updTmpReserveSeat",t.updReserve="updReserve",t.stateReserve="stateReserve",t.delReserve="delReserve",t.delTmpReserve="delTmpReserve",t.sendMultiple="sendMultiple"})(rT||(Zt.StepIdentifier=rT={}))});var _T=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.person=O.permit=O.paymentStatusType=O.paymentMethod=O.ownershipInfo=O.organizationType=O.organization=O.orderStatus=O.offerType=O.offerItemCondition=O.offerCatalog=O.notification=O.movieTicketType=O.monetaryAmount=O.merchantReturnPolicy=O.language=O.itemAvailability=O.invoice=O.identityProvider=O.iam=O.eventType=O.eventStatusType=O.entryPoint=O.encodingFormat=O.event=O.customer=O.creativeWorkType=O.creativeWork=O.clientUser=O.CertificationStatusEnumeration=O.categoryCode=O.authorization=O.aggregation=O.additionalProperty=O.accountTitle=O.action=O.actionType=O.actionStatusType=O.errorCode=O.recipe=O.errors=O.unitPriceOffer=O.project=O.order=O.eventOffer=O.aggregateOffer=O.offer=O.eventSeries=O.cognito=O.waiter=void 0;O.unitCode=O.assetTransactionType=O.transactionStatusType=O.transactionType=O.transaction=O.assetTransaction=O.thing=O.taskStatus=O.taskName=O.sortType=O.serviceChannel=O.service=O.task=O.sellerReturnPolicy=O.seller=O.schedule=O.role=O.RESERVED_CODE_VALUES=O.reservationType=O.reservationStatusType=O.reservation=O.report=O.quantitativeValue=O.qualitativeValue=O.propertyValue=O.product=O.programMembership=O.priceSpecificationType=O.priceSpecification=O.potentialAction=O.placeType=O.place=O.priceCurrency=O.personType=void 0;O.waiter=Oy();O.cognito=Ey();var z0=gy(),Y0=Ay(),Q0=wy(),Z0=Iy(),J0=jy(),X0=Uy(),eR=Ly(),tR=ky(),rR=Gy(),nR=Ky(),sR=Wy(),iR=zy(),oR=Qy(),aR=Jy(),cR=ep(),uR=rp(),dR=sp(),lR=op(),fR=cp(),hR=dp(),yR=fp(),pR=yp(),vR=vp(),SR=_p(),mR=Tp(),_R=Cp(),OR=Mp(),TR=qp(),ER=jp(),CR=Up(),gR=Lp(),bR=kp(),AR=Gp(),PR=Kp(),wR=Mc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return wR.CertificationStatusEnumeration}});var RR=Vp(),MR=Yp(),IR=Zp(),qR=Xp(),NR=tv(),jR=nv(),xR=ov(),UR=cv(),DR=dv(),LR=Ic(),FR=hv(),kR=gv(),BR=Av();O.entryPoint=BR;var GR=wv();O.eventSeries=Mv();var $R=qc(),KR=Nc(),HR=jv(),WR=Uv(),VR=Lv(),zR=kv(),YR=Gv(),QR=jc(),ZR=Vv(),JR=Yv();O.offer=Zv();O.aggregateOffer=Xv();O.eventOffer=tS();var XR=nS(),eM=iS(),tM=xc();O.order=Uc();var rM=Dc(),nM=lS(),sM=Lc(),iM=yS(),oM=vS(),aM=mS(),cM=Fc(),uM=TS(),dM=CS(),lM=kc(),fM=AS(),hM=wS(),yM=MS(),pM=qS(),vM=jS(),SM=Bc(),mM=DS();O.potentialAction=mM;var _M=Gc(),OM=kS(),TM=$c(),EM=Kc(),CM=KS();O.project=WS();var gM=zS(),bM=QS(),AM=JS(),PM=em(),wM=rm(),RM=sm(),MM=Hc(),IM=Wc(),qM=Om();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return qM.RESERVED_CODE_VALUES}});var NM=Em(),jM=gm(),xM=Am(),UM=wm(),DM=Mm(),LM=qm(),FM=jm(),kM=Um(),BM=zc(),GM=Lm(),$M=Jc();O.unitPriceOffer=km();var KM=Gm(),HM=Km(),WM=Wm(),VM=zm(),zM=Qm(),YM=Jm(),QM=e_(),ZM=r_(),JM=s_(),XM=o_(),eI=c_(),tI=d_(),rI=f_(),nI=y_(),sI=v_(),iI=m_(),oI=O_(),aI=E_(),cI=g_(),uI=A_(),dI=w_(),lI=M_(),fI=q_(),hI=j_(),yI=U_(),pI=L_(),vI=k_(),SI=G_(),mI=K_(),_I=W_(),OI=z_(),TI=Q_(),EI=J_(),CI=eO(),gI=rO(),bI=sO(),AI=oO(),PI=cO(),wI=dO(),RI=fO(),MI=yO(),II=vO(),qI=mO(),NI=OO(),jI=EO(),xI=gO(),UI=AO(),DI=wO(),LI=Yc(),FI=MO(),kI=qO(),BI=jO(),GI=UO(),$I=Vc(),KI=Qc(),HI=LO(),WI=kO(),VI=Zc(),zI=we();O.errors=eT();O.recipe=nT();O.errorCode=zI.ErrorCode;O.actionStatusType=TR.ActionStatusType;O.actionType=ER.ActionType;var sT;(function(t){let e;(function(y){y.coaOffer=z0,y.pay=Y0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(b){b.any=J0})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(b){b.eventService=Z0})(_=y.offer||(y.offer={})),y.invoice=Q0,y.ticketedObject=X0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=eR,y.reservation=tR})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(_){_.movieTicket=rR})(S=y.paymentMethod||(y.paymentMethod={}))})(s=t.check||(t.check={})),t.create=sR;let i;(function(y){let S;(function(_){_.pay=iR,_.reservation=oR})(S=y.confirm||(y.confirm={})),y.inform=aR})(i=t.interact||(t.interact={}));let u;(function(y){y.order=uR,y.pay=dR,y.refund=lR})(u=t.trade||(t.trade={}));let d;(function(y){let S;(function(b){b.invoice=fR,b.order=hR,b.reserveTransaction=yR})(S=y.returnAction||(y.returnAction={}));let _;(function(b){let w;(function(R){R.email=pR})(w=b.message||(b.message={})),b.order=vR})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=SR,y.deleteAction=mR,y.replace=_R,y.update=OR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=nR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=cR})(sT||(O.action=sT={}));O.accountTitle=CR;O.additionalProperty=gR;O.aggregation=bR;O.authorization=AR;O.categoryCode=PR;O.clientUser=RR;var iT;(function(t){let e;(function(s){s.softwareApplication=MR,s.webApplication=IR,s.webSite=qR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=NR})(r=t.message||(t.message={})),t.movie=jR,t.noteDigitalDocument=xR;let n;(function(s){s.softwareApplication=UR,s.webApplication=DR})(n=t.softwareApplication||(t.softwareApplication={}))})(iT||(O.creativeWork=iT={}));O.creativeWorkType=LR.CreativeWorkType;O.customer=FR;var oT;(function(t){t.screeningEvent=GR})(oT||(O.event=oT={}));O.encodingFormat=kR;O.eventStatusType=$R.EventStatusType;O.eventType=KR.EventType;O.iam=HR;O.identityProvider=WR;O.invoice=VR;O.itemAvailability=zR.ItemAvailability;O.language=YR;O.merchantReturnPolicy=QR;O.monetaryAmount=ZR;O.movieTicketType=JR;var aT;(function(t){t.event=VM,t.eventSeries=zM,t.order=ZM,t.reservation=nI,t.payAction=JM,t.refundAction=rI,t.accountTitle=KM,t.categoryCode=HM,t.creativeWork=WM,t.offer=YM,t.offerCatalog=QM,t.person=XM,t.place=eI,t.product=tI,t.task=sI})(aT||(O.notification=aT={}));O.offerCatalog=XR;O.offerItemCondition=eM;O.offerType=tM.OfferType;O.orderStatus=rM.OrderStatus;O.organization=nM;O.organizationType=sM.OrganizationType;O.ownershipInfo=iM;var cT;(function(t){let e;(function(r){r.creditCard=oM,r.movieTicket=aM})(e=t.paymentCard||(t.paymentCard={}))})(cT||(O.paymentMethod=cT={}));O.paymentStatusType=cM.PaymentStatusType;O.permit=uM;O.person=dM;O.personType=lM.PersonType;O.priceCurrency=_M.PriceCurrency;var uT;(function(t){t.entranceGate=fM,t.movieTheater=hM,t.screeningRoom=yM,t.screeningRoomSection=pM,t.seat=vM})(uT||(O.place=uT={}));O.placeType=SM.PlaceType;var dT;(function(t){t.unitPrice=OM})(dT||(O.priceSpecification=dT={}));O.priceSpecificationType=TM.PriceSpecificationType;O.programMembership=CM;O.product=EM;var lT;(function(t){t.PropertyValueType=gM.PropertyValueType,t.locationFeatureSpecification=bM})(lT||(O.propertyValue=lT={}));O.qualitativeValue=AM;O.quantitativeValue=PM;var fT;(function(t){t.accountingReport=wM})(fT||(O.report=fT={}));var hT;(function(t){t.eventReservation=RM})(hT||(O.reservation=hT={}));O.reservationStatusType=MM.ReservationStatusType;O.reservationType=IM.ReservationType;var yT;(function(t){t.RoleType=NM.RoleType,t.organizationRole=jM})(yT||(O.role=yT={}));O.schedule=xM;O.seller=UM;O.sellerReturnPolicy=DM;var pT;(function(t){t.acceptCOAOffer=iI,t.aggregateOffers=oI,t.aggregateOnSystem=aI,t.aggregateScreeningEvent=cI,t.authorizePayment=uI,t.cancelPendingReservation=dI,t.cancelReservation=lI,t.checkMovieTicket=fI,t.checkResource=hI,t.createAccountingReport=pI,t.confirmReserveTransaction=yI,t.deleteTransaction=vI,t.handleNotification=SI,t.importEventCapacitiesFromCOA=mI,t.importEventsFromCOA=_I,t.importOffersFromCOA=OI,t.invalidatePaymentUrl=TI,t.onAssetTransactionStatusChanged=EI,t.pay=PI,t.publishPaymentUrl=wI,t.refund=RI,t.reserve=MI,t.sendEmailMessage=II,t.syncResourcesFromCOA=qI,t.triggerWebhook=NI,t.useReservation=jI,t.voidPayment=xI,t.onAuthorizationCreated=CI,t.onEventChanged=gI,t.onResourceDeleted=bI,t.onResourceUpdated=AI,t.voidReserveTransaction=UI})(pT||(O.task=pT={}));var vT;(function(t){t.paymentService=LM,t.webAPI=FM})(vT||(O.service=vT={}));O.serviceChannel=kM;O.sortType=BM.SortType;O.taskName=DI.TaskName;O.taskStatus=LI.TaskStatus;O.thing=GM;var ST;(function(t){t.cancelReservation=FI,t.pay=kI,t.refund=BI,t.reserve=GI})(ST||(O.assetTransaction=ST={}));var mT;(function(t){t.placeOrder=HI,t.returnOrder=WI})(mT||(O.transaction=mT={}));O.transactionType=VI.TransactionType;O.transactionStatusType=KI.TransactionStatusType;O.assetTransactionType=$I.AssetTransactionType;O.unitCode=$M.UnitCode});var OT=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ChevreFactory=void 0;js.ChevreFactory=_T()});var Y=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.factory=void 0;var YI=OT();Object.defineProperty(xs,"factory",{enumerable:!0,get:function(){return YI.ChevreFactory}})});var ET=o((A2,TT)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,QI=jt*7,ZI=jt*365.25;TT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return JI(t);if(r==="number"&&isFinite(t))return e.long?eq(t):XI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function JI(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*ZI;case"weeks":case"week":case"w":return r*QI;case"days":case"day":case"d":return r*jt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function XI(t){var e=Math.abs(t);return e>=jt?Math.round(t/jt)+"d":e>=er?Math.round(t/er)+"h":e>=Xt?Math.round(t/Xt)+"m":e>=Jt?Math.round(t/Jt)+"s":t+"ms"}function eq(t){var e=Math.abs(t);return e>=jt?Us(t,e,jt,"day"):e>=er?Us(t,e,er,"hour"):e>=Xt?Us(t,e,Xt,"minute"):e>=Jt?Us(t,e,Jt,"second"):t+" ms"}function Us(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var gT=o((P2,CT)=>{function tq(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=ET(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let _=0;_<y.length;_++)S=(S<<5)-S+y.charCodeAt(_),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,_=null,b,w;function R(...q){if(!R.enabled)return;let N=R,C=Number(new Date),M=C-(S||C);N.diff=M,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,x)=>{if(K==="%%")return"%";D++;let G=r.formatters[x];if(typeof G=="function"){let H=q[D];K=G.call(N,H),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(b!==r.namespaces&&(b=r.namespaces,w=r.enabled(y)),w),set:q=>{_=q}}),typeof r.init=="function"&&r.init(R),R}function n(y,S){let _=r(this.namespace+(typeof S>"u"?":":S)+y);return _.log=this.log,_}function s(y){r.save(y),r.namespaces=y,r.names=[],r.skips=[];let S=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let _ of S)_[0]==="-"?r.skips.push(_.slice(1)):r.names.push(_)}function i(y,S){let _=0,b=0,w=-1,R=0;for(;_<y.length;)if(b<S.length&&(S[b]===y[_]||S[b]==="*"))S[b]==="*"?(w=b,R=_,b++):(_++,b++);else if(w!==-1)b=w+1,R++,_=R;else return!1;for(;b<S.length&&S[b]==="*";)b++;return b===S.length}function u(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}CT.exports=tq});var tr=o((Me,Ds)=>{Me.formatArgs=nq;Me.save=sq;Me.load=iq;Me.useColors=rq;Me.storage=oq();Me.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Me.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rq(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ds.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}Me.log=console.debug||console.log||(()=>{});function sq(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function iq(){let t;try{t=Me.storage.getItem("debug")||Me.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function oq(){try{return localStorage}catch{}}Ds.exports=gT()(Me);var{formatters:aq}=Ds.exports;aq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Ls=o(De=>{"use strict";var cq=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.StubTransporter=De.DefaultTransporter=De.RequestError=De.Transporter=void 0;var uq=cq(tr()),bT=(0,uq.default)("cinerino-sdk:transporters"),hu=class{};De.Transporter=hu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var yu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return bT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(bT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new rr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new rr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=yu;var pu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=pu});var PT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var I={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},AT=nr.a={classes:I,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":I.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":I.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":I.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":I.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":I.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":I.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":I.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":I.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":I.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":I.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":I.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":I.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":I.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":I.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":I.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":I.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":I.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":I.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":I.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":I.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":I.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":I.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":I.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":I.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":I.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":I.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":I.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":I.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":I.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":I.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":I.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":I.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":I.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":I.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":I.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":I.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":I.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":I.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":I.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":I.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":I.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":I.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":I.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":I.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":I.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":I.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":I.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":I.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":I.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":I.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":I.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":I.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":I.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":I.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":I.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":I.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":I.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":I.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":I.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":I.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":I.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":I.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":I.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":I.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":I.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":I.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":I.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":I.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":I.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":I.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":I.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":I.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":I.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":I.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":I.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":I.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":I.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":I.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":I.SERVER_ERROR,RAILGUN_ERROR:527}}},dq=nr.b=AT;nr.a=AT;nr.b=dq});var g=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var wT=PT();Fs.default=wT.b;Fs.status=wT.a});var xt=o((I2,RT)=>{"use strict";RT.exports=TypeError});var MT=o(()=>{});var Fr=o((j2,QT)=>{var bu=typeof Map=="function"&&Map.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bs=bu&&vu&&typeof vu.get=="function"?vu.get:null,IT=bu&&Map.prototype.forEach,Au=typeof Set=="function"&&Set.prototype,Su=Object.getOwnPropertyDescriptor&&Au?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Gs=Au&&Su&&typeof Su.get=="function"?Su.get:null,qT=Au&&Set.prototype.forEach,lq=typeof WeakMap=="function"&&WeakMap.prototype,Ur=lq?WeakMap.prototype.has:null,fq=typeof WeakSet=="function"&&WeakSet.prototype,Dr=fq?WeakSet.prototype.has:null,hq=typeof WeakRef=="function"&&WeakRef.prototype,NT=hq?WeakRef.prototype.deref:null,yq=Boolean.prototype.valueOf,pq=Object.prototype.toString,vq=Function.prototype.toString,Sq=String.prototype.match,Pu=String.prototype.slice,Ct=String.prototype.replace,mq=String.prototype.toUpperCase,jT=String.prototype.toLowerCase,$T=RegExp.prototype.test,xT=Array.prototype.concat,ut=Array.prototype.join,_q=Array.prototype.slice,UT=Math.floor,Ou=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mu=Object.getOwnPropertySymbols,Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Lr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,KT=Object.prototype.propertyIsEnumerable,DT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function LT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||$T.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-UT(-t):UT(t);if(n!==t){var s=String(n),i=Pu.call(e,s.length+1);return Ct.call(s,r,"$&_")+"."+Ct.call(Ct.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ct.call(e,r,"$&_")}var Eu=MT(),FT=Eu.custom,kT=VT(FT)?FT:null,HT={__proto__:null,double:'"',single:"'"},Oq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};QT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(HT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=vt(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return YT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?LT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?LT(e,p):p}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Cu(e)?"[Array]":"[Object]";var S=Lq(i,n);if(typeof s>"u")s=[];else if(zT(s,e)>=0)return"[Circular]";function _(oe,se,ie){if(se&&(s=_q.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!BT(e)){var b=Rq(e),w=ks(e,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(VT(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tu.call(e);return typeof e=="object"&&!sr?xr(R):R}if(xq(e)){for(var q="<"+jT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+WT(Tq(N[C].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+jT.call(String(e.nodeName))+">",q}if(Cu(e)){if(e.length===0)return"[]";var M=ks(e,_);return S&&!Dq(M)?"["+gu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(Cq(e)){var D=ks(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!KT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(xT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(D,", ")+" }"}if(typeof e=="object"&&u){if(kT&&typeof e[kT]=="function"&&Eu)return Eu(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Mq(e)){var k=[];return IT&&IT.call(e,function(oe,se){k.push(_(se,e,!0)+" => "+_(oe,e))}),GT("Map",Bs.call(e),k,S)}if(Nq(e)){var K=[];return qT&&qT.call(e,function(oe){K.push(_(oe,e))}),GT("Set",Gs.call(e),K,S)}if(Iq(e))return _u("WeakMap");if(jq(e))return _u("WeakSet");if(qq(e))return _u("WeakRef");if(bq(e))return xr(_(Number(e)));if(Pq(e))return xr(_(Ou.call(e)));if(Aq(e))return xr(yq.call(e));if(gq(e))return xr(_(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Eq(e)&&!BT(e)){var x=ks(e,_),G=DT?DT(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",$=!G&&Lr&&Object(e)===e&&Lr in e?Pu.call(gt(e),8,-1):H?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Q+($||H?"["+ut.call(xT.call([],$||[],H||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+gu(x,S)+"}":Te+"{ "+ut.call(x,", ")+" }"}return String(e)};function WT(t,e,r){var n=r.quoteStyle||e,s=HT[n];return s+t+s}function Tq(t){return Ct.call(String(t),/"/g,""")}function Ut(t){return!Lr||!(typeof t=="object"&&(Lr in t||typeof t[Lr]<"u"))}function Cu(t){return gt(t)==="[object Array]"&&Ut(t)}function Eq(t){return gt(t)==="[object Date]"&&Ut(t)}function BT(t){return gt(t)==="[object RegExp]"&&Ut(t)}function Cq(t){return gt(t)==="[object Error]"&&Ut(t)}function gq(t){return gt(t)==="[object String]"&&Ut(t)}function bq(t){return gt(t)==="[object Number]"&&Ut(t)}function Aq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function VT(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Tu)return!1;try{return Tu.call(t),!0}catch{}return!1}function Pq(t){if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}var wq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return wq.call(t,e)}function gt(t){return pq.call(t)}function Rq(t){if(t.name)return t.name;var e=Sq.call(vq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function zT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Mq(t){if(!Bs||!t||typeof t!="object")return!1;try{Bs.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Iq(t){if(!Ur||!t||typeof t!="object")return!1;try{Ur.call(t,Ur);try{Dr.call(t,Dr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function qq(t){if(!NT||!t||typeof t!="object")return!1;try{return NT.call(t),!0}catch{}return!1}function Nq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{Bs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function jq(t){if(!Dr||!t||typeof t!="object")return!1;try{Dr.call(t,Dr);try{Ur.call(t,Ur)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function xq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function YT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return YT(Pu.call(t,0,e.maxStringLength),e)+n}var s=Oq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Uq);return WT(i,"single",e)}function Uq(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+mq.call(e.toString(16))}function xr(t){return"Object("+t+")"}function _u(t){return t+" { ? }"}function GT(t,e,r,n){var s=n?gu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Dq(t){for(var e=0;e<t.length;e++)if(zT(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Lq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function gu(t,e){if(t.length===0)return"";var r=`
|
|
3
3
|
`+e.prev+e.base;return r+ut.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function ks(t,e){var r=Cu(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=vt(t,s)?e(t[s],t):""}var i=typeof mu=="function"?mu(t):[],u;if(sr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&u["$"+f]instanceof Symbol||(HT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof mu=="function")for(var p=0;p<i.length;p++)WT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var eE=o((F2,XT)=>{"use strict";var Gq=Fr(),$q=xt(),$s=function(t,e,r){for(var n=t,s;(s=n.next)!=null;n=s)if(s.key===e)return n.next=s.next,r||(s.next=t.next,t.next=s),s},Kq=function(t,e){if(t){var r=$s(t,e);return r&&r.value}},Hq=function(t,e,r){var n=$s(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Wq=function(t,e){return t?!!$s(t,e):!1},Vq=function(t,e){if(t)return $s(t,e,!0)};XT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new $q("Side channel does not contain "+Gq(n))},delete:function(n){var s=Vq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Kq(e,n)},has:function(n){return Wq(e,n)},set:function(n,s){e||(e={next:void 0}),Hq(e,n,s)}};return r}});var wu=o((k2,tE)=>{"use strict";tE.exports=Object});var nE=o((B2,rE)=>{"use strict";rE.exports=Error});var iE=o((G2,sE)=>{"use strict";sE.exports=EvalError});var aE=o(($2,oE)=>{"use strict";oE.exports=RangeError});var uE=o((K2,cE)=>{"use strict";cE.exports=ReferenceError});var lE=o((H2,dE)=>{"use strict";dE.exports=SyntaxError});var hE=o((W2,fE)=>{"use strict";fE.exports=URIError});var pE=o((V2,yE)=>{"use strict";yE.exports=Math.abs});var SE=o((z2,vE)=>{"use strict";vE.exports=Math.floor});var _E=o((Y2,mE)=>{"use strict";mE.exports=Math.max});var TE=o((Q2,OE)=>{"use strict";OE.exports=Math.min});var CE=o((Z2,EE)=>{"use strict";EE.exports=Math.pow});var bE=o((J2,gE)=>{"use strict";gE.exports=Math.round});var PE=o((X2,AE)=>{"use strict";AE.exports=Number.isNaN||function(e){return e!==e}});var RE=o((e3,wE)=>{"use strict";var zq=PE();wE.exports=function(e){return zq(e)||e===0?e:e<0?-1:1}});var IE=o((t3,ME)=>{"use strict";ME.exports=Object.getOwnPropertyDescriptor});var Ru=o((r3,qE)=>{"use strict";var Ks=IE();if(Ks)try{Ks([],"length")}catch{Ks=null}qE.exports=Ks});var jE=o((n3,NE)=>{"use strict";var Hs=Object.defineProperty||!1;if(Hs)try{Hs({},"a",{value:1})}catch{Hs=!1}NE.exports=Hs});var UE=o((s3,xE)=>{"use strict";xE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var FE=o((i3,LE)=>{"use strict";var DE=typeof Symbol<"u"&&Symbol,Yq=UE();LE.exports=function(){return typeof DE!="function"||typeof Symbol!="function"||typeof DE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yq()}});var Mu=o((o3,kE)=>{"use strict";kE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Iu=o((a3,BE)=>{"use strict";var Qq=wu();BE.exports=Qq.getPrototypeOf||null});var KE=o((c3,$E)=>{"use strict";var Zq="Function.prototype.bind called on incompatible ",Jq=Object.prototype.toString,Xq=Math.max,e1="[object Function]",GE=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},t1=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},r1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};$E.exports=function(e){var r=this;if(typeof r!="function"||Jq.apply(r)!==e1)throw new TypeError(Zq+r);for(var n=t1(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,GE(n,arguments));return Object(y)===y?y:this}return r.apply(e,GE(n,arguments))},u=Xq(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+r1(d,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var kr=o((u3,HE)=>{"use strict";var n1=KE();HE.exports=Function.prototype.bind||n1});var Ws=o((d3,WE)=>{"use strict";WE.exports=Function.prototype.call});var qu=o((l3,VE)=>{"use strict";VE.exports=Function.prototype.apply});var YE=o((f3,zE)=>{"use strict";zE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ZE=o((h3,QE)=>{"use strict";var s1=kr(),i1=qu(),o1=Ws(),a1=YE();QE.exports=a1||s1.call(o1,i1)});var Nu=o((y3,JE)=>{"use strict";var c1=kr(),u1=xt(),d1=Ws(),l1=ZE();JE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new u1("a function is required");return l1(c1,d1,e)}});var sC=o((p3,nC)=>{"use strict";var f1=Nu(),XE=Ru(),tC;try{tC=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var ju=!!tC&&XE&&XE(Object.prototype,"__proto__"),rC=Object,eC=rC.getPrototypeOf;nC.exports=ju&&typeof ju.get=="function"?f1([ju.get]):typeof eC=="function"?function(e){return eC(e==null?e:rC(e))}:!1});var uC=o((v3,cC)=>{"use strict";var iC=Mu(),oC=Iu(),aC=sC();cC.exports=iC?function(e){return iC(e)}:oC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return oC(e)}:aC?function(e){return aC(e)}:null});var lC=o((S3,dC)=>{"use strict";var h1=Function.prototype.call,y1=Object.prototype.hasOwnProperty,p1=kr();dC.exports=p1.call(h1,y1)});var Ys=o((m3,SC)=>{"use strict";var V,v1=wu(),S1=nE(),m1=iE(),_1=aE(),O1=uE(),cr=lE(),ar=xt(),T1=hE(),E1=pE(),C1=SE(),g1=_E(),b1=TE(),A1=CE(),P1=bE(),w1=RE(),pC=Function,xu=function(t){try{return pC('"use strict"; return ('+t+").constructor;")()}catch{}},Br=Ru(),R1=jE(),Uu=function(){throw new ar},M1=Br?(function(){try{return arguments.callee,Uu}catch{try{return Br(arguments,"callee").get}catch{return Uu}}})():Uu,ir=FE()(),Se=uC(),I1=Iu(),q1=Mu(),vC=qu(),Gr=Ws(),or={},N1=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":S1,"%eval%":eval,"%EvalError%":m1,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":pC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":v1,"%Object.getOwnPropertyDescriptor%":Br,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":_1,"%ReferenceError%":O1,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":M1,"%TypedArray%":N1,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":T1,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Gr,"%Function.prototype.apply%":vC,"%Object.defineProperty%":R1,"%Object.getPrototypeOf%":I1,"%Math.abs%":E1,"%Math.floor%":C1,"%Math.max%":g1,"%Math.min%":b1,"%Math.pow%":A1,"%Math.round%":P1,"%Math.sign%":w1,"%Reflect.getPrototypeOf%":q1};if(Se)try{null.error}catch(t){fC=Se(Se(t)),Dt["%Error.prototype%"]=fC}var fC,j1=function t(e){var r;if(e==="%AsyncFunction%")r=xu("async function () {}");else if(e==="%GeneratorFunction%")r=xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=xu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Dt[e]=r,r},hC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$r=kr(),Vs=lC(),x1=$r.call(Gr,Array.prototype.concat),U1=$r.call(vC,Array.prototype.splice),yC=$r.call(Gr,String.prototype.replace),zs=$r.call(Gr,String.prototype.slice),D1=$r.call(Gr,RegExp.prototype.exec),L1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F1=/\\(\\)?/g,k1=function(e){var r=zs(e,0,1),n=zs(e,-1);if(r==="%"&&n!=="%")throw new cr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cr("invalid intrinsic syntax, expected opening `%`");var s=[];return yC(e,L1,function(i,u,d,f){s[s.length]=d?yC(f,F1,"$1"):u||i}),s},B1=function(e,r){var n=e,s;if(Vs(hC,n)&&(s=hC[n],n="%"+s[0]+"%"),Vs(Dt,n)){var i=Dt[n];if(i===or&&(i=j1(n)),typeof i>"u"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new cr("intrinsic "+e+" does not exist!")};SC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(D1(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=k1(e),s=n.length>0?n[0]:"",i=B1("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],U1(n,x1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],b=zs(_,0,1),w=zs(_,-1);if((b==='"'||b==="'"||b==="`"||w==='"'||w==="'"||w==="`")&&b!==w)throw new cr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),s+="."+_,u="%"+s+"%",Vs(Dt,u))d=Dt[u];else if(d!=null){if(!(_ in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Br&&y+1>=n.length){var R=Br(d,_);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[_]}else S=Vs(d,_),d=d[_];S&&!f&&(Dt[u]=d)}}return d}});var Du=o((_3,OC)=>{"use strict";var mC=Ys(),_C=Nu(),G1=_C([mC("%String.prototype.indexOf%")]);OC.exports=function(e,r){var n=mC(e,!!r);return typeof n=="function"&&G1(e,".prototype.")>-1?_C([n]):n}});var Lu=o((O3,EC)=>{"use strict";var $1=Ys(),Kr=Du(),K1=Fr(),H1=xt(),TC=$1("%Map%",!0),W1=Kr("Map.prototype.get",!0),V1=Kr("Map.prototype.set",!0),z1=Kr("Map.prototype.has",!0),Y1=Kr("Map.prototype.delete",!0),Q1=Kr("Map.prototype.size",!0);EC.exports=!!TC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new H1("Side channel does not contain "+K1(n))},delete:function(n){if(e){var s=Y1(e,n);return Q1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return W1(e,n)},has:function(n){return e?z1(e,n):!1},set:function(n,s){e||(e=new TC),V1(e,n,s)}};return r}});var gC=o((T3,CC)=>{"use strict";var Z1=Ys(),Zs=Du(),J1=Fr(),Qs=Lu(),X1=xt(),ur=Z1("%WeakMap%",!0),eN=Zs("WeakMap.prototype.get",!0),tN=Zs("WeakMap.prototype.set",!0),rN=Zs("WeakMap.prototype.has",!0),nN=Zs("WeakMap.prototype.delete",!0);CC.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new X1("Side channel does not contain "+J1(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return nN(e,s)}else if(Qs&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?eN(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?rN(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),tN(e,s,i)):Qs&&(r||(r=Qs()),r.set(s,i))}};return n}:Qs});var AC=o((E3,bC)=>{"use strict";var sN=xt(),iN=Fr(),oN=eE(),aN=Lu(),cN=gC(),uN=cN||aN||oN;bC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new sN("Side channel does not contain "+iN(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,s){e||(e=uN()),e.set(n,s)}};return r}});var Js=o((C3,PC)=>{"use strict";var dN=String.prototype.replace,lN=/%20/g,Fu={RFC1738:"RFC1738",RFC3986:"RFC3986"};PC.exports={default:Fu.RFC3986,formatters:{RFC1738:function(t){return dN.call(t,lN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Fu.RFC1738,RFC3986:Fu.RFC3986}});var Gu=o((g3,RC)=>{"use strict";var fN=Js(),ku=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),hN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},wC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},yN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!ku.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Lt(e)&&!Lt(r)&&(s=wC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,u){if(ku.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return ku.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},pN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},vN=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bu=1024,SN=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Bu){for(var p=u.length>=Bu?u.slice(f,f+Bu):u,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||i===fN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=dt[_];continue}if(_<2048){y[y.length]=dt[192|_>>6]+dt[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=dt[224|_>>12]+dt[128|_>>6&63]+dt[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=dt[240|_>>18]+dt[128|_>>12&63]+dt[128|_>>6&63]+dt[128|_&63]}d+=y.join("")}return d},mN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],y=u[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:u,prop:p}),n.push(y))}return hN(r),e},_N=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ON=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},TN=function(e,r){return[].concat(e,r)},EN=function(e,r){if(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};RC.exports={arrayToObject:wC,assign:pN,combine:TN,compact:mN,decode:vN,encode:SN,isBuffer:ON,isRegExp:_N,maybeMap:EN,merge:yN}});var xC=o((b3,jC)=>{"use strict";var IC=AC(),Xs=Gu(),Hr=Js(),CN=Object.prototype.hasOwnProperty,qC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,gN=Array.prototype.push,NC=function(t,e){gN.apply(t,lt(e)?e:[e])},bN=Date.prototype.toISOString,MC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Xs.encode,encodeValuesOnly:!1,format:MC,formatter:Hr.formatters[MC],indices:!1,serializeDate:function(e){return bN.call(e)},skipNulls:!1,strictNullHandling:!1},AN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$u={},PN=function t(e,r,n,s,i,u,d,f,p,y,S,_,b,w,R,q,N,C){for(var M=e,D=C,k=0,K=!1;(D=D.get($u))!==void 0&&!K;){var x=D.get(e);if(k+=1,typeof x<"u"){if(x===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get($u)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=b(M):n==="comma"&<(M)&&(M=Xs.maybeMap(M,function(Ue){return Ue instanceof Date?b(Ue):Ue})),M===null){if(u)return p&&!q?p(r,pe.encoder,N,"key",w):r;M=""}if(AN(M)||Xs.isBuffer(M)){if(p){var G=q?r:p(r,pe.encoder,N,"key",w);return[R(G)+"="+R(p(M,pe.encoder,N,"value",w))]}return[R(r)+"="+R(String(M))]}var H=[];if(typeof M>"u")return H;var $;if(n==="comma"&<(M))q&&p&&(M=Xs.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Q=Object.keys(M);$=S?Q.sort(S):Q}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&<(M)&&M.length===1?Te+"[]":Te;if(i&<(M)&&M.length===0)return oe+"[]";for(var se=0;se<$.length;++se){var ie=$[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var et=_&&f?ie.replace(/\./g,"%2E"):ie,it=lt(M)?typeof n=="function"?n(oe,et):oe:oe+(_?"."+et:"["+et+"]");C.set(e,k);var tt=IC();tt.set($u,C),NC(H,t(ee,it,n,s,i,u,d,f,n==="comma"&&q&<(M)?null:p,y,S,_,b,w,R,q,N,tt))}}return H},wN=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hr.default;if(typeof e.format<"u"){if(!CN.call(Hr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Hr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in qC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};jC.exports=function(t,e){var r=t,n=wN(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=qC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=IC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||NC(u,PN(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var _=u.join(n.delimiter),b=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}});var LC=o((A3,DC)=>{"use strict";var dr=Gu(),Ku=Object.prototype.hasOwnProperty,RN=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:dr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},MN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},UC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},IN="utf8=%26%2310003%3B",qN="utf8=%E2%9C%93",NN=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===qN?p="utf-8":u[f]===IN&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var y=u[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,b,w;_===-1?(b=r.decoder(y,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(b=r.decoder(y.slice(0,_),de.decoder,p,"key"),w=dr.maybeMap(UC(y.slice(_+1),r),function(q){return r.decoder(q,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=MN(w)),y.indexOf("[]=")>-1&&(w=RN(w)?[w]:w);var R=Ku.call(n,b);R&&r.duplicates==="combine"?n[b]=dr.combine(n[b],w):(!R||r.duplicates==="last")&&(n[b]=w)}return n},jN=function(t,e,r,n){for(var s=n?e:UC(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},xN=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&Ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),jN(y,r,n,s)}},UN=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||dr.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};DC.exports=function(t,e){var r=UN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?NN(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=xN(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Hu=o((P3,FC)=>{"use strict";var DN=xC(),LN=LC(),FN=Js();FC.exports={formats:FN,parse:LN,stringify:DN}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var kN=Hu(),BN=Ls();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Wu=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,kN.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new BN.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Wu});var kC=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.CategoryCodeService=void 0;var GN=g(),$N=E(),Vu=class extends $N.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[GN.status.OK]}).then(async r=>({data:await r.json()}))}};ei.CategoryCodeService=Vu});var BC=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.CreativeWorkService=void 0;var KN=g(),HN=E(),zu=class extends HN.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[KN.status.OK]}).then(async r=>({data:await r.json()}))}};ti.CreativeWorkService=zu});var GC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.EmailMessageService=void 0;var WN=g(),VN=E(),Yu=class extends VN.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[WN.status.OK]}).then(async r=>({data:await r.json()}))}};ri.EmailMessageService=Yu});var KC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.EventService=void 0;var St=g(),$C=Y(),zN=E(),Qu=class extends zN.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![$C.factory.eventType.ScreeningEvent].includes(n))throw new $C.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/seats`,method:"GET",qs:{...n},expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}};ni.EventService=Qu});var HC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EventOfferService=void 0;var YN=g(),QN=E(),ZN="/eventOffers",Zu=class extends QN.Service{async findEventOffers(e){return this.fetch({uri:ZN,method:"GET",qs:e,expectedStatusCodes:[YN.status.OK]}).then(async r=>r.json())}};si.EventOfferService=Zu});var WC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventSeriesService=void 0;var JN=g(),XN=E(),Ju=class extends XN.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[JN.status.OK]}).then(async r=>r.json())}};ii.EventSeriesService=Ju});var VC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.NoteService=void 0;var ej=g(),tj=E(),rj="/creativeWorks/noteDigitalDocument",Xu=class extends tj.Service{async findPublicNotes(e){return this.fetch({uri:rj,method:"GET",qs:e,expectedStatusCodes:[ej.status.OK]}).then(async r=>r.json())}};oi.NoteService=Xu});var zC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PaymentProductService=void 0;var nj=g(),sj=E(),ed=class extends sj.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[nj.status.OK]}).then(async i=>i.json())}};ai.PaymentProductService=ed});var YC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PlaceService=void 0;var lr=g(),td=Y(),ij=E(),rd=class extends ij.Service{async searchMovieTheatersLegacy(e){return this.fetch({uri:`/places/${td.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${td.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${td.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[lr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};ci.PlaceService=rd});var QC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.HasPOSService=void 0;var oj=g(),aj=Y(),cj=E(),nd=class extends cj.Service{async search(e){return this.fetch({uri:`/places/${aj.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[oj.status.OK]}).then(async r=>r.json())}};ui.HasPOSService=nd});var ZC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.ProductService=void 0;var sd=g(),uj=E(),id=class extends uj.Service{async findProducts(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[sd.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[sd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[sd.status.OK]}).then(async r=>r.json())}};di.ProductService=id});var JC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.SeatOfferService=void 0;var dj=g(),lj=E(),fj="/seatOffers",od=class extends lj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:fj,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[dj.status.OK]}).then(async u=>u.json())}};li.SeatOfferService=od});var XC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SellerService=void 0;var fi=g(),hj=E(),ad=class extends hj.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[fi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[fi.status.OK]}).then(async r=>r.json())}async searchPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[fi.status.OK]}).then(async s=>s.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[fi.status.OK]}).then(async s=>s.json())}};hi.SellerService=ad});var eg=o(Le=>{"use strict";var yj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),je=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&yj(r,e,n[s]);return pj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var W;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let y;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(y=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let _;_=t.SeatOffer||(t.SeatOffer={});let b;b=t.Seller||(t.Seller={})})(W||(Le.service=W={}));var cd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return W.CategoryCode.svc===void 0&&(W.CategoryCode.svc=(await Promise.resolve().then(()=>je(kC()))).CategoryCodeService),new W.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return W.CreativeWork.svc===void 0&&(W.CreativeWork.svc=(await Promise.resolve().then(()=>je(BC()))).CreativeWorkService),new W.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return W.EmailMessage.svc===void 0&&(W.EmailMessage.svc=(await Promise.resolve().then(()=>je(GC()))).EmailMessageService),new W.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return W.Event.svc===void 0&&(W.Event.svc=(await Promise.resolve().then(()=>je(KC()))).EventService),new W.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return W.EventOffer.svc===void 0&&(W.EventOffer.svc=(await Promise.resolve().then(()=>je(HC()))).EventOfferService),new W.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return W.EventSeries.svc===void 0&&(W.EventSeries.svc=(await Promise.resolve().then(()=>je(WC()))).EventSeriesService),new W.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return W.Note.svc===void 0&&(W.Note.svc=(await Promise.resolve().then(()=>je(VC()))).NoteService),new W.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return W.PaymentProduct.svc===void 0&&(W.PaymentProduct.svc=(await Promise.resolve().then(()=>je(zC()))).PaymentProductService),new W.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return W.Place.svc===void 0&&(W.Place.svc=(await Promise.resolve().then(()=>je(YC()))).PlaceService),new W.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return W.place.HasPOS.svc===void 0&&(W.place.HasPOS.svc=(await Promise.resolve().then(()=>je(QC()))).HasPOSService),new W.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return W.Product.svc===void 0&&(W.Product.svc=(await Promise.resolve().then(()=>je(ZC()))).ProductService),new W.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return W.SeatOffer.svc===void 0&&(W.SeatOffer.svc=(await Promise.resolve().then(()=>je(JC()))).SeatOfferService),new W.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return W.Seller.svc===void 0&&(W.Seller.svc=(await Promise.resolve().then(()=>je(XC()))).SellerService),new W.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=cd});var tg=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.OrderService=void 0;var bt=g(),vj=Y(),Sj=E(),ud=class extends Sj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${vj.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[bt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}};yi.OrderService=ud});var ng=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.ReservationService=void 0;var rg=g(),mj=E(),dd=class extends mj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[rg.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[rg.status.OK]}).then(async n=>n.json())}};pi.ReservationService=dd});var sg=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.TokenService=void 0;var _j=E(),ld=class extends _j.Service{};vi.TokenService=ld});var ig=o(Fe=>{"use strict";var Oj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fd=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Oj(r,e,n[s]);return Tj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var rt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(rt||(Fe.service=rt={}));var hd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>fd(tg()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>fd(ng()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>fd(sg()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=hd});var ag=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SyncService=void 0;var og=g(),Ej=E(),yd=class extends Ej.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[og.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[og.status.ACCEPTED]}).then(async r=>r.json())}};Si.SyncService=yd});var cg=o(ke=>{"use strict";var Cj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bj=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Cj(r,e,n[s]);return gj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Wr;(function(t){let e;e=t.Sync||(t.Sync={})})(Wr||(ke.service=Wr={}));var pd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Wr.Sync.svc===void 0&&(Wr.Sync.svc=(await Promise.resolve().then(()=>bj(ag()))).SyncService),new Wr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=pd});var ug=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.CustomerService=void 0;var Aj=g(),Pj=E(),vd=class extends Pj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[Aj.status.OK]}).then(async r=>r.json())}};mi.CustomerService=vd});var dg=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.EventService=void 0;var Vr=g(),wj=E(),Sd=class extends wj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:s}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:s===!0},expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Vr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}};_i.EventService=Sd});var lg=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EventOfferService=void 0;var Oi=g(),Rj=E(),Ti="/eventOffers",md=class extends Rj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ti,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Oi.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ti,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Oi.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ti,method:"GET",qs:e,expectedStatusCodes:[Oi.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ti}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Oi.status.CREATED]}).then(async n=>n.json())}};Ei.EventOfferService=md});var yg=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.EventSeriesService=void 0;var fg=g(),Mj=E(),hg="/eventSeries",_d=class extends Mj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:hg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[fg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:hg,method:"GET",qs:e,expectedStatusCodes:[fg.status.OK]}).then(async r=>r.json())}};Ci.EventSeriesService=_d});var vg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.MeService=void 0;var pg=g(),Ij=E(),Od=class extends Ij.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[pg.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[pg.status.OK]}).then(async s=>s.json())}};gi.MeService=Od});var Sg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.MemberService=void 0;var qj=g(),Nj=Y(),jj=E(),Td=class extends jj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Nj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[qj.status.OK]}).then(async r=>r.json())}};bi.MemberService=Td});var Og=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MovieService=void 0;var mg=g(),xj=E(),_g="/movies",Ed=class extends xj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:_g,method:"PUT",body:e,expectedStatusCodes:[mg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:_g,method:"GET",qs:e,expectedStatusCodes:[mg.status.OK]}).then(async r=>r.json())}};Ai.MovieService=Ed});var Eg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MovieTheaterService=void 0;var zr=g(),Uj=E(),Tg="/movieTheaters",Cd="/entranceGates",gd=class extends Uj.Service{async findMovieTheaters(e){return this.fetch({uri:Tg,method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:Tg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Cd,method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Cd,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Cd,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Pi.MovieTheaterService=gd});var Cg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.NoteService=void 0;var bd=g(),Dj=E(),Ad="/creativeWorks/noteDigitalDocument",Pd=class extends Dj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ad,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ad,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ad,method:"GET",qs:e,expectedStatusCodes:[bd.status.OK]}).then(async r=>r.json())}};wi.NoteService=Pd});var gg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.NoteAboutOrderService=void 0;var wd=g(),Lj=E(),Rd="/orderNotes",Md=class extends Lj.Service{async upsertByIdentifier(e){await this.fetch({uri:Rd,method:"PUT",body:e,expectedStatusCodes:[wd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:Rd,method:"GET",qs:e,expectedStatusCodes:[wd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${Rd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[wd.status.NO_CONTENT]})}};Ri.NoteAboutOrderService=Md});var bg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.OrderService=void 0;var Yr=g(),Fj=E(),Id=class extends Fj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Yr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async findOrderAcceptedOffers(e){return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1"},expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Yr.status.OK],qs:r}).then(async n=>n.json())}};Mi.OrderService=Id});var Ag=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.PaymentMethodService=void 0;var kj=g(),Bj=E(),Gj="/paymentMethods",qd=class extends Bj.Service{async findPaymentMethods(e){return this.fetch({uri:Gj,method:"GET",qs:e,expectedStatusCodes:[kj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ii.PaymentMethodService=qd});var wg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ProductService=void 0;var Nd=g(),$j=E(),Pg="/products",Kj="/productHasOfferCatalog",jd=class extends $j.Service{async upsertByProductId(e){await this.fetch({uri:Pg,method:"PUT",body:e,expectedStatusCodes:[Nd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Pg,method:"GET",qs:e,expectedStatusCodes:[Nd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Kj,method:"GET",qs:e,expectedStatusCodes:[Nd.status.OK]}).then(async r=>r.json())}};qi.ProductService=jd});var Rg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ReservationService=void 0;var xd=g(),Hj=E(),Ud=class extends Hj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[xd.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:s}=e;await this.fetch({uri:`/reservations/${String(s?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[xd.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[xd.status.OK]}).then(async s=>s.json())}};Ni.ReservationService=Ud});var qg=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.RoomService=void 0;var Mg=g(),Wj=E(),Ig="/rooms",Dd=class extends Wj.Service{async findRooms(e){return this.fetch({uri:Ig,method:"GET",qs:e,expectedStatusCodes:[Mg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Ig,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Mg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ji.RoomService=Dd});var Ng=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.SeatService=void 0;var Ld=g(),Vj=E(),Fd="/seats",kd=class extends Vj.Service{async findSeats(e){return this.fetch({uri:Fd,method:"GET",qs:e,expectedStatusCodes:[Ld.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Fd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[Ld.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Fd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Ld.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};xi.SeatService=kd});var Ug=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.SeatSectionService=void 0;var jg=g(),zj=E(),xg="/seatSections",Bd=class extends zj.Service{async findSeatSections(e){return this.fetch({uri:xg,method:"GET",qs:e,expectedStatusCodes:[jg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:xg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[jg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.SeatSectionService=Bd});var Dg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SellerService=void 0;var Yj=g(),Qj=E(),Gd=class extends Qj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};Di.SellerService=Gd});var Fg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.OfferService=void 0;var Lg=g(),Zj=E(),$d=class extends Zj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Lg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[Lg.status.NO_CONTENT]})}};Li.OfferService=$d});var kg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.OfferCatalogService=void 0;var Jj=g(),Xj=E(),Kd=class extends Xj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[Jj.status.NO_CONTENT]})}};Fi.OfferCatalogService=Kd});var Gg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferCatalogItemService=void 0;var Bg=g(),ex=E(),Hd=class extends ex.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Bg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[Bg.status.NO_CONTENT]})}};ki.OfferCatalogItemService=Hd});var $g=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.CancelReservationAssetTransactionService=void 0;var tx=g(),rx=E(),Wd=class extends rx.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[tx.status.NO_CONTENT]})}};Bi.CancelReservationAssetTransactionService=Wd});var Kg=o(Be=>{"use strict";var nx=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),sx=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ce=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&nx(r,e,n[s]);return sx(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var j;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let u;u=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let _;_=t.PaymentMethod||(t.PaymentMethod={});let b;b=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Room||(t.Room={});let q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let D;D=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(x){let G;G=x.CancelReservation||(x.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(j||(Be.service=j={}));var Vd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ce(ug()))).CustomerService),new j.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return j.Event.svc===void 0&&(j.Event.svc=(await Promise.resolve().then(()=>ce(dg()))).EventService),new j.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return j.EventOffer.svc===void 0&&(j.EventOffer.svc=(await Promise.resolve().then(()=>ce(lg()))).EventOfferService),new j.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return j.EventSeries.svc===void 0&&(j.EventSeries.svc=(await Promise.resolve().then(()=>ce(yg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ce(vg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ce(Sg()))).MemberService),new j.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return j.Movie.svc===void 0&&(j.Movie.svc=(await Promise.resolve().then(()=>ce(Og()))).MovieService),new j.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return j.MovieTheater.svc===void 0&&(j.MovieTheater.svc=(await Promise.resolve().then(()=>ce(Eg()))).MovieTheaterService),new j.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return j.Note.svc===void 0&&(j.Note.svc=(await Promise.resolve().then(()=>ce(Cg()))).NoteService),new j.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return j.NoteAboutOrder.svc===void 0&&(j.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(gg()))).NoteAboutOrderService),new j.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return j.Order.svc===void 0&&(j.Order.svc=(await Promise.resolve().then(()=>ce(bg()))).OrderService),new j.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return j.PaymentMethod.svc===void 0&&(j.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(Ag()))).PaymentMethodService),new j.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return j.Product.svc===void 0&&(j.Product.svc=(await Promise.resolve().then(()=>ce(wg()))).ProductService),new j.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return j.Reservation.svc===void 0&&(j.Reservation.svc=(await Promise.resolve().then(()=>ce(Rg()))).ReservationService),new j.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return j.Room.svc===void 0&&(j.Room.svc=(await Promise.resolve().then(()=>ce(qg()))).RoomService),new j.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return j.Seat.svc===void 0&&(j.Seat.svc=(await Promise.resolve().then(()=>ce(Ng()))).SeatService),new j.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return j.SeatSection.svc===void 0&&(j.SeatSection.svc=(await Promise.resolve().then(()=>ce(Ug()))).SeatSectionService),new j.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return j.Seller.svc===void 0&&(j.Seller.svc=(await Promise.resolve().then(()=>ce(Dg()))).SellerService),new j.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return j.Offer.svc===void 0&&(j.Offer.svc=(await Promise.resolve().then(()=>ce(Fg()))).OfferService),new j.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return j.OfferCatalog.svc===void 0&&(j.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(kg()))).OfferCatalogService),new j.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return j.OfferCatalogItem.svc===void 0&&(j.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(Gg()))).OfferCatalogItemService),new j.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return j.assetTransaction.CancelReservation.svc===void 0&&(j.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce($g()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Vd});var Hg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.AccountingReportService=void 0;var ix=g(),ox=E(),zd=class extends ox.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[ix.status.OK]}).then(async r=>r.json())}};Gi.AccountingReportService=zd});var Wg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.AccountTitleService=void 0;var Ge=g(),ax=Y(),cx=E(),Yd=class extends cx.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new ax.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async deleteByCodeValue(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}};$i.AccountTitleService=Yd});var Vg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.ActionService=void 0;var Qd=g(),ux=E(),Zd=class extends ux.Service{async findActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Qd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Qd.status.OK]}).then(async r=>r.json())}};Ki.ActionService=Zd});var zg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.UpdateActionService=void 0;var dx=g(),lx=E(),Jd=class extends lx.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[dx.status.OK]}).then(async r=>r.json())}};Hi.UpdateActionService=Jd});var Yg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.InformActionService=void 0;var fx=g(),hx=E(),Xd=class extends hx.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[fx.status.OK]}).then(async r=>r.json())}};Wi.InformActionService=Xd});var Qg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.UseActionService=void 0;var yx=g(),px=E(),el=class extends px.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[yx.status.OK]}).then(async r=>r.json())}};Vi.UseActionService=el});var Zg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AdditionalPropertyService=void 0;var Qr=g(),vx=E(),tl=class extends vx.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Qr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qr.status.NO_CONTENT]})}};zi.AdditionalPropertyService=tl});var Xg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateOfferService=void 0;var Jg=g(),Sx=E(),rl=class extends Sx.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Jg.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jg.status.NO_CONTENT]})}};Yi.AggregateOfferService=rl});var eb=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregateReservationService=void 0;var mx=g(),_x=E(),nl=class extends _x.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[mx.status.OK]}).then(async r=>r.json())}};Qi.AggregateReservationService=nl});var tb=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AggregationService=void 0;var Ox=g(),Tx=E(),sl=class extends Tx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ox.status.OK]}).then(async r=>r.json())}};Zi.AggregationService=sl});var rb=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AuthorizationService=void 0;var Ex=g(),Cx=E(),il=class extends Cx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[Ex.status.OK]}).then(async r=>r.json())}};Ji.AuthorizationService=il});var nb=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.CreativeWorkService=void 0;var gx=g(),bx=E(),ol=class extends bx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[gx.status.NO_CONTENT]})}};Xi.CreativeWorkService=ol});var sb=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CategoryCodeService=void 0;var eo=g(),Ax=E(),to="/categoryCodes",al=class extends Ax.Service{async createCategoryCode(e){return this.fetch({uri:to,method:"POST",body:e,expectedStatusCodes:[eo.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:to,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[eo.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[eo.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[eo.status.NO_CONTENT]})}};ro.CategoryCodeService=al});var ib=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerService=void 0;var cl=g(),Px=E(),ul=class extends Px.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[cl.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[cl.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[cl.status.NO_CONTENT]})}};no.CustomerService=ul});var ob=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CustomerTypeService=void 0;var wx=g(),Rx=E(),dl=class extends Rx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[wx.status.OK]}).then(async r=>r.json())}};so.CustomerTypeService=dl});var ab=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EmailMessageService=void 0;var io=g(),Mx=E(),ll=class extends Mx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[io.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[io.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[io.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[io.status.NO_CONTENT]})}};oo.EmailMessageService=ll});var ub=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.EventService=void 0;var Zr=g(),cb=Y(),Ix=E(),fl=class extends Ix.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{expectsNoContent:"1",typeOf:cb.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r,typeOf:n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[Zr.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async updateEventById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e.attributes,qs:{typeOf:cb.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Zr.status.NO_CONTENT]})}};ao.EventService=fl});var fb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.EventSeriesService=void 0;var db=g(),lb=Y(),qx=E(),hl=class extends qx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${lb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[db.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${lb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[db.status.NO_CONTENT]})}};co.EventSeriesService=hl});var hb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.HasMerchantReturnPolicyService=void 0;var Nx=g(),jx=E(),yl=class extends jx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Nx.status.OK]}).then(async e=>e.json())}};uo.HasMerchantReturnPolicyService=yl});var yb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IAMService=void 0;var At=g(),xx=E(),pl=class extends xx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};lo.IAMService=pl});var pb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityService=void 0;var fo=g(),Ux=E(),vl=class extends Ux.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[fo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[fo.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[fo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fo.status.NO_CONTENT]})}};ho.IdentityService=vl});var vb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.IdentityProviderService=void 0;var yo=g(),Dx=E(),Sl=class extends Dx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[yo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[yo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[yo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[yo.status.NO_CONTENT]})}};po.IdentityProviderService=Sl});var Sb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.IssuerService=void 0;var Jr=g(),Lx=E(),ml=class extends Lx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Jr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:n,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}};vo.IssuerService=ml});var _b=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MeService=void 0;var mb=g(),Fx=E(),_l=class extends Fx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[mb.status.OK]}).then(async r=>({data:await r.json()}))}async searchMemberHasRoleOnProject(e){return this.fetch({uri:`/members/me/projects/${e.project.id}/hasRole`,method:"GET",expectedStatusCodes:[mb.status.OK]}).then(async r=>r.json())}};So.MeService=_l});var Ob=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberService=void 0;var Pt=g(),wt=Y(),kx=E(),Ol=class extends kx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};mo.MemberService=Ol});var Tb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MemberProgramService=void 0;var Xr=g(),Bx=E(),Tl=class extends Bx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async updateByIdentifier(e){let{hostingOrganization:r,hasTiers:n}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r,...Array.isArray(n)?{hasTiers:n}:void 0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async deleteByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[Xr.status.NO_CONTENT]})}};_o.MemberProgramService=Tl});var Eb=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MerchantReturnPolicyService=void 0;var en=g(),Gx=E(),El=class extends Gx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};Oo.MerchantReturnPolicyService=El});var Cb=o(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.MessageService=void 0;var $x=g(),Kx=E(),Cl=class extends Kx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[$x.status.OK]}).then(async r=>r.json())}};To.MessageService=Cl});var gb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.MovieTicketTypeService=void 0;var Eo=g(),Hx=E(),Co="/movieTicketTypes",gl=class extends Hx.Service{async createMovieTicketType(e){return this.fetch({uri:Co,method:"POST",body:e,expectedStatusCodes:[Eo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Co,method:"GET",qs:e,expectedStatusCodes:[Eo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Eo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Eo.status.NO_CONTENT]})}};go.MovieTicketTypeService=gl});var bb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.OrderService=void 0;var bo=g(),Wx=E(),bl=class extends Wx.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async processOrder(e){let{confirmationNumber:r,orderNumber:n}=e.object;await this.fetch({uri:`/orders/${n}/processOrder`,method:"POST",body:{confirmationNumber:r},expectedStatusCodes:[bo.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[bo.status.OK]}).then(async r=>r.json())}};Ao.OrderService=bl});var Ab=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PaymentProductService=void 0;var fr=g(),Vx=E(),Al=class extends Vx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[fr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[fr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[fr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}};Po.PaymentProductService=Al});var Pb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PaymentServiceChannelService=void 0;var wo=g(),zx=E(),Pl=class extends zx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[wo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[wo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[wo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[wo.status.NO_CONTENT]})}};Ro.PaymentServiceChannelService=Pl});var Rb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PendingReservationService=void 0;var wb=g(),Yx=E(),wl=class extends Yx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[wb.status.OK]}).then(async r=>r.json())}async projectSubReservationByReservationNumber(e){let{reservationNumber:r}=e;return this.fetch({uri:`/pendingReservations/${encodeURIComponent(String(r.$eq))}/subReservation`,method:"GET",expectedStatusCodes:[wb.status.OK]}).then(async n=>n.json())}};Mo.PendingReservationService=wl});var Ib=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PermissionService=void 0;var Mb=g(),Qx=E(),Rl=class extends Qx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Mb.status.OK]}).then(async e=>e.json())}async token2permissions(e){let{token:r}=e;return this.fetch({uri:"/permissions/token2permissions",method:"POST",body:{token:r},expectedStatusCodes:[Mb.status.OK]}).then(async n=>n.json())}};Io.PermissionService=Rl});var Nb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PersonService=void 0;var qb=g(),Zx=E(),Ml=class extends Zx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[qb.status.OK]}).then(async r=>r.json())}async findPersonById(e){let{id:r,iss:n}=e;return this.fetch({uri:`/people/${r}`,method:"GET",expectedStatusCodes:[qb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};qo.PersonService=Ml});var jb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.PlaceService=void 0;var tn=g(),rn=Y(),Jx=E(),Il=class extends Jx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${rn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[tn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[tn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}};No.PlaceService=Il});var xb=o(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HasPOSService=void 0;var jo=g(),xo=Y(),Xx=E(),ql=class extends Xx.Service{async search(e){return this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[jo.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[jo.status.NO_CONTENT]})}};Uo.HasPOSService=ql});var Ub=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.PriceSpecificationService=void 0;var Do=g(),eU=E(),Nl=class extends eU.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Do.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Do.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Do.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Do.status.NO_CONTENT]})}};Lo.PriceSpecificationService=Nl});var Db=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ProductService=void 0;var nn=g(),tU=E(),sn="/products",jl=class extends tU.Service{async createProduct(e){return this.fetch({uri:sn,method:"POST",body:e,expectedStatusCodes:[nn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:sn,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[nn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${sn}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[nn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${sn}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${sn}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}};Fo.ProductService=jl});var Lb=o(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ProjectService=void 0;var ko=g(),rU=E(),xl=class extends rU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[ko.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[ko.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[ko.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[ko.status.NO_CONTENT]})}};Bo.ProjectService=xl});var Fb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectMakesOfferService=void 0;var Go=g(),nU=E(),Ul=class extends nU.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Go.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Go.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Go.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Go.status.NO_CONTENT]})}};$o.ProjectMakesOfferService=Ul});var kb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ReservationService=void 0;var sU=g(),iU=E(),Dl=class extends iU.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[sU.status.NO_CONTENT]})}};Ko.ReservationService=Dl});var Bb=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferService=void 0;var Ll=g(),oU=E(),Fl=class extends oU.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[Ll.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}};Ho.OfferService=Fl});var Gb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogService=void 0;var Wo=g(),aU=E(),kl=class extends aU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Vo.OfferCatalogService=kl});var $b=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferCatalogItemService=void 0;var Bl=g(),cU=E(),Gl=class extends cU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Bl.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Bl.status.OK]}).then(async s=>s.json())}};zo.OfferCatalogItemService=Gl});var Kb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.OfferItemConditionService=void 0;var Yo=g(),uU=E(),$l=class extends uU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Yo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Yo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yo.status.NO_CONTENT]})}};Qo.OfferItemConditionService=$l});var Hb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerService=void 0;var _e=g(),dU=E(),Kl=class extends dU.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};Zo.SellerService=Kl});var Wb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerMakesOfferService=void 0;var Hl=g(),lU=E(),Wl=class extends lU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Hl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Hl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Hl.status.NO_CONTENT]})}};Jo.SellerMakesOfferService=Wl});var Vb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.SellerReturnPolicyService=void 0;var on=g(),fU=E(),Vl=class extends fU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[on.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r}=e;return this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[on.status.OK]}).then(async n=>n.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Xo.SellerReturnPolicyService=Vl});var zb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.AsyncActionService=void 0;var hU=g(),yU=E(),zl=class extends yU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[hU.status.OK]}).then(async r=>r.json())}};ea.AsyncActionService=zl});var Yb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.ScheduledTaskService=void 0;var pU=g(),vU=E(),Yl=class extends vU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[pU.status.OK]}).then(async r=>r.json())}};ta.ScheduledTaskService=Yl});var Qb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TaskService=void 0;var Ql=g(),SU=E(),Zl=class extends SU.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Ql.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Ql.status.NO_CONTENT]})}async findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Ql.status.OK]}).then(async r=>r.json())}};ra.TaskService=Zl});var Zb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.TicketService=void 0;var mU=g(),_U=E(),Jl=class extends _U.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[mU.status.OK]}).then(async r=>r.json())}};na.TicketService=Jl});var Jb=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.AssetTransactionService=void 0;var OU=g(),TU=E(),Xl=class extends TU.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[OU.status.OK]}).then(async r=>r.json())}};sa.AssetTransactionService=Xl});var Xb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.PayAssetTransactionService=void 0;var ia=g(),hr=Y(),EU=E(),ef=class extends EU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ia.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ia.status.OK]}).then(async r=>r.json())}};oa.PayAssetTransactionService=ef});var eA=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.TokenService=void 0;var CU=E(),tf=class extends CU.Service{};aa.TokenService=tf});var rA=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.PlaceOrderTransactionService=void 0;var tA=g(),gU=Y(),bU=E(),rf=class extends bU.Service{typeOf=gU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[tA.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[tA.status.OK]}).then(async s=>s.json())}};ca.PlaceOrderTransactionService=rf});var nA=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.ReturnOrderTransactionService=void 0;var AU=g(),PU=Y(),wU=E(),nf=class extends wU.Service{typeOf=PU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[AU.status.OK]}).then(async r=>({data:await r.json()}))}};ua.ReturnOrderTransactionService=nf});var sA=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.TransactionNumberService=void 0;var RU=g(),MU=E(),sf=class extends MU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[RU.status.CREATED]}).then(async e=>e.json())}};da.TransactionNumberService=sf});var iA=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.UserPoolService=void 0;var of=g(),IU=E(),af=class extends IU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[of.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[of.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[of.status.OK]}).then(async r=>r.json())}};la.UserPoolService=af});var oA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.WebSiteService=void 0;var fa=g(),qU=E(),cf=class extends qU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[fa.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[fa.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[fa.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fa.status.NO_CONTENT]})}};ha.WebSiteService=cf});var aA=o($e=>{"use strict";var NU=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&NU(r,e,n[s]);return jU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreConsole=$e.service=void 0;var m;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let s;s=t.UpdateAction||(t.UpdateAction={});let i;i=t.InformAction||(t.InformAction={});let u;u=t.UseAction||(t.UseAction={});let d;d=t.AdditionalProperty||(t.AdditionalProperty={});let f;f=t.AggregateOffer||(t.AggregateOffer={});let p;p=t.AggregateReservation||(t.AggregateReservation={});let y;y=t.Aggregation||(t.Aggregation={});let S;S=t.Authorization||(t.Authorization={});let _;_=t.CategoryCode||(t.CategoryCode={});let b;b=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let R;R=t.CustomerType||(t.CustomerType={});let q;q=t.EmailMessage||(t.EmailMessage={});let N;N=t.Event||(t.Event={});let C;C=t.EventSeries||(t.EventSeries={});let M;M=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let D;D=t.IAM||(t.IAM={});let k;k=t.Identity||(t.Identity={});let K;K=t.IdentityProvider||(t.IdentityProvider={});let x;x=t.Issuer||(t.Issuer={});let G;G=t.Me||(t.Me={});let H;H=t.Member||(t.Member={});let $;$=t.MemberProgram||(t.MemberProgram={});let Q;Q=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let Te;Te=t.Message||(t.Message={});let oe;oe=t.MovieTicketType||(t.MovieTicketType={});let se;se=t.Order||(t.Order={});let ie;ie=t.PaymentProduct||(t.PaymentProduct={});let ee;ee=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let et;et=t.PendingReservation||(t.PendingReservation={});let it;it=t.Permission||(t.Permission={});let tt;tt=t.Person||(t.Person={});let Ue;Ue=t.Place||(t.Place={});let a;(function(U){let gr;gr=U.HasPOS||(U.HasPOS={})})(a=t.place||(t.place={}));let c;c=t.PriceSpecification||(t.PriceSpecification={});let l;l=t.Product||(t.Product={});let h;h=t.Project||(t.Project={});let v;v=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let T;T=t.Reservation||(t.Reservation={});let A;A=t.Offer||(t.Offer={});let P;P=t.OfferCatalog||(t.OfferCatalog={});let F;F=t.OfferCatalogItem||(t.OfferCatalogItem={});let z;z=t.OfferItemCondition||(t.OfferItemCondition={});let Z;Z=t.Seller||(t.Seller={});let ue;ue=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ae;Ae=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let Ee;Ee=t.AsyncAction||(t.AsyncAction={});let It;It=t.ScheduledTask||(t.ScheduledTask={});let ye;ye=t.Task||(t.Task={});let Pe;Pe=t.Ticket||(t.Ticket={});let ot;ot=t.AssetTransaction||(t.AssetTransaction={});let Cr;(function(U){let gr;gr=U.Pay||(U.Pay={})})(Cr=t.assetTransaction||(t.assetTransaction={}));let JP;JP=t.Token||(t.Token={});let XP;(function(U){let gr;gr=U.PlaceOrder||(U.PlaceOrder={});let wc;wc=U.ReturnOrder||(U.ReturnOrder={})})(XP=t.transaction||(t.transaction={}));let ew;ew=t.TransactionNumber||(t.TransactionNumber={});let tw;tw=t.UserPool||(t.UserPool={});let rw;rw=t.WebSite||(t.WebSite={})})(m||($e.service=m={}));var uf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>L(Hg()))).AccountingReportService),new m.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return m.AccountTitle.svc===void 0&&(m.AccountTitle.svc=(await Promise.resolve().then(()=>L(Wg()))).AccountTitleService),new m.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return m.Action.svc===void 0&&(m.Action.svc=(await Promise.resolve().then(()=>L(Vg()))).ActionService),new m.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createUpdateActionInstance(e){return m.UpdateAction.svc===void 0&&(m.UpdateAction.svc=(await Promise.resolve().then(()=>L(zg()))).UpdateActionService),new m.UpdateAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createInformActionInstance(e){return m.InformAction.svc===void 0&&(m.InformAction.svc=(await Promise.resolve().then(()=>L(Yg()))).InformActionService),new m.InformAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createUseActionInstance(e){return m.UseAction.svc===void 0&&(m.UseAction.svc=(await Promise.resolve().then(()=>L(Qg()))).UseActionService),new m.UseAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>L(Zg()))).AdditionalPropertyService),new m.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return m.AggregateOffer.svc===void 0&&(m.AggregateOffer.svc=(await Promise.resolve().then(()=>L(Xg()))).AggregateOfferService),new m.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return m.AggregateReservation.svc===void 0&&(m.AggregateReservation.svc=(await Promise.resolve().then(()=>L(eb()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>L(tb()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>L(rb()))).AuthorizationService),new m.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return m.CreativeWork.svc===void 0&&(m.CreativeWork.svc=(await Promise.resolve().then(()=>L(nb()))).CreativeWorkService),new m.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return m.CategoryCode.svc===void 0&&(m.CategoryCode.svc=(await Promise.resolve().then(()=>L(sb()))).CategoryCodeService),new m.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return m.Customer.svc===void 0&&(m.Customer.svc=(await Promise.resolve().then(()=>L(ib()))).CustomerService),new m.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return m.CustomerType.svc===void 0&&(m.CustomerType.svc=(await Promise.resolve().then(()=>L(ob()))).CustomerTypeService),new m.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return m.EmailMessage.svc===void 0&&(m.EmailMessage.svc=(await Promise.resolve().then(()=>L(ab()))).EmailMessageService),new m.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return m.Event.svc===void 0&&(m.Event.svc=(await Promise.resolve().then(()=>L(ub()))).EventService),new m.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return m.EventSeries.svc===void 0&&(m.EventSeries.svc=(await Promise.resolve().then(()=>L(fb()))).EventSeriesService),new m.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return m.HasMerchantReturnPolicy.svc===void 0&&(m.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>L(hb()))).HasMerchantReturnPolicyService),new m.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return m.IAM.svc===void 0&&(m.IAM.svc=(await Promise.resolve().then(()=>L(yb()))).IAMService),new m.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return m.Identity.svc===void 0&&(m.Identity.svc=(await Promise.resolve().then(()=>L(pb()))).IdentityService),new m.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return m.IdentityProvider.svc===void 0&&(m.IdentityProvider.svc=(await Promise.resolve().then(()=>L(vb()))).IdentityProviderService),new m.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return m.Issuer.svc===void 0&&(m.Issuer.svc=(await Promise.resolve().then(()=>L(Sb()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>L(_b()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>L(Ob()))).MemberService),new m.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return m.MemberProgram.svc===void 0&&(m.MemberProgram.svc=(await Promise.resolve().then(()=>L(Tb()))).MemberProgramService),new m.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return m.MerchantReturnPolicy.svc===void 0&&(m.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>L(Eb()))).MerchantReturnPolicyService),new m.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return m.Message.svc===void 0&&(m.Message.svc=(await Promise.resolve().then(()=>L(Cb()))).MessageService),new m.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return m.MovieTicketType.svc===void 0&&(m.MovieTicketType.svc=(await Promise.resolve().then(()=>L(gb()))).MovieTicketTypeService),new m.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return m.Order.svc===void 0&&(m.Order.svc=(await Promise.resolve().then(()=>L(bb()))).OrderService),new m.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return m.PaymentProduct.svc===void 0&&(m.PaymentProduct.svc=(await Promise.resolve().then(()=>L(Ab()))).PaymentProductService),new m.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return m.PaymentServiceChannel.svc===void 0&&(m.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>L(Pb()))).PaymentServiceChannelService),new m.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return m.PendingReservation.svc===void 0&&(m.PendingReservation.svc=(await Promise.resolve().then(()=>L(Rb()))).PendingReservationService),new m.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return m.Permission.svc===void 0&&(m.Permission.svc=(await Promise.resolve().then(()=>L(Ib()))).PermissionService),new m.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return m.Person.svc===void 0&&(m.Person.svc=(await Promise.resolve().then(()=>L(Nb()))).PersonService),new m.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return m.Place.svc===void 0&&(m.Place.svc=(await Promise.resolve().then(()=>L(jb()))).PlaceService),new m.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return m.place.HasPOS.svc===void 0&&(m.place.HasPOS.svc=(await Promise.resolve().then(()=>L(xb()))).HasPOSService),new m.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return m.PriceSpecification.svc===void 0&&(m.PriceSpecification.svc=(await Promise.resolve().then(()=>L(Ub()))).PriceSpecificationService),new m.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return m.Product.svc===void 0&&(m.Product.svc=(await Promise.resolve().then(()=>L(Db()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>L(Lb()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>L(Fb()))).ProjectMakesOfferService),new m.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return m.Reservation.svc===void 0&&(m.Reservation.svc=(await Promise.resolve().then(()=>L(kb()))).ReservationService),new m.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return m.Offer.svc===void 0&&(m.Offer.svc=(await Promise.resolve().then(()=>L(Bb()))).OfferService),new m.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return m.OfferCatalog.svc===void 0&&(m.OfferCatalog.svc=(await Promise.resolve().then(()=>L(Gb()))).OfferCatalogService),new m.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return m.OfferCatalogItem.svc===void 0&&(m.OfferCatalogItem.svc=(await Promise.resolve().then(()=>L($b()))).OfferCatalogItemService),new m.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return m.OfferItemCondition.svc===void 0&&(m.OfferItemCondition.svc=(await Promise.resolve().then(()=>L(Kb()))).OfferItemConditionService),new m.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return m.Seller.svc===void 0&&(m.Seller.svc=(await Promise.resolve().then(()=>L(Hb()))).SellerService),new m.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return m.SellerMakesOffer.svc===void 0&&(m.SellerMakesOffer.svc=(await Promise.resolve().then(()=>L(Wb()))).SellerMakesOfferService),new m.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return m.SellerReturnPolicy.svc===void 0&&(m.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>L(Vb()))).SellerReturnPolicyService),new m.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createAsyncActionInstance(e){return m.AsyncAction.svc===void 0&&(m.AsyncAction.svc=(await Promise.resolve().then(()=>L(zb()))).AsyncActionService),new m.AsyncAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createScheduledTaskInstance(e){return m.ScheduledTask.svc===void 0&&(m.ScheduledTask.svc=(await Promise.resolve().then(()=>L(Yb()))).ScheduledTaskService),new m.ScheduledTask.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return m.Task.svc===void 0&&(m.Task.svc=(await Promise.resolve().then(()=>L(Qb()))).TaskService),new m.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return m.Ticket.svc===void 0&&(m.Ticket.svc=(await Promise.resolve().then(()=>L(Zb()))).TicketService),new m.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return m.AssetTransaction.svc===void 0&&(m.AssetTransaction.svc=(await Promise.resolve().then(()=>L(Jb()))).AssetTransactionService),new m.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return m.assetTransaction.Pay.svc===void 0&&(m.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>L(Xb()))).PayAssetTransactionService),new m.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return m.Token.svc===void 0&&(m.Token.svc=(await Promise.resolve().then(()=>L(eA()))).TokenService),new m.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return m.transaction.PlaceOrder.svc===void 0&&(m.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>L(rA()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return m.transaction.ReturnOrder.svc===void 0&&(m.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>L(nA()))).ReturnOrderTransactionService),new m.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>L(sA()))).TransactionNumberService),new m.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return m.UserPool.svc===void 0&&(m.UserPool.svc=(await Promise.resolve().then(()=>L(iA()))).UserPoolService),new m.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return m.WebSite.svc===void 0&&(m.WebSite.svc=(await Promise.resolve().then(()=>L(oA()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};$e.ChevreConsole=uf});var cA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PaymentService=void 0;var me=g(),ve=Y(),xU=E(),UU=["awashimakisen-production","awashimakisen-test"],df=class extends xU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,creditCard:d,method:f,paymentMethodId:p,name:y,additionalProperty:S,ticketToken:_,eventIdsAsOrderedItem:b}=r;if((typeof p!="string"||p==="")&&(typeof _!="string"||_===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!UU.includes(this.options.project.id)&&(!Array.isArray(b)||b.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...d!=null?{creditCard:d}:void 0,...typeof y=="string"?{name:y}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{paymentMethodId:p}:void 0,...typeof _=="string"?{ticketToken:_}:void 0,...Array.isArray(S)?{additionalProperty:S}:void 0,...Array.isArray(b)?{eventIdsAsOrderedItem:b}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async R=>R.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s}=e,{issuedThrough:i,paymentMethod:u,movieTickets:d,name:f,additionalProperty:p,ticketToken:y}=n,{checkedActionId:S}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:i,paymentMethod:u,...Array.isArray(d)?{movieTickets:d}:void 0,...typeof f=="string"?{name:f}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(p)?{additionalProperty:p}:void 0},purpose:s},qs:{checkedActionId:S,async:!0,purpose:{id:s.id}}}).then(async _=>_.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n}=e,{amount:s,creditCard:i,issuedThrough:u,paymentMethod:d,method:f,ticketToken:p,eventIdsAsOrderedItem:y}=r;if(typeof p!="string"||p==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(y)||y.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:s,issuedThrough:u,paymentMethod:d,...i!=null?{creditCard:i}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(y)?{eventIdsAsOrderedItem:y}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async S=>S.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ya.PaymentService=df});var uA=o(Ke=>{"use strict";var DU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),LU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FU=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&DU(r,e,n[s]);return LU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var an;(function(t){let e;e=t.Payment||(t.Payment={})})(an||(Ke.service=an={}));var lf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return an.Payment.svc===void 0&&(an.Payment.svc=(await Promise.resolve().then(()=>FU(cA()))).PaymentService),new an.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=lf});var lA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.OfferService=void 0;var ff=g(),dA=Y(),kU=E(),hf=class extends kU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${dA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[ff.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${dA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[ff.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[ff.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};pa.OfferService=hf});var fA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.PlaceOrderTransactionService=void 0;var cn=g(),BU=Y(),GU=E(),yf=class extends GU.Service{typeOf=BU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[cn.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT],body:n})}async confirm(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",expectedStatusCodes:[cn.status.OK],body:n}).then(async s=>s.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT]})}};va.PlaceOrderTransactionService=yf});var hA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.ReturnOrderTransactionService=void 0;var un=g(),$U=Y(),KU=E(),pf=class extends KU.Service{typeOf=$U.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[un.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[un.status.NO_CONTENT,un.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[un.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[un.status.NO_CONTENT]})}};Sa.ReturnOrderTransactionService=pf});var yA=o(He=>{"use strict";var HU=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vf=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&HU(r,e,n[s]);return WU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxn=He.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(He.service=nt={}));var Sf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>vf(lA()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>vf(fA()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>vf(hA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxn=Sf});var pA=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.OfferService=void 0;var dn=g(),ln=Y(),VU=E(),mf=class extends VU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[dn.status.ACCEPTED],body:{object:r,purpose:n,...typeof s?.id=="string"?{potentialActions:s}:void 0},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[dn.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[dn.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[dn.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:s}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[dn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};ma.OfferService=mf});var vA=o(We=>{"use strict";var zU=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),YU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QU=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&zU(r,e,n[s]);return YU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxc=We.service=void 0;var fn;(function(t){let e;e=t.Offer||(t.Offer={})})(fn||(We.service=fn={}));var _f=class{options;constructor(e){this.options=e}async createOfferInstance(e){return fn.Offer.svc===void 0&&(fn.Offer.svc=(await Promise.resolve().then(()=>QU(pA()))).OfferService),new fn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxc=_f});var SA=o(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.CategoryCodeService=void 0;var _a=g(),ZU=E(),Of=class extends ZU.Service{constructor(e){super({...e,retryableStatusCodes:[_a.status.BAD_GATEWAY,_a.status.FORBIDDEN,_a.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[_a.status.OK]}).then(async r=>({data:await r.json()}))}};Oa.CategoryCodeService=Of});var mA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EmailMessageService=void 0;var Ta=g(),JU=E(),Tf=class extends JU.Service{constructor(e){super({...e,retryableStatusCodes:[Ta.status.BAD_GATEWAY,Ta.status.FORBIDDEN,Ta.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Ta.status.OK]}).then(async e=>({data:await e.json()}))}};Ea.EmailMessageService=Tf});var _A=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.EventService=void 0;var Ie=g(),yr=Y(),XU=E(),Ef=class extends XU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==yr.factory.eventType.ScreeningEvent)throw new yr.factory.errors.Argument("typeOf",`typeOf must be ${yr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![yr.factory.eventType.ScreeningEvent].includes(n))throw new yr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new yr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:s}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:s},expectedStatusCodes:[Ie.status.OK]}).then(async i=>{let u=await i.json();return{data:u,...u.length>0?{sectionCode:u[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>u.json())}};Ca.EventService=Ef});var OA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.PlaceService=void 0;var ga=g(),eD=Y(),tD=E(),Cf=class extends tD.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${eD.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[ga.status.OK]}).then(async r=>({data:await r.json()}))}};ba.PlaceService=Cf});var TA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.HasPOSService=void 0;var Aa=g(),rD=Y(),nD=E(),gf=class extends nD.Service{constructor(e){super({...e,retryableStatusCodes:[Aa.status.BAD_GATEWAY,Aa.status.FORBIDDEN,Aa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${rD.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Aa.status.OK]}).then(async r=>r.json())}};Pa.HasPOSService=gf});var EA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.SellerService=void 0;var kt=g(),sD=E(),bf=class extends sD.Service{constructor(e){super({...e,retryableStatusCodes:[kt.status.BAD_GATEWAY,kt.status.FORBIDDEN,kt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[kt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}};wa.SellerService=bf});var gA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.service=void 0;var iD=SA(),oD=mA(),aD=_A(),cD=OA(),uD=TA(),dD=EA(),CA;(function(t){class e extends iD.CategoryCodeService{}t.CategoryCode=e;class r extends oD.EmailMessageService{}t.EmailMessage=r;class n extends aD.EventService{}t.Event=n;class s extends cD.PlaceService{}t.Place=s;let i;(function(d){class f extends uD.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends dD.SellerService{}t.Seller=u})(CA||(Ra.service=CA={}))});var bA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CreativeWorkService=void 0;var lD=te(),fD=E(),Af=class extends fD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,lD.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ma.CreativeWorkService=Af});var AA=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.CustomerService=void 0;var hD=te(),yD=E(),Pf=class extends yD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,hD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findCustomers(e)}};Ia.CustomerService=Pf});var PA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventService=void 0;var pr=Y(),qa=te(),pD=E(),wf=class extends pD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,qa.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,qa.loadChevreAdmin)({auth:r,endpoint:n});if(![pr.factory.eventStatusType.EventCancelled,pr.factory.eventStatusType.EventPostponed,pr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new pr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new pr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:pr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Na.EventService=wf});var wA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventOfferService=void 0;var vD=te(),SD=E(),Rf=class extends SD.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:s}=this.options,i=await(0,vD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};ja.EventOfferService=Rf});var RA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.EventSeriesService=void 0;var mD=te(),_D=E(),Mf=class extends _D.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,mD.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};xa.EventSeriesService=Mf});var IA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MeService=void 0;var MA=te(),OD=E(),If=class extends OD.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,MA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,MA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};Ua.MeService=If});var jA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.MovieTheaterService=void 0;var Da=Y(),qA=te(),TD=E(),NA=20,qf=class extends TD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,qA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Da.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Da.factory.errors.Argument("page","must be number");if(d<1||d>NA)throw new Da.factory.errors.Argument("limit",`must be >=1 and <=${NA}`);if(f<1)throw new Da.factory.errors.Argument("page","must be >=1");return(await u.createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,qA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};La.MovieTheaterService=qf});var xA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.NoteAboutOrderService=void 0;var Nf=te(),ED=E(),jf=class extends ED.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Fa.NoteAboutOrderService=jf});var DA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferService=void 0;var mt=Y(),UA=te(),CD=E(),xf=class extends CD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,UA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new mt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new mt.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new mt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,UA.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==mt.factory.product.ProductType.EventService&&y!==mt.factory.product.ProductType.Product)throw new mt.factory.errors.Argument("itemOffered.typeOf",`must be ${mt.factory.product.ProductType.EventService} or ${mt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};ka.OfferService=xf});var LA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OfferCatalogService=void 0;var hn=Y(),gD=te(),bD=E(),Uf=class extends bD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,gD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==hn.factory.product.ProductType.EventService&&y!==hn.factory.product.ProductType.Product)throw new hn.factory.errors.Argument("itemOffered.typeOf",`must be ${hn.factory.product.ProductType.EventService} or ${hn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ba.OfferCatalogService=Uf});var kA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OfferCatalogItemService=void 0;var FA=te(),AD=E(),Df=class extends AD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,FA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,FA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ga.OfferCatalogItemService=Df});var BA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.OrderService=void 0;var Rt=Y(),yn=te(),PD=E(),$a=20,Lf=class extends PD.Service{async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,yn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,yn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,yn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,yn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,yn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ka.OrderService=Lf});var GA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.PaymentMethodService=void 0;var wD=te(),RD=E(),Ff=class extends RD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,wD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ha.PaymentMethodService=Ff});var $A=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ProductService=void 0;var pn=Y(),MD=te(),ID=E(),kf=class extends ID.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,MD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==pn.factory.product.ProductType.EventService&&f!==pn.factory.product.ProductType.Product)throw new pn.factory.errors.Argument("typeOf",`must be ${pn.factory.product.ProductType.EventService} or ${pn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Wa.ProductService=kf});var HA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ReservationService=void 0;var vn=Y(),Va=te(),qD=E(),KA=20,Bf=class extends qD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Va.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new vn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new vn.factory.errors.Argument("page","must be number");if(d<1||d>KA)throw new vn.factory.errors.Argument("limit",`must be >=1 and <=${KA}`);if(f<1)throw new vn.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Va.loadChevreAdmin)({auth:i,endpoint:u}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Va.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;if(typeof i?.id!="string"||i.id.length===0)throw new vn.factory.errors.ArgumentNull("seller.id");let u=await(0,Va.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};za.ReservationService=Bf});var WA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.SellerService=void 0;var ND=te(),jD=E(),Gf=class extends jD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,ND.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Ya.SellerService=Gf});var VA=o(Ve=>{"use strict";var xD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&xD(r,e,n[s]);return UD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var B;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let _;_=t.Order||(t.Order={});let b;b=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(Ve.service=B={}));var qe=[],$f=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createCreativeWorkInstance(e){return B.CreativeWork.svc===void 0&&(B.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(bA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qe})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(AA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(PA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(wA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(RA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:qe})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(IA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(jA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:qe})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(xA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(DA()))).OfferService),new B.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return B.OfferCatalog.svc===void 0&&(B.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(LA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(kA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:qe})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(BA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:qe})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(GA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:qe})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce($A()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:qe})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(HA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:qe})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce(WA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};Ve.CloudAdmin=$f});var zA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.OrderService=void 0;var Bt=te(),DD=E(),Kf=class extends DD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:b}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...y!==void 0?{customer:y}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,..._!==void 0?{orderDateThrough:_}:void 0,...typeof b=="string"?{orderNumber:b}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,_=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:b}=await _.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:b}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0})}};Qa.OrderService=Kf});var YA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.DeliveryService=void 0;var LD=te(),FD=E(),Hf=class extends FD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,LD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Za.DeliveryService=Hf});var ZA=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.ReservationService=void 0;var QA=te(),kD=E(),Wf=class extends kD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,QA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,QA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Ja.ReservationService=Wf});var JA=o(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.TokenService=void 0;var BD=E(),Vf=class extends BD.Service{};Xa.TokenService=Vf});var XA=o(ze=>{"use strict";var GD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$D=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ec=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&GD(r,e,n[s]);return $D(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var tc=g(),Ne;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(Ne||(ze.service=Ne={}));var rc=[tc.status.BAD_GATEWAY,tc.status.SERVICE_UNAVAILABLE,tc.status.FORBIDDEN,tc.status.UNAUTHORIZED],zf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOrderInstance(e){return Ne.Order.svc===void 0&&(Ne.Order.svc=(await Promise.resolve().then(()=>ec(zA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:rc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>ec(YA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:rc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>ec(ZA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:rc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>ec(JA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:rc})}};ze.CloudAsset=zf});var eP=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.CreativeWorkService=void 0;var KD=g(),HD=E(),Yf=class extends HD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[KD.status.OK]}).then(async r=>r.json())}};nc.CreativeWorkService=Yf});var tP=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.PaymentProductService=void 0;var WD=g(),VD=E(),Qf=class extends VD.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[WD.status.OK]}).then(async i=>i.json())}};sc.PaymentProductService=Qf});var rP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.ProductService=void 0;var Zf=g(),zD=E(),Jf=class extends zD.Service{async search(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:s,seller:i}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Zf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}};ic.ProductService=Jf});var nP=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.EventOfferService=void 0;var YD=g(),QD=E(),ZD="/eventOffers",Xf=class extends QD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:ZD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[YD.status.OK]}).then(async d=>d.json())}};oc.EventOfferService=Xf});var sP=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.PlaceService=void 0;var eh=g(),JD=Y(),XD=E(),th=class extends XD.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${JD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[eh.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[eh.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[eh.status.OK]}).then(async f=>f.json())}};ac.PlaceService=th});var iP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.SeatOfferService=void 0;var eL=g(),tL=E(),rL="/seatOffers",rh=class extends tL.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:rL,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[eL.status.OK]}).then(async u=>u.json())}};cc.SeatOfferService=rh});var oP=o(Ye=>{"use strict";var nL=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),sL=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vr=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&nL(r,e,n[s]);return sL(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var nh=g(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[nh.status.BAD_GATEWAY,nh.status.FORBIDDEN,nh.status.UNAUTHORIZED],sh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(eP()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>vr(tP()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Sr})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>vr(rP()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Sr})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>vr(nP()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>vr(sP()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Sr})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>vr(iP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=sh});var uP=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PaymentService=void 0;var le=g(),ge=Y(),be=te(),iL=E(),aP=1e3,oL=5e3;async function cP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var ih=class extends iL.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:w}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:i});return b.authorizeCreditCard({object:{...n,ticketToken:w},purpose:s})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,{checkedActionId:i}=r,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y}),{ticketToken:b}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await _.createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:b},purpose:s},{checkedActionId:i})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:w}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:i});if(typeof w!="string"||w==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return b.publishCreditCardPaymentUrl({object:{...n,ticketToken:w},purpose:s})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),_=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},b=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(b.length!==1)throw new ge.factory.errors.Argument("object.movieTickets","movieTickets length must be 1");return p.checkMovieTicketAsync({object:[{typeOf:ge.factory.service.paymentService.PaymentServiceType.MovieTicket,id:y,paymentMethod:{typeOf:S},movieTickets:b,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:_})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),b=!1,w=setTimeout(()=>{b=!0},i),R,q=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!b;){try{R=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(N){q=N}await cP(oL),console.log("retrying issueTicketThroughMovieTicket...",q?.name,b)}if(typeof R?.ticketToken=="string")return R;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>aP?r.intervalAfterIssueTicketInMS:aP,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await cP(d),y}};uc.PaymentService=ih});var dP=o(Qe=>{"use strict";var aL=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cL=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uL=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&aL(r,e,n[s]);return cL(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var dc=g(),Sn;(function(t){let e;e=t.Payment||(t.Payment={})})(Sn||(Qe.service=Sn={}));var dL=[dc.status.BAD_GATEWAY,dc.status.SERVICE_UNAVAILABLE,dc.status.FORBIDDEN,dc.status.UNAUTHORIZED],oh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return Sn.Payment.svc===void 0&&(Sn.Payment.svc=(await Promise.resolve().then(()=>uL(uP()))).PaymentService),new Sn.Payment.svc({...this.options,...e,retryableStatusCodes:dL})}};Qe.CloudPay=oh});var yP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.authorizeOfferAsync=fL;lc.voidAuthorizeOfferAsync=hL;var re=Y(),lP=2e4,fP=1e3;async function hP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function lL(t){let e;switch(t.reason){case re.factory.errorCode.Argument:e=new re.factory.errors.Argument("",t.message);break;case re.factory.errorCode.ArgumentNull:e=new re.factory.errors.ArgumentNull("",t.message);break;case re.factory.errorCode.Unauthorized:e=new re.factory.errors.Unauthorized(t.message);break;case re.factory.errorCode.Forbidden:e=new re.factory.errors.Forbidden(t.message);break;case re.factory.errorCode.NotFound:e=new re.factory.errors.NotFound("",t.message);break;case re.factory.errorCode.AlreadyInUse:e=new re.factory.errors.AlreadyInUse("",[],t.message);break;case re.factory.errorCode.RateLimitExceeded:e=new re.factory.errors.RateLimitExceeded(t.message);break;case re.factory.errorCode.GatewayTimeout:e=new re.factory.errors.GatewayTimeout(t.message);break;default:e=new re.factory.errors.Internal(t.message)}return e}function fL(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},lP);let s,i;for(;s===void 0&&i===void 0;){if(await hP(fP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===re.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=lL(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw i}}function hL(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},lP);let s,i;for(;s===void 0&&i===void 0;){if(await hP(fP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(u.status===re.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var vP=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PlaceOrderCOAService=void 0;var pP=Y(),ah=te(),yL=E(),ch=yP(),uh=class extends yL.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:b,retryableStatusCodes:w}=this.options,q=await(await(0,ah.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:b})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),N=await(0,ch.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new pP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,ah.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ch.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:_,seller:b,disableAutoRetry:w,retryableStatusCodes:R}=this.options,N=await(await(0,ah.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:_,seller:{id:typeof b?.id=="string"?b.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),C=await(0,ch.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new pP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};fc.PlaceOrderCOAService=uh});var SP=o(Ze=>{"use strict";var pL=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vL=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SL=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&pL(r,e,n[s]);return vL(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var hc=g(),mn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(mn||(Ze.service=mn={}));var mL=[hc.status.BAD_GATEWAY,hc.status.SERVICE_UNAVAILABLE,hc.status.FORBIDDEN,hc.status.UNAUTHORIZED],dh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return mn.transaction.PlaceOrder.svc===void 0&&(mn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>SL(vP()))).PlaceOrderCOAService),new mn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:mL})}};Ze.CloudTxc=dh});var mP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.OfferService=void 0;var _L=Y(),lh=te(),OL=E(),fh=class extends OL.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,lh.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:_,eventOfferId:b}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:_,eventOfferId:b})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,lh.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:_L.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,lh.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};yc.OfferService=fh});var _P=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.PlaceOrderTransactionService=void 0;var mr=g(),_r=te(),TL=E(),hh=class extends TL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:s})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};pc.PlaceOrderTransactionService=hh});var OP=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.ReturnOrderTransactionService=void 0;var yh=te(),EL=E(),ph=class extends EL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,yh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,yh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,yh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};vc.ReturnOrderTransactionService=ph});var TP=o(Je=>{"use strict";var CL=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vh=Je&&Je.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&CL(r,e,n[s]);return gL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var Sc=g(),st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(Je.service=st={}));var Sh=[Sc.status.BAD_GATEWAY,Sc.status.SERVICE_UNAVAILABLE,Sc.status.FORBIDDEN,Sc.status.UNAUTHORIZED],mh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>vh(mP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:Sh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>vh(_P()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:Sh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>vh(OP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:Sh})}};Je.CloudTxn=mh});var EP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleService=void 0;var bL=g(),AL=E(),_h=class extends AL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[bL.status.OK]}).then(async r=>r.json())}};mc.RuleService=_h});var gP=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.RuleSetService=void 0;var CP=g(),PL=E(),Oh=class extends PL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[CP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[CP.status.NO_CONTENT]})}};_c.RuleSetService=Oh});var AP=o(Xe=>{"use strict";var wL=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bP=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&wL(r,e,n[s]);return RL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var Th=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>bP(EP()))).RuleService),new Mt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Mt.RuleSet.svc===void 0&&(Mt.RuleSet.svc=(await Promise.resolve().then(()=>bP(gP()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=Th});var te=o(X=>{"use strict";var ML=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IL=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ML(r,e,n[s]);return IL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=jL;X.loadChevreAsset=xL;X.loadChevreAdmic=UL;X.loadChevreAdmin=DL;X.loadChevreConsole=LL;X.loadChevrePay=FL;X.loadChevreTxn=kL;X.loadChevreTxc=BL;X.loadService=GL;X.loadCloudAdmin=$L;X.loadCloudAsset=KL;X.loadCloudSearch=HL;X.loadCloudPay=WL;X.loadCloudTxc=VL;X.loadCloudTxn=zL;X.loadWaiterAdmin=YL;var qL=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return qL.factory}});var NL=Oe(Ls());X.transporters=NL;var Eh;async function jL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(eg()))).Chevre),new Eh(...t)}var Ch;async function xL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(ig()))).ChevreAsset),new Ch(...t)}var gh;async function UL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(cg()))).ChevreAdmic),new gh(...t)}var bh;async function DL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(Kg()))).ChevreAdmin),new bh(...t)}var Ah;async function LL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(aA()))).ChevreConsole),new Ah(...t)}var Ph;async function FL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(uA()))).ChevrePay),new Ph(...t)}var wh;async function kL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(yA()))).ChevreTxn),new wh(...t)}var Rh;async function BL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(vA()))).ChevreTxc),new Rh(...t)}var Mh;async function GL(){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(gA()))).service),Mh}var Ih;async function $L(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(VA()))).CloudAdmin),new Ih(...t)}var qh;async function KL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(XA()))).CloudAsset),new qh(...t)}var Nh;async function HL(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(oP()))).CloudSearch),new Nh(...t)}var jh;async function WL(...t){return jh===void 0&&(jh=(await Promise.resolve().then(()=>Oe(dP()))).CloudPay),new jh(...t)}var xh;async function VL(...t){return xh===void 0&&(xh=(await Promise.resolve().then(()=>Oe(SP()))).CloudTxc),new xh(...t)}var Uh;async function zL(...t){return Uh===void 0&&(Uh=(await Promise.resolve().then(()=>Oe(TP()))).CloudTxn),new Uh(...t)}var Dh;async function YL(...t){return Dh===void 0&&(Dh=(await Promise.resolve().then(()=>Oe(AP()))).WaiterAdmin),new Dh(...t)}});var PP=o(Gt=>{"use strict";var QL=Gt&&Gt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZL=Gt&&Gt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&QL(e,t,r)};Object.defineProperty(Gt,"__esModule",{value:!0});ZL(te(),Gt)});var kP=o((M5,FP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(t){var e={exports:{}};return t(e,e.exports),e.exports}var JL=Ht(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(u?u(R):D())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function b(){var h=setTimeout;return function(){return h(R,1)}}var w=new Array(1e3);function R(){for(var h=0;h<s;h+=2)(0,w[h])(w[h+1]),w[h]=void 0,w[h+1]=void 0;s=0}var q,N,C,M,D=void 0;function k(h,v){var T=this,A=new this.constructor(G);A[x]===void 0&&a(A);var P=T._state;if(P){var F=arguments[P-1];d(function(){return tt(P,A,F,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(G);return oe(v,h),v}D=S?function(){return process.nextTick(R)}:y?(N=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=R,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:b()}catch{return b()}})():b();var x=Math.random().toString(36).substring(2);function G(){}var H=void 0,$=1,Q=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?ie(A,P._result):P._state===Q?ee(A,P._result):et(P,void 0,function(F){return oe(A,F)},function(F){return ee(A,F)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,F){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(F,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(P=typeof(A=v),A===null||P!=="object"&&P!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(F){return void ee(h,F)}Te(h,v,T)}var A,P}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(h,v){h._state===H&&(h._result=v,h._state=$,h._subscribers.length!==0&&d(it,h))}function ee(h,v){h._state===H&&(h._state=Q,h._result=v,d(se,h))}function et(h,v,T,A){var P=h._subscribers,F=P.length;h._onerror=null,P[F]=v,P[F+$]=T,P[F+Q]=A,F===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,F=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,F):P(F);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),F=void 0,z=void 0,Z=!0;if(P){try{F=T(A)}catch(ue){Z=!1,z=ue}if(v===F)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else F=A;v._state!==H||(P&&Z?oe(v,F):Z===!1?ee(v,z):h===$?ie(v,F):h===Q&&ee(v,F))}var Ue=0;function a(h){h[x]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var c=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(G),this.promise[x]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===H&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var A=this._instanceConstructor,P=A.resolve;if(P===K){var F=void 0,z=void 0,Z=!1;try{F=v.then}catch(Ae){Z=!0,z=Ae}if(F===k&&v._state!==H)this._settledAt(v._state,T,v._result);else if(typeof F!="function")this._remaining--,this._result[T]=v;else if(A===l){var ue=new A(G);Z?ee(ue,z):Te(ue,v,F),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===H&&(this._remaining--,v===Q?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Q,T,P)})},h})(),l=(function(){function h(v){this[x]=Ue++,this._result=this._state=void 0,this._subscribers=[],G!==v&&(typeof v!="function"&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof h?(function(T,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var T=this,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,F=0;F<P;F++)v.resolve(h[F]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(G);return ee(v,h),v},l._setScheduler=function(h){u=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Kt!==void 0)h=Kt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),XL={__proto__:null,default:{}},Gh=Ht(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Kt!==void 0&&Kt.crypto&&(i=Kt.crypto),!i)try{i=XL}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var D;return C.prototype=M,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||b).stringify(this)},concat:function(C){var M=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)M[k+x>>>2]|=(D[x>>>2]>>>24-x%4*8&255)<<24-(k+x)%4*8;else for(var G=0;G<K;G+=4)M[k+G>>>2]=D[G>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],D=0;D<C;D+=4)M.push(u());return new S.init(M,C)}}),_=f.enc={},b=_.Hex={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=M[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,M/2)}},w=_.Latin1={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,M)}},R=_.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),H=(G=C?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*H,K);if(H){for(var Q=0;Q<H;Q+=x)this._doProcessBlock(k,Q);M=k.splice(0,H),D.sigBytes-=$}return new S.init(M,$)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=q.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,D){return new C.init(D).finalize(M)}},_createHmacHelper:function(C){return function(M,D){return new N.HMAC.init(C,D).finalize(M)}}});var N=f.algo={};return f})(Math),r)}),NP=Ht(function(t,e){var r;t.exports=(r=Gh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function b(N){for(var C=n.sqrt(N),M=2;M<=C;M++)if(!(N%M))return!1;return!0}function w(N){return 4294967296*(N-(0|N))|0}for(var R=2,q=0;q<64;)b(R)&&(q<8&&(p[q]=w(n.pow(R,.5))),y[q]=w(n.pow(R,1/3)),q++),R++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(b,w){for(var R=this._hash.words,q=R[0],N=R[1],C=R[2],M=R[3],D=R[4],k=R[5],K=R[6],x=R[7],G=0;G<64;G++){if(G<16)S[G]=0|b[w+G];else{var H=S[G-15],$=S[G-2];S[G]=((H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3)+S[G-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[G-16]}var Q=q&N^q&C^N&C,Te=x+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[G]+S[G];x=K,K=k,k=D,D=M+Te|0,M=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Q)|0}R[0]=R[0]+q|0,R[1]=R[1]+N|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+D|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+x|0},_doFinalize:function(){var b=this._data,w=b.words,R=8*this._nDataBytes,q=8*b.sigBytes;return w[q>>>5]|=128<<24-q%32,w[14+(q+64>>>9<<4)]=n.floor(R/4294967296),w[15+(q+64>>>9<<4)]=R,b.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var b=d.clone.call(this);return b._hash=this._hash.clone(),b}});s.SHA256=d._createHelper(_),s.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),eF=Ht(function(t,e){var r,n;t.exports=(n=(r=Gh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(y>>>6*(3-S)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,_,b){for(var w=[],R=0,q=0;q<_;q++)if(q%4){var N=b[S.charCodeAt(q-1)]<<q%4*2,C=b[S.charCodeAt(q)]>>>6-q%4*2;w[R>>>2]|=(N|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),wP=Ht(function(t,e){t.exports=Gh.enc.Hex}),jP=Ht(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var A=32767&c,P=c>>15;--T>=0;){var F=32767&this[a],z=this[a++]>>15,Z=P*F+z*A;v=((F=A*F+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*z+(v>>>30),l[h++]=1073741823&F}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,h,v,T){for(;--T>=0;){var A=c*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var A=16383&c,P=c>>14;--T>=0;){var F=16383&this[a],z=this[a++]>>14,Z=P*F+z*A;v=((F=A*F+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*z,l[h++]=268435455&F}return v},r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52;var u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function _(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function b(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function q(a,c){return a|c}function N(a,c){return a^c}function C(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function D(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function x(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}b.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},b.prototype.revert=function(a){return a},b.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},b.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},b.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],h=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,h,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)c[l]=0;c[A]=P,c.t=this.t+A+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)c[A-l-1]|=(this[A]&T)<<v,c[A-l]=this[A]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=a.s,F=this.DB-_(h[h.t-1]);F>0?(h.lShiftTo(F,T),v.lShiftTo(F,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var ue=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=c??s();for(T.dlShiftTo(Pe,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Pe>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,Cr,l,Pe,0,z))<Cr)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),A!=P&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),F>0&&l.rShiftTo(F,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=c.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,h),(a&1<<T)>0)c.mulTo(h,v,l);else{var A=l;l=h,h=A}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%c;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<c?(l=(this[A]&(1<<P)-1)<<c-P,l|=this[--A]>>(P+=this.DB-c)):(l=this[A]>>(P-=c)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new b(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},x.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},x.prototype.revert=function(a){return a},x.prototype.reduce=function(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)},x.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},x.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var G,H,$,Q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/Q[Q.length-1];function oe(){var a;a=new Date().getTime(),H[$++]^=255&a,H[$++]^=a>>8&255,H[$++]^=a>>16&255,H[$++]^=a>>24&255,$>=Ue&&($-=Ue)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),h=S(l),v=s(),T=s(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var F=y(a,P);F<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=c*A+F,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),c.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,c,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=c(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=c(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=c(v,a[h]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],c[l++]=h&this.DM,h>>=this.DB;h+=a.s}c.s=h<0?-1:0,h>0?c[l++]=h:h<-1&&(c[l++]=this.DV+h),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var h,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,c);v<h;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var h=l.t=this.t+a.t-c;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(c-this.t,0);h<a.t;++h)l[this.t+h-c]=this.am(c-h,a[h],l,0,0,this.t+h-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(c*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var h=c.shiftRight(l);(a=a+1>>1)>Q.length&&(a=Q.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Q[Math.floor(Math.random()*Q.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(c)!=0){for(var P=1;P++<l&&A.compareTo(c)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,q,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,N,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,C,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new b(c):c.isEven()?new x(c):new w(c);var A=new Array,P=3,F=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!0,ye=s();for(v=_(a[Ee])-1;Ee>=0;){for(v>=F?ue=a[Ee]>>v-F&z:(ue=(a[Ee]&(1<<v+1)-1)<<F-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-F)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),c&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Q[Q.length-1]){for(c=0;c<Q.length;++c)if(l[0]==Q[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Q.length;){for(var h=Q[c],v=c+1;v<Q.length&&h<Te;)h*=Q[v++];for(h=l.modInt(h);c<v;)if(h%Q[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=x,H==null){var se;if(H=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)H[$++]=ie[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)H[$++]=255&ee.charCodeAt(se)}}for(;$<Ue;)se=Math.floor(65536*Math.random()),H[$++]=se>>>8,H[$++]=255&se;$=0,oe()}function et(){if(G==null){for(oe(),(G=new tt).init(H),$=0;$<H.length;++$)H[$]=0;$=0}return G.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=et()},tt.prototype.init=function(a){var c,l,h;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)h=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Kt)}),RP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},MP={sha256:NP};function xP(t,e){if(this.n=null,this.e=0,!(t!=null&&e!=null&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new jP.BigInteger(t,16),this.e=parseInt(e,16)}xP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new jP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in RP){var d=RP[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!MP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=MP[n.alg](t).toString();return n.hash===s};for(IP=[],xe=[],UP=typeof Uint8Array<"u"?Uint8Array:Array,Lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)IP[$t]=Lh[$t],xe[Lh.charCodeAt($t)]=$t;var IP,xe,UP,Lh,$t;xe[45]=62,xe[95]=63;var DP=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],u=new UP((function(p,y,S){return 3*(y+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=xe[t.charCodeAt(r)]<<18|xe[t.charCodeAt(r+1)]<<12|xe[t.charCodeAt(r+2)]<<6|xe[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function LP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function qP(t){return t=LP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(DP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Fh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var s=e[n].toString(16);r+=s.length===2?s:"0"+s}return r})(DP(LP(t)))}var tF=Ht(function(t){var e,r;e=Kt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function rF(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,_){i.push(S=S.toLowerCase()),u.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function nF(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function kh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}kh.prototype=Error.prototype,ne.prototype=Error.prototype;var sF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();JL.polyfill();var Bh="RS256",Oc=function(t){return typeof t=="number"},iF=function(){return new Date};function _n(t){var e=t||{};if(this.jwksCache=e.jwksCache||new sF,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:iF,this.leeway<0||this.leeway>300)throw new kh("The leeway should be positive and lower than five minutes.");if(Bh!==this.expectedAlg)throw new kh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Bh+'".')}_n.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Fh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,_=n.payload.nbf,b=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+Bh+'".'),null);this.getRsaVerifier(y,d,function(M,D){if(M)return r(M,null);if(!D.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!q||typeof q!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!Oc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!b||!Oc(b))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(_&&Oc(_)){var x=_-C.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+G+'"'),null)}if(C.maxAge){if(!R||!Oc(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var H=R+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(H),N>$)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+N+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},_n.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||tF(u.iss,".well-known","jwks.json"),(fetch=="undefined"?rF:fetch)(d).then(nF).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===u.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Fh((S=_).n),exp:Fh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new xP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},_n.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(qP(n[0])),r=JSON.parse(qP(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},_n.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=NP(t),u=wP.stringify(i),d=u.substring(0,u.length/2),f=wP.parse(d),p=eF.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},FP.exports=_n});var On=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.AuthorizeError=void 0;var $h=class extends Error{error;errorDescription;state};Tc.AuthorizeError=$h});var BP=o(Or=>{"use strict";var oF=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var aF=oF(tr()),Kh=(0,aF.default)("cinerino-sdk:auth:popupHandler"),Hh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(Kh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}Kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){Kh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Or.PopupHandler=Hh});var GP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.PopupAuthenticationHandler=void 0;var cF=On(),uF=BP(),Wh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.location.hash}catch(i){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new uF.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new cF.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Ec.PopupAuthenticationHandler=Wh});var zh=o(Tr=>{"use strict";var dF=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var lF=dF(tr()),fF=(0,lF.default)("cinerino-sdk:auth:iframeHandler"),Vh=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(fF("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Tr.IframeHandler=Vh});var $P=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentAuthenticationHandler=void 0;var hF=On(),yF=zh(),Yh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new yF.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new hF.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentAuthenticationHandler=Yh});var KP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.SilentLogoutHandler=void 0;var pF=On(),vF=zh(),Qh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new vF.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new pF.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};gc.SilentLogoutHandler=Qh});var HP=o(()=>{});var WP=o(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.LoginTicket=void 0;var Zh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};bc.LoginTicket=Zh});var VP=o(_t=>{"use strict";var SF=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_t,"__esModule",{value:!0});_t.OAuth2client=_t.MAX_RETRY_NUM=void 0;var mF=HP(),_F=SF(tr()),Ac=g(),OF=Ls(),TF=WP(),Wt=(0,_F.default)("cinerino-sdk:auth:oAuth2client"),EF=1e3;_t.MAX_RETRY_NUM=2;async function CF(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Jh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,mF.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==Ac.status.OK)if(d.status===Ac.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await CF(EF*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new OF.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==Ac.status.OK)if(u.status===Ac.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:_}=f;d={access_token:p,id_token:y,token_type:_,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new TF.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=Jh});var QP=o(Er=>{"use strict";var YP=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var gF=YP(tr()),zP=YP(kP()),Xh=Hu(),bF=On(),AF=GP(),PF=$P(),wF=KP(),RF=VP(),Pc=(0,gF.default)("cinerino-sdk:auth:implicitGrantClient"),ey=class t extends RF.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Pc("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await PF.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(s)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await AF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await wF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Pc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Pc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Xh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new bF.AuthorizeError(n.error_description);throw s.error=n.error,s.errorDescription=n.error_description,s.state=n.state,s}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let s=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s)}if(typeof n.id_token=="string"){let i=new zP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,s)=>{new zP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(Pc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Xh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Xh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=ey});var ZP=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=IF;var Ot=PP();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var MF=QP();function IF(t){return new MF.ImplicitGrantClient(t)}});var $5=window.cinerino=ZP();})();
|
|
4
|
+
`+e.prev}function ks(t,e){var r=Cu(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=vt(t,s)?e(t[s],t):""}var i=typeof mu=="function"?mu(t):[],u;if(sr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&u["$"+f]instanceof Symbol||($T.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof mu=="function")for(var p=0;p<i.length;p++)KT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var JT=o((x2,ZT)=>{"use strict";var Fq=Fr(),kq=xt(),$s=function(t,e,r){for(var n=t,s;(s=n.next)!=null;n=s)if(s.key===e)return n.next=s.next,r||(s.next=t.next,t.next=s),s},Bq=function(t,e){if(t){var r=$s(t,e);return r&&r.value}},Gq=function(t,e,r){var n=$s(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},$q=function(t,e){return t?!!$s(t,e):!1},Kq=function(t,e){if(t)return $s(t,e,!0)};ZT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new kq("Side channel does not contain "+Fq(n))},delete:function(n){var s=Kq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Bq(e,n)},has:function(n){return $q(e,n)},set:function(n,s){e||(e={next:void 0}),Gq(e,n,s)}};return r}});var wu=o((U2,XT)=>{"use strict";XT.exports=Object});var tE=o((D2,eE)=>{"use strict";eE.exports=Error});var nE=o((L2,rE)=>{"use strict";rE.exports=EvalError});var iE=o((F2,sE)=>{"use strict";sE.exports=RangeError});var aE=o((k2,oE)=>{"use strict";oE.exports=ReferenceError});var uE=o((B2,cE)=>{"use strict";cE.exports=SyntaxError});var lE=o((G2,dE)=>{"use strict";dE.exports=URIError});var hE=o(($2,fE)=>{"use strict";fE.exports=Math.abs});var pE=o((K2,yE)=>{"use strict";yE.exports=Math.floor});var SE=o((H2,vE)=>{"use strict";vE.exports=Math.max});var _E=o((W2,mE)=>{"use strict";mE.exports=Math.min});var TE=o((V2,OE)=>{"use strict";OE.exports=Math.pow});var CE=o((z2,EE)=>{"use strict";EE.exports=Math.round});var bE=o((Y2,gE)=>{"use strict";gE.exports=Number.isNaN||function(e){return e!==e}});var PE=o((Q2,AE)=>{"use strict";var Hq=bE();AE.exports=function(e){return Hq(e)||e===0?e:e<0?-1:1}});var RE=o((Z2,wE)=>{"use strict";wE.exports=Object.getOwnPropertyDescriptor});var Ru=o((J2,ME)=>{"use strict";var Ks=RE();if(Ks)try{Ks([],"length")}catch{Ks=null}ME.exports=Ks});var qE=o((X2,IE)=>{"use strict";var Hs=Object.defineProperty||!1;if(Hs)try{Hs({},"a",{value:1})}catch{Hs=!1}IE.exports=Hs});var jE=o((e3,NE)=>{"use strict";NE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var DE=o((t3,UE)=>{"use strict";var xE=typeof Symbol<"u"&&Symbol,Wq=jE();UE.exports=function(){return typeof xE!="function"||typeof Symbol!="function"||typeof xE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Wq()}});var Mu=o((r3,LE)=>{"use strict";LE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Iu=o((n3,FE)=>{"use strict";var Vq=wu();FE.exports=Vq.getPrototypeOf||null});var GE=o((s3,BE)=>{"use strict";var zq="Function.prototype.bind called on incompatible ",Yq=Object.prototype.toString,Qq=Math.max,Zq="[object Function]",kE=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},Jq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Xq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};BE.exports=function(e){var r=this;if(typeof r!="function"||Yq.apply(r)!==Zq)throw new TypeError(zq+r);for(var n=Jq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,kE(n,arguments));return Object(y)===y?y:this}return r.apply(e,kE(n,arguments))},u=Qq(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Xq(d,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var kr=o((i3,$E)=>{"use strict";var e1=GE();$E.exports=Function.prototype.bind||e1});var Ws=o((o3,KE)=>{"use strict";KE.exports=Function.prototype.call});var qu=o((a3,HE)=>{"use strict";HE.exports=Function.prototype.apply});var VE=o((c3,WE)=>{"use strict";WE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var YE=o((u3,zE)=>{"use strict";var t1=kr(),r1=qu(),n1=Ws(),s1=VE();zE.exports=s1||t1.call(n1,r1)});var Nu=o((d3,QE)=>{"use strict";var i1=kr(),o1=xt(),a1=Ws(),c1=YE();QE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new o1("a function is required");return c1(i1,a1,e)}});var rC=o((l3,tC)=>{"use strict";var u1=Nu(),ZE=Ru(),XE;try{XE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var ju=!!XE&&ZE&&ZE(Object.prototype,"__proto__"),eC=Object,JE=eC.getPrototypeOf;tC.exports=ju&&typeof ju.get=="function"?u1([ju.get]):typeof JE=="function"?function(e){return JE(e==null?e:eC(e))}:!1});var aC=o((f3,oC)=>{"use strict";var nC=Mu(),sC=Iu(),iC=rC();oC.exports=nC?function(e){return nC(e)}:sC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return sC(e)}:iC?function(e){return iC(e)}:null});var uC=o((h3,cC)=>{"use strict";var d1=Function.prototype.call,l1=Object.prototype.hasOwnProperty,f1=kr();cC.exports=f1.call(d1,l1)});var Ys=o((y3,pC)=>{"use strict";var V,h1=wu(),y1=tE(),p1=nE(),v1=iE(),S1=aE(),cr=uE(),ar=xt(),m1=lE(),_1=hE(),O1=pE(),T1=SE(),E1=_E(),C1=TE(),g1=CE(),b1=PE(),hC=Function,xu=function(t){try{return hC('"use strict"; return ('+t+").constructor;")()}catch{}},Br=Ru(),A1=qE(),Uu=function(){throw new ar},P1=Br?(function(){try{return arguments.callee,Uu}catch{try{return Br(arguments,"callee").get}catch{return Uu}}})():Uu,ir=DE()(),Se=aC(),w1=Iu(),R1=Mu(),yC=qu(),Gr=Ws(),or={},M1=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":y1,"%eval%":eval,"%EvalError%":p1,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":hC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":h1,"%Object.getOwnPropertyDescriptor%":Br,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":v1,"%ReferenceError%":S1,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":P1,"%TypedArray%":M1,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":m1,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Gr,"%Function.prototype.apply%":yC,"%Object.defineProperty%":A1,"%Object.getPrototypeOf%":w1,"%Math.abs%":_1,"%Math.floor%":O1,"%Math.max%":T1,"%Math.min%":E1,"%Math.pow%":C1,"%Math.round%":g1,"%Math.sign%":b1,"%Reflect.getPrototypeOf%":R1};if(Se)try{null.error}catch(t){dC=Se(Se(t)),Dt["%Error.prototype%"]=dC}var dC,I1=function t(e){var r;if(e==="%AsyncFunction%")r=xu("async function () {}");else if(e==="%GeneratorFunction%")r=xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=xu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Dt[e]=r,r},lC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$r=kr(),Vs=uC(),q1=$r.call(Gr,Array.prototype.concat),N1=$r.call(yC,Array.prototype.splice),fC=$r.call(Gr,String.prototype.replace),zs=$r.call(Gr,String.prototype.slice),j1=$r.call(Gr,RegExp.prototype.exec),x1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U1=/\\(\\)?/g,D1=function(e){var r=zs(e,0,1),n=zs(e,-1);if(r==="%"&&n!=="%")throw new cr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cr("invalid intrinsic syntax, expected opening `%`");var s=[];return fC(e,x1,function(i,u,d,f){s[s.length]=d?fC(f,U1,"$1"):u||i}),s},L1=function(e,r){var n=e,s;if(Vs(lC,n)&&(s=lC[n],n="%"+s[0]+"%"),Vs(Dt,n)){var i=Dt[n];if(i===or&&(i=I1(n)),typeof i>"u"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new cr("intrinsic "+e+" does not exist!")};pC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(j1(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=D1(e),s=n.length>0?n[0]:"",i=L1("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],N1(n,q1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],b=zs(_,0,1),w=zs(_,-1);if((b==='"'||b==="'"||b==="`"||w==='"'||w==="'"||w==="`")&&b!==w)throw new cr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),s+="."+_,u="%"+s+"%",Vs(Dt,u))d=Dt[u];else if(d!=null){if(!(_ in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Br&&y+1>=n.length){var R=Br(d,_);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[_]}else S=Vs(d,_),d=d[_];S&&!f&&(Dt[u]=d)}}return d}});var Du=o((p3,mC)=>{"use strict";var vC=Ys(),SC=Nu(),F1=SC([vC("%String.prototype.indexOf%")]);mC.exports=function(e,r){var n=vC(e,!!r);return typeof n=="function"&&F1(e,".prototype.")>-1?SC([n]):n}});var Lu=o((v3,OC)=>{"use strict";var k1=Ys(),Kr=Du(),B1=Fr(),G1=xt(),_C=k1("%Map%",!0),$1=Kr("Map.prototype.get",!0),K1=Kr("Map.prototype.set",!0),H1=Kr("Map.prototype.has",!0),W1=Kr("Map.prototype.delete",!0),V1=Kr("Map.prototype.size",!0);OC.exports=!!_C&&function(){var e,r={assert:function(n){if(!r.has(n))throw new G1("Side channel does not contain "+B1(n))},delete:function(n){if(e){var s=W1(e,n);return V1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return $1(e,n)},has:function(n){return e?H1(e,n):!1},set:function(n,s){e||(e=new _C),K1(e,n,s)}};return r}});var EC=o((S3,TC)=>{"use strict";var z1=Ys(),Zs=Du(),Y1=Fr(),Qs=Lu(),Q1=xt(),ur=z1("%WeakMap%",!0),Z1=Zs("WeakMap.prototype.get",!0),J1=Zs("WeakMap.prototype.set",!0),X1=Zs("WeakMap.prototype.has",!0),eN=Zs("WeakMap.prototype.delete",!0);TC.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new Q1("Side channel does not contain "+Y1(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return eN(e,s)}else if(Qs&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?Z1(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?X1(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),J1(e,s,i)):Qs&&(r||(r=Qs()),r.set(s,i))}};return n}:Qs});var gC=o((m3,CC)=>{"use strict";var tN=xt(),rN=Fr(),nN=JT(),sN=Lu(),iN=EC(),oN=iN||sN||nN;CC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new tN("Side channel does not contain "+rN(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,s){e||(e=oN()),e.set(n,s)}};return r}});var Js=o((_3,bC)=>{"use strict";var aN=String.prototype.replace,cN=/%20/g,Fu={RFC1738:"RFC1738",RFC3986:"RFC3986"};bC.exports={default:Fu.RFC3986,formatters:{RFC1738:function(t){return aN.call(t,cN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Fu.RFC1738,RFC3986:Fu.RFC3986}});var Gu=o((O3,PC)=>{"use strict";var uN=Js(),ku=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),dN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},AC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},lN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!ku.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Lt(e)&&!Lt(r)&&(s=AC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,u){if(ku.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return ku.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},fN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},hN=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bu=1024,yN=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Bu){for(var p=u.length>=Bu?u.slice(f,f+Bu):u,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||i===uN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=dt[_];continue}if(_<2048){y[y.length]=dt[192|_>>6]+dt[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=dt[224|_>>12]+dt[128|_>>6&63]+dt[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=dt[240|_>>18]+dt[128|_>>12&63]+dt[128|_>>6&63]+dt[128|_&63]}d+=y.join("")}return d},pN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],y=u[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:u,prop:p}),n.push(y))}return dN(r),e},vN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},SN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},mN=function(e,r){return[].concat(e,r)},_N=function(e,r){if(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};PC.exports={arrayToObject:AC,assign:fN,combine:mN,compact:pN,decode:hN,encode:yN,isBuffer:SN,isRegExp:vN,maybeMap:_N,merge:lN}});var NC=o((T3,qC)=>{"use strict";var RC=gC(),Xs=Gu(),Hr=Js(),ON=Object.prototype.hasOwnProperty,MC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,TN=Array.prototype.push,IC=function(t,e){TN.apply(t,lt(e)?e:[e])},EN=Date.prototype.toISOString,wC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Xs.encode,encodeValuesOnly:!1,format:wC,formatter:Hr.formatters[wC],indices:!1,serializeDate:function(e){return EN.call(e)},skipNulls:!1,strictNullHandling:!1},CN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$u={},gN=function t(e,r,n,s,i,u,d,f,p,y,S,_,b,w,R,q,N,C){for(var M=e,D=C,k=0,K=!1;(D=D.get($u))!==void 0&&!K;){var x=D.get(e);if(k+=1,typeof x<"u"){if(x===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get($u)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=b(M):n==="comma"&<(M)&&(M=Xs.maybeMap(M,function(Ue){return Ue instanceof Date?b(Ue):Ue})),M===null){if(u)return p&&!q?p(r,pe.encoder,N,"key",w):r;M=""}if(CN(M)||Xs.isBuffer(M)){if(p){var G=q?r:p(r,pe.encoder,N,"key",w);return[R(G)+"="+R(p(M,pe.encoder,N,"value",w))]}return[R(r)+"="+R(String(M))]}var H=[];if(typeof M>"u")return H;var $;if(n==="comma"&<(M))q&&p&&(M=Xs.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Q=Object.keys(M);$=S?Q.sort(S):Q}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&<(M)&&M.length===1?Te+"[]":Te;if(i&<(M)&&M.length===0)return oe+"[]";for(var se=0;se<$.length;++se){var ie=$[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var et=_&&f?ie.replace(/\./g,"%2E"):ie,it=lt(M)?typeof n=="function"?n(oe,et):oe:oe+(_?"."+et:"["+et+"]");C.set(e,k);var tt=RC();tt.set($u,C),IC(H,t(ee,it,n,s,i,u,d,f,n==="comma"&&q&<(M)?null:p,y,S,_,b,w,R,q,N,tt))}}return H},bN=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hr.default;if(typeof e.format<"u"){if(!ON.call(Hr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Hr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in MC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};qC.exports=function(t,e){var r=t,n=bN(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=MC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=RC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||IC(u,gN(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var _=u.join(n.delimiter),b=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}});var UC=o((E3,xC)=>{"use strict";var dr=Gu(),Ku=Object.prototype.hasOwnProperty,AN=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:dr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},PN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},jC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},wN="utf8=%26%2310003%3B",RN="utf8=%E2%9C%93",MN=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===RN?p="utf-8":u[f]===wN&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var y=u[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,b,w;_===-1?(b=r.decoder(y,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(b=r.decoder(y.slice(0,_),de.decoder,p,"key"),w=dr.maybeMap(jC(y.slice(_+1),r),function(q){return r.decoder(q,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=PN(w)),y.indexOf("[]=")>-1&&(w=AN(w)?[w]:w);var R=Ku.call(n,b);R&&r.duplicates==="combine"?n[b]=dr.combine(n[b],w):(!R||r.duplicates==="last")&&(n[b]=w)}return n},IN=function(t,e,r,n){for(var s=n?e:jC(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},qN=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&Ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),IN(y,r,n,s)}},NN=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||dr.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};xC.exports=function(t,e){var r=NN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?MN(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=qN(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Hu=o((C3,DC)=>{"use strict";var jN=NC(),xN=UC(),UN=Js();DC.exports={formats:UN,parse:xN,stringify:jN}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var DN=Hu(),LN=Ls();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Wu=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,DN.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new LN.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Wu});var LC=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.CategoryCodeService=void 0;var FN=g(),kN=E(),Vu=class extends kN.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[FN.status.OK]}).then(async r=>({data:await r.json()}))}};ei.CategoryCodeService=Vu});var FC=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.CreativeWorkService=void 0;var BN=g(),GN=E(),zu=class extends GN.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[BN.status.OK]}).then(async r=>({data:await r.json()}))}};ti.CreativeWorkService=zu});var kC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.EmailMessageService=void 0;var $N=g(),KN=E(),Yu=class extends KN.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[$N.status.OK]}).then(async r=>({data:await r.json()}))}};ri.EmailMessageService=Yu});var GC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.EventService=void 0;var St=g(),BC=Y(),HN=E(),Qu=class extends HN.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![BC.factory.eventType.ScreeningEvent].includes(n))throw new BC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/seats`,method:"GET",qs:{...n},expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}};ni.EventService=Qu});var $C=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EventOfferService=void 0;var WN=g(),VN=E(),zN="/eventOffers",Zu=class extends VN.Service{async findEventOffers(e){return this.fetch({uri:zN,method:"GET",qs:e,expectedStatusCodes:[WN.status.OK]}).then(async r=>r.json())}};si.EventOfferService=Zu});var KC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventSeriesService=void 0;var YN=g(),QN=E(),Ju=class extends QN.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[YN.status.OK]}).then(async r=>r.json())}};ii.EventSeriesService=Ju});var HC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.NoteService=void 0;var ZN=g(),JN=E(),XN="/creativeWorks/noteDigitalDocument",Xu=class extends JN.Service{async findPublicNotes(e){return this.fetch({uri:XN,method:"GET",qs:e,expectedStatusCodes:[ZN.status.OK]}).then(async r=>r.json())}};oi.NoteService=Xu});var WC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.PaymentProductService=void 0;var ej=g(),tj=E(),ed=class extends tj.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[ej.status.OK]}).then(async i=>i.json())}};ai.PaymentProductService=ed});var VC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PlaceService=void 0;var lr=g(),td=Y(),rj=E(),rd=class extends rj.Service{async searchMovieTheatersLegacy(e){return this.fetch({uri:`/places/${td.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${td.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${td.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[lr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};ci.PlaceService=rd});var zC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.HasPOSService=void 0;var nj=g(),sj=Y(),ij=E(),nd=class extends ij.Service{async search(e){return this.fetch({uri:`/places/${sj.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[nj.status.OK]}).then(async r=>r.json())}};ui.HasPOSService=nd});var YC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.ProductService=void 0;var sd=g(),oj=E(),id=class extends oj.Service{async findProducts(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[sd.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[sd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[sd.status.OK]}).then(async r=>r.json())}};di.ProductService=id});var QC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.SeatOfferService=void 0;var aj=g(),cj=E(),uj="/seatOffers",od=class extends cj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:uj,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[aj.status.OK]}).then(async u=>u.json())}};li.SeatOfferService=od});var ZC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SellerService=void 0;var fi=g(),dj=E(),ad=class extends dj.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[fi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[fi.status.OK]}).then(async r=>r.json())}async searchPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[fi.status.OK]}).then(async s=>s.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[fi.status.OK]}).then(async s=>s.json())}};hi.SellerService=ad});var JC=o(Le=>{"use strict";var lj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),je=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&lj(r,e,n[s]);return fj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var W;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let y;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(y=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let _;_=t.SeatOffer||(t.SeatOffer={});let b;b=t.Seller||(t.Seller={})})(W||(Le.service=W={}));var cd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return W.CategoryCode.svc===void 0&&(W.CategoryCode.svc=(await Promise.resolve().then(()=>je(LC()))).CategoryCodeService),new W.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return W.CreativeWork.svc===void 0&&(W.CreativeWork.svc=(await Promise.resolve().then(()=>je(FC()))).CreativeWorkService),new W.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return W.EmailMessage.svc===void 0&&(W.EmailMessage.svc=(await Promise.resolve().then(()=>je(kC()))).EmailMessageService),new W.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return W.Event.svc===void 0&&(W.Event.svc=(await Promise.resolve().then(()=>je(GC()))).EventService),new W.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return W.EventOffer.svc===void 0&&(W.EventOffer.svc=(await Promise.resolve().then(()=>je($C()))).EventOfferService),new W.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return W.EventSeries.svc===void 0&&(W.EventSeries.svc=(await Promise.resolve().then(()=>je(KC()))).EventSeriesService),new W.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return W.Note.svc===void 0&&(W.Note.svc=(await Promise.resolve().then(()=>je(HC()))).NoteService),new W.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return W.PaymentProduct.svc===void 0&&(W.PaymentProduct.svc=(await Promise.resolve().then(()=>je(WC()))).PaymentProductService),new W.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return W.Place.svc===void 0&&(W.Place.svc=(await Promise.resolve().then(()=>je(VC()))).PlaceService),new W.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return W.place.HasPOS.svc===void 0&&(W.place.HasPOS.svc=(await Promise.resolve().then(()=>je(zC()))).HasPOSService),new W.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return W.Product.svc===void 0&&(W.Product.svc=(await Promise.resolve().then(()=>je(YC()))).ProductService),new W.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return W.SeatOffer.svc===void 0&&(W.SeatOffer.svc=(await Promise.resolve().then(()=>je(QC()))).SeatOfferService),new W.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return W.Seller.svc===void 0&&(W.Seller.svc=(await Promise.resolve().then(()=>je(ZC()))).SellerService),new W.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=cd});var XC=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.OrderService=void 0;var bt=g(),hj=Y(),yj=E(),ud=class extends yj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${hj.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[bt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}};yi.OrderService=ud});var tg=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.ReservationService=void 0;var eg=g(),pj=E(),dd=class extends pj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[eg.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[eg.status.OK]}).then(async n=>n.json())}};pi.ReservationService=dd});var rg=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.TokenService=void 0;var vj=E(),ld=class extends vj.Service{};vi.TokenService=ld});var ng=o(Fe=>{"use strict";var Sj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fd=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Sj(r,e,n[s]);return mj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var rt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(rt||(Fe.service=rt={}));var hd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>fd(XC()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>fd(tg()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>fd(rg()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=hd});var ig=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SyncService=void 0;var sg=g(),_j=E(),yd=class extends _j.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[sg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[sg.status.ACCEPTED]}).then(async r=>r.json())}};Si.SyncService=yd});var og=o(ke=>{"use strict";var Oj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ej=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Oj(r,e,n[s]);return Tj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Wr;(function(t){let e;e=t.Sync||(t.Sync={})})(Wr||(ke.service=Wr={}));var pd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Wr.Sync.svc===void 0&&(Wr.Sync.svc=(await Promise.resolve().then(()=>Ej(ig()))).SyncService),new Wr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=pd});var ag=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.CustomerService=void 0;var Cj=g(),gj=E(),vd=class extends gj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[Cj.status.OK]}).then(async r=>r.json())}};mi.CustomerService=vd});var cg=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.EventService=void 0;var Vr=g(),bj=E(),Sd=class extends bj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:s}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:s===!0},expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Vr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}};_i.EventService=Sd});var ug=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EventOfferService=void 0;var Oi=g(),Aj=E(),Ti="/eventOffers",md=class extends Aj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ti,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Oi.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ti,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Oi.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ti,method:"GET",qs:e,expectedStatusCodes:[Oi.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ti}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Oi.status.CREATED]}).then(async n=>n.json())}};Ei.EventOfferService=md});var fg=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.EventSeriesService=void 0;var dg=g(),Pj=E(),lg="/eventSeries",_d=class extends Pj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:lg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[dg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:lg,method:"GET",qs:e,expectedStatusCodes:[dg.status.OK]}).then(async r=>r.json())}};Ci.EventSeriesService=_d});var yg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.MeService=void 0;var hg=g(),wj=E(),Od=class extends wj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[hg.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[hg.status.OK]}).then(async s=>s.json())}};gi.MeService=Od});var pg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.MemberService=void 0;var Rj=g(),Mj=Y(),Ij=E(),Td=class extends Ij.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Mj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Rj.status.OK]}).then(async r=>r.json())}};bi.MemberService=Td});var mg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MovieService=void 0;var vg=g(),qj=E(),Sg="/movies",Ed=class extends qj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:Sg,method:"PUT",body:e,expectedStatusCodes:[vg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:Sg,method:"GET",qs:e,expectedStatusCodes:[vg.status.OK]}).then(async r=>r.json())}};Ai.MovieService=Ed});var Og=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MovieTheaterService=void 0;var zr=g(),Nj=E(),_g="/movieTheaters",Cd="/entranceGates",gd=class extends Nj.Service{async findMovieTheaters(e){return this.fetch({uri:_g,method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:_g,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Cd,method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Cd,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Cd,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Pi.MovieTheaterService=gd});var Tg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.NoteService=void 0;var bd=g(),jj=E(),Ad="/creativeWorks/noteDigitalDocument",Pd=class extends jj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ad,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ad,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ad,method:"GET",qs:e,expectedStatusCodes:[bd.status.OK]}).then(async r=>r.json())}};wi.NoteService=Pd});var Eg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.NoteAboutOrderService=void 0;var wd=g(),xj=E(),Rd="/orderNotes",Md=class extends xj.Service{async upsertByIdentifier(e){await this.fetch({uri:Rd,method:"PUT",body:e,expectedStatusCodes:[wd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:Rd,method:"GET",qs:e,expectedStatusCodes:[wd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${Rd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[wd.status.NO_CONTENT]})}};Ri.NoteAboutOrderService=Md});var Cg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.OrderService=void 0;var Yr=g(),Uj=E(),Id=class extends Uj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Yr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async findOrderAcceptedOffers(e){return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1"},expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Yr.status.OK],qs:r}).then(async n=>n.json())}};Mi.OrderService=Id});var gg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.PaymentMethodService=void 0;var Dj=g(),Lj=E(),Fj="/paymentMethods",qd=class extends Lj.Service{async findPaymentMethods(e){return this.fetch({uri:Fj,method:"GET",qs:e,expectedStatusCodes:[Dj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ii.PaymentMethodService=qd});var Ag=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ProductService=void 0;var Nd=g(),kj=E(),bg="/products",Bj="/productHasOfferCatalog",jd=class extends kj.Service{async upsertByProductId(e){await this.fetch({uri:bg,method:"PUT",body:e,expectedStatusCodes:[Nd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:bg,method:"GET",qs:e,expectedStatusCodes:[Nd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Bj,method:"GET",qs:e,expectedStatusCodes:[Nd.status.OK]}).then(async r=>r.json())}};qi.ProductService=jd});var Pg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ReservationService=void 0;var xd=g(),Gj=E(),Ud=class extends Gj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[xd.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:s}=e;await this.fetch({uri:`/reservations/${String(s?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[xd.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[xd.status.OK]}).then(async s=>s.json())}};Ni.ReservationService=Ud});var Mg=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.RoomService=void 0;var wg=g(),$j=E(),Rg="/rooms",Dd=class extends $j.Service{async findRooms(e){return this.fetch({uri:Rg,method:"GET",qs:e,expectedStatusCodes:[wg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Rg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[wg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ji.RoomService=Dd});var Ig=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.SeatService=void 0;var Ld=g(),Kj=E(),Fd="/seats",kd=class extends Kj.Service{async findSeats(e){return this.fetch({uri:Fd,method:"GET",qs:e,expectedStatusCodes:[Ld.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Fd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[Ld.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Fd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Ld.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};xi.SeatService=kd});var jg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.SeatSectionService=void 0;var qg=g(),Hj=E(),Ng="/seatSections",Bd=class extends Hj.Service{async findSeatSections(e){return this.fetch({uri:Ng,method:"GET",qs:e,expectedStatusCodes:[qg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Ng,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[qg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.SeatSectionService=Bd});var xg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SellerService=void 0;var Wj=g(),Vj=E(),Gd=class extends Vj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Wj.status.OK]}).then(async r=>r.json())}};Di.SellerService=Gd});var Dg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.OfferService=void 0;var Ug=g(),zj=E(),$d=class extends zj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ug.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[Ug.status.NO_CONTENT]})}};Li.OfferService=$d});var Lg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.OfferCatalogService=void 0;var Yj=g(),Qj=E(),Kd=class extends Qj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[Yj.status.NO_CONTENT]})}};Fi.OfferCatalogService=Kd});var kg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferCatalogItemService=void 0;var Fg=g(),Zj=E(),Hd=class extends Zj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Fg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[Fg.status.NO_CONTENT]})}};ki.OfferCatalogItemService=Hd});var Bg=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.CancelReservationAssetTransactionService=void 0;var Jj=g(),Xj=E(),Wd=class extends Xj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Jj.status.NO_CONTENT]})}};Bi.CancelReservationAssetTransactionService=Wd});var Gg=o(Be=>{"use strict";var ex=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tx=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ce=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ex(r,e,n[s]);return tx(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var j;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let u;u=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let _;_=t.PaymentMethod||(t.PaymentMethod={});let b;b=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Room||(t.Room={});let q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let D;D=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(x){let G;G=x.CancelReservation||(x.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(j||(Be.service=j={}));var Vd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ce(ag()))).CustomerService),new j.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return j.Event.svc===void 0&&(j.Event.svc=(await Promise.resolve().then(()=>ce(cg()))).EventService),new j.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return j.EventOffer.svc===void 0&&(j.EventOffer.svc=(await Promise.resolve().then(()=>ce(ug()))).EventOfferService),new j.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return j.EventSeries.svc===void 0&&(j.EventSeries.svc=(await Promise.resolve().then(()=>ce(fg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ce(yg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ce(pg()))).MemberService),new j.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return j.Movie.svc===void 0&&(j.Movie.svc=(await Promise.resolve().then(()=>ce(mg()))).MovieService),new j.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return j.MovieTheater.svc===void 0&&(j.MovieTheater.svc=(await Promise.resolve().then(()=>ce(Og()))).MovieTheaterService),new j.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return j.Note.svc===void 0&&(j.Note.svc=(await Promise.resolve().then(()=>ce(Tg()))).NoteService),new j.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return j.NoteAboutOrder.svc===void 0&&(j.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(Eg()))).NoteAboutOrderService),new j.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return j.Order.svc===void 0&&(j.Order.svc=(await Promise.resolve().then(()=>ce(Cg()))).OrderService),new j.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return j.PaymentMethod.svc===void 0&&(j.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(gg()))).PaymentMethodService),new j.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return j.Product.svc===void 0&&(j.Product.svc=(await Promise.resolve().then(()=>ce(Ag()))).ProductService),new j.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return j.Reservation.svc===void 0&&(j.Reservation.svc=(await Promise.resolve().then(()=>ce(Pg()))).ReservationService),new j.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return j.Room.svc===void 0&&(j.Room.svc=(await Promise.resolve().then(()=>ce(Mg()))).RoomService),new j.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return j.Seat.svc===void 0&&(j.Seat.svc=(await Promise.resolve().then(()=>ce(Ig()))).SeatService),new j.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return j.SeatSection.svc===void 0&&(j.SeatSection.svc=(await Promise.resolve().then(()=>ce(jg()))).SeatSectionService),new j.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return j.Seller.svc===void 0&&(j.Seller.svc=(await Promise.resolve().then(()=>ce(xg()))).SellerService),new j.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return j.Offer.svc===void 0&&(j.Offer.svc=(await Promise.resolve().then(()=>ce(Dg()))).OfferService),new j.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return j.OfferCatalog.svc===void 0&&(j.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(Lg()))).OfferCatalogService),new j.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return j.OfferCatalogItem.svc===void 0&&(j.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(kg()))).OfferCatalogItemService),new j.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return j.assetTransaction.CancelReservation.svc===void 0&&(j.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce(Bg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Vd});var $g=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.AccountingReportService=void 0;var rx=g(),nx=E(),zd=class extends nx.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[rx.status.OK]}).then(async r=>r.json())}};Gi.AccountingReportService=zd});var Kg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.AccountTitleService=void 0;var Ge=g(),sx=Y(),ix=E(),Yd=class extends ix.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new sx.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async deleteByCodeValue(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}};$i.AccountTitleService=Yd});var Hg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.ActionService=void 0;var Qd=g(),ox=E(),Zd=class extends ox.Service{async findActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Qd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Qd.status.OK]}).then(async r=>r.json())}};Ki.ActionService=Zd});var Wg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.UpdateActionService=void 0;var ax=g(),cx=E(),Jd=class extends cx.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[ax.status.OK]}).then(async r=>r.json())}};Hi.UpdateActionService=Jd});var Vg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.InformActionService=void 0;var ux=g(),dx=E(),Xd=class extends dx.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[ux.status.OK]}).then(async r=>r.json())}};Wi.InformActionService=Xd});var zg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.UseActionService=void 0;var lx=g(),fx=E(),el=class extends fx.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[lx.status.OK]}).then(async r=>r.json())}};Vi.UseActionService=el});var Yg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AdditionalPropertyService=void 0;var Qr=g(),hx=E(),tl=class extends hx.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Qr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qr.status.NO_CONTENT]})}};zi.AdditionalPropertyService=tl});var Zg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateOfferService=void 0;var Qg=g(),yx=E(),rl=class extends yx.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Qg.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qg.status.NO_CONTENT]})}};Yi.AggregateOfferService=rl});var Jg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregateReservationService=void 0;var px=g(),vx=E(),nl=class extends vx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[px.status.OK]}).then(async r=>r.json())}};Qi.AggregateReservationService=nl});var Xg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AggregationService=void 0;var Sx=g(),mx=E(),sl=class extends mx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Sx.status.OK]}).then(async r=>r.json())}};Zi.AggregationService=sl});var eb=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AuthorizationService=void 0;var _x=g(),Ox=E(),il=class extends Ox.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[_x.status.OK]}).then(async r=>r.json())}};Ji.AuthorizationService=il});var tb=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.CreativeWorkService=void 0;var Tx=g(),Ex=E(),ol=class extends Ex.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Tx.status.NO_CONTENT]})}};Xi.CreativeWorkService=ol});var rb=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CategoryCodeService=void 0;var eo=g(),Cx=E(),to="/categoryCodes",al=class extends Cx.Service{async createCategoryCode(e){return this.fetch({uri:to,method:"POST",body:e,expectedStatusCodes:[eo.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:to,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[eo.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[eo.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[eo.status.NO_CONTENT]})}};ro.CategoryCodeService=al});var nb=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerService=void 0;var cl=g(),gx=E(),ul=class extends gx.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[cl.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[cl.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[cl.status.NO_CONTENT]})}};no.CustomerService=ul});var sb=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CustomerTypeService=void 0;var bx=g(),Ax=E(),dl=class extends Ax.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[bx.status.OK]}).then(async r=>r.json())}};so.CustomerTypeService=dl});var ib=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EmailMessageService=void 0;var io=g(),Px=E(),ll=class extends Px.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[io.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[io.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[io.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[io.status.NO_CONTENT]})}};oo.EmailMessageService=ll});var ab=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.EventService=void 0;var Zr=g(),ob=Y(),wx=E(),fl=class extends wx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{expectsNoContent:"1",typeOf:ob.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r,typeOf:n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[Zr.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async updateEventById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e.attributes,qs:{typeOf:ob.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Zr.status.NO_CONTENT]})}};ao.EventService=fl});var db=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.EventSeriesService=void 0;var cb=g(),ub=Y(),Rx=E(),hl=class extends Rx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${ub.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[cb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${ub.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cb.status.NO_CONTENT]})}};co.EventSeriesService=hl});var lb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.HasMerchantReturnPolicyService=void 0;var Mx=g(),Ix=E(),yl=class extends Ix.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Mx.status.OK]}).then(async e=>e.json())}};uo.HasMerchantReturnPolicyService=yl});var fb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IAMService=void 0;var At=g(),qx=E(),pl=class extends qx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};lo.IAMService=pl});var hb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityService=void 0;var fo=g(),Nx=E(),vl=class extends Nx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[fo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[fo.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[fo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fo.status.NO_CONTENT]})}};ho.IdentityService=vl});var yb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.IdentityProviderService=void 0;var yo=g(),jx=E(),Sl=class extends jx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[yo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[yo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[yo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[yo.status.NO_CONTENT]})}};po.IdentityProviderService=Sl});var pb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.IssuerService=void 0;var Jr=g(),xx=E(),ml=class extends xx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Jr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:n,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}};vo.IssuerService=ml});var Sb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MeService=void 0;var vb=g(),Ux=E(),_l=class extends Ux.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[vb.status.OK]}).then(async r=>({data:await r.json()}))}async searchMemberHasRoleOnProject(e){return this.fetch({uri:`/members/me/projects/${e.project.id}/hasRole`,method:"GET",expectedStatusCodes:[vb.status.OK]}).then(async r=>r.json())}};So.MeService=_l});var mb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberService=void 0;var Pt=g(),wt=Y(),Dx=E(),Ol=class extends Dx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};mo.MemberService=Ol});var _b=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MemberProgramService=void 0;var Xr=g(),Lx=E(),Tl=class extends Lx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async updateByIdentifier(e){let{hostingOrganization:r,hasTiers:n}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r,...Array.isArray(n)?{hasTiers:n}:void 0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async deleteByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[Xr.status.NO_CONTENT]})}};_o.MemberProgramService=Tl});var Ob=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MerchantReturnPolicyService=void 0;var en=g(),Fx=E(),El=class extends Fx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};Oo.MerchantReturnPolicyService=El});var Tb=o(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.MessageService=void 0;var kx=g(),Bx=E(),Cl=class extends Bx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[kx.status.OK]}).then(async r=>r.json())}};To.MessageService=Cl});var Eb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.MovieTicketTypeService=void 0;var Eo=g(),Gx=E(),Co="/movieTicketTypes",gl=class extends Gx.Service{async createMovieTicketType(e){return this.fetch({uri:Co,method:"POST",body:e,expectedStatusCodes:[Eo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Co,method:"GET",qs:e,expectedStatusCodes:[Eo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Eo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Eo.status.NO_CONTENT]})}};go.MovieTicketTypeService=gl});var Cb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.OrderService=void 0;var bo=g(),$x=E(),bl=class extends $x.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async processOrder(e){let{confirmationNumber:r,orderNumber:n}=e.object;await this.fetch({uri:`/orders/${n}/processOrder`,method:"POST",body:{confirmationNumber:r},expectedStatusCodes:[bo.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[bo.status.OK]}).then(async r=>r.json())}};Ao.OrderService=bl});var gb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PaymentProductService=void 0;var fr=g(),Kx=E(),Al=class extends Kx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[fr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[fr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[fr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}};Po.PaymentProductService=Al});var bb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PaymentServiceChannelService=void 0;var wo=g(),Hx=E(),Pl=class extends Hx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[wo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[wo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[wo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[wo.status.NO_CONTENT]})}};Ro.PaymentServiceChannelService=Pl});var Pb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PendingReservationService=void 0;var Ab=g(),Wx=E(),wl=class extends Wx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Ab.status.OK]}).then(async r=>r.json())}async projectSubReservationByReservationNumber(e){let{reservationNumber:r}=e;return this.fetch({uri:`/pendingReservations/${encodeURIComponent(String(r.$eq))}/subReservation`,method:"GET",expectedStatusCodes:[Ab.status.OK]}).then(async n=>n.json())}};Mo.PendingReservationService=wl});var Rb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PermissionService=void 0;var wb=g(),Vx=E(),Rl=class extends Vx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[wb.status.OK]}).then(async e=>e.json())}async token2permissions(e){let{token:r}=e;return this.fetch({uri:"/permissions/token2permissions",method:"POST",body:{token:r},expectedStatusCodes:[wb.status.OK]}).then(async n=>n.json())}};Io.PermissionService=Rl});var Ib=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PersonService=void 0;var Mb=g(),zx=E(),Ml=class extends zx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Mb.status.OK]}).then(async r=>r.json())}async findPersonById(e){let{id:r,iss:n}=e;return this.fetch({uri:`/people/${r}`,method:"GET",expectedStatusCodes:[Mb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};qo.PersonService=Ml});var qb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.PlaceService=void 0;var tn=g(),rn=Y(),Yx=E(),Il=class extends Yx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${rn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[tn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[tn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}};No.PlaceService=Il});var Nb=o(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HasPOSService=void 0;var jo=g(),xo=Y(),Qx=E(),ql=class extends Qx.Service{async search(e){return this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[jo.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[jo.status.NO_CONTENT]})}};Uo.HasPOSService=ql});var jb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.PriceSpecificationService=void 0;var Do=g(),Zx=E(),Nl=class extends Zx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Do.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Do.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Do.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Do.status.NO_CONTENT]})}};Lo.PriceSpecificationService=Nl});var xb=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ProductService=void 0;var nn=g(),Jx=E(),sn="/products",jl=class extends Jx.Service{async createProduct(e){return this.fetch({uri:sn,method:"POST",body:e,expectedStatusCodes:[nn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:sn,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[nn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${sn}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[nn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${sn}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${sn}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}};Fo.ProductService=jl});var Ub=o(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ProjectService=void 0;var ko=g(),Xx=E(),xl=class extends Xx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[ko.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[ko.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[ko.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[ko.status.NO_CONTENT]})}};Bo.ProjectService=xl});var Db=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectMakesOfferService=void 0;var Go=g(),eU=E(),Ul=class extends eU.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Go.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Go.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Go.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Go.status.NO_CONTENT]})}};$o.ProjectMakesOfferService=Ul});var Lb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ReservationService=void 0;var tU=g(),rU=E(),Dl=class extends rU.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[tU.status.NO_CONTENT]})}};Ko.ReservationService=Dl});var Fb=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferService=void 0;var Ll=g(),nU=E(),Fl=class extends nU.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[Ll.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}};Ho.OfferService=Fl});var kb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogService=void 0;var Wo=g(),sU=E(),kl=class extends sU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Vo.OfferCatalogService=kl});var Bb=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferCatalogItemService=void 0;var Bl=g(),iU=E(),Gl=class extends iU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Bl.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Bl.status.OK]}).then(async s=>s.json())}};zo.OfferCatalogItemService=Gl});var Gb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.OfferItemConditionService=void 0;var Yo=g(),oU=E(),$l=class extends oU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Yo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Yo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yo.status.NO_CONTENT]})}};Qo.OfferItemConditionService=$l});var $b=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerService=void 0;var _e=g(),aU=E(),Kl=class extends aU.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};Zo.SellerService=Kl});var Kb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerMakesOfferService=void 0;var Hl=g(),cU=E(),Wl=class extends cU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Hl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Hl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Hl.status.NO_CONTENT]})}};Jo.SellerMakesOfferService=Wl});var Hb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.SellerReturnPolicyService=void 0;var on=g(),uU=E(),Vl=class extends uU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[on.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r}=e;return this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[on.status.OK]}).then(async n=>n.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Xo.SellerReturnPolicyService=Vl});var Wb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.AsyncActionService=void 0;var dU=g(),lU=E(),zl=class extends lU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[dU.status.OK]}).then(async r=>r.json())}};ea.AsyncActionService=zl});var Vb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.ScheduledTaskService=void 0;var fU=g(),hU=E(),Yl=class extends hU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[fU.status.OK]}).then(async r=>r.json())}};ta.ScheduledTaskService=Yl});var zb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TaskService=void 0;var Ql=g(),yU=E(),Zl=class extends yU.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Ql.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Ql.status.NO_CONTENT]})}async findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Ql.status.OK]}).then(async r=>r.json())}};ra.TaskService=Zl});var Yb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.TicketService=void 0;var pU=g(),vU=E(),Jl=class extends vU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[pU.status.OK]}).then(async r=>r.json())}};na.TicketService=Jl});var Qb=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.AssetTransactionService=void 0;var SU=g(),mU=E(),Xl=class extends mU.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[SU.status.OK]}).then(async r=>r.json())}};sa.AssetTransactionService=Xl});var Zb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.PayAssetTransactionService=void 0;var ia=g(),hr=Y(),_U=E(),ef=class extends _U.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ia.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ia.status.OK]}).then(async r=>r.json())}};oa.PayAssetTransactionService=ef});var Jb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.TokenService=void 0;var OU=E(),tf=class extends OU.Service{};aa.TokenService=tf});var eA=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.PlaceOrderTransactionService=void 0;var Xb=g(),TU=Y(),EU=E(),rf=class extends EU.Service{typeOf=TU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Xb.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Xb.status.OK]}).then(async s=>s.json())}};ca.PlaceOrderTransactionService=rf});var tA=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.ReturnOrderTransactionService=void 0;var CU=g(),gU=Y(),bU=E(),nf=class extends bU.Service{typeOf=gU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[CU.status.OK]}).then(async r=>({data:await r.json()}))}};ua.ReturnOrderTransactionService=nf});var rA=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.TransactionNumberService=void 0;var AU=g(),PU=E(),sf=class extends PU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[AU.status.CREATED]}).then(async e=>e.json())}};da.TransactionNumberService=sf});var nA=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.UserPoolService=void 0;var of=g(),wU=E(),af=class extends wU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[of.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[of.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[of.status.OK]}).then(async r=>r.json())}};la.UserPoolService=af});var sA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.WebSiteService=void 0;var fa=g(),RU=E(),cf=class extends RU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[fa.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[fa.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[fa.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fa.status.NO_CONTENT]})}};ha.WebSiteService=cf});var iA=o($e=>{"use strict";var MU=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),IU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&MU(r,e,n[s]);return IU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreConsole=$e.service=void 0;var m;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let s;s=t.UpdateAction||(t.UpdateAction={});let i;i=t.InformAction||(t.InformAction={});let u;u=t.UseAction||(t.UseAction={});let d;d=t.AdditionalProperty||(t.AdditionalProperty={});let f;f=t.AggregateOffer||(t.AggregateOffer={});let p;p=t.AggregateReservation||(t.AggregateReservation={});let y;y=t.Aggregation||(t.Aggregation={});let S;S=t.Authorization||(t.Authorization={});let _;_=t.CategoryCode||(t.CategoryCode={});let b;b=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let R;R=t.CustomerType||(t.CustomerType={});let q;q=t.EmailMessage||(t.EmailMessage={});let N;N=t.Event||(t.Event={});let C;C=t.EventSeries||(t.EventSeries={});let M;M=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let D;D=t.IAM||(t.IAM={});let k;k=t.Identity||(t.Identity={});let K;K=t.IdentityProvider||(t.IdentityProvider={});let x;x=t.Issuer||(t.Issuer={});let G;G=t.Me||(t.Me={});let H;H=t.Member||(t.Member={});let $;$=t.MemberProgram||(t.MemberProgram={});let Q;Q=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let Te;Te=t.Message||(t.Message={});let oe;oe=t.MovieTicketType||(t.MovieTicketType={});let se;se=t.Order||(t.Order={});let ie;ie=t.PaymentProduct||(t.PaymentProduct={});let ee;ee=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let et;et=t.PendingReservation||(t.PendingReservation={});let it;it=t.Permission||(t.Permission={});let tt;tt=t.Person||(t.Person={});let Ue;Ue=t.Place||(t.Place={});let a;(function(U){let gr;gr=U.HasPOS||(U.HasPOS={})})(a=t.place||(t.place={}));let c;c=t.PriceSpecification||(t.PriceSpecification={});let l;l=t.Product||(t.Product={});let h;h=t.Project||(t.Project={});let v;v=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let T;T=t.Reservation||(t.Reservation={});let A;A=t.Offer||(t.Offer={});let P;P=t.OfferCatalog||(t.OfferCatalog={});let F;F=t.OfferCatalogItem||(t.OfferCatalogItem={});let z;z=t.OfferItemCondition||(t.OfferItemCondition={});let Z;Z=t.Seller||(t.Seller={});let ue;ue=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ae;Ae=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let Ee;Ee=t.AsyncAction||(t.AsyncAction={});let It;It=t.ScheduledTask||(t.ScheduledTask={});let ye;ye=t.Task||(t.Task={});let Pe;Pe=t.Ticket||(t.Ticket={});let ot;ot=t.AssetTransaction||(t.AssetTransaction={});let Cr;(function(U){let gr;gr=U.Pay||(U.Pay={})})(Cr=t.assetTransaction||(t.assetTransaction={}));let QP;QP=t.Token||(t.Token={});let ZP;(function(U){let gr;gr=U.PlaceOrder||(U.PlaceOrder={});let wc;wc=U.ReturnOrder||(U.ReturnOrder={})})(ZP=t.transaction||(t.transaction={}));let JP;JP=t.TransactionNumber||(t.TransactionNumber={});let XP;XP=t.UserPool||(t.UserPool={});let ew;ew=t.WebSite||(t.WebSite={})})(m||($e.service=m={}));var uf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>L($g()))).AccountingReportService),new m.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return m.AccountTitle.svc===void 0&&(m.AccountTitle.svc=(await Promise.resolve().then(()=>L(Kg()))).AccountTitleService),new m.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return m.Action.svc===void 0&&(m.Action.svc=(await Promise.resolve().then(()=>L(Hg()))).ActionService),new m.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createUpdateActionInstance(e){return m.UpdateAction.svc===void 0&&(m.UpdateAction.svc=(await Promise.resolve().then(()=>L(Wg()))).UpdateActionService),new m.UpdateAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createInformActionInstance(e){return m.InformAction.svc===void 0&&(m.InformAction.svc=(await Promise.resolve().then(()=>L(Vg()))).InformActionService),new m.InformAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createUseActionInstance(e){return m.UseAction.svc===void 0&&(m.UseAction.svc=(await Promise.resolve().then(()=>L(zg()))).UseActionService),new m.UseAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>L(Yg()))).AdditionalPropertyService),new m.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return m.AggregateOffer.svc===void 0&&(m.AggregateOffer.svc=(await Promise.resolve().then(()=>L(Zg()))).AggregateOfferService),new m.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return m.AggregateReservation.svc===void 0&&(m.AggregateReservation.svc=(await Promise.resolve().then(()=>L(Jg()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>L(Xg()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>L(eb()))).AuthorizationService),new m.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return m.CreativeWork.svc===void 0&&(m.CreativeWork.svc=(await Promise.resolve().then(()=>L(tb()))).CreativeWorkService),new m.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return m.CategoryCode.svc===void 0&&(m.CategoryCode.svc=(await Promise.resolve().then(()=>L(rb()))).CategoryCodeService),new m.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return m.Customer.svc===void 0&&(m.Customer.svc=(await Promise.resolve().then(()=>L(nb()))).CustomerService),new m.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return m.CustomerType.svc===void 0&&(m.CustomerType.svc=(await Promise.resolve().then(()=>L(sb()))).CustomerTypeService),new m.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return m.EmailMessage.svc===void 0&&(m.EmailMessage.svc=(await Promise.resolve().then(()=>L(ib()))).EmailMessageService),new m.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return m.Event.svc===void 0&&(m.Event.svc=(await Promise.resolve().then(()=>L(ab()))).EventService),new m.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return m.EventSeries.svc===void 0&&(m.EventSeries.svc=(await Promise.resolve().then(()=>L(db()))).EventSeriesService),new m.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return m.HasMerchantReturnPolicy.svc===void 0&&(m.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>L(lb()))).HasMerchantReturnPolicyService),new m.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return m.IAM.svc===void 0&&(m.IAM.svc=(await Promise.resolve().then(()=>L(fb()))).IAMService),new m.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return m.Identity.svc===void 0&&(m.Identity.svc=(await Promise.resolve().then(()=>L(hb()))).IdentityService),new m.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return m.IdentityProvider.svc===void 0&&(m.IdentityProvider.svc=(await Promise.resolve().then(()=>L(yb()))).IdentityProviderService),new m.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return m.Issuer.svc===void 0&&(m.Issuer.svc=(await Promise.resolve().then(()=>L(pb()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>L(Sb()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>L(mb()))).MemberService),new m.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return m.MemberProgram.svc===void 0&&(m.MemberProgram.svc=(await Promise.resolve().then(()=>L(_b()))).MemberProgramService),new m.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return m.MerchantReturnPolicy.svc===void 0&&(m.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>L(Ob()))).MerchantReturnPolicyService),new m.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return m.Message.svc===void 0&&(m.Message.svc=(await Promise.resolve().then(()=>L(Tb()))).MessageService),new m.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return m.MovieTicketType.svc===void 0&&(m.MovieTicketType.svc=(await Promise.resolve().then(()=>L(Eb()))).MovieTicketTypeService),new m.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return m.Order.svc===void 0&&(m.Order.svc=(await Promise.resolve().then(()=>L(Cb()))).OrderService),new m.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return m.PaymentProduct.svc===void 0&&(m.PaymentProduct.svc=(await Promise.resolve().then(()=>L(gb()))).PaymentProductService),new m.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return m.PaymentServiceChannel.svc===void 0&&(m.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>L(bb()))).PaymentServiceChannelService),new m.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return m.PendingReservation.svc===void 0&&(m.PendingReservation.svc=(await Promise.resolve().then(()=>L(Pb()))).PendingReservationService),new m.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return m.Permission.svc===void 0&&(m.Permission.svc=(await Promise.resolve().then(()=>L(Rb()))).PermissionService),new m.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return m.Person.svc===void 0&&(m.Person.svc=(await Promise.resolve().then(()=>L(Ib()))).PersonService),new m.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return m.Place.svc===void 0&&(m.Place.svc=(await Promise.resolve().then(()=>L(qb()))).PlaceService),new m.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return m.place.HasPOS.svc===void 0&&(m.place.HasPOS.svc=(await Promise.resolve().then(()=>L(Nb()))).HasPOSService),new m.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return m.PriceSpecification.svc===void 0&&(m.PriceSpecification.svc=(await Promise.resolve().then(()=>L(jb()))).PriceSpecificationService),new m.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return m.Product.svc===void 0&&(m.Product.svc=(await Promise.resolve().then(()=>L(xb()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>L(Ub()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>L(Db()))).ProjectMakesOfferService),new m.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return m.Reservation.svc===void 0&&(m.Reservation.svc=(await Promise.resolve().then(()=>L(Lb()))).ReservationService),new m.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return m.Offer.svc===void 0&&(m.Offer.svc=(await Promise.resolve().then(()=>L(Fb()))).OfferService),new m.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return m.OfferCatalog.svc===void 0&&(m.OfferCatalog.svc=(await Promise.resolve().then(()=>L(kb()))).OfferCatalogService),new m.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return m.OfferCatalogItem.svc===void 0&&(m.OfferCatalogItem.svc=(await Promise.resolve().then(()=>L(Bb()))).OfferCatalogItemService),new m.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return m.OfferItemCondition.svc===void 0&&(m.OfferItemCondition.svc=(await Promise.resolve().then(()=>L(Gb()))).OfferItemConditionService),new m.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return m.Seller.svc===void 0&&(m.Seller.svc=(await Promise.resolve().then(()=>L($b()))).SellerService),new m.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return m.SellerMakesOffer.svc===void 0&&(m.SellerMakesOffer.svc=(await Promise.resolve().then(()=>L(Kb()))).SellerMakesOfferService),new m.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return m.SellerReturnPolicy.svc===void 0&&(m.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>L(Hb()))).SellerReturnPolicyService),new m.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createAsyncActionInstance(e){return m.AsyncAction.svc===void 0&&(m.AsyncAction.svc=(await Promise.resolve().then(()=>L(Wb()))).AsyncActionService),new m.AsyncAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createScheduledTaskInstance(e){return m.ScheduledTask.svc===void 0&&(m.ScheduledTask.svc=(await Promise.resolve().then(()=>L(Vb()))).ScheduledTaskService),new m.ScheduledTask.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return m.Task.svc===void 0&&(m.Task.svc=(await Promise.resolve().then(()=>L(zb()))).TaskService),new m.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return m.Ticket.svc===void 0&&(m.Ticket.svc=(await Promise.resolve().then(()=>L(Yb()))).TicketService),new m.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return m.AssetTransaction.svc===void 0&&(m.AssetTransaction.svc=(await Promise.resolve().then(()=>L(Qb()))).AssetTransactionService),new m.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return m.assetTransaction.Pay.svc===void 0&&(m.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>L(Zb()))).PayAssetTransactionService),new m.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return m.Token.svc===void 0&&(m.Token.svc=(await Promise.resolve().then(()=>L(Jb()))).TokenService),new m.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return m.transaction.PlaceOrder.svc===void 0&&(m.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>L(eA()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return m.transaction.ReturnOrder.svc===void 0&&(m.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>L(tA()))).ReturnOrderTransactionService),new m.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>L(rA()))).TransactionNumberService),new m.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return m.UserPool.svc===void 0&&(m.UserPool.svc=(await Promise.resolve().then(()=>L(nA()))).UserPoolService),new m.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return m.WebSite.svc===void 0&&(m.WebSite.svc=(await Promise.resolve().then(()=>L(sA()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};$e.ChevreConsole=uf});var oA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PaymentService=void 0;var me=g(),ve=Y(),qU=E(),NU=["awashimakisen-production","awashimakisen-test"],df=class extends qU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,creditCard:d,method:f,paymentMethodId:p,name:y,additionalProperty:S,ticketToken:_,eventIdsAsOrderedItem:b}=r;if((typeof p!="string"||p==="")&&(typeof _!="string"||_===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!NU.includes(this.options.project.id)&&(!Array.isArray(b)||b.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...d!=null?{creditCard:d}:void 0,...typeof y=="string"?{name:y}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{paymentMethodId:p}:void 0,...typeof _=="string"?{ticketToken:_}:void 0,...Array.isArray(S)?{additionalProperty:S}:void 0,...Array.isArray(b)?{eventIdsAsOrderedItem:b}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async R=>R.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s}=e,{issuedThrough:i,paymentMethod:u,movieTickets:d,name:f,additionalProperty:p,ticketToken:y}=n,{checkedActionId:S}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:i,paymentMethod:u,...Array.isArray(d)?{movieTickets:d}:void 0,...typeof f=="string"?{name:f}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(p)?{additionalProperty:p}:void 0},purpose:s},qs:{checkedActionId:S,async:!0,purpose:{id:s.id}}}).then(async _=>_.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n}=e,{amount:s,creditCard:i,issuedThrough:u,paymentMethod:d,method:f,ticketToken:p,eventIdsAsOrderedItem:y}=r;if(typeof p!="string"||p==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(y)||y.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:s,issuedThrough:u,paymentMethod:d,...i!=null?{creditCard:i}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(y)?{eventIdsAsOrderedItem:y}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async S=>S.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ya.PaymentService=df});var aA=o(Ke=>{"use strict";var jU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UU=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&jU(r,e,n[s]);return xU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var an;(function(t){let e;e=t.Payment||(t.Payment={})})(an||(Ke.service=an={}));var lf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return an.Payment.svc===void 0&&(an.Payment.svc=(await Promise.resolve().then(()=>UU(oA()))).PaymentService),new an.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=lf});var uA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.OfferService=void 0;var ff=g(),cA=Y(),DU=E(),hf=class extends DU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${cA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[ff.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${cA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[ff.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[ff.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};pa.OfferService=hf});var dA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.PlaceOrderTransactionService=void 0;var cn=g(),LU=Y(),FU=E(),yf=class extends FU.Service{typeOf=LU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[cn.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT],body:n})}async confirm(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",expectedStatusCodes:[cn.status.OK],body:n}).then(async s=>s.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT]})}};va.PlaceOrderTransactionService=yf});var lA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.ReturnOrderTransactionService=void 0;var un=g(),kU=Y(),BU=E(),pf=class extends BU.Service{typeOf=kU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[un.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[un.status.NO_CONTENT,un.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[un.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[un.status.NO_CONTENT]})}};Sa.ReturnOrderTransactionService=pf});var fA=o(He=>{"use strict";var GU=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$U=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vf=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&GU(r,e,n[s]);return $U(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxn=He.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(He.service=nt={}));var Sf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>vf(uA()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>vf(dA()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>vf(lA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxn=Sf});var hA=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.OfferService=void 0;var dn=g(),ln=Y(),KU=E(),mf=class extends KU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[dn.status.ACCEPTED],body:{object:r,purpose:n,...typeof s?.id=="string"?{potentialActions:s}:void 0},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[dn.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[dn.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[dn.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:s}=e;return this.fetch({uri:`/offers/${ln.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[dn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};ma.OfferService=mf});var yA=o(We=>{"use strict";var HU=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),VU=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&HU(r,e,n[s]);return WU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxc=We.service=void 0;var fn;(function(t){let e;e=t.Offer||(t.Offer={})})(fn||(We.service=fn={}));var _f=class{options;constructor(e){this.options=e}async createOfferInstance(e){return fn.Offer.svc===void 0&&(fn.Offer.svc=(await Promise.resolve().then(()=>VU(hA()))).OfferService),new fn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxc=_f});var pA=o(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.CategoryCodeService=void 0;var _a=g(),zU=E(),Of=class extends zU.Service{constructor(e){super({...e,retryableStatusCodes:[_a.status.BAD_GATEWAY,_a.status.FORBIDDEN,_a.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[_a.status.OK]}).then(async r=>({data:await r.json()}))}};Oa.CategoryCodeService=Of});var vA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EmailMessageService=void 0;var Ta=g(),YU=E(),Tf=class extends YU.Service{constructor(e){super({...e,retryableStatusCodes:[Ta.status.BAD_GATEWAY,Ta.status.FORBIDDEN,Ta.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Ta.status.OK]}).then(async e=>({data:await e.json()}))}};Ea.EmailMessageService=Tf});var SA=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.EventService=void 0;var Ie=g(),yr=Y(),QU=E(),Ef=class extends QU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==yr.factory.eventType.ScreeningEvent)throw new yr.factory.errors.Argument("typeOf",`typeOf must be ${yr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![yr.factory.eventType.ScreeningEvent].includes(n))throw new yr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new yr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:s}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:s},expectedStatusCodes:[Ie.status.OK]}).then(async i=>{let u=await i.json();return{data:u,...u.length>0?{sectionCode:u[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>u.json())}};Ca.EventService=Ef});var mA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.PlaceService=void 0;var ga=g(),ZU=Y(),JU=E(),Cf=class extends JU.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${ZU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[ga.status.OK]}).then(async r=>({data:await r.json()}))}};ba.PlaceService=Cf});var _A=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.HasPOSService=void 0;var Aa=g(),XU=Y(),eD=E(),gf=class extends eD.Service{constructor(e){super({...e,retryableStatusCodes:[Aa.status.BAD_GATEWAY,Aa.status.FORBIDDEN,Aa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${XU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Aa.status.OK]}).then(async r=>r.json())}};Pa.HasPOSService=gf});var OA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.SellerService=void 0;var kt=g(),tD=E(),bf=class extends tD.Service{constructor(e){super({...e,retryableStatusCodes:[kt.status.BAD_GATEWAY,kt.status.FORBIDDEN,kt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[kt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}};wa.SellerService=bf});var EA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.service=void 0;var rD=pA(),nD=vA(),sD=SA(),iD=mA(),oD=_A(),aD=OA(),TA;(function(t){class e extends rD.CategoryCodeService{}t.CategoryCode=e;class r extends nD.EmailMessageService{}t.EmailMessage=r;class n extends sD.EventService{}t.Event=n;class s extends iD.PlaceService{}t.Place=s;let i;(function(d){class f extends oD.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends aD.SellerService{}t.Seller=u})(TA||(Ra.service=TA={}))});var CA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CreativeWorkService=void 0;var cD=te(),uD=E(),Af=class extends uD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,cD.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ma.CreativeWorkService=Af});var gA=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.CustomerService=void 0;var dD=te(),lD=E(),Pf=class extends lD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,dD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findCustomers(e)}};Ia.CustomerService=Pf});var bA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventService=void 0;var pr=Y(),qa=te(),fD=E(),wf=class extends fD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,qa.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,qa.loadChevreAdmin)({auth:r,endpoint:n});if(![pr.factory.eventStatusType.EventCancelled,pr.factory.eventStatusType.EventPostponed,pr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new pr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new pr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:pr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Na.EventService=wf});var AA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventOfferService=void 0;var hD=te(),yD=E(),Rf=class extends yD.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:s}=this.options,i=await(0,hD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};ja.EventOfferService=Rf});var PA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.EventSeriesService=void 0;var pD=te(),vD=E(),Mf=class extends vD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,pD.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};xa.EventSeriesService=Mf});var RA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MeService=void 0;var wA=te(),SD=E(),If=class extends SD.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,wA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,wA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};Ua.MeService=If});var qA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.MovieTheaterService=void 0;var Da=Y(),MA=te(),mD=E(),IA=20,qf=class extends mD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,MA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Da.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Da.factory.errors.Argument("page","must be number");if(d<1||d>IA)throw new Da.factory.errors.Argument("limit",`must be >=1 and <=${IA}`);if(f<1)throw new Da.factory.errors.Argument("page","must be >=1");return(await u.createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,MA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};La.MovieTheaterService=qf});var NA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.NoteAboutOrderService=void 0;var Nf=te(),_D=E(),jf=class extends _D.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Fa.NoteAboutOrderService=jf});var xA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferService=void 0;var mt=Y(),jA=te(),OD=E(),xf=class extends OD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,jA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new mt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new mt.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new mt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,jA.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==mt.factory.product.ProductType.EventService&&y!==mt.factory.product.ProductType.Product)throw new mt.factory.errors.Argument("itemOffered.typeOf",`must be ${mt.factory.product.ProductType.EventService} or ${mt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};ka.OfferService=xf});var UA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OfferCatalogService=void 0;var hn=Y(),TD=te(),ED=E(),Uf=class extends ED.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,TD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==hn.factory.product.ProductType.EventService&&y!==hn.factory.product.ProductType.Product)throw new hn.factory.errors.Argument("itemOffered.typeOf",`must be ${hn.factory.product.ProductType.EventService} or ${hn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ba.OfferCatalogService=Uf});var LA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OfferCatalogItemService=void 0;var DA=te(),CD=E(),Df=class extends CD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,DA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,DA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ga.OfferCatalogItemService=Df});var FA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.OrderService=void 0;var Rt=Y(),yn=te(),gD=E(),$a=20,Lf=class extends gD.Service{async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,yn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,yn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,yn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,yn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,yn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ka.OrderService=Lf});var kA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.PaymentMethodService=void 0;var bD=te(),AD=E(),Ff=class extends AD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,bD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ha.PaymentMethodService=Ff});var BA=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ProductService=void 0;var pn=Y(),PD=te(),wD=E(),kf=class extends wD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,PD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==pn.factory.product.ProductType.EventService&&f!==pn.factory.product.ProductType.Product)throw new pn.factory.errors.Argument("typeOf",`must be ${pn.factory.product.ProductType.EventService} or ${pn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Wa.ProductService=kf});var $A=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ReservationService=void 0;var vn=Y(),Va=te(),RD=E(),GA=20,Bf=class extends RD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Va.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new vn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new vn.factory.errors.Argument("page","must be number");if(d<1||d>GA)throw new vn.factory.errors.Argument("limit",`must be >=1 and <=${GA}`);if(f<1)throw new vn.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Va.loadChevreAdmin)({auth:i,endpoint:u}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Va.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;if(typeof i?.id!="string"||i.id.length===0)throw new vn.factory.errors.ArgumentNull("seller.id");let u=await(0,Va.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};za.ReservationService=Bf});var KA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.SellerService=void 0;var MD=te(),ID=E(),Gf=class extends ID.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,MD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Ya.SellerService=Gf});var HA=o(Ve=>{"use strict";var qD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ND=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&qD(r,e,n[s]);return ND(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var B;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let _;_=t.Order||(t.Order={});let b;b=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(Ve.service=B={}));var qe=[],$f=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createCreativeWorkInstance(e){return B.CreativeWork.svc===void 0&&(B.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(CA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qe})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(gA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(bA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(AA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(PA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:qe})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(RA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(qA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:qe})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(NA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(xA()))).OfferService),new B.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return B.OfferCatalog.svc===void 0&&(B.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(UA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(LA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:qe})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(FA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:qe})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(kA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:qe})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(BA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:qe})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce($A()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:qe})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce(KA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};Ve.CloudAdmin=$f});var WA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.OrderService=void 0;var Bt=te(),jD=E(),Kf=class extends jD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:b}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...y!==void 0?{customer:y}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,..._!==void 0?{orderDateThrough:_}:void 0,...typeof b=="string"?{orderNumber:b}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,_=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:b}=await _.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:b}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0})}};Qa.OrderService=Kf});var VA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.DeliveryService=void 0;var xD=te(),UD=E(),Hf=class extends UD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,xD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Za.DeliveryService=Hf});var YA=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.ReservationService=void 0;var zA=te(),DD=E(),Wf=class extends DD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,zA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,zA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Ja.ReservationService=Wf});var QA=o(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.TokenService=void 0;var LD=E(),Vf=class extends LD.Service{};Xa.TokenService=Vf});var ZA=o(ze=>{"use strict";var FD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ec=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&FD(r,e,n[s]);return kD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var tc=g(),Ne;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(Ne||(ze.service=Ne={}));var rc=[tc.status.BAD_GATEWAY,tc.status.SERVICE_UNAVAILABLE,tc.status.FORBIDDEN,tc.status.UNAUTHORIZED],zf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOrderInstance(e){return Ne.Order.svc===void 0&&(Ne.Order.svc=(await Promise.resolve().then(()=>ec(WA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:rc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>ec(VA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:rc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>ec(YA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:rc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>ec(QA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:rc})}};ze.CloudAsset=zf});var JA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.CreativeWorkService=void 0;var BD=g(),GD=E(),Yf=class extends GD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[BD.status.OK]}).then(async r=>r.json())}};nc.CreativeWorkService=Yf});var XA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.PaymentProductService=void 0;var $D=g(),KD=E(),Qf=class extends KD.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[$D.status.OK]}).then(async i=>i.json())}};sc.PaymentProductService=Qf});var eP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.ProductService=void 0;var Zf=g(),HD=E(),Jf=class extends HD.Service{async search(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:s,seller:i}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Zf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}};ic.ProductService=Jf});var tP=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.EventOfferService=void 0;var WD=g(),VD=E(),zD="/eventOffers",Xf=class extends VD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:zD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[WD.status.OK]}).then(async d=>d.json())}};oc.EventOfferService=Xf});var rP=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.PlaceService=void 0;var eh=g(),YD=Y(),QD=E(),th=class extends QD.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${YD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[eh.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[eh.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[eh.status.OK]}).then(async f=>f.json())}};ac.PlaceService=th});var nP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.SeatOfferService=void 0;var ZD=g(),JD=E(),XD="/seatOffers",rh=class extends JD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:XD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[ZD.status.OK]}).then(async u=>u.json())}};cc.SeatOfferService=rh});var sP=o(Ye=>{"use strict";var eL=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tL=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vr=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&eL(r,e,n[s]);return tL(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var nh=g(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[nh.status.BAD_GATEWAY,nh.status.FORBIDDEN,nh.status.UNAUTHORIZED],sh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(JA()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>vr(XA()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Sr})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>vr(eP()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Sr})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>vr(tP()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>vr(rP()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Sr})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>vr(nP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=sh});var aP=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PaymentService=void 0;var le=g(),ge=Y(),be=te(),rL=E(),iP=1e3,nL=5e3;async function oP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var ih=class extends rL.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:w}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:i});return b.authorizeCreditCard({object:{...n,ticketToken:w},purpose:s})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,{checkedActionId:i}=r,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y}),{ticketToken:b}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await _.createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:b},purpose:s},{checkedActionId:i})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:w}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:i});if(typeof w!="string"||w==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return b.publishCreditCardPaymentUrl({object:{...n,ticketToken:w},purpose:s})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),_=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},b=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(b.length!==1)throw new ge.factory.errors.Argument("object.movieTickets","movieTickets length must be 1");return p.checkMovieTicketAsync({object:[{typeOf:ge.factory.service.paymentService.PaymentServiceType.MovieTicket,id:y,paymentMethod:{typeOf:S},movieTickets:b,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:_})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),b=!1,w=setTimeout(()=>{b=!0},i),R,q=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!b;){try{R=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(N){q=N}await oP(nL),console.log("retrying issueTicketThroughMovieTicket...",q?.name,b)}if(typeof R?.ticketToken=="string")return R;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>iP?r.intervalAfterIssueTicketInMS:iP,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await oP(d),y}};uc.PaymentService=ih});var cP=o(Qe=>{"use strict";var sL=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iL=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oL=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sL(r,e,n[s]);return iL(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var dc=g(),Sn;(function(t){let e;e=t.Payment||(t.Payment={})})(Sn||(Qe.service=Sn={}));var aL=[dc.status.BAD_GATEWAY,dc.status.SERVICE_UNAVAILABLE,dc.status.FORBIDDEN,dc.status.UNAUTHORIZED],oh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return Sn.Payment.svc===void 0&&(Sn.Payment.svc=(await Promise.resolve().then(()=>oL(aP()))).PaymentService),new Sn.Payment.svc({...this.options,...e,retryableStatusCodes:aL})}};Qe.CloudPay=oh});var fP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.authorizeOfferAsync=uL;lc.voidAuthorizeOfferAsync=dL;var re=Y(),uP=2e4,dP=1e3;async function lP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function cL(t){let e;switch(t.reason){case re.factory.errorCode.Argument:e=new re.factory.errors.Argument("",t.message);break;case re.factory.errorCode.ArgumentNull:e=new re.factory.errors.ArgumentNull("",t.message);break;case re.factory.errorCode.Unauthorized:e=new re.factory.errors.Unauthorized(t.message);break;case re.factory.errorCode.Forbidden:e=new re.factory.errors.Forbidden(t.message);break;case re.factory.errorCode.NotFound:e=new re.factory.errors.NotFound("",t.message);break;case re.factory.errorCode.AlreadyInUse:e=new re.factory.errors.AlreadyInUse("",[],t.message);break;case re.factory.errorCode.RateLimitExceeded:e=new re.factory.errors.RateLimitExceeded(t.message);break;case re.factory.errorCode.GatewayTimeout:e=new re.factory.errors.GatewayTimeout(t.message);break;default:e=new re.factory.errors.Internal(t.message)}return e}function uL(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},uP);let s,i;for(;s===void 0&&i===void 0;){if(await lP(dP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===re.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=cL(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw i}}function dL(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},uP);let s,i;for(;s===void 0&&i===void 0;){if(await lP(dP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(u.status===re.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var yP=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PlaceOrderCOAService=void 0;var hP=Y(),ah=te(),lL=E(),ch=fP(),uh=class extends lL.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:b,retryableStatusCodes:w}=this.options,q=await(await(0,ah.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:b})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),N=await(0,ch.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new hP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,ah.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ch.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:_,seller:b,disableAutoRetry:w,retryableStatusCodes:R}=this.options,N=await(await(0,ah.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:_,seller:{id:typeof b?.id=="string"?b.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),C=await(0,ch.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new hP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};fc.PlaceOrderCOAService=uh});var pP=o(Ze=>{"use strict";var fL=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hL=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yL=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&fL(r,e,n[s]);return hL(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var hc=g(),mn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(mn||(Ze.service=mn={}));var pL=[hc.status.BAD_GATEWAY,hc.status.SERVICE_UNAVAILABLE,hc.status.FORBIDDEN,hc.status.UNAUTHORIZED],dh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return mn.transaction.PlaceOrder.svc===void 0&&(mn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>yL(yP()))).PlaceOrderCOAService),new mn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:pL})}};Ze.CloudTxc=dh});var vP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.OfferService=void 0;var vL=Y(),lh=te(),SL=E(),fh=class extends SL.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,lh.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:_,eventOfferId:b}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:_,eventOfferId:b})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,lh.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:vL.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,lh.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};yc.OfferService=fh});var SP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.PlaceOrderTransactionService=void 0;var mr=g(),_r=te(),mL=E(),hh=class extends mL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:s})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};pc.PlaceOrderTransactionService=hh});var mP=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.ReturnOrderTransactionService=void 0;var yh=te(),_L=E(),ph=class extends _L.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,yh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,yh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,yh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};vc.ReturnOrderTransactionService=ph});var _P=o(Je=>{"use strict";var OL=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),TL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vh=Je&&Je.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&OL(r,e,n[s]);return TL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var Sc=g(),st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(Je.service=st={}));var Sh=[Sc.status.BAD_GATEWAY,Sc.status.SERVICE_UNAVAILABLE,Sc.status.FORBIDDEN,Sc.status.UNAUTHORIZED],mh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>vh(vP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:Sh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>vh(SP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:Sh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>vh(mP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:Sh})}};Je.CloudTxn=mh});var OP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleService=void 0;var EL=g(),CL=E(),_h=class extends CL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[EL.status.OK]}).then(async r=>r.json())}};mc.RuleService=_h});var EP=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.RuleSetService=void 0;var TP=g(),gL=E(),Oh=class extends gL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[TP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[TP.status.NO_CONTENT]})}};_c.RuleSetService=Oh});var gP=o(Xe=>{"use strict";var bL=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CP=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&bL(r,e,n[s]);return AL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var Th=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>CP(OP()))).RuleService),new Mt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Mt.RuleSet.svc===void 0&&(Mt.RuleSet.svc=(await Promise.resolve().then(()=>CP(EP()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=Th});var te=o(X=>{"use strict";var PL=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),wL=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&PL(r,e,n[s]);return wL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=IL;X.loadChevreAsset=qL;X.loadChevreAdmic=NL;X.loadChevreAdmin=jL;X.loadChevreConsole=xL;X.loadChevrePay=UL;X.loadChevreTxn=DL;X.loadChevreTxc=LL;X.loadService=FL;X.loadCloudAdmin=kL;X.loadCloudAsset=BL;X.loadCloudSearch=GL;X.loadCloudPay=$L;X.loadCloudTxc=KL;X.loadCloudTxn=HL;X.loadWaiterAdmin=WL;var RL=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return RL.factory}});var ML=Oe(Ls());X.transporters=ML;var Eh;async function IL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(JC()))).Chevre),new Eh(...t)}var Ch;async function qL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(ng()))).ChevreAsset),new Ch(...t)}var gh;async function NL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(og()))).ChevreAdmic),new gh(...t)}var bh;async function jL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(Gg()))).ChevreAdmin),new bh(...t)}var Ah;async function xL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(iA()))).ChevreConsole),new Ah(...t)}var Ph;async function UL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(aA()))).ChevrePay),new Ph(...t)}var wh;async function DL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(fA()))).ChevreTxn),new wh(...t)}var Rh;async function LL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(yA()))).ChevreTxc),new Rh(...t)}var Mh;async function FL(){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(EA()))).service),Mh}var Ih;async function kL(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(HA()))).CloudAdmin),new Ih(...t)}var qh;async function BL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(ZA()))).CloudAsset),new qh(...t)}var Nh;async function GL(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(sP()))).CloudSearch),new Nh(...t)}var jh;async function $L(...t){return jh===void 0&&(jh=(await Promise.resolve().then(()=>Oe(cP()))).CloudPay),new jh(...t)}var xh;async function KL(...t){return xh===void 0&&(xh=(await Promise.resolve().then(()=>Oe(pP()))).CloudTxc),new xh(...t)}var Uh;async function HL(...t){return Uh===void 0&&(Uh=(await Promise.resolve().then(()=>Oe(_P()))).CloudTxn),new Uh(...t)}var Dh;async function WL(...t){return Dh===void 0&&(Dh=(await Promise.resolve().then(()=>Oe(gP()))).WaiterAdmin),new Dh(...t)}});var bP=o(Gt=>{"use strict";var VL=Gt&&Gt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zL=Gt&&Gt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VL(e,t,r)};Object.defineProperty(Gt,"__esModule",{value:!0});zL(te(),Gt)});var LP=o((A5,DP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(t){var e={exports:{}};return t(e,e.exports),e.exports}var YL=Ht(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(u?u(R):D())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function b(){var h=setTimeout;return function(){return h(R,1)}}var w=new Array(1e3);function R(){for(var h=0;h<s;h+=2)(0,w[h])(w[h+1]),w[h]=void 0,w[h+1]=void 0;s=0}var q,N,C,M,D=void 0;function k(h,v){var T=this,A=new this.constructor(G);A[x]===void 0&&a(A);var P=T._state;if(P){var F=arguments[P-1];d(function(){return tt(P,A,F,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(G);return oe(v,h),v}D=S?function(){return process.nextTick(R)}:y?(N=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=R,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:b()}catch{return b()}})():b();var x=Math.random().toString(36).substring(2);function G(){}var H=void 0,$=1,Q=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?ie(A,P._result):P._state===Q?ee(A,P._result):et(P,void 0,function(F){return oe(A,F)},function(F){return ee(A,F)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,F){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(F,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(P=typeof(A=v),A===null||P!=="object"&&P!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(F){return void ee(h,F)}Te(h,v,T)}var A,P}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(h,v){h._state===H&&(h._result=v,h._state=$,h._subscribers.length!==0&&d(it,h))}function ee(h,v){h._state===H&&(h._state=Q,h._result=v,d(se,h))}function et(h,v,T,A){var P=h._subscribers,F=P.length;h._onerror=null,P[F]=v,P[F+$]=T,P[F+Q]=A,F===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,F=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,F):P(F);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),F=void 0,z=void 0,Z=!0;if(P){try{F=T(A)}catch(ue){Z=!1,z=ue}if(v===F)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else F=A;v._state!==H||(P&&Z?oe(v,F):Z===!1?ee(v,z):h===$?ie(v,F):h===Q&&ee(v,F))}var Ue=0;function a(h){h[x]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var c=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(G),this.promise[x]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===H&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var A=this._instanceConstructor,P=A.resolve;if(P===K){var F=void 0,z=void 0,Z=!1;try{F=v.then}catch(Ae){Z=!0,z=Ae}if(F===k&&v._state!==H)this._settledAt(v._state,T,v._result);else if(typeof F!="function")this._remaining--,this._result[T]=v;else if(A===l){var ue=new A(G);Z?ee(ue,z):Te(ue,v,F),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===H&&(this._remaining--,v===Q?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Q,T,P)})},h})(),l=(function(){function h(v){this[x]=Ue++,this._result=this._state=void 0,this._subscribers=[],G!==v&&(typeof v!="function"&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof h?(function(T,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var T=this,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,F=0;F<P;F++)v.resolve(h[F]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(G);return ee(v,h),v},l._setScheduler=function(h){u=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Kt!==void 0)h=Kt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),QL={__proto__:null,default:{}},Gh=Ht(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Kt!==void 0&&Kt.crypto&&(i=Kt.crypto),!i)try{i=QL}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var D;return C.prototype=M,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||b).stringify(this)},concat:function(C){var M=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)M[k+x>>>2]|=(D[x>>>2]>>>24-x%4*8&255)<<24-(k+x)%4*8;else for(var G=0;G<K;G+=4)M[k+G>>>2]=D[G>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],D=0;D<C;D+=4)M.push(u());return new S.init(M,C)}}),_=f.enc={},b=_.Hex={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=M[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,M/2)}},w=_.Latin1={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,M)}},R=_.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),H=(G=C?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*H,K);if(H){for(var Q=0;Q<H;Q+=x)this._doProcessBlock(k,Q);M=k.splice(0,H),D.sigBytes-=$}return new S.init(M,$)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=q.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,D){return new C.init(D).finalize(M)}},_createHmacHelper:function(C){return function(M,D){return new N.HMAC.init(C,D).finalize(M)}}});var N=f.algo={};return f})(Math),r)}),IP=Ht(function(t,e){var r;t.exports=(r=Gh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function b(N){for(var C=n.sqrt(N),M=2;M<=C;M++)if(!(N%M))return!1;return!0}function w(N){return 4294967296*(N-(0|N))|0}for(var R=2,q=0;q<64;)b(R)&&(q<8&&(p[q]=w(n.pow(R,.5))),y[q]=w(n.pow(R,1/3)),q++),R++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(b,w){for(var R=this._hash.words,q=R[0],N=R[1],C=R[2],M=R[3],D=R[4],k=R[5],K=R[6],x=R[7],G=0;G<64;G++){if(G<16)S[G]=0|b[w+G];else{var H=S[G-15],$=S[G-2];S[G]=((H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3)+S[G-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[G-16]}var Q=q&N^q&C^N&C,Te=x+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[G]+S[G];x=K,K=k,k=D,D=M+Te|0,M=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Q)|0}R[0]=R[0]+q|0,R[1]=R[1]+N|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+D|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+x|0},_doFinalize:function(){var b=this._data,w=b.words,R=8*this._nDataBytes,q=8*b.sigBytes;return w[q>>>5]|=128<<24-q%32,w[14+(q+64>>>9<<4)]=n.floor(R/4294967296),w[15+(q+64>>>9<<4)]=R,b.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var b=d.clone.call(this);return b._hash=this._hash.clone(),b}});s.SHA256=d._createHelper(_),s.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),ZL=Ht(function(t,e){var r,n;t.exports=(n=(r=Gh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(y>>>6*(3-S)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,_,b){for(var w=[],R=0,q=0;q<_;q++)if(q%4){var N=b[S.charCodeAt(q-1)]<<q%4*2,C=b[S.charCodeAt(q)]>>>6-q%4*2;w[R>>>2]|=(N|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),AP=Ht(function(t,e){t.exports=Gh.enc.Hex}),qP=Ht(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var A=32767&c,P=c>>15;--T>=0;){var F=32767&this[a],z=this[a++]>>15,Z=P*F+z*A;v=((F=A*F+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*z+(v>>>30),l[h++]=1073741823&F}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,h,v,T){for(;--T>=0;){var A=c*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var A=16383&c,P=c>>14;--T>=0;){var F=16383&this[a],z=this[a++]>>14,Z=P*F+z*A;v=((F=A*F+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*z,l[h++]=268435455&F}return v},r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52;var u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function _(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function b(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function q(a,c){return a|c}function N(a,c){return a^c}function C(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function D(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function x(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}b.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},b.prototype.revert=function(a){return a},b.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},b.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},b.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],h=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,h,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)c[l]=0;c[A]=P,c.t=this.t+A+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)c[A-l-1]|=(this[A]&T)<<v,c[A-l]=this[A]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=a.s,F=this.DB-_(h[h.t-1]);F>0?(h.lShiftTo(F,T),v.lShiftTo(F,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var ue=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=c??s();for(T.dlShiftTo(Pe,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Pe>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,Cr,l,Pe,0,z))<Cr)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),A!=P&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),F>0&&l.rShiftTo(F,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=c.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,h),(a&1<<T)>0)c.mulTo(h,v,l);else{var A=l;l=h,h=A}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%c;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<c?(l=(this[A]&(1<<P)-1)<<c-P,l|=this[--A]>>(P+=this.DB-c)):(l=this[A]>>(P-=c)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new b(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},x.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},x.prototype.revert=function(a){return a},x.prototype.reduce=function(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)},x.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},x.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var G,H,$,Q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/Q[Q.length-1];function oe(){var a;a=new Date().getTime(),H[$++]^=255&a,H[$++]^=a>>8&255,H[$++]^=a>>16&255,H[$++]^=a>>24&255,$>=Ue&&($-=Ue)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),h=S(l),v=s(),T=s(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var F=y(a,P);F<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=c*A+F,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),c.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,c,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=c(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=c(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=c(v,a[h]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],c[l++]=h&this.DM,h>>=this.DB;h+=a.s}c.s=h<0?-1:0,h>0?c[l++]=h:h<-1&&(c[l++]=this.DV+h),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var h,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,c);v<h;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var h=l.t=this.t+a.t-c;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(c-this.t,0);h<a.t;++h)l[this.t+h-c]=this.am(c-h,a[h],l,0,0,this.t+h-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(c*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var h=c.shiftRight(l);(a=a+1>>1)>Q.length&&(a=Q.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Q[Math.floor(Math.random()*Q.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(c)!=0){for(var P=1;P++<l&&A.compareTo(c)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,q,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,N,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,C,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new b(c):c.isEven()?new x(c):new w(c);var A=new Array,P=3,F=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!0,ye=s();for(v=_(a[Ee])-1;Ee>=0;){for(v>=F?ue=a[Ee]>>v-F&z:(ue=(a[Ee]&(1<<v+1)-1)<<F-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-F)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),c&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Q[Q.length-1]){for(c=0;c<Q.length;++c)if(l[0]==Q[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Q.length;){for(var h=Q[c],v=c+1;v<Q.length&&h<Te;)h*=Q[v++];for(h=l.modInt(h);c<v;)if(h%Q[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=x,H==null){var se;if(H=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)H[$++]=ie[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)H[$++]=255&ee.charCodeAt(se)}}for(;$<Ue;)se=Math.floor(65536*Math.random()),H[$++]=se>>>8,H[$++]=255&se;$=0,oe()}function et(){if(G==null){for(oe(),(G=new tt).init(H),$=0;$<H.length;++$)H[$]=0;$=0}return G.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=et()},tt.prototype.init=function(a){var c,l,h;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)h=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Kt)}),PP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},wP={sha256:IP};function NP(t,e){if(this.n=null,this.e=0,!(t!=null&&e!=null&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new qP.BigInteger(t,16),this.e=parseInt(e,16)}NP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new qP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in PP){var d=PP[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!wP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=wP[n.alg](t).toString();return n.hash===s};for(RP=[],xe=[],jP=typeof Uint8Array<"u"?Uint8Array:Array,Lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)RP[$t]=Lh[$t],xe[Lh.charCodeAt($t)]=$t;var RP,xe,jP,Lh,$t;xe[45]=62,xe[95]=63;var xP=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],u=new jP((function(p,y,S){return 3*(y+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=xe[t.charCodeAt(r)]<<18|xe[t.charCodeAt(r+1)]<<12|xe[t.charCodeAt(r+2)]<<6|xe[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function UP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function MP(t){return t=UP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(xP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Fh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var s=e[n].toString(16);r+=s.length===2?s:"0"+s}return r})(xP(UP(t)))}var JL=Ht(function(t){var e,r;e=Kt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function XL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,_){i.push(S=S.toLowerCase()),u.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function eF(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function kh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}kh.prototype=Error.prototype,ne.prototype=Error.prototype;var tF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();YL.polyfill();var Bh="RS256",Oc=function(t){return typeof t=="number"},rF=function(){return new Date};function _n(t){var e=t||{};if(this.jwksCache=e.jwksCache||new tF,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:rF,this.leeway<0||this.leeway>300)throw new kh("The leeway should be positive and lower than five minutes.");if(Bh!==this.expectedAlg)throw new kh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Bh+'".')}_n.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Fh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,_=n.payload.nbf,b=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+Bh+'".'),null);this.getRsaVerifier(y,d,function(M,D){if(M)return r(M,null);if(!D.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!q||typeof q!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!Oc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!b||!Oc(b))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(_&&Oc(_)){var x=_-C.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+G+'"'),null)}if(C.maxAge){if(!R||!Oc(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var H=R+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(H),N>$)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+N+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},_n.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||JL(u.iss,".well-known","jwks.json"),(fetch=="undefined"?XL:fetch)(d).then(eF).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===u.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Fh((S=_).n),exp:Fh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new NP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},_n.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(MP(n[0])),r=JSON.parse(MP(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},_n.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=IP(t),u=AP.stringify(i),d=u.substring(0,u.length/2),f=AP.parse(d),p=ZL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},DP.exports=_n});var On=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.AuthorizeError=void 0;var $h=class extends Error{error;errorDescription;state};Tc.AuthorizeError=$h});var FP=o(Or=>{"use strict";var nF=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var sF=nF(tr()),Kh=(0,sF.default)("cinerino-sdk:auth:popupHandler"),Hh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(Kh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}Kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){Kh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Or.PopupHandler=Hh});var kP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.PopupAuthenticationHandler=void 0;var iF=On(),oF=FP(),Wh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.location.hash}catch(i){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new oF.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new iF.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Ec.PopupAuthenticationHandler=Wh});var zh=o(Tr=>{"use strict";var aF=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var cF=aF(tr()),uF=(0,cF.default)("cinerino-sdk:auth:iframeHandler"),Vh=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(uF("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Tr.IframeHandler=Vh});var BP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentAuthenticationHandler=void 0;var dF=On(),lF=zh(),Yh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new lF.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new dF.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentAuthenticationHandler=Yh});var GP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.SilentLogoutHandler=void 0;var fF=On(),hF=zh(),Qh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new hF.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new fF.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};gc.SilentLogoutHandler=Qh});var $P=o(()=>{});var KP=o(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.LoginTicket=void 0;var Zh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};bc.LoginTicket=Zh});var HP=o(_t=>{"use strict";var yF=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_t,"__esModule",{value:!0});_t.OAuth2client=_t.MAX_RETRY_NUM=void 0;var pF=$P(),vF=yF(tr()),Ac=g(),SF=Ls(),mF=KP(),Wt=(0,vF.default)("cinerino-sdk:auth:oAuth2client"),_F=1e3;_t.MAX_RETRY_NUM=2;async function OF(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Jh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,pF.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==Ac.status.OK)if(d.status===Ac.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await OF(_F*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new SF.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==Ac.status.OK)if(u.status===Ac.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:_}=f;d={access_token:p,id_token:y,token_type:_,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new mF.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=Jh});var zP=o(Er=>{"use strict";var VP=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var TF=VP(tr()),WP=VP(LP()),Xh=Hu(),EF=On(),CF=kP(),gF=BP(),bF=GP(),AF=HP(),Pc=(0,TF.default)("cinerino-sdk:auth:implicitGrantClient"),ey=class t extends AF.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Pc("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await gF.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(s)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await CF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await bF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Pc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Pc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Xh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new EF.AuthorizeError(n.error_description);throw s.error=n.error,s.errorDescription=n.error_description,s.state=n.state,s}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let s=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s)}if(typeof n.id_token=="string"){let i=new WP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,s)=>{new WP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(Pc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Xh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Xh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=ey});var YP=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=wF;var Ot=bP();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var PF=zP();function wF(t){return new PF.ImplicitGrantClient(t)}});var F5=window.cinerino=YP();})();
|
|
5
5
|
/* istanbul ignore else -- @preserve */
|
|
6
6
|
//# sourceMappingURL=bundle.js.map
|