@cinerino/sdk 18.0.0-alpha.12 → 18.0.0-alpha.13

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 CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ty=o(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0})});var lt=o(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var nw;(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"})(nw=_n.ErrorCode||(_n.ErrorCode={}))});var _t=o((IF,ry)=>{"use strict";ry.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?sw:iw);function sw(t,e){return t.__proto__=e,t}function iw(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ft=o(gr=>{"use strict";var ow=gr&&gr.__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(gr,"__esModule",{value:!0});var aw=(function(t){ow(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);gr.WaiterError=aw});var ny=o(br=>{"use strict";var cw=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 uw=_t(),dw=lt(),lw=ft(),fw=(function(t){cw(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,dw.ErrorCode.Argument,i)||this,s.argumentName=r,uw(s,e.prototype),s}return e})(lw.WaiterError);br.ArgumentError=fw});var sy=o(Ar=>{"use strict";var hw=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 yw=_t(),pw=lt(),vw=ft(),Sw=(function(t){hw(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,pw.ErrorCode.Argument,i)||this,s.argumentName=r,yw(s,e.prototype),s}return e})(vw.WaiterError);Ar.ArgumentNullError=Sw});var iy=o(Pr=>{"use strict";var mw=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 _w=_t(),Ow=lt(),Tw=ft(),Ew=(function(t){mw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,Ow.ErrorCode.Forbidden,s)||this,_w(n,e.prototype),n}return e})(Tw.WaiterError);Pr.ForbiddenError=Ew});var oy=o(wr=>{"use strict";var Cw=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 gw=_t(),bw=lt(),Aw=ft(),Pw=(function(t){Cw(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,bw.ErrorCode.NotFound,i)||this,s.entityName=r,gw(s,e.prototype),s}return e})(Aw.WaiterError);wr.NotFoundError=Pw});var ay=o(Rr=>{"use strict";var ww=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 Rw=_t(),Mw=lt(),Iw=ft(),qw=(function(t){ww(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,Mw.ErrorCode.RateLimitExceeded,s)||this,Rw(n,e.prototype),n}return e})(Iw.WaiterError);Rr.RateLimitExceededError=qw});var cy=o(Mr=>{"use strict";var Nw=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 jw=_t(),xw=lt(),Uw=ft(),Dw=(function(t){Nw(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,xw.ErrorCode.ServiceUnavailable,s)||this,jw(n,e.prototype),n}return e})(Uw.WaiterError);Mr.ServiceUnavailableError=Dw});var uy=o(Ir=>{"use strict";var Lw=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 Fw=_t(),kw=lt(),Bw=ft(),Gw=(function(t){Lw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,kw.ErrorCode.Unauthorized,s)||this,Fw(n,e.prototype),n}return e})(Bw.WaiterError);Ir.UnauthorizedError=Gw});var dy=o(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var $w=ny();ot.Argument=$w.ArgumentError;var Kw=sy();ot.ArgumentNull=Kw.ArgumentNullError;var Hw=iy();ot.Forbidden=Hw.ForbiddenError;var Ww=oy();ot.NotFound=Ww.NotFoundError;var Vw=ay();ot.RateLimitExceeded=Vw.RateLimitExceededError;var zw=cy();ot.ServiceUnavailable=zw.ServiceUnavailableError;var Yw=uy();ot.Unauthorized=Yw.UnauthorizedError;var Qw=ft();ot.Waiter=Qw.WaiterError});var fy=o(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0})});var yy=o(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0})});var vy=o(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0})});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var _y=o(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var Zw=ty();ht.client=Zw;var Jw=lt();ht.errorCode=Jw.ErrorCode;var Xw=dy();ht.errors=Xw;var e0=fy();ht.passport=e0;var t0=yy();ht.project=t0;var r0=vy();ht.rule=r0;var n0=my();ht.ruleSet=n0});var Ty=o(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0})});var Cy=o(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.FlgMember=void 0;var Ey;(function(t){t.NonMember="0",t.Member="1"})(Ey||(On.FlgMember=Ey={}))});var by=o(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0})});var Py=o(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0})});var Ry=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ObjectType=void 0;var wy;(function(t){t.SeatReservation="SeatReservation"})(wy||(Tn.ObjectType=wy={}))});var My=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.ObjectType=void 0;var s0=Ry();Object.defineProperty(En,"ObjectType",{enumerable:!0,get:function(){return s0.ObjectType}})});var Ny=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ServiceIdentifier=Qt.ResultType=void 0;var Iy;(function(t){t.Payment="Payment"})(Iy||(Qt.ResultType=Iy={}));var qy;(function(t){t.Chevre="Chevre"})(qy||(Qt.ServiceIdentifier=qy={}))});var xy=o(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0})});var Dy=o(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0})});var Fy=o(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0})});var By=o(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0})});var $y=o(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0})});var Hy=o(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0})});var Vy=o(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var Yy=o(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0})});var Zy=o(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0})});var Xy=o(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0})});var tp=o(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0})});var np=o(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0})});var ip=o(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0})});var ap=o(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0})});var up=o(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0})});var lp=o(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0})});var hp=o(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0})});var pp=o(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0})});var Sp=o(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0})});var mp=o(xt=>{"use strict";var i0=xt&&xt.__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]})),o0=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i0(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});o0(Sp(),xt)});var Op=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ObjectAsTransactionSpecifyingMethod=void 0;var _p;(function(t){t.Id="Id"})(_p||(Cn.ObjectAsTransactionSpecifyingMethod=_p={}))});var Ep=o(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0})});var gp=o(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0})});var Ap=o(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0})});var wp=o(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0})});var Rp=o(yt=>{"use strict";var a0=yt&&yt.__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]})),wc=yt&&yt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&a0(e,t,r)};Object.defineProperty(yt,"__esModule",{value:!0});wc(gp(),yt);wc(Ap(),yt);wc(wp(),yt)});var Ip=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.ActionStatusType=void 0;var Mp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Mp||(gn.ActionStatusType=Mp={}))});var Np=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ActionType=void 0;var qp;(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"})(qp||(bn.ActionType=qp={}))});var xp=o(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0})});var Dp=o(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0})});var Fp=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AggregationType=void 0;var Lp;(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"})(Lp||(An.AggregationType=Lp={}))});var Bp=o(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0})});var $p=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.CategorySetIdentifier=void 0;var Gp;(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"})(Gp||(Pn.CategorySetIdentifier=Gp={}))});var Rc=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.CertificationStatusEnumeration=void 0;var Kp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Kp||(wn.CertificationStatusEnumeration=Kp={}))});var Wp=o(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0})});var zp=o(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0})});var Qp=o(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0})});var Jp=o(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0})});var ev=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.AboutIdentifier=void 0;var Xp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Xp||(Rn.AboutIdentifier=Xp={}))});var rv=o(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var iv=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.PermissionGranteeAudienceType=Zt.DigitalDocumentPermissionType=void 0;var nv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(nv||(Zt.DigitalDocumentPermissionType=nv={}));var sv;(function(t){t.Public="public"})(sv||(Zt.PermissionGranteeAudienceType=sv={}))});var av=o(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var uv=o(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0})});var Mc=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CreativeWorkType=void 0;var dv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(dv||(Mn.CreativeWorkType=dv={}))});var fv=o(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var Cv=o(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.Video=ce.Text=ce.Multipart=ce.Model=ce.Message=ce.Image=ce.Example=ce.Font=ce.Audio=ce.Application=void 0;var hv;(function(t){t.pdf="application/pdf",t.json="application/json"})(hv||(ce.Application=hv={}));var yv;yv||(ce.Audio=yv={});var pv;pv||(ce.Font=pv={});var vv;vv||(ce.Example=vv={});var Sv;Sv||(ce.Image=Sv={});var mv;mv||(ce.Message=mv={});var _v;_v||(ce.Model=_v={});var Ov;Ov||(ce.Multipart=Ov={});var Tv;(function(t){t.csv="text/csv"})(Tv||(ce.Text=Tv={}));var Ev;Ev||(ce.Video=Ev={})});var bv=o(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var Pv=o(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Rv=o(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0})});var Ic=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.EventStatusType=void 0;var Mv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Mv||(In.EventStatusType=Mv={}))});var qc=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.EventType=void 0;var Iv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Iv||(qn.EventType=Iv={}))});var Nv=o(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0})});var xv=o(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0})});var Dv=o(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0})});var Fv=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ItemAvailability=void 0;var Lv;(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"})(Lv||(Nn.ItemAvailability=Lv={}))});var Bv=o(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0})});var Nc=o(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.MerchantReturnEnumeration=Ot.ReturnFeesEnumeration=Ot.RefundTypeEnumeration=void 0;var Gv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Gv||(Ot.RefundTypeEnumeration=Gv={}));var $v;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})($v||(Ot.ReturnFeesEnumeration=$v={}));var Kv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Kv||(Ot.MerchantReturnEnumeration=Kv={}))});var Wv=o(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0})});var zv=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CategorySetIdentifier=void 0;var Vv;(function(t){t.MovieTicketType="MovieTicketType"})(Vv||(jn.CategorySetIdentifier=Vv={}))});var Qv=o(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0})});var Jv=o(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var eS=o(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0})});var rS=o(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0})});var sS=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.OfferItemCondition=void 0;var nS;(function(t){t.NewCondition="NewCondition"})(nS||(xn.OfferItemCondition=nS={}))});var jc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.OfferType=void 0;var iS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(iS||(Un.OfferType=iS={}))});var aS=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.OrderType=void 0;var oS;(function(t){t.Order="Order"})(oS||(Dn.OrderType=oS={}))});var xc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.OrderType=void 0;var c0=aS();Object.defineProperty(Ln,"OrderType",{enumerable:!0,get:function(){return c0.OrderType}})});var Uc=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OrderStatus=void 0;var cS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(cS||(Fn.OrderStatus=cS={}))});var dS=o(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0})});var Dc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OrganizationType=void 0;var lS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(lS||(kn.OrganizationType=lS={}))});var hS=o(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0})});var pS=o(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0})});var SS=o(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0})});var Lc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.PaymentStatusType=void 0;var mS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(mS||(Bn.PaymentStatusType=mS={}))});var OS=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.PermitType=void 0;var _S;(function(t){t.Permit="Permit"})(_S||(Gn.PermitType=_S={}))});var ES=o(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0})});var Fc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.PersonType=void 0;var CS;(function(t){t.Person="Person"})(CS||($n.PersonType=CS={}))});var bS=o(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0})});var PS=o(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0})});var RS=o(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0})});var IS=o(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0})});var NS=o(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0})});var kc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.PlaceType=void 0;var jS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(jS||(Kn.PlaceType=jS={}))});var US=o(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0})});var Bc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PriceCurrency=void 0;var DS;(function(t){t.JPY="JPY"})(DS||(Hn.PriceCurrency=DS={}))});var FS=o(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0})});var Gc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PriceSpecificationType=void 0;var kS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(kS||(Wn.PriceSpecificationType=kS={}))});var $c=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.ProductType=void 0;var BS;(function(t){t.EventService="EventService",t.Product="Product"})(BS||(Vn.ProductType=BS={}))});var $S=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.ProgramMembershipType=void 0;var GS;(function(t){t.ProgramMembership="ProgramMembership"})(GS||(zn.ProgramMembershipType=GS={}))});var HS=o(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0})});var VS=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PropertyValueType=void 0;var WS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(WS||(Yn.PropertyValueType=WS={}))});var YS=o(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0})});var ZS=o(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0})});var XS=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.StringValue=void 0;var JS;(function(t){t.Infinity="Infinity"})(JS||(Qn.StringValue=JS={}))});var tm=o(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0})});var nm=o(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0})});var Kc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ReservationStatusType=void 0;var sm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(sm||(Zn.ReservationStatusType=sm={}))});var Hc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ReservationType=void 0;var im;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(im||(Jn.ReservationType=im={}))});var Wc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.AssetTransactionType=void 0;var om;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(om||(Xn.AssetTransactionType=om={}))});var Vc=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.SortType=void 0;var am;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(am||(es.SortType=am={}))});var zc=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.TaskStatus=void 0;var cm;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(cm||(ts.TaskStatus=cm={}))});var Yc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.TransactionStatusType=void 0;var um;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(um||(rs.TransactionStatusType=um={}))});var Qc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.TransactionType=void 0;var dm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(dm||(ns.TransactionType=dm={}))});var Zc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.UnitCode=void 0;var lm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(lm||(ss.UnitCode=lm={}))});var _m=o(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.RESERVED_CODE_VALUES=void 0;var is=Wc(),fm=Rc(),Ut=Mc(),os=Ic(),hm=qc(),at=Nc(),ym=jc(),u0=xc(),Jt=Uc(),Jc=Dc(),qr=Lc(),d0=Fc(),Xt=kc(),l0=Bc(),Nr=Gc(),pm=$c(),as=Kc(),vm=Hc(),Sm=Vc(),cs=zc(),us=Yc(),mm=Qc(),ds=Zc();ls.RESERVED_CODE_VALUES=["AccountTitle",is.AssetTransactionType.CancelReservation,"MoneyTransfer",is.AssetTransactionType.Pay,is.AssetTransactionType.Refund,is.AssetTransactionType.Reserve,"Authorization",fm.CertificationStatusEnumeration.CertificationActive,fm.CertificationStatusEnumeration.CertificationInactive,Ut.CreativeWorkType.Certification,"Comment",Ut.CreativeWorkType.EmailMessage,Ut.CreativeWorkType.Movie,Ut.CreativeWorkType.NoteDigitalDocument,Ut.CreativeWorkType.SoftwareApplication,Ut.CreativeWorkType.WebApplication,Ut.CreativeWorkType.WebSite,"Event",os.EventStatusType.EventCancelled,os.EventStatusType.EventPostponed,os.EventStatusType.EventRescheduled,os.EventStatusType.EventScheduled,hm.EventType.ScreeningEvent,hm.EventType.ScreeningEventSeries,at.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,at.MerchantReturnEnumeration.MerchantReturnNotPermitted,at.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,at.MerchantReturnEnumeration.MerchantReturnUnspecified,at.RefundTypeEnumeration.ExchangeRefund,at.RefundTypeEnumeration.FullRefund,at.RefundTypeEnumeration.StoreCreditRefund,at.ReturnFeesEnumeration.FreeReturn,at.ReturnFeesEnumeration.RestockingFees,at.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",ym.OfferType.AggregateOffer,ym.OfferType.Offer,"OfferCatalog","OfferCatalogItem",u0.OrderType.Order,Jt.OrderStatus.OrderCancelled,Jt.OrderStatus.OrderDelivered,Jt.OrderStatus.OrderInTransit,Jt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Jt.OrderStatus.OrderProcessing,Jt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",qr.PaymentStatusType.PaymentAutomaticallyApplied,qr.PaymentStatusType.PaymentComplete,qr.PaymentStatusType.PaymentDeclined,qr.PaymentStatusType.PaymentDue,qr.PaymentStatusType.PaymentPastDue,d0.PersonType.Person,Xt.PlaceType.AggregatePlace,Xt.PlaceType.MovieTheater,Xt.PlaceType.Place,Xt.PlaceType.ScreeningRoom,Xt.PlaceType.ScreeningRoomSection,Xt.PlaceType.Seat,l0.PriceCurrency.JPY,Nr.PriceSpecificationType.CategoryCodeChargeSpecification,Nr.PriceSpecificationType.CompoundPriceSpecification,Nr.PriceSpecificationType.MovieTicketTypeChargeSpecification,Nr.PriceSpecificationType.PriceSpecification,Nr.PriceSpecificationType.UnitPriceSpecification,pm.ProductType.EventService,pm.ProductType.Product,as.ReservationStatusType.ReservationCancelled,as.ReservationStatusType.ReservationConfirmed,as.ReservationStatusType.ReservationPending,"ReservationHold",as.ReservationStatusType.ReservationPending,"BusReservation",vm.ReservationType.EventReservation,vm.ReservationType.ReservationPackage,Sm.SortType.Ascending,Sm.SortType.Descending,cs.TaskStatus.Aborted,cs.TaskStatus.Executed,cs.TaskStatus.Ready,cs.TaskStatus.Running,us.TransactionStatusType.Canceled,us.TransactionStatusType.Confirmed,us.TransactionStatusType.Expired,us.TransactionStatusType.InProgress,mm.TransactionType.PlaceOrder,mm.TransactionType.ReturnOrder,ds.UnitCode.Ann,ds.UnitCode.C62,ds.UnitCode.Day,ds.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Tm=o(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.RoleType=void 0;var Om;(function(t){t.OrganizationRole="OrganizationRole"})(Om||(fs.RoleType=Om={}))});var Cm=o(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.RoleName=void 0;var Em;(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"})(Em||(hs.RoleName=Em={}))});var bm=o(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0})});var Pm=o(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0})});var Rm=o(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0})});var Im=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.PaymentServiceType=void 0;var Mm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Mm||(ys.PaymentServiceType=Mm={}))});var Nm=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.Identifier=void 0;var qm;(function(t){t.COA="COA",t.Chevre="Chevre"})(qm||(ps.Identifier=qm={}))});var xm=o(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0})});var Dm=o(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0})});var Fm=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Bm=o(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0})});var $m=o(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0})});var Hm=o(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0})});var Vm=o(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0})});var Ym=o(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0})});var Zm=o(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0})});var Xm=o(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0})});var t_=o(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0})});var n_=o(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0})});var i_=o(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0})});var a_=o(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0})});var u_=o(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0})});var l_=o(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0})});var h_=o(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0})});var p_=o(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0})});var S_=o(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0})});var __=o(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0})});var T_=o(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0})});var C_=o(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0})});var b_=o(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0})});var P_=o(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0})});var R_=o(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0})});var I_=o(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0})});var N_=o(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0})});var x_=o(j_=>{"use strict";Object.defineProperty(j_,"__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 B_=o(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0})});var $_=o(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var H_=o(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0})});var V_=o(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var Y_=o(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0})});var Z_=o(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0})});var X_=o(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0})});var tO=o(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0})});var nO=o(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0})});var iO=o(sO=>{"use strict";Object.defineProperty(sO,"__esModule",{value:!0})});var aO=o(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var uO=o(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0})});var lO=o(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0})});var hO=o(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0})});var pO=o(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0})});var SO=o(vO=>{"use strict";Object.defineProperty(vO,"__esModule",{value:!0})});var _O=o(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0})});var TO=o(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0})});var CO=o(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0})});var bO=o(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0})});var PO=o(AO=>{"use strict";Object.defineProperty(AO,"__esModule",{value:!0})});var RO=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.TaskName=void 0;var wO;(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.ConfirmReturnOrder="confirmReturnOrder",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"})(wO||(vs.TaskName=wO={}))});var IO=o(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var NO=o(qO=>{"use strict";Object.defineProperty(qO,"__esModule",{value:!0})});var xO=o(jO=>{"use strict";Object.defineProperty(jO,"__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 BO=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.Reason=void 0;var kO;(function(t){t.Customer="Customer",t.Seller="Seller"})(kO||(Ss.Reason=kO={}))});var we=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.ErrorCode=void 0;var GO;(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"})(GO||(ms.ErrorCode=GO={}))});var Re=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};_s.ChevreError=Xc});var $O=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.AlreadyInUseError=void 0;var f0=we(),h0=Re(),eu=class extends h0.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(f0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Os.AlreadyInUseError=eu});var KO=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ArgumentError=void 0;var y0=we(),p0=Re(),tu=class extends p0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(y0.ErrorCode.Argument,n),this.argumentName=e}};Ts.ArgumentError=tu});var HO=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ArgumentNullError=void 0;var v0=we(),S0=Re(),ru=class extends S0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(v0.ErrorCode.ArgumentNull,n),this.argumentName=e}};Es.ArgumentNullError=ru});var WO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ForbiddenError=void 0;var m0=we(),_0=Re(),nu=class extends _0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(m0.ErrorCode.Forbidden,r)}};Cs.ForbiddenError=nu});var VO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.GatewayTimeoutError=void 0;var O0=we(),T0=Re(),su=class extends T0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(O0.ErrorCode.GatewayTimeout,r)}};gs.GatewayTimeoutError=su});var zO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.InternalError=void 0;var E0=we(),C0=Re(),iu=class extends C0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(E0.ErrorCode.Internal,r)}};bs.InternalError=iu});var YO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.NotFoundError=void 0;var g0=we(),b0=Re(),ou=class extends b0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(g0.ErrorCode.NotFound,n),this.entityName=e}};As.NotFoundError=ou});var QO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.NotImplementedError=void 0;var A0=we(),P0=Re(),au=class extends P0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(A0.ErrorCode.NotImplemented,r)}};Ps.NotImplementedError=au});var ZO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.RateLimitExceededError=void 0;var w0=we(),R0=Re(),cu=class extends R0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(w0.ErrorCode.RateLimitExceeded,r)}};ws.RateLimitExceededError=cu});var JO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ServiceUnavailableError=void 0;var M0=we(),I0=Re(),uu=class extends I0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(M0.ErrorCode.ServiceUnavailable,r)}};Rs.ServiceUnavailableError=uu});var XO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.UnauthorizedError=void 0;var q0=we(),N0=Re(),du=class extends N0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(q0.ErrorCode.Unauthorized,r)}};Ms.UnauthorizedError=du});var eT=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.UnknownError=void 0;var j0=we(),x0=Re(),lu=class extends x0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(j0.ErrorCode.Unknown,r)}};Is.UnknownError=lu});var tT=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 U0=$O();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return U0.AlreadyInUseError}});var D0=KO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return D0.ArgumentError}});var L0=HO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return L0.ArgumentNullError}});var F0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return F0.ChevreError}});var k0=WO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return k0.ForbiddenError}});var B0=VO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return B0.GatewayTimeoutError}});var G0=zO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return G0.InternalError}});var $0=YO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return $0.NotFoundError}});var K0=QO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return K0.NotImplementedError}});var H0=ZO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return H0.RateLimitExceededError}});var W0=JO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return W0.ServiceUnavailableError}});var V0=XO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return V0.UnauthorizedError}});var z0=eT();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return z0.UnknownError}})});var sT=o(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.StepIdentifier=er.RecipeCategory=void 0;var rT;(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"})(rT||(er.RecipeCategory=rT={}));var nT;(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"})(nT||(er.StepIdentifier=nT={}))});var OT=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=_y();O.cognito=Ty();var Y0=Cy(),Q0=by(),Z0=Py(),J0=My(),X0=Ny(),eR=xy(),tR=Dy(),rR=Fy(),nR=By(),sR=$y(),iR=Hy(),oR=Vy(),aR=Yy(),cR=Zy(),uR=Xy(),dR=tp(),lR=np(),fR=ip(),hR=ap(),yR=up(),pR=lp(),vR=hp(),SR=pp(),mR=mp(),_R=Op(),OR=Ep(),TR=Rp(),ER=Ip(),CR=Np(),gR=xp(),bR=Dp(),AR=Fp(),PR=Bp(),wR=$p(),RR=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return RR.CertificationStatusEnumeration}});var MR=Wp(),IR=zp(),qR=Qp(),NR=Jp(),jR=ev(),xR=rv(),UR=iv(),DR=av(),LR=uv(),FR=Mc(),kR=fv(),BR=Cv(),GR=bv();O.entryPoint=GR;var $R=Pv();O.eventSeries=Rv();var KR=Ic(),HR=qc(),WR=Nv(),VR=xv(),zR=Dv(),YR=Fv(),QR=Bv(),ZR=Nc(),JR=Wv(),XR=zv();O.offer=Qv();O.aggregateOffer=Jv();O.eventOffer=eS();var eM=rS(),tM=sS(),rM=jc();O.order=xc();var nM=Uc(),sM=dS(),iM=Dc(),oM=hS(),aM=pS(),cM=SS(),uM=Lc(),dM=OS(),lM=ES(),fM=Fc(),hM=bS(),yM=PS(),pM=RS(),vM=IS(),SM=NS(),mM=kc(),_M=US();O.potentialAction=_M;var OM=Bc(),TM=FS(),EM=Gc(),CM=$c(),gM=$S();O.project=HS();var bM=VS(),AM=YS(),PM=ZS(),wM=XS(),RM=tm(),MM=nm(),IM=Kc(),qM=Hc(),NM=_m();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return NM.RESERVED_CODE_VALUES}});var jM=Tm(),xM=Cm(),UM=bm(),DM=Pm(),LM=Rm(),FM=Im(),kM=Nm(),BM=xm(),GM=Vc(),$M=Dm(),KM=Zc();O.unitPriceOffer=Fm();var HM=Bm(),WM=$m(),VM=Hm(),zM=Vm(),YM=Ym(),QM=Zm(),ZM=Xm(),JM=t_(),XM=n_(),eI=i_(),tI=a_(),rI=u_(),nI=l_(),sI=h_(),iI=p_(),oI=S_(),aI=__(),cI=T_(),uI=C_(),dI=b_(),lI=P_(),fI=R_(),hI=I_(),yI=N_(),pI=x_(),vI=D_(),SI=F_(),mI=B_(),_I=$_(),OI=H_(),TI=V_(),EI=Y_(),CI=Z_(),gI=X_(),bI=tO(),AI=nO(),PI=iO(),wI=aO(),RI=uO(),MI=lO(),II=hO(),qI=pO(),NI=SO(),jI=_O(),xI=TO(),UI=CO(),DI=bO(),LI=PO(),FI=RO(),kI=zc(),BI=IO(),GI=NO(),$I=xO(),KI=DO(),HI=Wc(),WI=Yc(),VI=FO(),zI=BO(),YI=Qc(),QI=we();O.errors=tT();O.recipe=sT();O.errorCode=QI.ErrorCode;O.actionStatusType=ER.ActionStatusType;O.actionType=CR.ActionType;var iT;(function(t){let e;(function(y){y.coaOffer=Y0,y.pay=Q0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(C){C.any=X0})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(C){C.eventService=J0})(_=y.offer||(y.offer={})),y.invoice=Z0,y.ticketedObject=eR})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=tR,y.reservation=rR})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(_){_.movieTicket=nR})(S=y.paymentMethod||(y.paymentMethod={}))})(s=t.check||(t.check={})),t.create=iR;let i;(function(y){let S;(function(_){_.pay=oR,_.reservation=aR})(S=y.confirm||(y.confirm={})),y.inform=cR})(i=t.interact||(t.interact={}));let c;(function(y){y.order=dR,y.pay=lR,y.refund=fR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(C){C.invoice=hR,C.order=yR,C.reserveTransaction=pR})(S=y.returnAction||(y.returnAction={}));let _;(function(C){let M;(function(w){w.email=vR})(M=C.message||(C.message={})),C.order=SR})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=mR,y.deleteAction=_R,y.replace=OR,y.update=TR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=sR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=uR})(iT||(O.action=iT={}));O.accountTitle=gR;O.additionalProperty=bR;O.aggregation=AR;O.authorization=PR;O.categoryCode=wR;O.clientUser=MR;var oT;(function(t){let e;(function(s){s.softwareApplication=IR,s.webApplication=qR,s.webSite=NR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=jR})(r=t.message||(t.message={})),t.movie=xR,t.noteDigitalDocument=UR;let n;(function(s){s.softwareApplication=DR,s.webApplication=LR})(n=t.softwareApplication||(t.softwareApplication={}))})(oT||(O.creativeWork=oT={}));O.creativeWorkType=FR.CreativeWorkType;O.customer=kR;var aT;(function(t){t.screeningEvent=$R})(aT||(O.event=aT={}));O.encodingFormat=BR;O.eventStatusType=KR.EventStatusType;O.eventType=HR.EventType;O.iam=WR;O.identityProvider=VR;O.invoice=zR;O.itemAvailability=YR.ItemAvailability;O.language=QR;O.merchantReturnPolicy=ZR;O.monetaryAmount=JR;O.movieTicketType=XR;var cT;(function(t){t.event=zM,t.eventSeries=YM,t.order=JM,t.reservation=sI,t.payAction=XM,t.refundAction=nI,t.accountTitle=HM,t.categoryCode=WM,t.creativeWork=VM,t.offer=QM,t.offerCatalog=ZM,t.person=eI,t.place=tI,t.product=rI,t.task=iI})(cT||(O.notification=cT={}));O.offerCatalog=eM;O.offerItemCondition=tM;O.offerType=rM.OfferType;O.orderStatus=nM.OrderStatus;O.organization=sM;O.organizationType=iM.OrganizationType;O.ownershipInfo=oM;var uT;(function(t){let e;(function(r){r.creditCard=aM,r.movieTicket=cM})(e=t.paymentCard||(t.paymentCard={}))})(uT||(O.paymentMethod=uT={}));O.paymentStatusType=uM.PaymentStatusType;O.permit=dM;O.person=lM;O.personType=fM.PersonType;O.priceCurrency=OM.PriceCurrency;var dT;(function(t){t.entranceGate=hM,t.movieTheater=yM,t.screeningRoom=pM,t.screeningRoomSection=vM,t.seat=SM})(dT||(O.place=dT={}));O.placeType=mM.PlaceType;var lT;(function(t){t.unitPrice=TM})(lT||(O.priceSpecification=lT={}));O.priceSpecificationType=EM.PriceSpecificationType;O.programMembership=gM;O.product=CM;var fT;(function(t){t.PropertyValueType=bM.PropertyValueType,t.locationFeatureSpecification=AM})(fT||(O.propertyValue=fT={}));O.qualitativeValue=PM;O.quantitativeValue=wM;var hT;(function(t){t.accountingReport=RM})(hT||(O.report=hT={}));var yT;(function(t){t.eventReservation=MM})(yT||(O.reservation=yT={}));O.reservationStatusType=IM.ReservationStatusType;O.reservationType=qM.ReservationType;var pT;(function(t){t.RoleType=jM.RoleType,t.organizationRole=xM})(pT||(O.role=pT={}));O.schedule=UM;O.seller=DM;O.sellerReturnPolicy=LM;var vT;(function(t){t.acceptCOAOffer=oI,t.aggregateOffers=aI,t.aggregateOnSystem=cI,t.aggregateScreeningEvent=uI,t.authorizePayment=dI,t.cancelPendingReservation=lI,t.cancelReservation=fI,t.checkMovieTicket=hI,t.checkResource=yI,t.createAccountingReport=SI,t.confirmReserveTransaction=pI,t.confirmReturnOrder=vI,t.deleteTransaction=mI,t.handleNotification=_I,t.importEventCapacitiesFromCOA=OI,t.importEventsFromCOA=TI,t.importOffersFromCOA=EI,t.invalidatePaymentUrl=CI,t.onAssetTransactionStatusChanged=gI,t.pay=RI,t.publishPaymentUrl=MI,t.refund=II,t.reserve=qI,t.sendEmailMessage=NI,t.syncResourcesFromCOA=jI,t.triggerWebhook=xI,t.useReservation=UI,t.voidPayment=DI,t.onAuthorizationCreated=bI,t.onEventChanged=AI,t.onResourceDeleted=PI,t.onResourceUpdated=wI,t.voidReserveTransaction=LI})(vT||(O.task=vT={}));var ST;(function(t){t.paymentService=FM,t.webAPI=kM})(ST||(O.service=ST={}));O.serviceChannel=BM;O.sortType=GM.SortType;O.taskName=FI.TaskName;O.taskStatus=kI.TaskStatus;O.thing=$M;var mT;(function(t){t.cancelReservation=BI,t.pay=GI,t.refund=$I,t.reserve=KI})(mT||(O.assetTransaction=mT={}));var _T;(function(t){t.placeOrder=VI,t.returnOrder=zI})(_T||(O.transaction=_T={}));O.transactionType=YI.TransactionType;O.transactionStatusType=WI.TransactionStatusType;O.assetTransactionType=HI.AssetTransactionType;O.unitCode=KM.UnitCode});var TT=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ChevreFactory=void 0;qs.ChevreFactory=OT()});var Q=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.factory=void 0;var ZI=TT();Object.defineProperty(Ns,"factory",{enumerable:!0,get:function(){return ZI.ChevreFactory}})});var CT=o((A2,ET)=>{var tr=1e3,rr=tr*60,nr=rr*60,Dt=nr*24,JI=Dt*7,XI=Dt*365.25;ET.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return eq(t);if(r==="number"&&isFinite(t))return e.long?rq(t):tq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function eq(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*XI;case"weeks":case"week":case"w":return r*JI;case"days":case"day":case"d":return r*Dt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*rr;case"seconds":case"second":case"secs":case"sec":case"s":return r*tr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function tq(t){var e=Math.abs(t);return e>=Dt?Math.round(t/Dt)+"d":e>=nr?Math.round(t/nr)+"h":e>=rr?Math.round(t/rr)+"m":e>=tr?Math.round(t/tr)+"s":t+"ms"}function rq(t){var e=Math.abs(t);return e>=Dt?js(t,e,Dt,"day"):e>=nr?js(t,e,nr,"hour"):e>=rr?js(t,e,rr,"minute"):e>=tr?js(t,e,tr,"second"):t+" ms"}function js(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var bT=o((P2,gT)=>{function nq(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=s,r.enabled=d,r.humanize=CT(),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,C,M;function w(...q){if(!w.enabled)return;let N=w,g=Number(new Date),R=g-(S||g);N.diff=R,N.prev=S,N.curr=g,S=g,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 w.namespace=y,w.useColors=r.useColors(),w.color=r.selectColor(y),w.extend=n,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(C!==r.namespaces&&(C=r.namespaces,M=r.enabled(y)),M),set:q=>{_=q}}),typeof r.init=="function"&&r.init(w),w}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,C=0,M=-1,w=0;for(;_<y.length;)if(C<S.length&&(S[C]===y[_]||S[C]==="*"))S[C]==="*"?(M=C,w=_,C++):(_++,C++);else if(M!==-1)C=M+1,w++,_=w;else return!1;for(;C<S.length&&S[C]==="*";)C++;return C===S.length}function c(){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}gT.exports=nq});var sr=o((Me,xs)=>{Me.formatArgs=iq;Me.save=oq;Me.load=aq;Me.useColors=sq;Me.storage=cq();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 sq(){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 iq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+xs.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 oq(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function aq(){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 cq(){try{return localStorage}catch{}}xs.exports=bT()(Me);var{formatters:uq}=xs.exports;uq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Us=o(xe=>{"use strict";var dq=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xe,"__esModule",{value:!0});xe.StubTransporter=xe.DefaultTransporter=xe.RequestError=xe.Transporter=void 0;var lq=dq(sr()),AT=(0,lq.default)("cinerino-sdk:transporters"),fu=class{};xe.Transporter=fu;var ir=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};xe.RequestError=ir;var hu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return AT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new ir("An unexpected error occurred");if(AT("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 ir(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new ir(n),r.code=e.status,r.errors=[])}else return e;throw r}};xe.DefaultTransporter=hu;var yu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};xe.StubTransporter=yu});var wT=o(or=>{"use strict";Object.defineProperty(or,"__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"},PT=or.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}}},fq=or.b=PT;or.a=PT;or.b=fq});var b=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var RT=wT();Ds.default=RT.b;Ds.status=RT.a});var Lt=o((I2,MT)=>{"use strict";MT.exports=TypeError});var IT=o(()=>{});var Lr=o((j2,ZT)=>{var gu=typeof Map=="function"&&Map.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Fs=gu&&pu&&typeof pu.get=="function"?pu.get:null,qT=gu&&Map.prototype.forEach,bu=typeof Set=="function"&&Set.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ks=bu&&vu&&typeof vu.get=="function"?vu.get:null,NT=bu&&Set.prototype.forEach,hq=typeof WeakMap=="function"&&WeakMap.prototype,xr=hq?WeakMap.prototype.has:null,yq=typeof WeakSet=="function"&&WeakSet.prototype,Ur=yq?WeakSet.prototype.has:null,pq=typeof WeakRef=="function"&&WeakRef.prototype,jT=pq?WeakRef.prototype.deref:null,vq=Boolean.prototype.valueOf,Sq=Object.prototype.toString,mq=Function.prototype.toString,_q=String.prototype.match,Au=String.prototype.slice,Tt=String.prototype.replace,Oq=String.prototype.toUpperCase,xT=String.prototype.toLowerCase,KT=RegExp.prototype.test,UT=Array.prototype.concat,ct=Array.prototype.join,Tq=Array.prototype.slice,DT=Math.floor,_u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Su=Object.getOwnPropertySymbols,Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Dr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ar||!0)?Symbol.toStringTag:null,HT=Object.prototype.propertyIsEnumerable,LT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function FT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||KT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-DT(-t):DT(t);if(n!==t){var s=String(n),i=Au.call(e,s.length+1);return Tt.call(s,r,"$&_")+"."+Tt.call(Tt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Tt.call(e,r,"$&_")}var Tu=IT(),kT=Tu.custom,BT=zT(kT)?kT:null,WT={__proto__:null,double:'"',single:"'"},Eq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ZT.exports=function t(e,r,n,s){var i=r||{};if(pt(i,"quoteStyle")&&!pt(WT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(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 c=pt(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(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(pt(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 QT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?FT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?FT(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 Eu(e)?"[Array]":"[Object]";var S=kq(i,n);if(typeof s>"u")s=[];else if(YT(s,e)>=0)return"[Circular]";function _(ae,ie,oe){if(ie&&(s=Tq.call(s),s.push(ie)),oe){var ee={depth:i.depth};return pt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(ae,ee,n+1,s)}return t(ae,i,n+1,s)}if(typeof e=="function"&&!GT(e)){var C=Iq(e),M=Ls(e,_);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(M.length>0?" { "+ct.call(M,", ")+" }":"")}if(zT(e)){var w=ar?Tt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ou.call(e);return typeof e=="object"&&!ar?jr(w):w}if(Dq(e)){for(var q="<"+xT.call(String(e.nodeName)),N=e.attributes||[],g=0;g<N.length;g++)q+=" "+N[g].name+"="+VT(Cq(N[g].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+xT.call(String(e.nodeName))+">",q}if(Eu(e)){if(e.length===0)return"[]";var R=Ls(e,_);return S&&!Fq(R)?"["+Cu(R,S)+"]":"[ "+ct.call(R,", ")+" ]"}if(bq(e)){var D=Ls(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!HT.call(e,"cause")?"{ ["+String(e)+"] "+ct.call(UT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ct.call(D,", ")+" }"}if(typeof e=="object"&&c){if(BT&&typeof e[BT]=="function"&&Tu)return Tu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(qq(e)){var k=[];return qT&&qT.call(e,function(ae,ie){k.push(_(ie,e,!0)+" => "+_(ae,e))}),$T("Map",Fs.call(e),k,S)}if(xq(e)){var K=[];return NT&&NT.call(e,function(ae){K.push(_(ae,e))}),$T("Set",ks.call(e),K,S)}if(Nq(e))return mu("WeakMap");if(Uq(e))return mu("WeakSet");if(jq(e))return mu("WeakRef");if(Pq(e))return jr(_(Number(e)));if(Rq(e))return jr(_(_u.call(e)));if(wq(e))return jr(vq.call(e));if(Aq(e))return jr(_(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(!gq(e)&&!GT(e)){var x=Ls(e,_),G=LT?LT(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",$=!G&&Dr&&Object(e)===e&&Dr in e?Au.call(Et(e),8,-1):H?"Object":"",Y=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+($||H?"["+ct.call(UT.call([],$||[],H||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+Cu(x,S)+"}":Te+"{ "+ct.call(x,", ")+" }"}return String(e)};function VT(t,e,r){var n=r.quoteStyle||e,s=WT[n];return s+t+s}function Cq(t){return Tt.call(String(t),/"/g,"&quot;")}function Ft(t){return!Dr||!(typeof t=="object"&&(Dr in t||typeof t[Dr]<"u"))}function Eu(t){return Et(t)==="[object Array]"&&Ft(t)}function gq(t){return Et(t)==="[object Date]"&&Ft(t)}function GT(t){return Et(t)==="[object RegExp]"&&Ft(t)}function bq(t){return Et(t)==="[object Error]"&&Ft(t)}function Aq(t){return Et(t)==="[object String]"&&Ft(t)}function Pq(t){return Et(t)==="[object Number]"&&Ft(t)}function wq(t){return Et(t)==="[object Boolean]"&&Ft(t)}function zT(t){if(ar)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}function Rq(t){if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}var Mq=Object.prototype.hasOwnProperty||function(t){return t in this};function pt(t,e){return Mq.call(t,e)}function Et(t){return Sq.call(t)}function Iq(t){if(t.name)return t.name;var e=_q.call(mq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function YT(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 qq(t){if(!Fs||!t||typeof t!="object")return!1;try{Fs.call(t);try{ks.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Nq(t){if(!xr||!t||typeof t!="object")return!1;try{xr.call(t,xr);try{Ur.call(t,Ur)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function jq(t){if(!jT||!t||typeof t!="object")return!1;try{return jT.call(t),!0}catch{}return!1}function xq(t){if(!ks||!t||typeof t!="object")return!1;try{ks.call(t);try{Fs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Uq(t){if(!Ur||!t||typeof t!="object")return!1;try{Ur.call(t,Ur);try{xr.call(t,xr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Dq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function QT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return QT(Au.call(t,0,e.maxStringLength),e)+n}var s=Eq[e.quoteStyle||"single"];s.lastIndex=0;var i=Tt.call(Tt.call(t,s,"\\$1"),/[\x00-\x1f]/g,Lq);return VT(i,"single",e)}function Lq(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":"")+Oq.call(e.toString(16))}function jr(t){return"Object("+t+")"}function mu(t){return t+" { ? }"}function $T(t,e,r,n){var s=n?Cu(r,n):ct.call(r,", ");return t+" ("+e+") {"+s+"}"}function Fq(t){for(var e=0;e<t.length;e++)if(YT(t[e],`
2
- `)>=0)return!1;return!0}function kq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ct.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ct.call(Array(e+1),r)}}function Cu(t,e){if(t.length===0)return"";var r=`
1
+ "use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Xh=o(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0})});var lt=o(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var ew;(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"})(ew=On.ErrorCode||(On.ErrorCode={}))});var _t=o((bL,ey)=>{"use strict";ey.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?tw:rw);function tw(t,e){return t.__proto__=e,t}function rw(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ft=o(gr=>{"use strict";var nw=gr&&gr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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(gr,"__esModule",{value:!0});var iw=(function(t){nw(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name="WaiterError",i.reason=r,i}return e})(Error);gr.WaiterError=iw});var ty=o(br=>{"use strict";var sw=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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=_t(),aw=lt(),cw=ft(),uw=(function(t){sw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Invalid or missing argument supplied: "+r),i=t.call(this,aw.ErrorCode.Argument,s)||this,i.argumentName=r,ow(i,e.prototype),i}return e})(cw.WaiterError);br.ArgumentError=uw});var ry=o(Ar=>{"use strict";var dw=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 lw=_t(),fw=lt(),hw=ft(),yw=(function(t){dw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Missing argument: "+r),i=t.call(this,fw.ErrorCode.Argument,s)||this,i.argumentName=r,lw(i,e.prototype),i}return e})(hw.WaiterError);Ar.ArgumentNullError=yw});var ny=o(Pr=>{"use strict";var pw=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 vw=_t(),Sw=lt(),mw=ft(),_w=(function(t){pw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Forbidden"),n=t.call(this,Sw.ErrorCode.Forbidden,i)||this,vw(n,e.prototype),n}return e})(mw.WaiterError);Pr.ForbiddenError=_w});var iy=o(wr=>{"use strict";var Ow=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 Tw=_t(),Ew=lt(),Cw=ft(),gw=(function(t){Ow(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Not Found: "+r),i=t.call(this,Ew.ErrorCode.NotFound,s)||this,i.entityName=r,Tw(i,e.prototype),i}return e})(Cw.WaiterError);wr.NotFoundError=gw});var sy=o(Rr=>{"use strict";var bw=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 Aw=_t(),Pw=lt(),ww=ft(),Rw=(function(t){bw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Rate limit exceeded."),n=t.call(this,Pw.ErrorCode.RateLimitExceeded,i)||this,Aw(n,e.prototype),n}return e})(ww.WaiterError);Rr.RateLimitExceededError=Rw});var oy=o(Mr=>{"use strict";var Mw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 Iw=_t(),qw=lt(),Nw=ft(),jw=(function(t){Mw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Service unavailable temporarily."),n=t.call(this,qw.ErrorCode.ServiceUnavailable,i)||this,Iw(n,e.prototype),n}return e})(Nw.WaiterError);Mr.ServiceUnavailableError=jw});var ay=o(Ir=>{"use strict";var xw=Ir&&Ir.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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 Uw=_t(),Dw=lt(),Fw=ft(),Lw=(function(t){xw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Unauthorized."),n=t.call(this,Dw.ErrorCode.Unauthorized,i)||this,Uw(n,e.prototype),n}return e})(Fw.WaiterError);Ir.UnauthorizedError=Lw});var cy=o(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var kw=ty();ot.Argument=kw.ArgumentError;var Bw=ry();ot.ArgumentNull=Bw.ArgumentNullError;var Gw=ny();ot.Forbidden=Gw.ForbiddenError;var $w=iy();ot.NotFound=$w.NotFoundError;var Kw=sy();ot.RateLimitExceeded=Kw.RateLimitExceededError;var Ww=oy();ot.ServiceUnavailable=Ww.ServiceUnavailableError;var Hw=ay();ot.Unauthorized=Hw.UnauthorizedError;var Vw=ft();ot.Waiter=Vw.WaiterError});var dy=o(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0})});var fy=o(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0})});var yy=o(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0})});var vy=o(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0})});var Sy=o(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var zw=Xh();ht.client=zw;var Yw=lt();ht.errorCode=Yw.ErrorCode;var Qw=cy();ht.errors=Qw;var Zw=dy();ht.passport=Zw;var Jw=fy();ht.project=Jw;var Xw=yy();ht.rule=Xw;var e0=vy();ht.ruleSet=e0});var _y=o(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0})});var Ty=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.FlgMember=void 0;var Oy;(function(t){t.NonMember="0",t.Member="1"})(Oy||(Tn.FlgMember=Oy={}))});var Cy=o(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0})});var by=o(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0})});var Py=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.ObjectType=void 0;var Ay;(function(t){t.SeatReservation="SeatReservation"})(Ay||(En.ObjectType=Ay={}))});var wy=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ObjectType=void 0;var t0=Py();Object.defineProperty(Cn,"ObjectType",{enumerable:!0,get:function(){return t0.ObjectType}})});var Iy=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ServiceIdentifier=Qt.ResultType=void 0;var Ry;(function(t){t.Payment="Payment"})(Ry||(Qt.ResultType=Ry={}));var My;(function(t){t.Chevre="Chevre"})(My||(Qt.ServiceIdentifier=My={}))});var Ny=o(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0})});var xy=o(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0})});var Dy=o(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0})});var Ly=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var By=o(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0})});var $y=o(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0})});var Wy=o(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0})});var Vy=o(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0})});var Yy=o(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0})});var Zy=o(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0})});var Xy=o(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0})});var tp=o(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0})});var np=o(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0})});var sp=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var ap=o(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0})});var up=o(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0})});var lp=o(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0})});var hp=o(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0})});var pp=o(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0})});var vp=o(xt=>{"use strict";var r0=xt&&xt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),n0=xt&&xt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&r0(e,t,r)};Object.defineProperty(xt,"__esModule",{value:!0});n0(pp(),xt)});var mp=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.ObjectAsTransactionSpecifyingMethod=void 0;var Sp;(function(t){t.Id="Id"})(Sp||(gn.ObjectAsTransactionSpecifyingMethod=Sp={}))});var Op=o(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0})});var Ep=o(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0})});var gp=o(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0})});var Ap=o(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0})});var Pp=o(yt=>{"use strict";var i0=yt&&yt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pc=yt&&yt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&i0(e,t,r)};Object.defineProperty(yt,"__esModule",{value:!0});Pc(Ep(),yt);Pc(gp(),yt);Pc(Ap(),yt)});var Rp=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ActionStatusType=void 0;var wp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(wp||(bn.ActionStatusType=wp={}))});var Ip=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ActionType=void 0;var Mp;(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"})(Mp||(An.ActionType=Mp={}))});var Np=o(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0})});var xp=o(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0})});var Dp=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.AggregationType=void 0;var Up;(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"})(Up||(Pn.AggregationType=Up={}))});var Lp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var Bp=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.CategorySetIdentifier=void 0;var kp;(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"})(kp||(wn.CategorySetIdentifier=kp={}))});var wc=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.CertificationStatusEnumeration=void 0;var Gp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Gp||(Rn.CertificationStatusEnumeration=Gp={}))});var Kp=o($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0})});var Hp=o(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0})});var zp=o(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0})});var Qp=o(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0})});var Jp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.AboutIdentifier=void 0;var Zp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Zp||(Mn.AboutIdentifier=Zp={}))});var ev=o(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0})});var nv=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.PermissionGranteeAudienceType=Zt.DigitalDocumentPermissionType=void 0;var tv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(tv||(Zt.DigitalDocumentPermissionType=tv={}));var rv;(function(t){t.Public="public"})(rv||(Zt.PermissionGranteeAudienceType=rv={}))});var sv=o(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var av=o(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var Rc=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.CreativeWorkType=void 0;var cv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(cv||(In.CreativeWorkType=cv={}))});var dv=o(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0})});var Tv=o(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.Video=ce.Text=ce.Multipart=ce.Model=ce.Message=ce.Image=ce.Example=ce.Font=ce.Audio=ce.Application=void 0;var lv;(function(t){t.pdf="application/pdf",t.json="application/json"})(lv||(ce.Application=lv={}));var fv;fv||(ce.Audio=fv={});var hv;hv||(ce.Font=hv={});var yv;yv||(ce.Example=yv={});var pv;pv||(ce.Image=pv={});var vv;vv||(ce.Message=vv={});var Sv;Sv||(ce.Model=Sv={});var mv;mv||(ce.Multipart=mv={});var _v;(function(t){t.csv="text/csv"})(_v||(ce.Text=_v={}));var Ov;Ov||(ce.Video=Ov={})});var Cv=o(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var bv=o(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var Pv=o(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Mc=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.EventStatusType=void 0;var wv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(wv||(qn.EventStatusType=wv={}))});var Ic=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.EventType=void 0;var Rv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Rv||(Nn.EventType=Rv={}))});var Iv=o(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0})});var Nv=o(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0})});var xv=o(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0})});var Dv=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.ItemAvailability=void 0;var Uv;(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"})(Uv||(jn.ItemAvailability=Uv={}))});var Lv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var qc=o(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.MerchantReturnEnumeration=Ot.ReturnFeesEnumeration=Ot.RefundTypeEnumeration=void 0;var kv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(kv||(Ot.RefundTypeEnumeration=kv={}));var Bv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Bv||(Ot.ReturnFeesEnumeration=Bv={}));var Gv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Gv||(Ot.MerchantReturnEnumeration=Gv={}))});var Kv=o($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Hv=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.CategorySetIdentifier=void 0;var Wv;(function(t){t.MovieTicketType="MovieTicketType"})(Wv||(xn.CategorySetIdentifier=Wv={}))});var zv=o(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0})});var Qv=o(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0})});var Jv=o(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var eS=o(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0})});var rS=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.OfferItemCondition=void 0;var tS;(function(t){t.NewCondition="NewCondition"})(tS||(Un.OfferItemCondition=tS={}))});var Nc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.OfferType=void 0;var nS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(nS||(Dn.OfferType=nS={}))});var sS=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OrderType=void 0;var iS;(function(t){t.Order="Order"})(iS||(Fn.OrderType=iS={}))});var jc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.OrderType=void 0;var s0=sS();Object.defineProperty(Ln,"OrderType",{enumerable:!0,get:function(){return s0.OrderType}})});var xc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OrderStatus=void 0;var oS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(oS||(kn.OrderStatus=oS={}))});var cS=o(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0})});var Uc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OrganizationType=void 0;var uS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(uS||(Bn.OrganizationType=uS={}))});var lS=o(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0})});var hS=o(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0})});var pS=o(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0})});var Dc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.PaymentStatusType=void 0;var vS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(vS||(Gn.PaymentStatusType=vS={}))});var mS=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.PermitType=void 0;var SS;(function(t){t.Permit="Permit"})(SS||($n.PermitType=SS={}))});var OS=o(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0})});var Fc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.PersonType=void 0;var TS;(function(t){t.Person="Person"})(TS||(Kn.PersonType=TS={}))});var CS=o(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0})});var bS=o(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0})});var PS=o(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0})});var RS=o(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0})});var IS=o(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0})});var Lc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PlaceType=void 0;var qS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(qS||(Wn.PlaceType=qS={}))});var jS=o(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0})});var kc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PriceCurrency=void 0;var xS;(function(t){t.JPY="JPY"})(xS||(Hn.PriceCurrency=xS={}))});var DS=o(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0})});var Bc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PriceSpecificationType=void 0;var FS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(FS||(Vn.PriceSpecificationType=FS={}))});var Gc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.ProductType=void 0;var LS;(function(t){t.EventService="EventService",t.Product="Product"})(LS||(zn.ProductType=LS={}))});var BS=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.ProgramMembershipType=void 0;var kS;(function(t){t.ProgramMembership="ProgramMembership"})(kS||(Yn.ProgramMembershipType=kS={}))});var $S=o(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0})});var WS=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PropertyValueType=void 0;var KS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(KS||(Qn.PropertyValueType=KS={}))});var VS=o(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0})});var YS=o(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0})});var ZS=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.StringValue=void 0;var QS;(function(t){t.Infinity="Infinity"})(QS||(Zn.StringValue=QS={}))});var XS=o(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0})});var tm=o(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0})});var $c=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ReservationStatusType=void 0;var rm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(rm||(Jn.ReservationStatusType=rm={}))});var Kc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ReservationType=void 0;var nm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(nm||(Xn.ReservationType=nm={}))});var Wc=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.AssetTransactionType=void 0;var im;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(im||(ei.AssetTransactionType=im={}))});var Hc=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.SortType=void 0;var sm;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(sm||(ti.SortType=sm={}))});var Vc=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.TaskStatus=void 0;var om;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(om||(ri.TaskStatus=om={}))});var zc=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.TransactionStatusType=void 0;var am;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(am||(ni.TransactionStatusType=am={}))});var Yc=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.TransactionType=void 0;var cm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(cm||(ii.TransactionType=cm={}))});var Qc=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.UnitCode=void 0;var um;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(um||(si.UnitCode=um={}))});var Sm=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.RESERVED_CODE_VALUES=void 0;var oi=Wc(),dm=wc(),Ut=Rc(),ai=Mc(),lm=Ic(),at=qc(),fm=Nc(),o0=jc(),Jt=xc(),Zc=Uc(),qr=Dc(),a0=Fc(),Xt=Lc(),c0=kc(),Nr=Bc(),hm=Gc(),ci=$c(),ym=Kc(),pm=Hc(),ui=Vc(),di=zc(),vm=Yc(),li=Qc();fi.RESERVED_CODE_VALUES=["AccountTitle",oi.AssetTransactionType.CancelReservation,"MoneyTransfer",oi.AssetTransactionType.Pay,oi.AssetTransactionType.Refund,oi.AssetTransactionType.Reserve,"Authorization",dm.CertificationStatusEnumeration.CertificationActive,dm.CertificationStatusEnumeration.CertificationInactive,Ut.CreativeWorkType.Certification,"Comment",Ut.CreativeWorkType.EmailMessage,Ut.CreativeWorkType.Movie,Ut.CreativeWorkType.NoteDigitalDocument,Ut.CreativeWorkType.SoftwareApplication,Ut.CreativeWorkType.WebApplication,Ut.CreativeWorkType.WebSite,"Event",ai.EventStatusType.EventCancelled,ai.EventStatusType.EventPostponed,ai.EventStatusType.EventRescheduled,ai.EventStatusType.EventScheduled,lm.EventType.ScreeningEvent,lm.EventType.ScreeningEventSeries,at.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,at.MerchantReturnEnumeration.MerchantReturnNotPermitted,at.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,at.MerchantReturnEnumeration.MerchantReturnUnspecified,at.RefundTypeEnumeration.ExchangeRefund,at.RefundTypeEnumeration.FullRefund,at.RefundTypeEnumeration.StoreCreditRefund,at.ReturnFeesEnumeration.FreeReturn,at.ReturnFeesEnumeration.RestockingFees,at.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",fm.OfferType.AggregateOffer,fm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",o0.OrderType.Order,Jt.OrderStatus.OrderCancelled,Jt.OrderStatus.OrderDelivered,Jt.OrderStatus.OrderInTransit,Jt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Jt.OrderStatus.OrderProcessing,Jt.OrderStatus.OrderReturned,Zc.OrganizationType.Corporation,Zc.OrganizationType.Organization,Zc.OrganizationType.Project,"OwnershipInfo",qr.PaymentStatusType.PaymentAutomaticallyApplied,qr.PaymentStatusType.PaymentComplete,qr.PaymentStatusType.PaymentDeclined,qr.PaymentStatusType.PaymentDue,qr.PaymentStatusType.PaymentPastDue,a0.PersonType.Person,Xt.PlaceType.AggregatePlace,Xt.PlaceType.MovieTheater,Xt.PlaceType.Place,Xt.PlaceType.ScreeningRoom,Xt.PlaceType.ScreeningRoomSection,Xt.PlaceType.Seat,c0.PriceCurrency.JPY,Nr.PriceSpecificationType.CategoryCodeChargeSpecification,Nr.PriceSpecificationType.CompoundPriceSpecification,Nr.PriceSpecificationType.MovieTicketTypeChargeSpecification,Nr.PriceSpecificationType.PriceSpecification,Nr.PriceSpecificationType.UnitPriceSpecification,hm.ProductType.EventService,hm.ProductType.Product,ci.ReservationStatusType.ReservationCancelled,ci.ReservationStatusType.ReservationConfirmed,ci.ReservationStatusType.ReservationPending,"ReservationHold",ci.ReservationStatusType.ReservationPending,"BusReservation",ym.ReservationType.EventReservation,ym.ReservationType.ReservationPackage,pm.SortType.Ascending,pm.SortType.Descending,ui.TaskStatus.Aborted,ui.TaskStatus.Executed,ui.TaskStatus.Ready,ui.TaskStatus.Running,di.TransactionStatusType.Canceled,di.TransactionStatusType.Confirmed,di.TransactionStatusType.Expired,di.TransactionStatusType.InProgress,vm.TransactionType.PlaceOrder,vm.TransactionType.ReturnOrder,li.UnitCode.Ann,li.UnitCode.C62,li.UnitCode.Day,li.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var _m=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.RoleType=void 0;var mm;(function(t){t.OrganizationRole="OrganizationRole"})(mm||(hi.RoleType=mm={}))});var Tm=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.RoleName=void 0;var Om;(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"})(Om||(yi.RoleName=Om={}))});var Cm=o(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0})});var bm=o(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0})});var Pm=o(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0})});var Rm=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PaymentServiceType=void 0;var wm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(wm||(pi.PaymentServiceType=wm={}))});var Im=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.Identifier=void 0;var Mm;(function(t){t.COA="COA",t.Chevre="Chevre"})(Mm||(vi.Identifier=Mm={}))});var Nm=o(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0})});var xm=o(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0})});var Dm=o(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0})});var Lm=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var Bm=o(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0})});var $m=o(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0})});var Wm=o(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0})});var Vm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var Ym=o(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0})});var Zm=o(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0})});var Xm=o(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0})});var t_=o(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0})});var n_=o(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0})});var s_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var a_=o(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0})});var u_=o(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0})});var l_=o(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0})});var h_=o(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0})});var p_=o(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0})});var S_=o(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0})});var __=o(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0})});var T_=o(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0})});var C_=o(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0})});var b_=o(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0})});var P_=o(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0})});var R_=o(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0})});var I_=o(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0})});var N_=o(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0})});var x_=o(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0})});var D_=o(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0})});var L_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var B_=o(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0})});var $_=o(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var W_=o(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0})});var V_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var Y_=o(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0})});var Z_=o(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0})});var X_=o(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0})});var tO=o(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0})});var nO=o(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0})});var sO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var aO=o(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var uO=o(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0})});var lO=o(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0})});var hO=o(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0})});var pO=o(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0})});var SO=o(vO=>{"use strict";Object.defineProperty(vO,"__esModule",{value:!0})});var _O=o(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0})});var TO=o(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0})});var CO=o(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0})});var bO=o(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0})});var PO=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.TaskName=void 0;var AO;(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.ConfirmReturnOrder="confirmReturnOrder",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"})(AO||(Si.TaskName=AO={}))});var RO=o(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0})});var IO=o(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var NO=o(qO=>{"use strict";Object.defineProperty(qO,"__esModule",{value:!0})});var xO=o(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0})});var DO=o(UO=>{"use strict";Object.defineProperty(UO,"__esModule",{value:!0})});var LO=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Reason=void 0;var FO;(function(t){t.Customer="Customer",t.Seller="Seller"})(FO||(mi.Reason=FO={}))});var we=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ErrorCode=void 0;var kO;(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"})(kO||(_i.ErrorCode=kO={}))});var Re=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ChevreError=void 0;var Jc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Oi.ChevreError=Jc});var BO=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.AlreadyInUseError=void 0;var u0=we(),d0=Re(),Xc=class extends d0.ChevreError{entityName;fieldNames;constructor(e,r,n){let i=n;(n===void 0||n.length===0)&&(i=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(u0.ErrorCode.AlreadyInUse,i),this.entityName=e,this.fieldNames=r}};Ti.AlreadyInUseError=Xc});var GO=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ArgumentError=void 0;var l0=we(),f0=Re(),eu=class extends f0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(l0.ErrorCode.Argument,n),this.argumentName=e}};Ei.ArgumentError=eu});var $O=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.ArgumentNullError=void 0;var h0=we(),y0=Re(),tu=class extends y0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(h0.ErrorCode.ArgumentNull,n),this.argumentName=e}};Ci.ArgumentNullError=tu});var KO=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.ForbiddenError=void 0;var p0=we(),v0=Re(),ru=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(p0.ErrorCode.Forbidden,r)}};gi.ForbiddenError=ru});var WO=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.GatewayTimeoutError=void 0;var S0=we(),m0=Re(),nu=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(S0.ErrorCode.GatewayTimeout,r)}};bi.GatewayTimeoutError=nu});var HO=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.InternalError=void 0;var _0=we(),O0=Re(),iu=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(_0.ErrorCode.Internal,r)}};Ai.InternalError=iu});var VO=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.NotFoundError=void 0;var T0=we(),E0=Re(),su=class extends E0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(T0.ErrorCode.NotFound,n),this.entityName=e}};Pi.NotFoundError=su});var zO=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.NotImplementedError=void 0;var C0=we(),g0=Re(),ou=class extends g0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(C0.ErrorCode.NotImplemented,r)}};wi.NotImplementedError=ou});var YO=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.RateLimitExceededError=void 0;var b0=we(),A0=Re(),au=class extends A0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(b0.ErrorCode.RateLimitExceeded,r)}};Ri.RateLimitExceededError=au});var QO=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ServiceUnavailableError=void 0;var P0=we(),w0=Re(),cu=class extends w0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(P0.ErrorCode.ServiceUnavailable,r)}};Mi.ServiceUnavailableError=cu});var ZO=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.UnauthorizedError=void 0;var R0=we(),M0=Re(),uu=class extends M0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(R0.ErrorCode.Unauthorized,r)}};Ii.UnauthorizedError=uu});var JO=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.UnknownError=void 0;var I0=we(),q0=Re(),du=class extends q0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(I0.ErrorCode.Unknown,r)}};qi.UnknownError=du});var XO=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 N0=BO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return N0.AlreadyInUseError}});var j0=GO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return j0.ArgumentError}});var x0=$O();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return x0.ArgumentNullError}});var U0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return U0.ChevreError}});var D0=KO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return D0.ForbiddenError}});var F0=WO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return F0.GatewayTimeoutError}});var L0=HO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return L0.InternalError}});var k0=VO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return k0.NotFoundError}});var B0=zO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return B0.NotImplementedError}});var G0=YO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return G0.RateLimitExceededError}});var $0=QO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return $0.ServiceUnavailableError}});var K0=ZO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return K0.UnauthorizedError}});var W0=JO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return W0.UnknownError}})});var rT=o(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.StepIdentifier=er.RecipeCategory=void 0;var eT;(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"})(eT||(er.RecipeCategory=eT={}));var tT;(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"})(tT||(er.StepIdentifier=tT={}))});var mT=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=Sy();O.cognito=_y();var H0=Ty(),V0=Cy(),z0=by(),Y0=wy(),Q0=Iy(),Z0=Ny(),J0=xy(),X0=Dy(),eR=Ly(),tR=By(),rR=$y(),nR=Wy(),iR=Vy(),sR=Yy(),oR=Zy(),aR=Xy(),cR=tp(),uR=np(),dR=sp(),lR=ap(),fR=up(),hR=lp(),yR=hp(),pR=vp(),vR=mp(),SR=Op(),mR=Pp(),_R=Rp(),OR=Ip(),TR=Np(),ER=xp(),CR=Dp(),gR=Lp(),bR=Bp(),AR=wc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return AR.CertificationStatusEnumeration}});var PR=Kp(),wR=Hp(),RR=zp(),MR=Qp(),IR=Jp(),qR=ev(),NR=nv(),jR=sv(),xR=av(),UR=Rc(),DR=dv(),FR=Tv(),LR=Cv();O.entryPoint=LR;var kR=bv();O.eventSeries=Pv();var BR=Mc(),GR=Ic(),$R=Iv(),KR=Nv(),WR=xv(),HR=Dv(),VR=Lv(),zR=qc(),YR=Kv(),QR=Hv();O.offer=zv();O.aggregateOffer=Qv();O.eventOffer=Jv();var ZR=eS(),JR=rS(),XR=Nc();O.order=jc();var eM=xc(),tM=cS(),rM=Uc(),nM=lS(),iM=hS(),sM=pS(),oM=Dc(),aM=mS(),cM=OS(),uM=Fc(),dM=CS(),lM=bS(),fM=PS(),hM=RS(),yM=IS(),pM=Lc(),vM=jS();O.potentialAction=vM;var SM=kc(),mM=DS(),_M=Bc(),OM=Gc(),TM=BS();O.project=$S();var EM=WS(),CM=VS(),gM=YS(),bM=ZS(),AM=XS(),PM=tm(),wM=$c(),RM=Kc(),MM=Sm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return MM.RESERVED_CODE_VALUES}});var IM=_m(),qM=Tm(),NM=Cm(),jM=bm(),xM=Pm(),UM=Rm(),DM=Im(),FM=Nm(),LM=Hc(),kM=xm(),BM=Qc();O.unitPriceOffer=Dm();var GM=Lm(),$M=Bm(),KM=$m(),WM=Wm(),HM=Vm(),VM=Ym(),zM=Zm(),YM=Xm(),QM=t_(),ZM=n_(),JM=s_(),XM=a_(),eI=u_(),tI=l_(),rI=h_(),nI=p_(),iI=S_(),sI=__(),oI=T_(),aI=C_(),cI=b_(),uI=P_(),dI=R_(),lI=I_(),fI=N_(),hI=x_(),yI=D_(),pI=L_(),vI=B_(),SI=$_(),mI=W_(),_I=V_(),OI=Y_(),TI=Z_(),EI=X_(),CI=tO(),gI=nO(),bI=sO(),AI=aO(),PI=uO(),wI=lO(),RI=hO(),MI=pO(),II=SO(),qI=_O(),NI=TO(),jI=CO(),xI=bO(),UI=PO(),DI=Vc(),FI=RO(),LI=IO(),kI=NO(),BI=xO(),GI=Wc(),$I=zc(),KI=DO(),WI=LO(),HI=Yc(),VI=we();O.errors=XO();O.recipe=rT();O.errorCode=VI.ErrorCode;O.actionStatusType=_R.ActionStatusType;O.actionType=OR.ActionType;var nT;(function(t){let e;(function(y){y.coaOffer=H0,y.pay=V0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(b){b.any=Q0})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(b){b.eventService=Y0})(_=y.offer||(y.offer={})),y.invoice=z0,y.ticketedObject=Z0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=J0,y.reservation=X0})(n=t.cancel||(t.cancel={}));let i;(function(y){let S;(function(_){_.movieTicket=eR})(S=y.paymentMethod||(y.paymentMethod={}))})(i=t.check||(t.check={})),t.create=rR;let s;(function(y){let S;(function(_){_.pay=nR,_.reservation=iR})(S=y.confirm||(y.confirm={})),y.inform=sR})(s=t.interact||(t.interact={}));let c;(function(y){y.order=aR,y.pay=cR,y.refund=uR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(b){b.invoice=dR,b.order=lR,b.reserveTransaction=fR})(S=y.returnAction||(y.returnAction={}));let _;(function(b){let M;(function(w){w.email=hR})(M=b.message||(b.message={})),b.order=yR})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=pR,y.deleteAction=vR,y.replace=SR,y.update=mR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=tR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=oR})(nT||(O.action=nT={}));O.accountTitle=TR;O.additionalProperty=ER;O.aggregation=CR;O.authorization=gR;O.categoryCode=bR;O.clientUser=PR;var iT;(function(t){let e;(function(i){i.softwareApplication=wR,i.webApplication=RR,i.webSite=MR})(e=t.certification||(t.certification={}));let r;(function(i){i.email=IR})(r=t.message||(t.message={})),t.movie=qR,t.noteDigitalDocument=NR;let n;(function(i){i.softwareApplication=jR,i.webApplication=xR})(n=t.softwareApplication||(t.softwareApplication={}))})(iT||(O.creativeWork=iT={}));O.creativeWorkType=UR.CreativeWorkType;O.customer=DR;var sT;(function(t){t.screeningEvent=kR})(sT||(O.event=sT={}));O.encodingFormat=FR;O.eventStatusType=BR.EventStatusType;O.eventType=GR.EventType;O.iam=$R;O.identityProvider=KR;O.invoice=WR;O.itemAvailability=HR.ItemAvailability;O.language=VR;O.merchantReturnPolicy=zR;O.monetaryAmount=YR;O.movieTicketType=QR;var oT;(function(t){t.event=WM,t.eventSeries=HM,t.order=YM,t.reservation=tI,t.payAction=QM,t.refundAction=eI,t.accountTitle=GM,t.categoryCode=$M,t.creativeWork=KM,t.offer=VM,t.offerCatalog=zM,t.person=ZM,t.place=JM,t.product=XM,t.task=rI})(oT||(O.notification=oT={}));O.offerCatalog=ZR;O.offerItemCondition=JR;O.offerType=XR.OfferType;O.orderStatus=eM.OrderStatus;O.organization=tM;O.organizationType=rM.OrganizationType;O.ownershipInfo=nM;var aT;(function(t){let e;(function(r){r.creditCard=iM,r.movieTicket=sM})(e=t.paymentCard||(t.paymentCard={}))})(aT||(O.paymentMethod=aT={}));O.paymentStatusType=oM.PaymentStatusType;O.permit=aM;O.person=cM;O.personType=uM.PersonType;O.priceCurrency=SM.PriceCurrency;var cT;(function(t){t.entranceGate=dM,t.movieTheater=lM,t.screeningRoom=fM,t.screeningRoomSection=hM,t.seat=yM})(cT||(O.place=cT={}));O.placeType=pM.PlaceType;var uT;(function(t){t.unitPrice=mM})(uT||(O.priceSpecification=uT={}));O.priceSpecificationType=_M.PriceSpecificationType;O.programMembership=TM;O.product=OM;var dT;(function(t){t.PropertyValueType=EM.PropertyValueType,t.locationFeatureSpecification=CM})(dT||(O.propertyValue=dT={}));O.qualitativeValue=gM;O.quantitativeValue=bM;var lT;(function(t){t.accountingReport=AM})(lT||(O.report=lT={}));var fT;(function(t){t.eventReservation=PM})(fT||(O.reservation=fT={}));O.reservationStatusType=wM.ReservationStatusType;O.reservationType=RM.ReservationType;var hT;(function(t){t.RoleType=IM.RoleType,t.organizationRole=qM})(hT||(O.role=hT={}));O.schedule=NM;O.seller=jM;O.sellerReturnPolicy=xM;var yT;(function(t){t.acceptCOAOffer=nI,t.aggregateOffers=iI,t.aggregateOnSystem=sI,t.aggregateScreeningEvent=oI,t.authorizePayment=aI,t.cancelPendingReservation=cI,t.cancelReservation=uI,t.checkMovieTicket=dI,t.checkResource=lI,t.createAccountingReport=yI,t.confirmReserveTransaction=fI,t.confirmReturnOrder=hI,t.deleteTransaction=pI,t.handleNotification=vI,t.importEventCapacitiesFromCOA=SI,t.importEventsFromCOA=mI,t.importOffersFromCOA=_I,t.invalidatePaymentUrl=OI,t.onAssetTransactionStatusChanged=TI,t.pay=AI,t.publishPaymentUrl=PI,t.refund=wI,t.reserve=RI,t.sendEmailMessage=MI,t.syncResourcesFromCOA=II,t.triggerWebhook=qI,t.useReservation=NI,t.voidPayment=jI,t.onAuthorizationCreated=EI,t.onEventChanged=CI,t.onResourceDeleted=gI,t.onResourceUpdated=bI,t.voidReserveTransaction=xI})(yT||(O.task=yT={}));var pT;(function(t){t.paymentService=UM,t.webAPI=DM})(pT||(O.service=pT={}));O.serviceChannel=FM;O.sortType=LM.SortType;O.taskName=UI.TaskName;O.taskStatus=DI.TaskStatus;O.thing=kM;var vT;(function(t){t.cancelReservation=FI,t.pay=LI,t.refund=kI,t.reserve=BI})(vT||(O.assetTransaction=vT={}));var ST;(function(t){t.placeOrder=KI,t.returnOrder=WI})(ST||(O.transaction=ST={}));O.transactionType=HI.TransactionType;O.transactionStatusType=$I.TransactionStatusType;O.assetTransactionType=GI.AssetTransactionType;O.unitCode=BM.UnitCode});var _T=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ChevreFactory=void 0;Ni.ChevreFactory=mT()});var Q=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.factory=void 0;var zI=_T();Object.defineProperty(ji,"factory",{enumerable:!0,get:function(){return zI.ChevreFactory}})});var TT=o((O2,OT)=>{var tr=1e3,rr=tr*60,nr=rr*60,Dt=nr*24,YI=Dt*7,QI=Dt*365.25;OT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return ZI(t);if(r==="number"&&isFinite(t))return e.long?XI(t):JI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function ZI(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*QI;case"weeks":case"week":case"w":return r*YI;case"days":case"day":case"d":return r*Dt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*rr;case"seconds":case"second":case"secs":case"sec":case"s":return r*tr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function JI(t){var e=Math.abs(t);return e>=Dt?Math.round(t/Dt)+"d":e>=nr?Math.round(t/nr)+"h":e>=rr?Math.round(t/rr)+"m":e>=tr?Math.round(t/tr)+"s":t+"ms"}function XI(t){var e=Math.abs(t);return e>=Dt?xi(t,e,Dt,"day"):e>=nr?xi(t,e,nr,"hour"):e>=rr?xi(t,e,rr,"minute"):e>=tr?xi(t,e,tr,"second"):t+" ms"}function xi(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var CT=o((T2,ET)=>{function eq(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=i,r.enabled=d,r.humanize=TT(),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,M;function w(...q){if(!w.enabled)return;let N=w,C=Number(new Date),R=C-(S||C);N.diff=R,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 W=q[D];K=G.call(N,W),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return w.namespace=y,w.useColors=r.useColors(),w.color=r.selectColor(y),w.extend=n,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(b!==r.namespaces&&(b=r.namespaces,M=r.enabled(y)),M),set:q=>{_=q}}),typeof r.init=="function"&&r.init(w),w}function n(y,S){let _=r(this.namespace+(typeof S>"u"?":":S)+y);return _.log=this.log,_}function i(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 s(y,S){let _=0,b=0,M=-1,w=0;for(;_<y.length;)if(b<S.length&&(S[b]===y[_]||S[b]==="*"))S[b]==="*"?(M=b,w=_,b++):(_++,b++);else if(M!==-1)b=M+1,w++,_=w;else return!1;for(;b<S.length&&S[b]==="*";)b++;return b===S.length}function c(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(s(y,S))return!1;for(let S of r.names)if(s(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}ET.exports=eq});var ir=o((Me,Ui)=>{Me.formatArgs=rq;Me.save=nq;Me.load=iq;Me.useColors=tq;Me.storage=sq();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 tq(){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 rq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ui.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,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Me.log=console.debug||console.log||(()=>{});function nq(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 sq(){try{return localStorage}catch{}}Ui.exports=CT()(Me);var{formatters:oq}=Ui.exports;oq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Di=o(xe=>{"use strict";var aq=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xe,"__esModule",{value:!0});xe.StubTransporter=xe.DefaultTransporter=xe.RequestError=xe.Transporter=void 0;var cq=aq(ir()),gT=(0,cq.default)("cinerino-sdk:transporters"),lu=class{};xe.Transporter=lu;var sr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};xe.RequestError=sr;var fu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return gT("fetching...",e,n),fetch(e,n).then(async i=>this.wrapCallback(i))}async wrapCallback(e){let r=new sr("An unexpected error occurred");if(gT("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 sr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new sr(n),r.code=e.status,r.errors=[])}else return e;throw r}};xe.DefaultTransporter=fu;var hu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};xe.StubTransporter=hu});var AT=o(or=>{"use strict";Object.defineProperty(or,"__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"},bT=or.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}}},uq=or.b=bT;or.a=bT;or.b=uq});var g=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var PT=AT();Fi.default=PT.b;Fi.status=PT.a});var Ft=o((b2,wT)=>{"use strict";wT.exports=TypeError});var RT=o(()=>{});var Fr=o((w2,YT)=>{var Cu=typeof Map=="function"&&Map.prototype,yu=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ki=Cu&&yu&&typeof yu.get=="function"?yu.get:null,MT=Cu&&Map.prototype.forEach,gu=typeof Set=="function"&&Set.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Bi=gu&&pu&&typeof pu.get=="function"?pu.get:null,IT=gu&&Set.prototype.forEach,dq=typeof WeakMap=="function"&&WeakMap.prototype,xr=dq?WeakMap.prototype.has:null,lq=typeof WeakSet=="function"&&WeakSet.prototype,Ur=lq?WeakSet.prototype.has:null,fq=typeof WeakRef=="function"&&WeakRef.prototype,qT=fq?WeakRef.prototype.deref:null,hq=Boolean.prototype.valueOf,yq=Object.prototype.toString,pq=Function.prototype.toString,vq=String.prototype.match,bu=String.prototype.slice,Tt=String.prototype.replace,Sq=String.prototype.toUpperCase,NT=String.prototype.toLowerCase,GT=RegExp.prototype.test,jT=Array.prototype.concat,ct=Array.prototype.join,mq=Array.prototype.slice,xT=Math.floor,mu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vu=Object.getOwnPropertySymbols,_u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Dr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ar||!0)?Symbol.toStringTag:null,$T=Object.prototype.propertyIsEnumerable,UT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function DT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||GT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-xT(-t):xT(t);if(n!==t){var i=String(n),s=bu.call(e,i.length+1);return Tt.call(i,r,"$&_")+"."+Tt.call(Tt.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Tt.call(e,r,"$&_")}var Ou=RT(),FT=Ou.custom,LT=HT(FT)?FT:null,KT={__proto__:null,double:'"',single:"'"},_q={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};YT.exports=function t(e,r,n,i){var s=r||{};if(pt(s,"quoteStyle")&&!pt(KT,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=pt(s,"customInspect")?s.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.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,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?DT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?DT(e,p):p}var y=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Tu(e)?"[Array]":"[Object]";var S=Dq(s,n);if(typeof i>"u")i=[];else if(VT(i,e)>=0)return"[Circular]";function _(ae,se,oe){if(se&&(i=mq.call(i),i.push(se)),oe){var ee={depth:s.depth};return pt(s,"quoteStyle")&&(ee.quoteStyle=s.quoteStyle),t(ae,ee,n+1,i)}return t(ae,s,n+1,i)}if(typeof e=="function"&&!kT(e)){var b=wq(e),M=Li(e,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(M.length>0?" { "+ct.call(M,", ")+" }":"")}if(HT(e)){var w=ar?Tt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_u.call(e);return typeof e=="object"&&!ar?jr(w):w}if(jq(e)){for(var q="<"+NT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+WT(Oq(N[C].value),"double",s);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+NT.call(String(e.nodeName))+">",q}if(Tu(e)){if(e.length===0)return"[]";var R=Li(e,_);return S&&!Uq(R)?"["+Eu(R,S)+"]":"[ "+ct.call(R,", ")+" ]"}if(Eq(e)){var D=Li(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!$T.call(e,"cause")?"{ ["+String(e)+"] "+ct.call(jT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ct.call(D,", ")+" }"}if(typeof e=="object"&&c){if(LT&&typeof e[LT]=="function"&&Ou)return Ou(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Rq(e)){var k=[];return MT&&MT.call(e,function(ae,se){k.push(_(se,e,!0)+" => "+_(ae,e))}),BT("Map",ki.call(e),k,S)}if(qq(e)){var K=[];return IT&&IT.call(e,function(ae){K.push(_(ae,e))}),BT("Set",Bi.call(e),K,S)}if(Mq(e))return Su("WeakMap");if(Nq(e))return Su("WeakSet");if(Iq(e))return Su("WeakRef");if(gq(e))return jr(_(Number(e)));if(Aq(e))return jr(_(mu.call(e)));if(bq(e))return jr(hq.call(e));if(Cq(e))return jr(_(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(!Tq(e)&&!kT(e)){var x=Li(e,_),G=UT?UT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!G&&Dr&&Object(e)===e&&Dr in e?bu.call(Et(e),8,-1):W?"Object":"",z=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=z+($||W?"["+ct.call(jT.call([],$||[],W||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+Eu(x,S)+"}":Te+"{ "+ct.call(x,", ")+" }"}return String(e)};function WT(t,e,r){var n=r.quoteStyle||e,i=KT[n];return i+t+i}function Oq(t){return Tt.call(String(t),/"/g,"&quot;")}function Lt(t){return!Dr||!(typeof t=="object"&&(Dr in t||typeof t[Dr]<"u"))}function Tu(t){return Et(t)==="[object Array]"&&Lt(t)}function Tq(t){return Et(t)==="[object Date]"&&Lt(t)}function kT(t){return Et(t)==="[object RegExp]"&&Lt(t)}function Eq(t){return Et(t)==="[object Error]"&&Lt(t)}function Cq(t){return Et(t)==="[object String]"&&Lt(t)}function gq(t){return Et(t)==="[object Number]"&&Lt(t)}function bq(t){return Et(t)==="[object Boolean]"&&Lt(t)}function HT(t){if(ar)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}function Aq(t){if(!t||typeof t!="object"||!mu)return!1;try{return mu.call(t),!0}catch{}return!1}var Pq=Object.prototype.hasOwnProperty||function(t){return t in this};function pt(t,e){return Pq.call(t,e)}function Et(t){return yq.call(t)}function wq(t){if(t.name)return t.name;var e=vq.call(pq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function VT(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 Rq(t){if(!ki||!t||typeof t!="object")return!1;try{ki.call(t);try{Bi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Mq(t){if(!xr||!t||typeof t!="object")return!1;try{xr.call(t,xr);try{Ur.call(t,Ur)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Iq(t){if(!qT||!t||typeof t!="object")return!1;try{return qT.call(t),!0}catch{}return!1}function qq(t){if(!Bi||!t||typeof t!="object")return!1;try{Bi.call(t);try{ki.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Nq(t){if(!Ur||!t||typeof t!="object")return!1;try{Ur.call(t,Ur);try{xr.call(t,xr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function jq(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(bu.call(t,0,e.maxStringLength),e)+n}var i=_q[e.quoteStyle||"single"];i.lastIndex=0;var s=Tt.call(Tt.call(t,i,"\\$1"),/[\x00-\x1f]/g,xq);return WT(s,"single",e)}function xq(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":"")+Sq.call(e.toString(16))}function jr(t){return"Object("+t+")"}function Su(t){return t+" { ? }"}function BT(t,e,r,n){var i=n?Eu(r,n):ct.call(r,", ");return t+" ("+e+") {"+i+"}"}function Uq(t){for(var e=0;e<t.length;e++)if(VT(t[e],`
2
+ `)>=0)return!1;return!0}function Dq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ct.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ct.call(Array(e+1),r)}}function Eu(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+ct.call(t,","+r)+`
4
- `+e.prev}function Ls(t,e){var r=Eu(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=pt(t,s)?e(t[s],t):""}var i=typeof Su=="function"?Su(t):[],c;if(ar){c={};for(var d=0;d<i.length;d++)c["$"+i[d]]=i[d]}for(var f in t)pt(t,f)&&(r&&String(Number(f))===f&&f<t.length||ar&&c["$"+f]instanceof Symbol||(KT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof Su=="function")for(var p=0;p<i.length;p++)HT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var XT=o((x2,JT)=>{"use strict";var Bq=Lr(),Gq=Lt(),Bs=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},$q=function(t,e){if(t){var r=Bs(t,e);return r&&r.value}},Kq=function(t,e,r){var n=Bs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Hq=function(t,e){return t?!!Bs(t,e):!1},Wq=function(t,e){if(t)return Bs(t,e,!0)};JT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Gq("Side channel does not contain "+Bq(n))},delete:function(n){var s=Wq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return $q(e,n)},has:function(n){return Hq(e,n)},set:function(n,s){e||(e={next:void 0}),Kq(e,n,s)}};return r}});var Pu=o((U2,eE)=>{"use strict";eE.exports=Object});var rE=o((D2,tE)=>{"use strict";tE.exports=Error});var sE=o((L2,nE)=>{"use strict";nE.exports=EvalError});var oE=o((F2,iE)=>{"use strict";iE.exports=RangeError});var cE=o((k2,aE)=>{"use strict";aE.exports=ReferenceError});var dE=o((B2,uE)=>{"use strict";uE.exports=SyntaxError});var fE=o((G2,lE)=>{"use strict";lE.exports=URIError});var yE=o(($2,hE)=>{"use strict";hE.exports=Math.abs});var vE=o((K2,pE)=>{"use strict";pE.exports=Math.floor});var mE=o((H2,SE)=>{"use strict";SE.exports=Math.max});var OE=o((W2,_E)=>{"use strict";_E.exports=Math.min});var EE=o((V2,TE)=>{"use strict";TE.exports=Math.pow});var gE=o((z2,CE)=>{"use strict";CE.exports=Math.round});var AE=o((Y2,bE)=>{"use strict";bE.exports=Number.isNaN||function(e){return e!==e}});var wE=o((Q2,PE)=>{"use strict";var Vq=AE();PE.exports=function(e){return Vq(e)||e===0?e:e<0?-1:1}});var ME=o((Z2,RE)=>{"use strict";RE.exports=Object.getOwnPropertyDescriptor});var wu=o((J2,IE)=>{"use strict";var Gs=ME();if(Gs)try{Gs([],"length")}catch{Gs=null}IE.exports=Gs});var NE=o((X2,qE)=>{"use strict";var $s=Object.defineProperty||!1;if($s)try{$s({},"a",{value:1})}catch{$s=!1}qE.exports=$s});var xE=o((e3,jE)=>{"use strict";jE.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 c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[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 LE=o((t3,DE)=>{"use strict";var UE=typeof Symbol<"u"&&Symbol,zq=xE();DE.exports=function(){return typeof UE!="function"||typeof Symbol!="function"||typeof UE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zq()}});var Ru=o((r3,FE)=>{"use strict";FE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mu=o((n3,kE)=>{"use strict";var Yq=Pu();kE.exports=Yq.getPrototypeOf||null});var $E=o((s3,GE)=>{"use strict";var Qq="Function.prototype.bind called on incompatible ",Zq=Object.prototype.toString,Jq=Math.max,Xq="[object Function]",BE=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},e1=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},t1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};GE.exports=function(e){var r=this;if(typeof r!="function"||Zq.apply(r)!==Xq)throw new TypeError(Qq+r);for(var n=e1(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,BE(n,arguments));return Object(y)===y?y:this}return r.apply(e,BE(n,arguments))},c=Jq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(s=Function("binder","return function ("+t1(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 Fr=o((i3,KE)=>{"use strict";var r1=$E();KE.exports=Function.prototype.bind||r1});var Ks=o((o3,HE)=>{"use strict";HE.exports=Function.prototype.call});var Iu=o((a3,WE)=>{"use strict";WE.exports=Function.prototype.apply});var zE=o((c3,VE)=>{"use strict";VE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var QE=o((u3,YE)=>{"use strict";var n1=Fr(),s1=Iu(),i1=Ks(),o1=zE();YE.exports=o1||n1.call(i1,s1)});var qu=o((d3,ZE)=>{"use strict";var a1=Fr(),c1=Lt(),u1=Ks(),d1=QE();ZE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new c1("a function is required");return d1(a1,u1,e)}});var nC=o((l3,rC)=>{"use strict";var l1=qu(),JE=wu(),eC;try{eC=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Nu=!!eC&&JE&&JE(Object.prototype,"__proto__"),tC=Object,XE=tC.getPrototypeOf;rC.exports=Nu&&typeof Nu.get=="function"?l1([Nu.get]):typeof XE=="function"?function(e){return XE(e==null?e:tC(e))}:!1});var cC=o((f3,aC)=>{"use strict";var sC=Ru(),iC=Mu(),oC=nC();aC.exports=sC?function(e){return sC(e)}:iC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return iC(e)}:oC?function(e){return oC(e)}:null});var dC=o((h3,uC)=>{"use strict";var f1=Function.prototype.call,h1=Object.prototype.hasOwnProperty,y1=Fr();uC.exports=y1.call(f1,h1)});var Vs=o((y3,vC)=>{"use strict";var V,p1=Pu(),v1=rE(),S1=sE(),m1=oE(),_1=cE(),lr=dE(),dr=Lt(),O1=fE(),T1=yE(),E1=vE(),C1=mE(),g1=OE(),b1=EE(),A1=gE(),P1=wE(),yC=Function,ju=function(t){try{return yC('"use strict"; return ('+t+").constructor;")()}catch{}},kr=wu(),w1=NE(),xu=function(){throw new dr},R1=kr?(function(){try{return arguments.callee,xu}catch{try{return kr(arguments,"callee").get}catch{return xu}}})():xu,cr=LE()(),Se=cC(),M1=Mu(),I1=Ru(),pC=Iu(),Br=Ks(),ur={},q1=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),kt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":cr&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":ur,"%AsyncGenerator%":ur,"%AsyncGeneratorFunction%":ur,"%AsyncIteratorPrototype%":ur,"%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%":v1,"%eval%":eval,"%EvalError%":S1,"%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%":yC,"%GeneratorFunction%":ur,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cr&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cr||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":p1,"%Object.getOwnPropertyDescriptor%":kr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":m1,"%ReferenceError%":_1,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cr||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cr&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":cr?Symbol:V,"%SyntaxError%":lr,"%ThrowTypeError%":R1,"%TypedArray%":q1,"%TypeError%":dr,"%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%":O1,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Br,"%Function.prototype.apply%":pC,"%Object.defineProperty%":w1,"%Object.getPrototypeOf%":M1,"%Math.abs%":T1,"%Math.floor%":E1,"%Math.max%":C1,"%Math.min%":g1,"%Math.pow%":b1,"%Math.round%":A1,"%Math.sign%":P1,"%Reflect.getPrototypeOf%":I1};if(Se)try{null.error}catch(t){lC=Se(Se(t)),kt["%Error.prototype%"]=lC}var lC,N1=function t(e){var r;if(e==="%AsyncFunction%")r=ju("async function () {}");else if(e==="%GeneratorFunction%")r=ju("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ju("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 kt[e]=r,r},fC={__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"]},Gr=Fr(),Hs=dC(),j1=Gr.call(Br,Array.prototype.concat),x1=Gr.call(pC,Array.prototype.splice),hC=Gr.call(Br,String.prototype.replace),Ws=Gr.call(Br,String.prototype.slice),U1=Gr.call(Br,RegExp.prototype.exec),D1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L1=/\\(\\)?/g,F1=function(e){var r=Ws(e,0,1),n=Ws(e,-1);if(r==="%"&&n!=="%")throw new lr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lr("invalid intrinsic syntax, expected opening `%`");var s=[];return hC(e,D1,function(i,c,d,f){s[s.length]=d?hC(f,L1,"$1"):c||i}),s},k1=function(e,r){var n=e,s;if(Hs(fC,n)&&(s=fC[n],n="%"+s[0]+"%"),Hs(kt,n)){var i=kt[n];if(i===ur&&(i=N1(n)),typeof i>"u"&&!r)throw new dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new lr("intrinsic "+e+" does not exist!")};vC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dr('"allowMissing" argument must be a boolean');if(U1(/^%?[^%]*%?$/,e)===null)throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=F1(e),s=n.length>0?n[0]:"",i=k1("%"+s+"%",r),c=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],x1(n,j1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],C=Ws(_,0,1),M=Ws(_,-1);if((C==='"'||C==="'"||C==="`"||M==='"'||M==="'"||M==="`")&&C!==M)throw new lr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),s+="."+_,c="%"+s+"%",Hs(kt,c))d=kt[c];else if(d!=null){if(!(_ in d)){if(!r)throw new dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(kr&&y+1>=n.length){var w=kr(d,_);S=!!w,S&&"get"in w&&!("originalValue"in w.get)?d=w.get:d=d[_]}else S=Hs(d,_),d=d[_];S&&!f&&(kt[c]=d)}}return d}});var Uu=o((p3,_C)=>{"use strict";var SC=Vs(),mC=qu(),B1=mC([SC("%String.prototype.indexOf%")]);_C.exports=function(e,r){var n=SC(e,!!r);return typeof n=="function"&&B1(e,".prototype.")>-1?mC([n]):n}});var Du=o((v3,TC)=>{"use strict";var G1=Vs(),$r=Uu(),$1=Lr(),K1=Lt(),OC=G1("%Map%",!0),H1=$r("Map.prototype.get",!0),W1=$r("Map.prototype.set",!0),V1=$r("Map.prototype.has",!0),z1=$r("Map.prototype.delete",!0),Y1=$r("Map.prototype.size",!0);TC.exports=!!OC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new K1("Side channel does not contain "+$1(n))},delete:function(n){if(e){var s=z1(e,n);return Y1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return H1(e,n)},has:function(n){return e?V1(e,n):!1},set:function(n,s){e||(e=new OC),W1(e,n,s)}};return r}});var CC=o((S3,EC)=>{"use strict";var Q1=Vs(),Ys=Uu(),Z1=Lr(),zs=Du(),J1=Lt(),fr=Q1("%WeakMap%",!0),X1=Ys("WeakMap.prototype.get",!0),eN=Ys("WeakMap.prototype.set",!0),tN=Ys("WeakMap.prototype.has",!0),rN=Ys("WeakMap.prototype.delete",!0);EC.exports=fr?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new J1("Side channel does not contain "+Z1(s))},delete:function(s){if(fr&&s&&(typeof s=="object"||typeof s=="function")){if(e)return rN(e,s)}else if(zs&&r)return r.delete(s);return!1},get:function(s){return fr&&s&&(typeof s=="object"||typeof s=="function")&&e?X1(e,s):r&&r.get(s)},has:function(s){return fr&&s&&(typeof s=="object"||typeof s=="function")&&e?tN(e,s):!!r&&r.has(s)},set:function(s,i){fr&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new fr),eN(e,s,i)):zs&&(r||(r=zs()),r.set(s,i))}};return n}:zs});var bC=o((m3,gC)=>{"use strict";var nN=Lt(),sN=Lr(),iN=XT(),oN=Du(),aN=CC(),cN=aN||oN||iN;gC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new nN("Side channel does not contain "+sN(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=cN()),e.set(n,s)}};return r}});var Qs=o((_3,AC)=>{"use strict";var uN=String.prototype.replace,dN=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};AC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return uN.call(t,dN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Bu=o((O3,wC)=>{"use strict";var lN=Qs(),Fu=Object.prototype.hasOwnProperty,Bt=Array.isArray,ut=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),fN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Bt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},PC=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},hN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Bt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Fu.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 Bt(e)&&!Bt(r)&&(s=PC(e,n)),Bt(e)&&Bt(r)?(r.forEach(function(i,c){if(Fu.call(e,c)){var d=e[c];d&&typeof d=="object"&&i&&typeof i=="object"?e[c]=t(d,i,n):e.push(i)}else e[c]=i}),e):Object.keys(r).reduce(function(i,c){var d=r[c];return Fu.call(i,c)?i[c]=t(i[c],d,n):i[c]=d,i},s)},yN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},pN=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}},ku=1024,vN=function(e,r,n,s,i){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=ku){for(var p=c.length>=ku?c.slice(f,f+ku):c,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||i===lN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=ut[_];continue}if(_<2048){y[y.length]=ut[192|_>>6]+ut[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=ut[224|_>>12]+ut[128|_>>6&63]+ut[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=ut[240|_>>18]+ut[128|_>>12&63]+ut[128|_>>6&63]+ut[128|_&63]}d+=y.join("")}return d},SN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],c=i.obj[i.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return fN(r),e},mN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},_N=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ON=function(e,r){return[].concat(e,r)},TN=function(e,r){if(Bt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};wC.exports={arrayToObject:PC,assign:yN,combine:ON,compact:SN,decode:pN,encode:vN,isBuffer:_N,isRegExp:mN,maybeMap:TN,merge:hN}});var jC=o((T3,NC)=>{"use strict";var MC=bC(),Zs=Bu(),Kr=Qs(),EN=Object.prototype.hasOwnProperty,IC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},dt=Array.isArray,CN=Array.prototype.push,qC=function(t,e){CN.apply(t,dt(e)?e:[e])},gN=Date.prototype.toISOString,RC=Kr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Zs.encode,encodeValuesOnly:!1,format:RC,formatter:Kr.formatters[RC],indices:!1,serializeDate:function(e){return gN.call(e)},skipNulls:!1,strictNullHandling:!1},bN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Gu={},AN=function t(e,r,n,s,i,c,d,f,p,y,S,_,C,M,w,q,N,g){for(var R=e,D=g,k=0,K=!1;(D=D.get(Gu))!==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(Gu)>"u"&&(k=0)}if(typeof y=="function"?R=y(r,R):R instanceof Date?R=C(R):n==="comma"&&dt(R)&&(R=Zs.maybeMap(R,function(je){return je instanceof Date?C(je):je})),R===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",M):r;R=""}if(bN(R)||Zs.isBuffer(R)){if(p){var G=q?r:p(r,pe.encoder,N,"key",M);return[w(G)+"="+w(p(R,pe.encoder,N,"value",M))]}return[w(r)+"="+w(String(R))]}var H=[];if(typeof R>"u")return H;var $;if(n==="comma"&&dt(R))q&&p&&(R=Zs.maybeMap(R,p)),$=[{value:R.length>0?R.join(",")||null:void 0}];else if(dt(y))$=y;else{var Y=Object.keys(R);$=S?Y.sort(S):Y}var Te=f?r.replace(/\./g,"%2E"):r,ae=s&&dt(R)&&R.length===1?Te+"[]":Te;if(i&&dt(R)&&R.length===0)return ae+"[]";for(var ie=0;ie<$.length;++ie){var oe=$[ie],ee=typeof oe=="object"&&typeof oe.value<"u"?oe.value:R[oe];if(!(d&&ee===null)){var Xe=_&&f?oe.replace(/\./g,"%2E"):oe,st=dt(R)?typeof n=="function"?n(ae,Xe):ae:ae+(_?"."+Xe:"["+Xe+"]");g.set(e,k);var et=MC();et.set(Gu,g),qC(H,t(ee,st,n,s,i,c,d,f,n==="comma"&&q&&dt(R)?null:p,y,S,_,C,M,w,q,N,et))}}return H},PN=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=Kr.default;if(typeof e.format<"u"){if(!EN.call(Kr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Kr.formatters[n],i=pe.filter;(typeof e.filter=="function"||dt(e.filter))&&(i=e.filter);var c;if(e.arrayFormat in IC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=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:c,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}};NC.exports=function(t,e){var r=t,n=PN(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):dt(n.filter)&&(i=n.filter,s=i);var c=[];if(typeof r!="object"||r===null)return"";var d=IC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=MC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||qC(c,AN(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 _=c.join(n.delimiter),C=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?C+="utf8=%26%2310003%3B&":C+="utf8=%E2%9C%93&"),_.length>0?C+_:""}});var DC=o((E3,UC)=>{"use strict";var hr=Bu(),$u=Object.prototype.hasOwnProperty,wN=Array.isArray,le={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:hr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},RN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},xC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},MN="utf8=%26%2310003%3B",IN="utf8=%E2%9C%93",qN=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,c=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===IN?p="utf-8":c[f]===MN&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,C,M;_===-1?(C=r.decoder(y,le.decoder,p,"key"),M=r.strictNullHandling?null:""):(C=r.decoder(y.slice(0,_),le.decoder,p,"key"),M=hr.maybeMap(xC(y.slice(_+1),r),function(q){return r.decoder(q,le.decoder,p,"value")})),M&&r.interpretNumericEntities&&p==="iso-8859-1"&&(M=RN(M)),y.indexOf("[]=")>-1&&(M=wN(M)?[M]:M);var w=$u.call(n,C);w&&r.duplicates==="combine"?n[C]=hr.combine(n[C],M):(!w||r.duplicates==="last")&&(n[C]=M)}return n},NN=function(t,e,r,n){for(var s=n?e:xC(e,r),i=t.length-1;i>=0;--i){var c,d=t[i];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{c=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===""?c={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=s):p!=="__proto__"&&(c[p]=s)}s=c}return s},jN=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&$u.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&&$u.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),NN(y,r,n,s)}},xN=function(e){if(!e)return le;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"?le.charset:e.charset,n=typeof e.duplicates>"u"?le.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:le.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:le.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:le.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:le.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:le.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:le.decoder,delimiter:typeof e.delimiter=="string"||hr.isRegExp(e.delimiter)?e.delimiter:le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:le.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:le.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:le.strictNullHandling}};UC.exports=function(t,e){var r=xN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?qN(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var d=i[c],f=jN(d,n[d],r,typeof t=="string");s=hr.merge(s,f,r)}return r.allowSparse===!0?s:hr.compact(s)}});var Ku=o((C3,LC)=>{"use strict";var UN=jC(),DN=DC(),LN=Qs();LC.exports={formats:LN,parse:DN,stringify:UN}});var E=o(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Service=Gt.RESOURCE_SELECTOR_SEPARATOR=void 0;var FN=Ku(),kN=Us();Gt.RESOURCE_SELECTOR_SEPARATOR=":";var Hu=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}${Gt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,c=(0,FN.stringify)(n.qs,r!==void 0?r:void 0);i+=c.length>0?`?${c}`:"";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 kN.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Gt.Service=Hu});var FC=o(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.CategoryCodeService=void 0;var BN=b(),GN=E(),Wu=class extends GN.Service{async findCategoryCodes(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[BN.status.OK]}).then(async r=>r.json())}};Js.CategoryCodeService=Wu});var kC=o(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.CreativeWorkService=void 0;var $N=b(),KN=E(),Vu=class extends KN.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[$N.status.OK]}).then(async r=>r.json())}};Xs.CreativeWorkService=Vu});var BC=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.EmailMessageService=void 0;var HN=b(),WN=E(),zu=class extends WN.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[HN.status.OK]}).then(async r=>({data:await r.json()}))}};ei.EmailMessageService=zu});var GC=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.EventService=void 0;var Ct=b(),VN=E(),Yu=class extends VN.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ct.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ct.status.OK]}).then(async r=>r.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[Ct.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:[Ct.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:[Ct.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:[Ct.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:[Ct.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:[Ct.status.OK]}).then(async c=>c.json())}};ti.EventService=Yu});var $C=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.EventOfferService=void 0;var zN=b(),YN=E(),QN="/eventOffers",Qu=class extends YN.Service{async findEventOffers(e){return this.fetch({uri:QN,method:"GET",qs:e,expectedStatusCodes:[zN.status.OK]}).then(async r=>r.json())}};ri.EventOfferService=Qu});var KC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.EventSeriesService=void 0;var ZN=b(),JN=E(),Zu=class extends JN.Service{async findEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[ZN.status.OK]}).then(async r=>r.json())}};ni.EventSeriesService=Zu});var HC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.PaymentProductService=void 0;var XN=b(),ej=E(),Ju=class extends ej.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:[XN.status.OK]}).then(async i=>i.json())}};si.PaymentProductService=Ju});var WC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.PlaceService=void 0;var ii=b(),tj=E(),Xu=class extends tj.Service{async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[ii.status.OK]}).then(async r=>r.json())}async findRooms(e){return this.fetch({uri:"/rooms",method:"GET",qs:e,expectedStatusCodes:[ii.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:[ii.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[ii.status.OK]}).then(async f=>f.json())}};oi.PlaceService=Xu});var VC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.HasPOSService=void 0;var rj=b(),nj=Q(),sj=E(),ed=class extends sj.Service{async search(e){return this.fetch({uri:`/places/${nj.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[rj.status.OK]}).then(async r=>r.json())}};ai.HasPOSService=ed});var zC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.ProductService=void 0;var td=b(),ij=E(),rd=class extends ij.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:[td.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:[td.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[td.status.OK]}).then(async r=>r.json())}};ci.ProductService=rd});var YC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.SeatOfferService=void 0;var oj=b(),aj=E(),cj="/seatOffers",nd=class extends aj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:cj,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[oj.status.OK]}).then(async c=>c.json())}};ui.SeatOfferService=nd});var QC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.SellerService=void 0;var di=b(),uj=E(),sd=class extends uj.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[di.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[di.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:[di.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:[di.status.OK]}).then(async s=>s.json())}};li.SellerService=sd});var ZC=o(De=>{"use strict";var dj=De&&De.__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]})),lj=De&&De.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ue=De&&De.__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"&&dj(r,e,n[s]);return lj(r,e),r}})();Object.defineProperty(De,"__esModule",{value:!0});De.Chevre=De.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 c;c=t.EventSeries||(t.EventSeries={});let d;d=t.PaymentProduct||(t.PaymentProduct={});let f;f=t.Place||(t.Place={});let p;(function(C){let M;M=C.HasPOS||(C.HasPOS={})})(p=t.place||(t.place={}));let y;y=t.Product||(t.Product={});let S;S=t.SeatOffer||(t.SeatOffer={});let _;_=t.Seller||(t.Seller={})})(W||(De.service=W={}));var id=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return W.CategoryCode.svc===void 0&&(W.CategoryCode.svc=(await Promise.resolve().then(()=>Ue(FC()))).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(()=>Ue(kC()))).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(()=>Ue(BC()))).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(()=>Ue(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(()=>Ue($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(()=>Ue(KC()))).EventSeriesService),new W.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return W.PaymentProduct.svc===void 0&&(W.PaymentProduct.svc=(await Promise.resolve().then(()=>Ue(HC()))).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(()=>Ue(WC()))).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(()=>Ue(VC()))).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(()=>Ue(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(()=>Ue(YC()))).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(()=>Ue(QC()))).SellerService),new W.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};De.Chevre=id});var JC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.OrderService=void 0;var gt=b(),fj=Q(),hj=E(),od=class extends hj.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:[gt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${fj.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[gt.status.NO_CONTENT]})}async findAcceptedOffersByConfirmationNumber(e,r){let{orderNumber:n,limit:s,page:i,confirmationNumber:c}=e,{minimizeReservationFor:d}=r;return this.fetch({uri:`/orders/${n}/acceptedOffersByConfirmationNumber`,method:"POST",body:{limit:s,page:i,confirmationNumber:c},qs:{minimizeReservationFor:d},expectedStatusCodes:[gt.status.OK]}).then(async f=>f.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}};fi.OrderService=od});var eg=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.ReservationService=void 0;var XC=b(),yj=E(),ad=class extends yj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[XC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[XC.status.OK]}).then(async n=>n.json())}};hi.ReservationService=ad});var tg=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.TokenService=void 0;var pj=E(),cd=class extends pj.Service{};yi.TokenService=cd});var rg=o(Le=>{"use strict";var vj=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]})),Sj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ud=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"&&vj(r,e,n[s]);return Sj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.ChevreAsset=Le.service=void 0;var tt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(tt||(Le.service=tt={}));var dd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return tt.Order.svc===void 0&&(tt.Order.svc=(await Promise.resolve().then(()=>ud(JC()))).OrderService),new tt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return tt.Reservation.svc===void 0&&(tt.Reservation.svc=(await Promise.resolve().then(()=>ud(eg()))).ReservationService),new tt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return tt.Token.svc===void 0&&(tt.Token.svc=(await Promise.resolve().then(()=>ud(tg()))).TokenService),new tt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Le.ChevreAsset=dd});var sg=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SyncService=void 0;var ng=b(),mj=E(),ld=class extends mj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[ng.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[ng.status.ACCEPTED]}).then(async r=>r.json())}};pi.SyncService=ld});var ig=o(Fe=>{"use strict";var _j=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]})),Oj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Tj=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"&&_j(r,e,n[s]);return Oj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAdmic=Fe.service=void 0;var Hr;(function(t){let e;e=t.Sync||(t.Sync={})})(Hr||(Fe.service=Hr={}));var fd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Hr.Sync.svc===void 0&&(Hr.Sync.svc=(await Promise.resolve().then(()=>Tj(sg()))).SyncService),new Hr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};Fe.ChevreAdmic=fd});var og=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.CustomerService=void 0;var Ej=b(),Cj=E(),hd=class extends Cj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[Ej.status.OK]}).then(async r=>r.json())}};vi.CustomerService=hd});var ag=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.EventService=void 0;var Wr=b(),gj=E(),yd=class extends gj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Wr.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:[Wr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Wr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Wr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Wr.status.OK]}).then(async r=>r.json())}};Si.EventService=yd});var cg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.EventOfferService=void 0;var mi=b(),bj=E(),_i="/eventOffers",pd=class extends bj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:_i,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[mi.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:_i,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[mi.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:_i,method:"GET",qs:e,expectedStatusCodes:[mi.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${_i}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[mi.status.CREATED]}).then(async n=>n.json())}};Oi.EventOfferService=pd});var lg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.EventSeriesService=void 0;var ug=b(),Aj=E(),dg="/eventSeries",vd=class extends Aj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:c}=r;await this.fetch({uri:dg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:c===!0},expectedStatusCodes:[ug.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:dg,method:"GET",qs:e,expectedStatusCodes:[ug.status.OK]}).then(async r=>r.json())}};Ti.EventSeriesService=vd});var hg=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.MeService=void 0;var fg=b(),Pj=E(),Sd=class extends Pj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[fg.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:[fg.status.OK]}).then(async s=>s.json())}};Ei.MeService=Sd});var yg=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.MemberService=void 0;var wj=b(),Rj=Q(),Mj=E(),md=class extends Mj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Rj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[wj.status.OK]}).then(async r=>r.json())}};Ci.MemberService=md});var Sg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.MovieService=void 0;var pg=b(),Ij=E(),vg="/movies",_d=class extends Ij.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:vg,method:"PUT",body:e,expectedStatusCodes:[pg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:vg,method:"GET",qs:e,expectedStatusCodes:[pg.status.OK]}).then(async r=>r.json())}};gi.MovieService=_d});var _g=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.MovieTheaterService=void 0;var Vr=b(),qj=E(),mg="/movieTheaters",Od="/entranceGates",Td=class extends qj.Service{async findMovieTheaters(e){return this.fetch({uri:mg,method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:mg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Od,method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Od,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Od,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};bi.MovieTheaterService=Td});var Og=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.NoteService=void 0;var Ed=b(),Nj=E(),Cd="/creativeWorks/noteDigitalDocument",gd=class extends Nj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Cd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Ed.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Cd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Ed.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Cd,method:"GET",qs:e,expectedStatusCodes:[Ed.status.OK]}).then(async r=>r.json())}};Ai.NoteService=gd});var Tg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.NoteAboutOrderService=void 0;var bd=b(),jj=E(),Ad="/orderNotes",Pd=class extends jj.Service{async upsertByIdentifier(e){await this.fetch({uri:Ad,method:"PUT",body:e,expectedStatusCodes:[bd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:Ad,method:"GET",qs:e,expectedStatusCodes:[bd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${Ad}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}};Pi.NoteAboutOrderService=Pd});var Eg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.OrderService=void 0;var zr=b(),xj=E(),wd=class extends xj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[zr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async findOrderAcceptedOffers(e,r){let{minimizeReservationFor:n}=r;return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1",minimizeReservationFor:n},expectedStatusCodes:[zr.status.OK]}).then(async s=>s.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async findAcceptedOffersByOrderNumber(e,r,n){let{minimizeReservationFor:s}=n;return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[zr.status.OK],qs:{...r,minimizeReservationFor:s}}).then(async i=>i.json())}};wi.OrderService=wd});var Cg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.PaymentMethodService=void 0;var Uj=b(),Dj=E(),Lj="/paymentMethods",Rd=class extends Dj.Service{async findPaymentMethods(e){return this.fetch({uri:Lj,method:"GET",qs:e,expectedStatusCodes:[Uj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ri.PaymentMethodService=Rd});var bg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ProductService=void 0;var Md=b(),Fj=E(),gg="/products",kj="/productHasOfferCatalog",Id=class extends Fj.Service{async upsertByProductId(e){await this.fetch({uri:gg,method:"PUT",body:e,expectedStatusCodes:[Md.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:gg,method:"GET",qs:e,expectedStatusCodes:[Md.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:kj,method:"GET",qs:e,expectedStatusCodes:[Md.status.OK]}).then(async r=>r.json())}};Mi.ProductService=Id});var Ag=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ReservationService=void 0;var qd=b(),Bj=E(),Nd=class extends Bj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[qd.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:[qd.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:[qd.status.OK]}).then(async s=>s.json())}};Ii.ReservationService=Nd});var Rg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.RoomService=void 0;var Pg=b(),Gj=E(),wg="/rooms",jd=class extends Gj.Service{async findRooms(e){return this.fetch({uri:wg,method:"GET",qs:e,expectedStatusCodes:[Pg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:wg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Pg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};qi.RoomService=jd});var Mg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.SeatService=void 0;var xd=b(),$j=E(),Ud="/seats",Dd=class extends $j.Service{async findSeats(e){return this.fetch({uri:Ud,method:"GET",qs:e,expectedStatusCodes:[xd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ud,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c},expectedStatusCodes:[xd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ud,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[xd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ni.SeatService=Dd});var Ng=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.SeatSectionService=void 0;var Ig=b(),Kj=E(),qg="/seatSections",Ld=class extends Kj.Service{async findSeatSections(e){return this.fetch({uri:qg,method:"GET",qs:e,expectedStatusCodes:[Ig.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:qg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[Ig.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ji.SeatSectionService=Ld});var jg=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.SellerService=void 0;var Hj=b(),Wj=E(),Fd=class extends Wj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Hj.status.OK]}).then(async r=>r.json())}};xi.SellerService=Fd});var Ug=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.OfferService=void 0;var xg=b(),Vj=E(),kd=class extends Vj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[xg.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:[xg.status.NO_CONTENT]})}};Ui.OfferService=kd});var Dg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.OfferCatalogService=void 0;var zj=b(),Yj=E(),Bd=class extends Yj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:c},expectedStatusCodes:[zj.status.NO_CONTENT]})}};Di.OfferCatalogService=Bd});var Fg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.OfferCatalogItemService=void 0;var Lg=b(),Qj=E(),Gd=class extends Qj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Lg.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:[Lg.status.NO_CONTENT]})}};Li.OfferCatalogItemService=Gd});var kg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.CancelReservationAssetTransactionService=void 0;var Zj=b(),Jj=E(),$d=class extends Jj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Zj.status.NO_CONTENT]})}};Fi.CancelReservationAssetTransactionService=$d});var Bg=o(ke=>{"use strict";var Xj=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]})),ex=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ue=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"&&Xj(r,e,n[s]);return ex(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmin=ke.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 c;c=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 C;C=t.Product||(t.Product={});let M;M=t.Reservation||(t.Reservation={});let w;w=t.Room||(t.Room={});let q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let g;g=t.Seller||(t.Seller={});let R;R=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||(ke.service=j={}));var Kd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ue(og()))).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(()=>ue(ag()))).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(()=>ue(cg()))).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(()=>ue(lg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ue(hg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ue(yg()))).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(()=>ue(Sg()))).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(()=>ue(_g()))).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(()=>ue(Og()))).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(()=>ue(Tg()))).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(()=>ue(Eg()))).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(()=>ue(Cg()))).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(()=>ue(bg()))).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(()=>ue(Ag()))).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(()=>ue(Rg()))).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(()=>ue(Mg()))).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(()=>ue(Ng()))).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(()=>ue(jg()))).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(()=>ue(Ug()))).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(()=>ue(Dg()))).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(()=>ue(Fg()))).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(()=>ue(kg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmin=Kd});var Gg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.AccountingReportService=void 0;var tx=b(),rx=E(),Hd=class extends rx.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[tx.status.OK]}).then(async r=>r.json())}};ki.AccountingReportService=Hd});var $g=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.AccountTitleService=void 0;var Be=b(),nx=Q(),sx=E(),Wd=class extends sx.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[Be.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[Be.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:[Be.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Be.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new nx.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[Be.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[Be.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:[Be.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Be.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[Be.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Be.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[Be.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:[Be.status.NO_CONTENT]})}};Bi.AccountTitleService=Wd});var Hg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.ActionService=void 0;var Kg=b(),ix=E(),Vd=class extends ix.Service{async adminFindAnyActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Kg.status.OK]}).then(async r=>r.json())}async findRecipesByActionId(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Kg.status.OK]}).then(async r=>r.json())}};Gi.ActionService=Vd});var Wg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.UpdateActionService=void 0;var ox=b(),ax=E(),zd=class extends ax.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[ox.status.OK]}).then(async r=>r.json())}};$i.UpdateActionService=zd});var Vg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.InformActionService=void 0;var cx=b(),ux=E(),Yd=class extends ux.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[cx.status.OK]}).then(async r=>r.json())}};Ki.InformActionService=Yd});var zg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.UseActionService=void 0;var dx=b(),lx=E(),Qd=class extends lx.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[dx.status.OK]}).then(async r=>r.json())}};Hi.UseActionService=Qd});var Yg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.CheckActionService=void 0;var fx=b(),hx=E(),Zd=class extends hx.Service{async findCheckActions(e){return this.fetch({uri:"/checkActions",method:"GET",qs:e,expectedStatusCodes:[fx.status.OK]}).then(async r=>r.json())}};Wi.CheckActionService=Zd});var Qg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AdditionalPropertyService=void 0;var Yr=b(),yx=E(),Jd=class extends yx.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Yr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yr.status.NO_CONTENT]})}};Vi.AdditionalPropertyService=Jd});var Jg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateOfferService=void 0;var Zg=b(),px=E(),Xd=class extends px.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Zg.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zg.status.NO_CONTENT]})}};zi.AggregateOfferService=Xd});var Xg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateReservationService=void 0;var vx=b(),Sx=E(),el=class extends Sx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[vx.status.OK]}).then(async r=>r.json())}};Yi.AggregateReservationService=el});var eb=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregationService=void 0;var mx=b(),_x=E(),tl=class extends _x.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[mx.status.OK]}).then(async r=>r.json())}};Qi.AggregationService=tl});var tb=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AuthorizationService=void 0;var Ox=b(),Tx=E(),rl=class extends Tx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[Ox.status.OK]}).then(async r=>r.json())}};Zi.AuthorizationService=rl});var rb=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.CreativeWorkService=void 0;var Ex=b(),Cx=E(),nl=class extends Cx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ex.status.NO_CONTENT]})}};Ji.CreativeWorkService=nl});var nb=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CategoryCodeService=void 0;var Xi=b(),gx=E(),eo="/categoryCodes",sl=class extends gx.Service{async createCategoryCode(e){return this.fetch({uri:eo,method:"POST",body:e,expectedStatusCodes:[Xi.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:eo,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Xi.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${eo}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Xi.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${eo}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xi.status.NO_CONTENT]})}};to.CategoryCodeService=sl});var sb=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerService=void 0;var il=b(),bx=E(),ol=class extends bx.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[il.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[il.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[il.status.NO_CONTENT]})}};ro.CustomerService=ol});var ib=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerTypeService=void 0;var Ax=b(),Px=E(),al=class extends Px.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[Ax.status.OK]}).then(async r=>r.json())}};no.CustomerTypeService=al});var ob=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EmailMessageService=void 0;var so=b(),wx=E(),cl=class extends wx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[so.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[so.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[so.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[so.status.NO_CONTENT]})}};io.EmailMessageService=cl});var cb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventService=void 0;var Qr=b(),ab=Q(),Rx=E(),ul=class extends Rx.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:ab.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Qr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Qr.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:[Qr.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:ab.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Qr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Qr.status.NO_CONTENT]})}};oo.EventService=ul});var lb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.EventSeriesService=void 0;var ub=b(),db=Q(),Mx=E(),dl=class extends Mx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${db.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[ub.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${db.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ub.status.NO_CONTENT]})}};ao.EventSeriesService=dl});var fb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.HasMerchantReturnPolicyService=void 0;var Ix=b(),qx=E(),ll=class extends qx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Ix.status.OK]}).then(async e=>e.json())}};co.HasMerchantReturnPolicyService=ll});var hb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.IAMService=void 0;var bt=b(),Nx=E(),fl=class extends Nx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[bt.status.CREATED,bt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[bt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[bt.status.OK]}).then(async e=>e.json())}};uo.IAMService=fl});var yb=o(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.IdentityService=void 0;var lo=b(),jx=E(),hl=class extends jx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[lo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[lo.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:[lo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[lo.status.NO_CONTENT]})}};fo.IdentityService=hl});var pb=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IdentityProviderService=void 0;var ho=b(),xx=E(),yl=class extends xx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[ho.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[ho.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:[ho.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[ho.status.NO_CONTENT]})}};yo.IdentityProviderService=yl});var vb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.IssuerService=void 0;var Zr=b(),Ux=E(),pl=class extends Ux.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.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:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};po.IssuerService=pl});var mb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MeService=void 0;var Sb=b(),Dx=E(),vl=class extends Dx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[Sb.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:[Sb.status.OK]}).then(async r=>r.json())}};vo.MeService=vl});var _b=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberService=void 0;var At=b(),Pt=Q(),Lx=E(),Sl=class extends Lx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};So.MemberService=Sl});var Ob=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberProgramService=void 0;var Jr=b(),Fx=E(),ml=class extends Fx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[Jr.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:[Jr.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:[Jr.status.NO_CONTENT]})}};mo.MemberProgramService=ml});var Tb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MerchantReturnPolicyService=void 0;var Xr=b(),kx=E(),_l=class extends kx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[Xr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xr.status.NO_CONTENT]})}};_o.MerchantReturnPolicyService=_l});var Eb=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MessageService=void 0;var Bx=b(),Gx=E(),Ol=class extends Gx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Bx.status.OK]}).then(async r=>r.json())}};Oo.MessageService=Ol});var Cb=o(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.MovieTicketTypeService=void 0;var To=b(),$x=E(),Eo="/movieTicketTypes",Tl=class extends $x.Service{async createMovieTicketType(e){return this.fetch({uri:Eo,method:"POST",body:e,expectedStatusCodes:[To.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Eo,method:"GET",qs:e,expectedStatusCodes:[To.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Eo}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[To.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Eo}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[To.status.NO_CONTENT]})}};Co.MovieTicketTypeService=Tl});var gb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OrderService=void 0;var go=b(),Kx=E(),El=class extends Kx.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[go.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[go.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:[go.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[go.status.OK]}).then(async r=>r.json())}};bo.OrderService=El});var bb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var yr=b(),Hx=E(),Cl=class extends Hx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[yr.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:[yr.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:[yr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[yr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}};Ao.PaymentProductService=Cl});var Ab=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Po=b(),Wx=E(),gl=class extends Wx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Po.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Po.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:[Po.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Po.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=gl});var wb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Pb=b(),Vx=E(),bl=class extends Vx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Pb.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:[Pb.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=bl});var Mb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var Rb=b(),zx=E(),Al=class extends zx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Rb.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:[Rb.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Al});var qb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var Ib=b(),Yx=E(),Pl=class extends Yx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Ib.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:[Ib.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=Pl});var Nb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var en=b(),tn=Q(),Qx=E(),wl=class extends Qx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${tn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${tn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[en.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${tn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${tn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[en.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${tn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}};qo.PlaceService=wl});var jb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Q(),Zx=E(),Rl=class extends Zx.Service{async search(e){return this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[No.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[No.status.NO_CONTENT]})}};xo.HasPOSService=Rl});var xb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),Jx=E(),Ml=class extends Jx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Uo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Uo.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:[Uo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Uo.status.NO_CONTENT]})}};Do.PriceSpecificationService=Ml});var Ub=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var rn=b(),Xx=E(),nn="/products",Il=class extends Xx.Service{async createProduct(e){return this.fetch({uri:nn,method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:nn,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${nn}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[rn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${nn}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${nn}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};Lo.ProductService=Il});var Db=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),eU=E(),ql=class extends eU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Fo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Fo.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:[Fo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Fo.status.NO_CONTENT]})}};ko.ProjectService=ql});var Lb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var Bo=b(),tU=E(),Nl=class extends tU.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bo.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Bo.status.NO_CONTENT]})}};Go.ProjectMakesOfferService=Nl});var Fb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ReservationService=void 0;var rU=b(),nU=E(),jl=class extends nU.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[rU.status.NO_CONTENT]})}};$o.ReservationService=jl});var kb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var xl=b(),sU=E(),Ul=class extends sU.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[xl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[xl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[xl.status.NO_CONTENT]})}};Ko.OfferService=Ul});var Bb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.OfferCatalogService=void 0;var Ho=b(),iU=E(),Dl=class extends iU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Ho.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ho.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:[Ho.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Ho.status.NO_CONTENT]})}};Wo.OfferCatalogService=Dl});var Gb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var Ll=b(),oU=E(),Fl=class extends oU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ll.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:[Ll.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=Fl});var $b=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),aU=E(),kl=class extends aU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[zo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[zo.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:[zo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[zo.status.NO_CONTENT]})}};Yo.OfferItemConditionService=kl});var Kb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),cU=E(),Bl=class extends cU.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]})}};Qo.SellerService=Bl});var Hb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Gl=b(),uU=E(),$l=class extends uU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Gl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=$l});var Wb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var sn=b(),dU=E(),Kl=class extends dU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[sn.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:[sn.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:[sn.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[sn.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=Kl});var Vb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.AsyncActionService=void 0;var lU=b(),fU=E(),Hl=class extends fU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[lU.status.OK]}).then(async r=>r.json())}};Xo.AsyncActionService=Hl});var zb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.ScheduledTaskService=void 0;var hU=b(),yU=E(),Wl=class extends yU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[hU.status.OK]}).then(async r=>r.json())}};ea.ScheduledTaskService=Wl});var Yb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TaskService=void 0;var Vl=b(),pU=E(),zl=class extends pU.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Vl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Vl.status.NO_CONTENT]})}async findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Vl.status.OK]}).then(async r=>r.json())}};ta.TaskService=zl});var Qb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TicketService=void 0;var vU=b(),SU=E(),Yl=class extends SU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[vU.status.OK]}).then(async r=>r.json())}};ra.TicketService=Yl});var Zb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.AssetTransactionService=void 0;var mU=b(),_U=E(),Ql=class extends _U.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[mU.status.OK]}).then(async r=>r.json())}};na.AssetTransactionService=Ql});var Jb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.PayAssetTransactionService=void 0;var sa=b(),pr=Q(),OU=E(),Zl=class extends OU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[sa.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/${pr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[sa.status.OK]}).then(async r=>r.json())}};ia.PayAssetTransactionService=Zl});var Xb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var TU=E(),Jl=class extends TU.Service{};oa.TokenService=Jl});var tA=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var eA=b(),EU=Q(),CU=E(),Xl=class extends CU.Service{typeOf=EU.factory.transactionType.PlaceOrder;async findPlaceOrderTransactions(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[eA.status.OK]}).then(async r=>r.json())}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[eA.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=Xl});var rA=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.TransactionNumberService=void 0;var gU=b(),bU=E(),ef=class extends bU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[gU.status.CREATED]}).then(async e=>e.json())}};ca.TransactionNumberService=ef});var nA=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.UserPoolService=void 0;var tf=b(),AU=E(),rf=class extends AU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[tf.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[tf.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:[tf.status.OK]}).then(async r=>r.json())}};ua.UserPoolService=rf});var sA=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.WebSiteService=void 0;var da=b(),PU=E(),nf=class extends PU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[da.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[da.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:[da.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[da.status.NO_CONTENT]})}};la.WebSiteService=nf});var iA=o(Ge=>{"use strict";var wU=Ge&&Ge.__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]})),RU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),L=Ge&&Ge.__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"&&wU(r,e,n[s]);return RU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevreConsole=Ge.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 c;c=t.UseAction||(t.UseAction={});let d;d=t.CheckAction||(t.CheckAction={});let f;f=t.AdditionalProperty||(t.AdditionalProperty={});let p;p=t.AggregateOffer||(t.AggregateOffer={});let y;y=t.AggregateReservation||(t.AggregateReservation={});let S;S=t.Aggregation||(t.Aggregation={});let _;_=t.Authorization||(t.Authorization={});let C;C=t.CategoryCode||(t.CategoryCode={});let M;M=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let q;q=t.CustomerType||(t.CustomerType={});let N;N=t.EmailMessage||(t.EmailMessage={});let g;g=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let D;D=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let k;k=t.IAM||(t.IAM={});let K;K=t.Identity||(t.Identity={});let x;x=t.IdentityProvider||(t.IdentityProvider={});let G;G=t.Issuer||(t.Issuer={});let H;H=t.Me||(t.Me={});let $;$=t.Member||(t.Member={});let Y;Y=t.MemberProgram||(t.MemberProgram={});let Te;Te=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let ae;ae=t.Message||(t.Message={});let ie;ie=t.MovieTicketType||(t.MovieTicketType={});let oe;oe=t.Order||(t.Order={});let ee;ee=t.PaymentProduct||(t.PaymentProduct={});let Xe;Xe=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let st;st=t.PendingReservation||(t.PendingReservation={});let et;et=t.Permission||(t.Permission={});let je;je=t.Person||(t.Person={});let a;a=t.Place||(t.Place={});let u;(function(U){let Cr;Cr=U.HasPOS||(U.HasPOS={})})(u=t.place||(t.place={}));let l;l=t.PriceSpecification||(t.PriceSpecification={});let h;h=t.Product||(t.Product={});let v;v=t.Project||(t.Project={});let T;T=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let A;A=t.Reservation||(t.Reservation={});let P;P=t.Offer||(t.Offer={});let F;F=t.OfferCatalog||(t.OfferCatalog={});let z;z=t.OfferCatalogItem||(t.OfferCatalogItem={});let Z;Z=t.OfferItemCondition||(t.OfferItemCondition={});let de;de=t.Seller||(t.Seller={});let Ae;Ae=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ee;Ee=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let jt;jt=t.AsyncAction||(t.AsyncAction={});let ye;ye=t.ScheduledTask||(t.ScheduledTask={});let Pe;Pe=t.Task||(t.Task={});let it;it=t.Ticket||(t.Ticket={});let Er;Er=t.AssetTransaction||(t.AssetTransaction={});let ZP;(function(U){let Cr;Cr=U.Pay||(U.Pay={})})(ZP=t.assetTransaction||(t.assetTransaction={}));let JP;JP=t.Token||(t.Token={});let XP;(function(U){let Cr;Cr=U.PlaceOrder||(U.PlaceOrder={})})(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||(Ge.service=m={}));var sf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>L(Gg()))).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($g()))).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 createCheckActionInstance(e){return m.CheckAction.svc===void 0&&(m.CheckAction.svc=(await Promise.resolve().then(()=>L(Yg()))).CheckActionService),new m.CheckAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>L(Qg()))).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(Jg()))).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(Xg()))).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(eb()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>L(tb()))).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(rb()))).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(nb()))).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(sb()))).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(ib()))).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(ob()))).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(cb()))).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(lb()))).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(fb()))).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(hb()))).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(yb()))).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(pb()))).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(vb()))).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(mb()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>L(_b()))).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(Ob()))).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(Tb()))).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(Eb()))).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(Cb()))).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(gb()))).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(bb()))).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(Ab()))).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(wb()))).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(Mb()))).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(qb()))).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(Nb()))).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(jb()))).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(xb()))).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(Ub()))).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(Db()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>L(Lb()))).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(Fb()))).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(kb()))).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(Bb()))).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(Gb()))).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($b()))).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(Kb()))).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(Hb()))).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(Wb()))).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(Vb()))).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(zb()))).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(Yb()))).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(Qb()))).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(Zb()))).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(Jb()))).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(Xb()))).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(tA()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.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:[]})}};Ge.ChevreConsole=sf});var oA=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.PaymentService=void 0;var me=b(),ve=Q(),MU=E(),IU=["awashimakisen-production","awashimakisen-test"],of=class extends MU.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:c,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:c,...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:c,creditCard:d,method:f,paymentMethodId:p,name:y,additionalProperty:S,ticketToken:_,eventIdsAsOrderedItem:C}=r;if((typeof p!="string"||p==="")&&(typeof _!="string"||_===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!IU.includes(this.options.project.id)&&(!Array.isArray(C)||C.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:c,...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(C)?{eventIdsAsOrderedItem:C}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async w=>w.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s}=e,{issuedThrough:i,paymentMethod:c,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:c,...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:c,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:c,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 c=>c.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 c=>c.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 c=>c.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())}};fa.PaymentService=of});var aA=o($e=>{"use strict";var qU=$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]})),NU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jU=$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"&&qU(r,e,n[s]);return NU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevrePay=$e.service=void 0;var on;(function(t){let e;e=t.Payment||(t.Payment={})})(on||($e.service=on={}));var af=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return on.Payment.svc===void 0&&(on.Payment.svc=(await Promise.resolve().then(()=>jU(oA()))).PaymentService),new on.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};$e.ChevrePay=af});var uA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.OfferService=void 0;var cf=b(),cA=Q(),xU=E(),uf=class extends xU.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:[cf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${cA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[cf.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:[cf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ha.OfferService=uf});var dA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PlaceOrderTransactionService=void 0;var an=b(),UU=Q(),DU=E(),df=class extends DU.Service{typeOf=UU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[an.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[an.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:[an.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:[an.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:[an.status.NO_CONTENT]})}};ya.PlaceOrderTransactionService=df});var lA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var pa=b(),lf=Q(),LU=E(),ff=class extends LU.Service{async start(e){return this.fetch({uri:`/transactions/${lf.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,expectedStatusCodes:[pa.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${lf.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[pa.status.NO_CONTENT,pa.status.OK]})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${lf.factory.transactionType.ReturnOrder}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[pa.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=ff});var fA=o(Ke=>{"use strict";var FU=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]})),kU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hf=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"&&FU(r,e,n[s]);return kU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevreTxn=Ke.service=void 0;var rt;(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={}))})(rt||(Ke.service=rt={}));var yf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return rt.Offer.svc===void 0&&(rt.Offer.svc=(await Promise.resolve().then(()=>hf(uA()))).OfferService),new rt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return rt.transaction.PlaceOrder.svc===void 0&&(rt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>hf(dA()))).PlaceOrderTransactionService),new rt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return rt.transaction.ReturnOrder.svc===void 0&&(rt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>hf(lA()))).ReturnOrderTransactionService),new rt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevreTxn=yf});var hA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var cn=b(),un=Q(),BU=E(),pf=class extends BU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${un.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[cn.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/${un.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[cn.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/${un.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[cn.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/${un.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[cn.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/${un.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[cn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=pf});var yA=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}),KU=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.ChevreTxc=He.service=void 0;var dn;(function(t){let e;e=t.Offer||(t.Offer={})})(dn||(He.service=dn={}));var vf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return dn.Offer.svc===void 0&&(dn.Offer.svc=(await Promise.resolve().then(()=>KU(hA()))).OfferService),new dn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=vf});var pA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),HU=E(),Sf=class extends HU.Service{constructor(e){super({...e,retryableStatusCodes:[ma.status.BAD_GATEWAY,ma.status.FORBIDDEN,ma.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[ma.status.OK]}).then(async r=>({data:await r.json()}))}};_a.CategoryCodeService=Sf});var vA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),WU=E(),mf=class extends WU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Oa.status.OK]}).then(async e=>({data:await e.json()}))}};Ta.EmailMessageService=mf});var SA=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PlaceService=void 0;var Ea=b(),VU=Q(),zU=E(),_f=class extends zU.Service{constructor(e){super({...e,retryableStatusCodes:[Ea.status.BAD_GATEWAY,Ea.status.FORBIDDEN,Ea.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${VU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ea.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.PlaceService=_f});var mA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.HasPOSService=void 0;var ga=b(),YU=Q(),QU=E(),Of=class extends QU.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${YU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ga.status.OK]}).then(async r=>r.json())}};ba.HasPOSService=Of});var _A=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.SellerService=void 0;var $t=b(),ZU=E(),Tf=class extends ZU.Service{constructor(e){super({...e,retryableStatusCodes:[$t.status.BAD_GATEWAY,$t.status.FORBIDDEN,$t.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[$t.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[$t.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:[$t.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:[$t.status.OK]}).then(async r=>({data:await r.json()}))}};Aa.SellerService=Tf});var TA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.service=void 0;var JU=pA(),XU=vA(),eD=SA(),tD=mA(),rD=_A(),OA;(function(t){class e extends JU.CategoryCodeService{}t.CategoryCode=e;class r extends XU.EmailMessageService{}t.EmailMessage=r;class n extends eD.PlaceService{}t.Place=n;let s;(function(c){class d extends tD.HasPOSService{}c.HasPOS=d})(s=t.place||(t.place={}));class i extends rD.SellerService{}t.Seller=i})(OA||(Pa.service=OA={}))});var EA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CreativeWorkService=void 0;var nD=te(),sD=E(),Ef=class extends sD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,nD.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};wa.CreativeWorkService=Ef});var CA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CustomerService=void 0;var iD=te(),oD=E(),Cf=class extends oD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,iD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findCustomers(e)}};Ra.CustomerService=Cf});var gA=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventService=void 0;var vr=Q(),Ma=te(),aD=E(),gf=class extends aD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c}=this.options;return(await(await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).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,c=await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await c.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ia.EventService=gf});var bA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventOfferService=void 0;var cD=te(),uD=E(),bf=class extends uD.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,cD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};qa.EventOfferService=bf});var AA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventSeriesService=void 0;var dD=te(),lD=E(),Af=class extends lD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,dD.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};Na.EventSeriesService=Af});var wA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.MeService=void 0;var PA=te(),fD=E(),Pf=class extends fD.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,PA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,PA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};ja.MeService=Pf});var IA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MovieTheaterService=void 0;var xa=Q(),RA=te(),hD=E(),MA=20,wf=class extends hD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,RA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new xa.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new xa.factory.errors.Argument("page","must be number");if(d<1||d>MA)throw new xa.factory.errors.Argument("limit",`must be >=1 and <=${MA}`);if(f<1)throw new xa.factory.errors.Argument("page","must be >=1");return(await c.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,RA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};Ua.MovieTheaterService=wf});var qA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.NoteAboutOrderService=void 0;var Rf=te(),yD=E(),Mf=class extends yD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Rf.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,Rf.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:c,seller:d}=this.options;await(await(await(0,Rf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Da.NoteAboutOrderService=Mf});var jA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferService=void 0;var vt=Q(),NA=te(),pD=E(),If=class extends pD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,NA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new vt.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new vt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new vt.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 vt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await c.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:c}=this.options,d=await(0,NA.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==vt.factory.product.ProductType.EventService&&y!==vt.factory.product.ProductType.Product)throw new vt.factory.errors.Argument("itemOffered.typeOf",`must be ${vt.factory.product.ProductType.EventService} or ${vt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};La.OfferService=If});var xA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferCatalogService=void 0;var ln=Q(),vD=te(),SD=E(),qf=class extends SD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,vD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==ln.factory.product.ProductType.EventService&&y!==ln.factory.product.ProductType.Product)throw new ln.factory.errors.Argument("itemOffered.typeOf",`must be ${ln.factory.product.ProductType.EventService} or ${ln.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Fa.OfferCatalogService=qf});var DA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogItemService=void 0;var UA=te(),mD=E(),Nf=class extends mD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,UA.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:c}=this.options;await(await(await(0,UA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogItemService=Nf});var LA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OrderService=void 0;var wt=Q(),fn=te(),_D=E(),Ba=20,jf=class extends _D.Service{async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,fn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.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,c=await(0,fn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f},{minimizeReservationFor:!0})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,fn.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:c}=this.options;return(await(await(0,fn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).findAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r,{minimizeReservationFor:!0})}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,fn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ga.OrderService=jf});var FA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PaymentMethodService=void 0;var OD=te(),TD=E(),xf=class extends TD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,OD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};$a.PaymentMethodService=xf});var kA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ProductService=void 0;var hn=Q(),ED=te(),CD=E(),Uf=class extends CD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,ED.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==hn.factory.product.ProductType.EventService&&f!==hn.factory.product.ProductType.Product)throw new hn.factory.errors.Argument("typeOf",`must be ${hn.factory.product.ProductType.EventService} or ${hn.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Ka.ProductService=Uf});var GA=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ReservationService=void 0;var yn=Q(),Ha=te(),gD=E(),BA=20,Df=class extends gD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new yn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new yn.factory.errors.Argument("page","must be number");if(d<1||d>BA)throw new yn.factory.errors.Argument("limit",`must be >=1 and <=${BA}`);if(f<1)throw new yn.factory.errors.Argument("page","must be >=1");return await(await c.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:c,project:d,seller:f}=this.options,p=await(0,Ha.loadChevreAdmin)({auth:i,endpoint:c}),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,Ha.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 yn.factory.errors.ArgumentNull("seller.id");let c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await c.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})}};Wa.ReservationService=Df});var $A=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.SellerService=void 0;var bD=te(),AD=E(),Lf=class extends AD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,bD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Va.SellerService=Lf});var KA=o(We=>{"use strict";var PD=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]})),wD=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=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"&&PD(r,e,n[s]);return wD(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.CloudAdmin=We.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 c;c=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 C;C=t.PaymentMethod||(t.PaymentMethod={});let M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(We.service=B={}));var Ie=[],Ff=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(EA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Ie})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(CA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(gA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(bA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(AA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:Ie})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(wA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(IA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:Ie})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(qA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(jA()))).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(xA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(DA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(LA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:Ie})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(FA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:Ie})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(kA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:Ie})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(GA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:Ie})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce($A()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:Ie})}};We.CloudAdmin=Ff});var HA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.OrderService=void 0;var Kt=te(),RD=E(),kf=class extends RD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:C}=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 C=="string"?{orderNumber:C}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:C}=await _.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:C}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:[]]})).findAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0},{minimizeReservationFor:!0})}};za.OrderService=kf});var WA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.DeliveryService=void 0;var MD=te(),ID=E(),Bf=class extends ID.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,MD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Ya.DeliveryService=Bf});var zA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.ReservationService=void 0;var VA=te(),qD=E(),Gf=class extends qD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,VA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,VA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Qa.ReservationService=Gf});var YA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.TokenService=void 0;var ND=E(),$f=class extends ND.Service{};Za.TokenService=$f});var QA=o(Ve=>{"use strict";var jD=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]})),xD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ja=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"&&jD(r,e,n[s]);return xD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAsset=Ve.service=void 0;var Xa=b(),qe;(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={})})(qe||(Ve.service=qe={}));var ec=[Xa.status.BAD_GATEWAY,Xa.status.SERVICE_UNAVAILABLE,Xa.status.FORBIDDEN,Xa.status.UNAUTHORIZED],Kf=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 qe.Order.svc===void 0&&(qe.Order.svc=(await Promise.resolve().then(()=>Ja(HA()))).OrderService),new qe.Order.svc({...this.options,...e,retryableStatusCodes:ec})}async createDeliveryInstance(e){return qe.Delivery.svc===void 0&&(qe.Delivery.svc=(await Promise.resolve().then(()=>Ja(WA()))).DeliveryService),new qe.Delivery.svc({...this.options,...e,retryableStatusCodes:ec})}async createReservationInstance(e){return qe.Reservation.svc===void 0&&(qe.Reservation.svc=(await Promise.resolve().then(()=>Ja(zA()))).ReservationService),new qe.Reservation.svc({...this.options,...e,retryableStatusCodes:ec})}async createTokenInstance(e){return qe.Token.svc===void 0&&(qe.Token.svc=(await Promise.resolve().then(()=>Ja(YA()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:ec})}};Ve.CloudAsset=Kf});var ZA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.CreativeWorkService=void 0;var UD=b(),DD=E(),Hf=class extends DD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[UD.status.OK]}).then(async r=>r.json())}};tc.CreativeWorkService=Hf});var JA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.PaymentProductService=void 0;var LD=b(),FD=E(),Wf=class extends FD.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:[LD.status.OK]}).then(async i=>i.json())}};rc.PaymentProductService=Wf});var XA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.ProductService=void 0;var Vf=b(),kD=E(),zf=class extends kD.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:[Vf.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:[Vf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async c=>c.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:[Vf.status.OK]}).then(async i=>i.json())}};nc.ProductService=zf});var eP=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.EventService=void 0;var Rt=b(),BD=E(),Mt="/events",Yf=class extends BD.Service{async findEvents(e){return this.fetch({uri:Mt,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findAggregateReservations4ttts(e){return this.fetch({uri:`${Mt}/aggregations`,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:s}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:s},expectedStatusCodes:[Rt.status.OK]}).then(async i=>{let c=await i.json();return{data:c,...c.length>0?{sectionCode:c[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Rt.status.OK]}).then(async c=>c.json())}};sc.EventService=Yf});var tP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventSeriesService=void 0;var GD=b(),$D=E(),KD="/eventSeries",Qf=class extends $D.Service{async findEventSeries(e){return this.fetch({uri:KD,method:"GET",qs:e,expectedStatusCodes:[GD.status.OK]}).then(async r=>r.json())}};ic.EventSeriesService=Qf});var rP=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.EventOfferService=void 0;var HD=b(),WD=E(),VD="/eventOffers",Zf=class extends WD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c}=e;return this.fetch({uri:VD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c},expectedStatusCodes:[HD.status.OK]}).then(async d=>d.json())}};oc.EventOfferService=Zf});var nP=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.PlaceService=void 0;var Jf=b(),zD=Q(),YD=E(),Xf=class extends YD.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${zD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Jf.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:[Jf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[Jf.status.OK]}).then(async f=>f.json())}};ac.PlaceService=Xf});var sP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.SeatOfferService=void 0;var QD=b(),ZD=E(),JD="/seatOffers",eh=class extends ZD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:JD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[QD.status.OK]}).then(async c=>c.json())}};cc.SeatOfferService=eh});var iP=o(ze=>{"use strict";var XD=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]})),eL=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),It=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"&&XD(r,e,n[s]);return eL(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudSearch=ze.service=void 0;var th=b(),re;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Event||(t.Event={});let n;n=t.EventSeries||(t.EventSeries={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.PaymentProduct||(t.PaymentProduct={});let c;c=t.Place||(t.Place={});let d;d=t.Product||(t.Product={});let f;f=t.SeatOffer||(t.SeatOffer={})})(re||(ze.service=re={}));var qt=[th.status.BAD_GATEWAY,th.status.FORBIDDEN,th.status.UNAUTHORIZED],rh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return re.CreativeWork.svc===void 0&&(re.CreativeWork.svc=(await Promise.resolve().then(()=>It(ZA()))).CreativeWorkService),new re.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qt})}async createPaymentProductInstance(e){return re.PaymentProduct.svc===void 0&&(re.PaymentProduct.svc=(await Promise.resolve().then(()=>It(JA()))).PaymentProductService),new re.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:qt})}async createProductInstance(e){return re.Product.svc===void 0&&(re.Product.svc=(await Promise.resolve().then(()=>It(XA()))).ProductService),new re.Product.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventInstance(e){return re.Event.svc===void 0&&(re.Event.svc=(await Promise.resolve().then(()=>It(eP()))).EventService),new re.Event.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventSeriesInstance(e){return re.EventSeries.svc===void 0&&(re.EventSeries.svc=(await Promise.resolve().then(()=>It(tP()))).EventSeriesService),new re.EventSeries.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventOfferInstance(e){return re.EventOffer.svc===void 0&&(re.EventOffer.svc=(await Promise.resolve().then(()=>It(rP()))).EventOfferService),new re.EventOffer.svc({...this.options,...e,retryableStatusCodes:qt})}async createPlaceInstance(e){return re.Place.svc===void 0&&(re.Place.svc=(await Promise.resolve().then(()=>It(nP()))).PlaceService),new re.Place.svc({...this.options,...e,retryableStatusCodes:qt})}async createSeatOfferInstance(e){return re.SeatOffer.svc===void 0&&(re.SeatOffer.svc=(await Promise.resolve().then(()=>It(sP()))).SeatOfferService),new re.SeatOffer.svc({...this.options,...e,retryableStatusCodes:qt})}};ze.CloudSearch=rh});var cP=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PaymentService=void 0;var fe=b(),ge=Q(),be=te(),tL=E(),oP=1e3,rL=5e3;async function aP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var nh=class extends tL.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,C=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:i});return C.authorizeCreditCard({object:{...n,ticketToken:M},purpose:s})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,{checkedActionId:i}=r,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y}),{ticketToken:C}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await _.createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:C},purpose:s},{checkedActionId:i})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,C=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:i});if(typeof M!="string"||M==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return C.publishCreditCardPaymentUrl({object:{...n,ticketToken:M},purpose:s})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.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},C=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(M=>({...M,typeOf:S})):[];if(C.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:C,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:c,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),C=!1,M=setTimeout(()=>{C=!0},i),w,q=new ge.factory.errors.GatewayTimeout("given up");for(;w===void 0&&!C;){try{w=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(M);break}catch(N){q=N}await aP(rL),console.log("retrying issueTicketThroughMovieTicket...",q?.name,C)}if(typeof w?.ticketToken=="string")return w;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>oP?r.intervalAfterIssueTicketInMS:oP,f=!1,p=n.paymentMethodId;if(i?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await aP(d),y}};uc.PaymentService=nh});var uP=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}),iL=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.CloudPay=Ye.service=void 0;var dc=b(),pn;(function(t){let e;e=t.Payment||(t.Payment={})})(pn||(Ye.service=pn={}));var oL=[dc.status.BAD_GATEWAY,dc.status.SERVICE_UNAVAILABLE,dc.status.FORBIDDEN,dc.status.UNAUTHORIZED],sh=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 pn.Payment.svc===void 0&&(pn.Payment.svc=(await Promise.resolve().then(()=>iL(cP()))).PaymentService),new pn.Payment.svc({...this.options,...e,retryableStatusCodes:oL})}};Ye.CloudPay=sh});var hP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.authorizeOfferAsync=cL;lc.voidAuthorizeOfferAsync=uL;var ne=Q(),dP=2e4,lP=1e3;async function fP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function aL(t){let e;switch(t.reason){case ne.factory.errorCode.Argument:e=new ne.factory.errors.Argument("",t.message);break;case ne.factory.errorCode.ArgumentNull:e=new ne.factory.errors.ArgumentNull("",t.message);break;case ne.factory.errorCode.Unauthorized:e=new ne.factory.errors.Unauthorized(t.message);break;case ne.factory.errorCode.Forbidden:e=new ne.factory.errors.Forbidden(t.message);break;case ne.factory.errorCode.NotFound:e=new ne.factory.errors.NotFound("",t.message);break;case ne.factory.errorCode.AlreadyInUse:e=new ne.factory.errors.AlreadyInUse("",[],t.message);break;case ne.factory.errorCode.RateLimitExceeded:e=new ne.factory.errors.RateLimitExceeded(t.message);break;case ne.factory.errorCode.GatewayTimeout:e=new ne.factory.errors.GatewayTimeout(t.message);break;default:e=new ne.factory.errors.Internal(t.message)}return e}function cL(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:ne.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},dP);let s,i;for(;s===void 0&&i===void 0;){if(await fP(lP),n){i=new ne.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});if(typeof c.id=="string"&&c.actionStatus===ne.factory.actionStatusType.CompletedActionStatus){s={id:c.id};break}if(c.error!==void 0){i=aL(c.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});throw i}}function uL(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},dP);let s,i;for(;s===void 0&&i===void 0;){if(await fP(lP),n){i=new ne.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});if(c.status===ne.factory.taskStatus.Executed){s=c;break}}if(typeof s?.status!="string")throw i}}});var pP=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PlaceOrderCOAService=void 0;var yP=Q(),ih=te(),dL=E(),oh=hP(),ah=class extends dL.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:C,retryableStatusCodes:M}=this.options,q=await(await(0,ih.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:C})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(M)?M:[]]}),N=await(0,oh.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 yP.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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,ih.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,oh.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:c,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:C,disableAutoRetry:M,retryableStatusCodes:w}=this.options,N=await(await(0,ih.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:M})).createOfferInstance({project:_,seller:{id:typeof C?.id=="string"?C.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),g=await(0,oh.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof g.result?.price!="number")throw new yP.factory.errors.Internal("result.price undefined");return{id:g.id,result:{price:g.result.price,responseBody:{tmpReserveNum:g.result.responseBody.tmpReserveNum}}}}};fc.PlaceOrderCOAService=ah});var vP=o(Qe=>{"use strict";var lL=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]})),fL=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hL=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"&&lL(r,e,n[s]);return fL(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudTxc=Qe.service=void 0;var hc=b(),vn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(vn||(Qe.service=vn={}));var yL=[hc.status.BAD_GATEWAY,hc.status.SERVICE_UNAVAILABLE,hc.status.FORBIDDEN,hc.status.UNAUTHORIZED],ch=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 vn.transaction.PlaceOrder.svc===void 0&&(vn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>hL(pP()))).PlaceOrderCOAService),new vn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:yL})}};Qe.CloudTxc=ch});var SP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.OfferService=void 0;var pL=Q(),uh=te(),vL=E(),dh=class extends vL.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,uh.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:_,eventOfferId:C}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:_,eventOfferId:C})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,uh.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:pL.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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,uh.loadChevreTxn)({auth:i,endpoint:c,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=dh});var mP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.PlaceOrderTransactionService=void 0;var Sr=b(),mr=te(),SL=E(),lh=class extends SL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:s}=e,{auth:i,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],Sr.status.CONFLICT,Sr.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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};pc.PlaceOrderTransactionService=lh});var _P=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.ReturnOrderTransactionService=void 0;var fh=te(),mL=E(),hh=class extends mL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,fh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,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:c,retryableStatusCodes:d}=this.options;await(await(await(0,fh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,fh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};vc.ReturnOrderTransactionService=hh});var OP=o(Ze=>{"use strict";var _L=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]})),OL=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yh=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"&&_L(r,e,n[s]);return OL(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxn=Ze.service=void 0;var Sc=b(),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||(Ze.service=nt={}));var ph=[Sc.status.BAD_GATEWAY,Sc.status.SERVICE_UNAVAILABLE,Sc.status.FORBIDDEN,Sc.status.UNAUTHORIZED],vh=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 nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>yh(SP()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:ph})}async createPlaceOrderInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>yh(mP()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:ph})}async createReturnOrderInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>yh(_P()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:ph})}};Ze.CloudTxn=vh});var TP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleService=void 0;var TL=b(),EL=E(),Sh=class extends EL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[TL.status.OK]}).then(async r=>r.json())}};mc.RuleService=Sh});var CP=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.RuleSetService=void 0;var EP=b(),CL=E(),mh=class extends CL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[EP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[EP.status.NO_CONTENT]})}};_c.RuleSetService=mh});var bP=o(Je=>{"use strict";var gL=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]})),bL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gP=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"&&gL(r,e,n[s]);return bL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.WaiterAdmin=Je.service=void 0;var Nt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Nt||(Je.service=Nt={}));var _h=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Nt.Rule.svc===void 0&&(Nt.Rule.svc=(await Promise.resolve().then(()=>gP(TP()))).RuleService),new Nt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Nt.RuleSet.svc===void 0&&(Nt.RuleSet.svc=(await Promise.resolve().then(()=>gP(CP()))).RuleSetService),new Nt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Je.WaiterAdmin=_h});var te=o(X=>{"use strict";var AL=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]})),PL=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"&&AL(r,e,n[s]);return PL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=ML;X.loadChevreAsset=IL;X.loadChevreAdmic=qL;X.loadChevreAdmin=NL;X.loadChevreConsole=jL;X.loadChevrePay=xL;X.loadChevreTxn=UL;X.loadChevreTxc=DL;X.loadService=LL;X.loadCloudAdmin=FL;X.loadCloudAsset=kL;X.loadCloudSearch=BL;X.loadCloudPay=GL;X.loadCloudTxc=$L;X.loadCloudTxn=KL;X.loadWaiterAdmin=HL;var wL=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return wL.factory}});var RL=Oe(Us());X.transporters=RL;var Oh;async function ML(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(ZC()))).Chevre),new Oh(...t)}var Th;async function IL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(rg()))).ChevreAsset),new Th(...t)}var Eh;async function qL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(ig()))).ChevreAdmic),new Eh(...t)}var Ch;async function NL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(Bg()))).ChevreAdmin),new Ch(...t)}var gh;async function jL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(iA()))).ChevreConsole),new gh(...t)}var bh;async function xL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(aA()))).ChevrePay),new bh(...t)}var Ah;async function UL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(fA()))).ChevreTxn),new Ah(...t)}var Ph;async function DL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(yA()))).ChevreTxc),new Ph(...t)}var wh;async function LL(){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(TA()))).service),wh}var Rh;async function FL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(KA()))).CloudAdmin),new Rh(...t)}var Mh;async function kL(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(QA()))).CloudAsset),new Mh(...t)}var Ih;async function BL(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(iP()))).CloudSearch),new Ih(...t)}var qh;async function GL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(uP()))).CloudPay),new qh(...t)}var Nh;async function $L(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(vP()))).CloudTxc),new Nh(...t)}var jh;async function KL(...t){return jh===void 0&&(jh=(await Promise.resolve().then(()=>Oe(OP()))).CloudTxn),new jh(...t)}var xh;async function HL(...t){return xh===void 0&&(xh=(await Promise.resolve().then(()=>Oe(bP()))).WaiterAdmin),new xh(...t)}});var AP=o(Ht=>{"use strict";var WL=Ht&&Ht.__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=Ht&&Ht.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&WL(e,t,r)};Object.defineProperty(Ht,"__esModule",{value:!0});VL(te(),Ht)});var FP=o((A5,LP)=>{var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(t){var e={exports:{}};return t(e,e.exports),e.exports}var zL=zt(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,c=void 0,d=function(h,v){M[s]=h,M[s+1]=v,(s+=2)===2&&(c?c(w):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 C(){var h=setTimeout;return function(){return h(w,1)}}var M=new Array(1e3);function w(){for(var h=0;h<s;h+=2)(0,M[h])(M[h+1]),M[h]=void 0,M[h+1]=void 0;s=0}var q,N,g,R,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 et(P,A,F,T._result)})}else Xe(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 ae(v,h),v}D=S?function(){return process.nextTick(w)}:y?(N=0,g=new y(w),R=document.createTextNode(""),g.observe(R,{characterData:!0}),function(){R.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=w,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(w)}:C()}catch{return C()}})():C();var x=Math.random().toString(36).substring(2);function G(){}var H=void 0,$=1,Y=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?oe(A,P._result):P._state===Y?ee(A,P._result):Xe(P,void 0,function(F){return ae(A,F)},function(F){return ee(A,F)})})(h,v):T===void 0?oe(h,v):r(T)?(function(A,P,F){d(function(z){var Z=!1,de=(function(Ae,Ee,jt,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?ae(z,Pe):oe(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(F,P);!Z&&de&&(Z=!0,ee(z,de))},A)})(h,v,T):oe(h,v)}function ae(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")oe(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 ie(h){h._onerror&&h._onerror(h._result),st(h)}function oe(h,v){h._state===H&&(h._result=v,h._state=$,h._subscribers.length!==0&&d(st,h))}function ee(h,v){h._state===H&&(h._state=Y,h._result=v,d(ie,h))}function Xe(h,v,T,A){var P=h._subscribers,F=P.length;h._onerror=null,P[F]=v,P[F+$]=T,P[F+Y]=A,F===0&&h._state&&d(st,h)}function st(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])?et(T,A,P,F):P(F);h._subscribers.length=0}}function et(h,v,T,A){var P=r(T),F=void 0,z=void 0,Z=!0;if(P){try{F=T(A)}catch(de){Z=!1,z=de}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?ae(v,F):Z===!1?ee(v,z):h===$?oe(v,F):h===Y&&ee(v,F))}var je=0;function a(h){h[x]=je++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(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?oe(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&oe(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 de=new A(G);Z?ee(de,z):Te(de,v,F),this._willSettleAt(de,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===Y?ee(P,A):this._result[T]=A),this._remaining===0&&oe(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;Xe(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Y,T,P)})},h})(),l=(function(){function h(v){this[x]=je++,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){ae(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 u(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){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Vt!==void 0)h=Vt;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})()}),YL={__proto__:null,default:{}},kh=zt(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&&Vt!==void 0&&Vt.crypto&&(i=Vt.crypto),!i)try{i=YL}catch{}var c=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 g(){}return function(R){var D;return g.prototype=R,D=new g,g.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(g){var R=d(this);return g&&R.mixIn(g),R.hasOwnProperty("init")&&this.init!==R.init||(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var R in g)g.hasOwnProperty(R)&&(this[R]=g[R]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(g,R){g=this.words=g||[],this.sigBytes=R??4*g.length},toString:function(g){return(g||C).stringify(this)},concat:function(g){var R=this.words,D=g.words,k=this.sigBytes,K=g.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)R[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)R[k+G>>>2]=D[G>>>2];return this.sigBytes+=K,this},clamp:function(){var g=this.words,R=this.sigBytes;g[R>>>2]&=4294967295<<32-R%4*8,g.length=n.ceil(R/4)},clone:function(){var g=y.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var R=[],D=0;D<g;D+=4)R.push(c());return new S.init(R,g)}}),_=f.enc={},C=_.Hex={stringify:function(g){for(var R=g.words,D=g.sigBytes,k=[],K=0;K<D;K++){var x=R[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(g){for(var R=g.length,D=[],k=0;k<R;k+=2)D[k>>>3]|=parseInt(g.substr(k,2),16)<<24-k%8*4;return new S.init(D,R/2)}},M=_.Latin1={stringify:function(g){for(var R=g.words,D=g.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(R[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(g){for(var R=g.length,D=[],k=0;k<R;k++)D[k>>>2]|=(255&g.charCodeAt(k))<<24-k%4*8;return new S.init(D,R)}},w=_.Utf8={stringify:function(g){try{return decodeURIComponent(escape(M.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return M.parse(unescape(encodeURIComponent(g)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=w.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var R,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),H=(G=g?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*H,K);if(H){for(var Y=0;Y<H;Y+=x)this._doProcessBlock(k,Y);R=k.splice(0,H),D.sigBytes-=$}return new S.init(R,$)},clone:function(){var g=y.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});p.Hasher=q.extend({cfg:y.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){return g&&this._append(g),this._doFinalize()},blockSize:16,_createHelper:function(g){return function(R,D){return new g.init(D).finalize(R)}},_createHmacHelper:function(g){return function(R,D){return new N.HMAC.init(g,D).finalize(R)}}});var N=f.algo={};return f})(Math),r)}),qP=zt(function(t,e){var r;t.exports=(r=kh,(function(n){var s=r,i=s.lib,c=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function C(N){for(var g=n.sqrt(N),R=2;R<=g;R++)if(!(N%R))return!1;return!0}function M(N){return 4294967296*(N-(0|N))|0}for(var w=2,q=0;q<64;)C(w)&&(q<8&&(p[q]=M(n.pow(w,.5))),y[q]=M(n.pow(w,1/3)),q++),w++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(C,M){for(var w=this._hash.words,q=w[0],N=w[1],g=w[2],R=w[3],D=w[4],k=w[5],K=w[6],x=w[7],G=0;G<64;G++){if(G<16)S[G]=0|C[M+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 Y=q&N^q&g^N&g,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=R+Te|0,R=g,g=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Y)|0}w[0]=w[0]+q|0,w[1]=w[1]+N|0,w[2]=w[2]+g|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+k|0,w[6]=w[6]+K|0,w[7]=w[7]+x|0},_doFinalize:function(){var C=this._data,M=C.words,w=8*this._nDataBytes,q=8*C.sigBytes;return M[q>>>5]|=128<<24-q%32,M[14+(q+64>>>9<<4)]=n.floor(w/4294967296),M[15+(q+64>>>9<<4)]=w,C.sigBytes=4*M.length,this._process(),this._hash},clone:function(){var C=d.clone.call(this);return C._hash=this._hash.clone(),C}});s.SHA256=d._createHelper(_),s.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),QL=zt(function(t,e){var r,n;t.exports=(n=(r=kh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<c;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<c;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,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,_,C){for(var M=[],w=0,q=0;q<_;q++)if(q%4){var N=C[S.charCodeAt(q-1)]<<q%4*2,g=C[S.charCodeAt(q)]>>>6-q%4*2;M[w>>>2]|=(N|g)<<24-w%4*8,w++}return n.create(M,w)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),PP=zt(function(t,e){t.exports=kh.enc.Hex}),NP=zt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>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,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>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 c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=s();return u.fromInt(a),u}function _(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,l+=1),l}function C(a){this.m=a}function M(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 w(a,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function g(a,u){return a&~u}function R(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}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}C.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},C.prototype.revert=function(a){return a},C.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},C.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},C.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},M.prototype.convert=function(a){var u=s();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},M.prototype.revert=function(a){var u=s();return a.copyTo(u),this.reduce(u),u},M.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,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)},M.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},M.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];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,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);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,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){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)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.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 de=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Ae=this.FV/de,Ee=(1<<this.F1)/de,jt=1<<this.F2,ye=l.t,Pe=ye-z,it=u??s();for(T.dlShiftTo(Pe,it),l.compareTo(it)>=0&&(l[l.t++]=1,l.subTo(it,l)),n.ONE.dlShiftTo(z,it),it.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Pe>=0;){var Er=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+jt)*Ee);if((l[ye]+=T.am(0,Er,l,Pe,0,z))<Er)for(T.dlShiftTo(Pe,it),l.subTo(it,l);l[ye]<--Er;)l.subTo(it,l)}u!=null&&(l.drShiftTo(z,u),A!=P&&n.ZERO.subTo(u,u)),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 u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=u.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&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 u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;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 u=s();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new C(u):new M(u),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,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},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 u=s();return a.copyTo(u),this.reduce(u),u},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,u,l){a.multiplyTo(u,l),this.reduce(l)},x.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)};var G,H,$,Y=[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)/Y[Y.length-1];function ae(){var a;a=new Date().getTime(),H[$++]^=255&a,H[$++]^=a>>8&255,H[$++]^=a>>16&255,H[$++]^=a>>24&255,$>=je&&($-=je)}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 u=this.chunkSize(a),l=Math.pow(a,u),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,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,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=u*A+F,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="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(u);)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),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.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,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);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,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>Y.length&&(a=Y.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Y[Math.floor(Math.random()*Y.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=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,u=new Array;u[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&&(u[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)&&(u[v++]=l);return u},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 u=s();return this.bitwiseTo(a,w,u),u},n.prototype.or=function(a){var u=s();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=s();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=s();return this.bitwiseTo(a,g,u),u},n.prototype.not=function(){for(var a=s(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=s();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=s();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+R(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,g)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=s();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=s();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=s();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=s();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=s();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=s(),l=s();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){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 C(u):u.isEven()?new x(u):new M(u);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 de,Ae,Ee=a.t-1,jt=!0,ye=s();for(v=_(a[Ee])-1;Ee>=0;){for(v>=F?de=a[Ee]>>v-F&z:(de=(a[Ee]&(1<<v+1)-1)<<F-v,Ee>0&&(de|=a[Ee-1]>>this.DB+v-F)),P=l;(1&de)==0;)de>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),jt)A[de].copyTo(T),jt=!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[de],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 u=a.isEven();if(this.isEven()&&u||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),u?(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),u?(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),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&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 u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=Y[Y.length-1]){for(u=0;u<Y.length;++u)if(l[0]==Y[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<Y.length;){for(var h=Y[u],v=u+1;v<Y.length&&h<Te;)h*=Y[v++];for(h=l.modInt(h);u<v;)if(h%Y[u++]==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 ie;if(H=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var oe=new Uint8Array(32);for(window.crypto.getRandomValues(oe),ie=0;ie<32;++ie)H[$++]=oe[ie]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(ie=0;ie<ee.length;++ie)H[$++]=255&ee.charCodeAt(ie)}}for(;$<je;)ie=Math.floor(65536*Math.random()),H[$++]=ie>>>8,H[$++]=255&ie;$=0,ae()}function Xe(){if(G==null){for(ae(),(G=new et).init(H),$=0;$<H.length;++$)H[$]=0;$=0}return G.next()}function st(){}function et(){this.i=0,this.j=0,this.S=new Array}st.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=Xe()},et.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%a.length]&255],this.S[l]=h;this.i=0,this.j=0},et.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 je=256;t.exports={default:n,BigInteger:n,SecureRandom:st}}).call(Vt)}),wP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},RP={sha256:qP};function jP(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 NP.BigInteger(t,16),this.e=parseInt(e,16)}jP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new NP.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 c in wP){var d=wP[c],f=d.length;if(i.substring(0,f)===d)return{alg:c,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!RP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=RP[n.alg](t).toString();return n.hash===s};for(MP=[],Ne=[],xP=typeof Uint8Array<"u"?Uint8Array:Array,Uh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wt=0;Wt<64;++Wt)MP[Wt]=Uh[Wt],Ne[Uh.charCodeAt(Wt)]=Wt;var MP,Ne,xP,Uh,Wt;Ne[45]=62,Ne[95]=63;var UP=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],c=new xP((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=Ne[t.charCodeAt(r)]<<18|Ne[t.charCodeAt(r+1)]<<12|Ne[t.charCodeAt(r+2)]<<6|Ne[t.charCodeAt(r+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return i===2&&(e=Ne[t.charCodeAt(r)]<<2|Ne[t.charCodeAt(r+1)]>>4,c[d++]=255&e),i===1&&(e=Ne[t.charCodeAt(r)]<<10|Ne[t.charCodeAt(r+1)]<<4|Ne[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function DP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function IP(t){return t=DP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(UP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Dh(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})(UP(DP(t)))}var ZL=zt(function(t){var e,r;e=Vt,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 c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<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 JL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],c=[],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 c},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()),c.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 XL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Lh(t){this.name="ConfigurationError",this.message=t||""}function se(t){this.name="TokenValidationError",this.message=t||""}Lh.prototype=Error.prototype,se.prototype=Error.prototype;var eF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();zL.polyfill();var Fh="RS256",Oc=function(t){return typeof t=="number"},tF=function(){return new Date};function Sn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new eF,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:tF,this.leeway<0||this.leeway>300)throw new Lh("The leeway should be positive and lower than five minutes.");if(Fh!==this.expectedAlg)throw new Lh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Fh+'".')}Sn.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new se("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new se("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Dh(n.encoded.signature),c=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,C=n.payload.iat,M=n.payload.azp,w=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),g=this;if(g.expectedAlg!==c)return r(new se('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Fh+'".'),null);this.getRsaVerifier(y,d,function(R,D){if(R)return r(R,null);if(!D.verify(s,i))return r(new se("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new se("Issuer (iss) claim must be a string present in the ID token"),null);if(g.issuer!==y)return r(new se('Issuer (iss) claim mismatch in the ID token, expected "'+g.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new se("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new se("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(g.audience))return r(new se('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&g.audience!==f)return r(new se('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but found "'+f+'"'),null);if(e){if(!q||typeof q!="string")return r(new se("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new se('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!M||typeof M!="string")return r(new se("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(M!==g.audience)return r(new se('Authorized Party (azp) claim mismatch in the ID token; expected "'+g.audience+'", found "'+M+'"'),null)}if(!S||!Oc(S))return r(new se("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!C||!Oc(C))return r(new se("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+g.leeway,K=new Date(0);if(K.setUTCSeconds(k),N>K)return r(new se('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(_&&Oc(_)){var x=_-g.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new se('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+G+'"'),null)}if(g.maxAge){if(!w||!Oc(w))return r(new se("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var H=w+g.maxAge+g.leeway,$=new Date(0);if($.setUTCSeconds(H),N>$)return r(new se('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)})},Sn.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=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||ZL(c.iss,".well-known","jwks.json"),(fetch=="undefined"?JL:fetch)(d).then(XL).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===c.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:Dh((S=_).n),exp:Dh(S.e)}}).catch(function(f){throw f}));var c,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 jP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},Sn.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new se("Cannot decode a malformed JWT");try{e=JSON.parse(IP(n[0])),r=JSON.parse(IP(n[1]))}catch{return new se("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},Sn.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new se('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=qP(t),c=PP.stringify(i),d=c.substring(0,c.length/2),f=PP.parse(d),p=QL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new se("Invalid access_token"):null))},LP.exports=Sn});var mn=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.AuthorizeError=void 0;var Bh=class extends Error{error;errorDescription;state};Tc.AuthorizeError=Bh});var kP=o(_r=>{"use strict";var rF=_r&&_r.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_r,"__esModule",{value:!0});_r.PopupHandler=void 0;var nF=rF(sr()),Gh=(0,nF.default)("cinerino-sdk:auth:popupHandler"),$h=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(Gh("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}`)}Gh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){Gh("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)}};_r.PopupHandler=$h});var BP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.PopupAuthenticationHandler=void 0;var sF=mn(),iF=kP(),Kh=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 iF.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 sF.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Ec.PopupAuthenticationHandler=Kh});var Wh=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.IframeHandler=void 0;var aF=oF(sr()),cF=(0,aF.default)("cinerino-sdk:auth:iframeHandler"),Hh=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(cF("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)}};Or.IframeHandler=Hh});var GP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentAuthenticationHandler=void 0;var uF=mn(),dF=Wh(),Vh=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 dF.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 uF.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentAuthenticationHandler=Vh});var $P=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.SilentLogoutHandler=void 0;var lF=mn(),fF=Wh(),zh=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 fF.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 lF.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};gc.SilentLogoutHandler=zh});var KP=o(()=>{});var HP=o(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.LoginTicket=void 0;var Yh=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=Yh});var WP=o(St=>{"use strict";var hF=St&&St.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.OAuth2client=St.MAX_RETRY_NUM=void 0;var yF=KP(),pF=hF(sr()),Ac=b(),vF=Us(),SF=HP(),Yt=(0,pF.default)("cinerino-sdk:auth:oAuth2client"),mF=1e3;St.MAX_RETRY_NUM=2;async function _F(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Qh=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,yF.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),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Yt("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=>(Yt("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 c,d=0;for(;c===void 0;)try{d+=1,d>St.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Yt("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 _F(mF*d);continue}}throw f}return c}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 vF.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){Yt("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 Yt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async c=>{if(Yt("response:",c.status),c.status!==Ac.status.OK)if(c.status===Ac.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.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 c=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new SF.LoginTicket({envelope:s,payload:i})}};St.OAuth2client=Qh});var YP=o(Tr=>{"use strict";var zP=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ImplicitGrantClient=void 0;var OF=zP(sr()),VP=zP(FP()),Zh=Ku(),TF=mn(),EF=BP(),CF=GP(),gF=$P(),bF=WP(),Pc=(0,OF.default)("cinerino-sdk:auth:implicitGrantClient"),Jh=class t extends bF.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 CF.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 EF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await gF.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,Zh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new TF.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 VP.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 VP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Pc("id_token verified",c,d),c!==null){s(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Zh.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,Zh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Tr.ImplicitGrantClient=Jh});var QP=o(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.transporters=he.factory=he.loadService=he.loadCloudTxn=he.loadCloudTxc=he.loadCloudSearch=he.loadCloudPay=he.loadCloudAsset=he.loadCloudAdmin=void 0;he.createAuthInstance=PF;var mt=AP();Object.defineProperty(he,"factory",{enumerable:!0,get:function(){return mt.factory}});Object.defineProperty(he,"loadCloudAdmin",{enumerable:!0,get:function(){return mt.loadCloudAdmin}});Object.defineProperty(he,"loadCloudAsset",{enumerable:!0,get:function(){return mt.loadCloudAsset}});Object.defineProperty(he,"loadCloudPay",{enumerable:!0,get:function(){return mt.loadCloudPay}});Object.defineProperty(he,"loadCloudSearch",{enumerable:!0,get:function(){return mt.loadCloudSearch}});Object.defineProperty(he,"loadCloudTxc",{enumerable:!0,get:function(){return mt.loadCloudTxc}});Object.defineProperty(he,"loadCloudTxn",{enumerable:!0,get:function(){return mt.loadCloudTxn}});Object.defineProperty(he,"loadService",{enumerable:!0,get:function(){return mt.loadService}});Object.defineProperty(he,"transporters",{enumerable:!0,get:function(){return mt.transporters}});var AF=YP();function PF(t){return new AF.ImplicitGrantClient(t)}});var F5=window.cinerino=QP();})();
4
+ `+e.prev}function Li(t,e){var r=Tu(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=pt(t,i)?e(t[i],t):""}var s=typeof vu=="function"?vu(t):[],c;if(ar){c={};for(var d=0;d<s.length;d++)c["$"+s[d]]=s[d]}for(var f in t)pt(t,f)&&(r&&String(Number(f))===f&&f<t.length||ar&&c["$"+f]instanceof Symbol||(GT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof vu=="function")for(var p=0;p<s.length;p++)$T.call(t,s[p])&&n.push("["+e(s[p])+"]: "+e(t[s[p]],t));return n}});var ZT=o((R2,QT)=>{"use strict";var Fq=Fr(),Lq=Ft(),Gi=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},kq=function(t,e){if(t){var r=Gi(t,e);return r&&r.value}},Bq=function(t,e,r){var n=Gi(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Gq=function(t,e){return t?!!Gi(t,e):!1},$q=function(t,e){if(t)return Gi(t,e,!0)};QT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Lq("Side channel does not contain "+Fq(n))},delete:function(n){var i=$q(e,n);return i&&e&&!e.next&&(e=void 0),!!i},get:function(n){return kq(e,n)},has:function(n){return Gq(e,n)},set:function(n,i){e||(e={next:void 0}),Bq(e,n,i)}};return r}});var Au=o((M2,JT)=>{"use strict";JT.exports=Object});var eE=o((I2,XT)=>{"use strict";XT.exports=Error});var rE=o((q2,tE)=>{"use strict";tE.exports=EvalError});var iE=o((N2,nE)=>{"use strict";nE.exports=RangeError});var oE=o((j2,sE)=>{"use strict";sE.exports=ReferenceError});var cE=o((x2,aE)=>{"use strict";aE.exports=SyntaxError});var dE=o((U2,uE)=>{"use strict";uE.exports=URIError});var fE=o((D2,lE)=>{"use strict";lE.exports=Math.abs});var yE=o((F2,hE)=>{"use strict";hE.exports=Math.floor});var vE=o((L2,pE)=>{"use strict";pE.exports=Math.max});var mE=o((k2,SE)=>{"use strict";SE.exports=Math.min});var OE=o((B2,_E)=>{"use strict";_E.exports=Math.pow});var EE=o((G2,TE)=>{"use strict";TE.exports=Math.round});var gE=o(($2,CE)=>{"use strict";CE.exports=Number.isNaN||function(e){return e!==e}});var AE=o((K2,bE)=>{"use strict";var Kq=gE();bE.exports=function(e){return Kq(e)||e===0?e:e<0?-1:1}});var wE=o((W2,PE)=>{"use strict";PE.exports=Object.getOwnPropertyDescriptor});var Pu=o((H2,RE)=>{"use strict";var $i=wE();if($i)try{$i([],"length")}catch{$i=null}RE.exports=$i});var IE=o((V2,ME)=>{"use strict";var Ki=Object.defineProperty||!1;if(Ki)try{Ki({},"a",{value:1})}catch{Ki=!1}ME.exports=Ki});var NE=o((z2,qE)=>{"use strict";qE.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 i=42;e[r]=i;for(var s 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 c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==i||d.enumerable!==!0)return!1}return!0}});var UE=o((Y2,xE)=>{"use strict";var jE=typeof Symbol<"u"&&Symbol,Wq=NE();xE.exports=function(){return typeof jE!="function"||typeof Symbol!="function"||typeof jE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Wq()}});var wu=o((Q2,DE)=>{"use strict";DE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ru=o((Z2,FE)=>{"use strict";var Hq=Au();FE.exports=Hq.getPrototypeOf||null});var BE=o((J2,kE)=>{"use strict";var Vq="Function.prototype.bind called on incompatible ",zq=Object.prototype.toString,Yq=Math.max,Qq="[object Function]",LE=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<r.length;s+=1)n[s+e.length]=r[s];return n},Zq=function(e,r){for(var n=[],i=r||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},Jq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};kE.exports=function(e){var r=this;if(typeof r!="function"||zq.apply(r)!==Qq)throw new TypeError(Vq+r);for(var n=Zq(arguments,1),i,s=function(){if(this instanceof i){var y=r.apply(this,LE(n,arguments));return Object(y)===y?y:this}return r.apply(e,LE(n,arguments))},c=Yq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(i=Function("binder","return function ("+Jq(d,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i}});var Lr=o((X2,GE)=>{"use strict";var Xq=BE();GE.exports=Function.prototype.bind||Xq});var Wi=o((e3,$E)=>{"use strict";$E.exports=Function.prototype.call});var Mu=o((t3,KE)=>{"use strict";KE.exports=Function.prototype.apply});var HE=o((r3,WE)=>{"use strict";WE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var zE=o((n3,VE)=>{"use strict";var e1=Lr(),t1=Mu(),r1=Wi(),n1=HE();VE.exports=n1||e1.call(r1,t1)});var Iu=o((i3,YE)=>{"use strict";var i1=Lr(),s1=Ft(),o1=Wi(),a1=zE();YE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new s1("a function is required");return a1(i1,o1,e)}});var tC=o((s3,eC)=>{"use strict";var c1=Iu(),QE=Pu(),JE;try{JE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var qu=!!JE&&QE&&QE(Object.prototype,"__proto__"),XE=Object,ZE=XE.getPrototypeOf;eC.exports=qu&&typeof qu.get=="function"?c1([qu.get]):typeof ZE=="function"?function(e){return ZE(e==null?e:XE(e))}:!1});var oC=o((o3,sC)=>{"use strict";var rC=wu(),nC=Ru(),iC=tC();sC.exports=rC?function(e){return rC(e)}:nC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return nC(e)}:iC?function(e){return iC(e)}:null});var cC=o((a3,aC)=>{"use strict";var u1=Function.prototype.call,d1=Object.prototype.hasOwnProperty,l1=Lr();aC.exports=l1.call(u1,d1)});var zi=o((c3,yC)=>{"use strict";var H,f1=Au(),h1=eE(),y1=rE(),p1=iE(),v1=oE(),lr=cE(),dr=Ft(),S1=dE(),m1=fE(),_1=yE(),O1=vE(),T1=mE(),E1=OE(),C1=EE(),g1=AE(),fC=Function,Nu=function(t){try{return fC('"use strict"; return ('+t+").constructor;")()}catch{}},kr=Pu(),b1=IE(),ju=function(){throw new dr},A1=kr?(function(){try{return arguments.callee,ju}catch{try{return kr(arguments,"callee").get}catch{return ju}}})():ju,cr=UE()(),Se=oC(),P1=Ru(),w1=wu(),hC=Mu(),Br=Wi(),ur={},R1=typeof Uint8Array>"u"||!Se?H:Se(Uint8Array),kt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?H:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?H:ArrayBuffer,"%ArrayIteratorPrototype%":cr&&Se?Se([][Symbol.iterator]()):H,"%AsyncFromSyncIteratorPrototype%":H,"%AsyncFunction%":ur,"%AsyncGenerator%":ur,"%AsyncGeneratorFunction%":ur,"%AsyncIteratorPrototype%":ur,"%Atomics%":typeof Atomics>"u"?H:Atomics,"%BigInt%":typeof BigInt>"u"?H:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?H:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?H:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?H:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h1,"%eval%":eval,"%EvalError%":y1,"%Float16Array%":typeof Float16Array>"u"?H:Float16Array,"%Float32Array%":typeof Float32Array>"u"?H:Float32Array,"%Float64Array%":typeof Float64Array>"u"?H:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?H:FinalizationRegistry,"%Function%":fC,"%GeneratorFunction%":ur,"%Int8Array%":typeof Int8Array>"u"?H:Int8Array,"%Int16Array%":typeof Int16Array>"u"?H:Int16Array,"%Int32Array%":typeof Int32Array>"u"?H:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cr&&Se?Se(Se([][Symbol.iterator]())):H,"%JSON%":typeof JSON=="object"?JSON:H,"%Map%":typeof Map>"u"?H:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cr||!Se?H:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":f1,"%Object.getOwnPropertyDescriptor%":kr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?H:Promise,"%Proxy%":typeof Proxy>"u"?H:Proxy,"%RangeError%":p1,"%ReferenceError%":v1,"%Reflect%":typeof Reflect>"u"?H:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?H:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cr||!Se?H:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?H:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cr&&Se?Se(""[Symbol.iterator]()):H,"%Symbol%":cr?Symbol:H,"%SyntaxError%":lr,"%ThrowTypeError%":A1,"%TypedArray%":R1,"%TypeError%":dr,"%Uint8Array%":typeof Uint8Array>"u"?H:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?H:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?H:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?H:Uint32Array,"%URIError%":S1,"%WeakMap%":typeof WeakMap>"u"?H:WeakMap,"%WeakRef%":typeof WeakRef>"u"?H:WeakRef,"%WeakSet%":typeof WeakSet>"u"?H:WeakSet,"%Function.prototype.call%":Br,"%Function.prototype.apply%":hC,"%Object.defineProperty%":b1,"%Object.getPrototypeOf%":P1,"%Math.abs%":m1,"%Math.floor%":_1,"%Math.max%":O1,"%Math.min%":T1,"%Math.pow%":E1,"%Math.round%":C1,"%Math.sign%":g1,"%Reflect.getPrototypeOf%":w1};if(Se)try{null.error}catch(t){uC=Se(Se(t)),kt["%Error.prototype%"]=uC}var uC,M1=function t(e){var r;if(e==="%AsyncFunction%")r=Nu("async function () {}");else if(e==="%GeneratorFunction%")r=Nu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Nu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Se&&(r=Se(i.prototype))}return kt[e]=r,r},dC={__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"]},Gr=Lr(),Hi=cC(),I1=Gr.call(Br,Array.prototype.concat),q1=Gr.call(hC,Array.prototype.splice),lC=Gr.call(Br,String.prototype.replace),Vi=Gr.call(Br,String.prototype.slice),N1=Gr.call(Br,RegExp.prototype.exec),j1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x1=/\\(\\)?/g,U1=function(e){var r=Vi(e,0,1),n=Vi(e,-1);if(r==="%"&&n!=="%")throw new lr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lr("invalid intrinsic syntax, expected opening `%`");var i=[];return lC(e,j1,function(s,c,d,f){i[i.length]=d?lC(f,x1,"$1"):c||s}),i},D1=function(e,r){var n=e,i;if(Hi(dC,n)&&(i=dC[n],n="%"+i[0]+"%"),Hi(kt,n)){var s=kt[n];if(s===ur&&(s=M1(n)),typeof s>"u"&&!r)throw new dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new lr("intrinsic "+e+" does not exist!")};yC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dr('"allowMissing" argument must be a boolean');if(N1(/^%?[^%]*%?$/,e)===null)throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=U1(e),i=n.length>0?n[0]:"",s=D1("%"+i+"%",r),c=s.name,d=s.value,f=!1,p=s.alias;p&&(i=p[0],q1(n,I1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],b=Vi(_,0,1),M=Vi(_,-1);if((b==='"'||b==="'"||b==="`"||M==='"'||M==="'"||M==="`")&&b!==M)throw new lr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),i+="."+_,c="%"+i+"%",Hi(kt,c))d=kt[c];else if(d!=null){if(!(_ in d)){if(!r)throw new dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(kr&&y+1>=n.length){var w=kr(d,_);S=!!w,S&&"get"in w&&!("originalValue"in w.get)?d=w.get:d=d[_]}else S=Hi(d,_),d=d[_];S&&!f&&(kt[c]=d)}}return d}});var xu=o((u3,SC)=>{"use strict";var pC=zi(),vC=Iu(),F1=vC([pC("%String.prototype.indexOf%")]);SC.exports=function(e,r){var n=pC(e,!!r);return typeof n=="function"&&F1(e,".prototype.")>-1?vC([n]):n}});var Uu=o((d3,_C)=>{"use strict";var L1=zi(),$r=xu(),k1=Fr(),B1=Ft(),mC=L1("%Map%",!0),G1=$r("Map.prototype.get",!0),$1=$r("Map.prototype.set",!0),K1=$r("Map.prototype.has",!0),W1=$r("Map.prototype.delete",!0),H1=$r("Map.prototype.size",!0);_C.exports=!!mC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new B1("Side channel does not contain "+k1(n))},delete:function(n){if(e){var i=W1(e,n);return H1(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return G1(e,n)},has:function(n){return e?K1(e,n):!1},set:function(n,i){e||(e=new mC),$1(e,n,i)}};return r}});var TC=o((l3,OC)=>{"use strict";var V1=zi(),Qi=xu(),z1=Fr(),Yi=Uu(),Y1=Ft(),fr=V1("%WeakMap%",!0),Q1=Qi("WeakMap.prototype.get",!0),Z1=Qi("WeakMap.prototype.set",!0),J1=Qi("WeakMap.prototype.has",!0),X1=Qi("WeakMap.prototype.delete",!0);OC.exports=fr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Y1("Side channel does not contain "+z1(i))},delete:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return X1(e,i)}else if(Yi&&r)return r.delete(i);return!1},get:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?Q1(e,i):r&&r.get(i)},has:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?J1(e,i):!!r&&r.has(i)},set:function(i,s){fr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new fr),Z1(e,i,s)):Yi&&(r||(r=Yi()),r.set(i,s))}};return n}:Yi});var CC=o((f3,EC)=>{"use strict";var eN=Ft(),tN=Fr(),rN=ZT(),nN=Uu(),iN=TC(),sN=iN||nN||rN;EC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new eN("Side channel does not contain "+tN(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,i){e||(e=sN()),e.set(n,i)}};return r}});var Zi=o((h3,gC)=>{"use strict";var oN=String.prototype.replace,aN=/%20/g,Du={RFC1738:"RFC1738",RFC3986:"RFC3986"};gC.exports={default:Du.RFC3986,formatters:{RFC1738:function(t){return oN.call(t,aN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Du.RFC1738,RFC3986:Du.RFC3986}});var ku=o((y3,AC)=>{"use strict";var cN=Zi(),Fu=Object.prototype.hasOwnProperty,Bt=Array.isArray,ut=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),uN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Bt(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},bC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},dN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Bt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Fu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return Bt(e)&&!Bt(r)&&(i=bC(e,n)),Bt(e)&&Bt(r)?(r.forEach(function(s,c){if(Fu.call(e,c)){var d=e[c];d&&typeof d=="object"&&s&&typeof s=="object"?e[c]=t(d,s,n):e.push(s)}else e[c]=s}),e):Object.keys(r).reduce(function(s,c){var d=r[c];return Fu.call(s,c)?s[c]=t(s[c],d,n):s[c]=d,s},i)},lN=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},fN=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}},Lu=1024,hN=function(e,r,n,i,s){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=Lu){for(var p=c.length>=Lu?c.slice(f,f+Lu):c,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||s===cN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=ut[_];continue}if(_<2048){y[y.length]=ut[192|_>>6]+ut[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=ut[224|_>>12]+ut[128|_>>6&63]+ut[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=ut[240|_>>18]+ut[128|_>>12&63]+ut[128|_>>6&63]+ut[128|_&63]}d+=y.join("")}return d},yN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],c=s.obj[s.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return uN(r),e},pN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},vN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},SN=function(e,r){return[].concat(e,r)},mN=function(e,r){if(Bt(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)};AC.exports={arrayToObject:bC,assign:lN,combine:SN,compact:yN,decode:fN,encode:hN,isBuffer:vN,isRegExp:pN,maybeMap:mN,merge:dN}});var qC=o((p3,IC)=>{"use strict";var wC=CC(),Ji=ku(),Kr=Zi(),_N=Object.prototype.hasOwnProperty,RC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},dt=Array.isArray,ON=Array.prototype.push,MC=function(t,e){ON.apply(t,dt(e)?e:[e])},TN=Date.prototype.toISOString,PC=Kr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ji.encode,encodeValuesOnly:!1,format:PC,formatter:Kr.formatters[PC],indices:!1,serializeDate:function(e){return TN.call(e)},skipNulls:!1,strictNullHandling:!1},EN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Bu={},CN=function t(e,r,n,i,s,c,d,f,p,y,S,_,b,M,w,q,N,C){for(var R=e,D=C,k=0,K=!1;(D=D.get(Bu))!==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(Bu)>"u"&&(k=0)}if(typeof y=="function"?R=y(r,R):R instanceof Date?R=b(R):n==="comma"&&dt(R)&&(R=Ji.maybeMap(R,function(je){return je instanceof Date?b(je):je})),R===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",M):r;R=""}if(EN(R)||Ji.isBuffer(R)){if(p){var G=q?r:p(r,pe.encoder,N,"key",M);return[w(G)+"="+w(p(R,pe.encoder,N,"value",M))]}return[w(r)+"="+w(String(R))]}var W=[];if(typeof R>"u")return W;var $;if(n==="comma"&&dt(R))q&&p&&(R=Ji.maybeMap(R,p)),$=[{value:R.length>0?R.join(",")||null:void 0}];else if(dt(y))$=y;else{var z=Object.keys(R);$=S?z.sort(S):z}var Te=f?r.replace(/\./g,"%2E"):r,ae=i&&dt(R)&&R.length===1?Te+"[]":Te;if(s&&dt(R)&&R.length===0)return ae+"[]";for(var se=0;se<$.length;++se){var oe=$[se],ee=typeof oe=="object"&&typeof oe.value<"u"?oe.value:R[oe];if(!(d&&ee===null)){var Je=_&&f?oe.replace(/\./g,"%2E"):oe,it=dt(R)?typeof n=="function"?n(ae,Je):ae:ae+(_?"."+Je:"["+Je+"]");C.set(e,k);var Xe=wC();Xe.set(Bu,C),MC(W,t(ee,it,n,i,s,c,d,f,n==="comma"&&q&&dt(R)?null:p,y,S,_,b,M,w,q,N,Xe))}}return W},gN=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=Kr.default;if(typeof e.format<"u"){if(!_N.call(Kr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=Kr.formatters[n],s=pe.filter;(typeof e.filter=="function"||dt(e.filter))&&(s=e.filter);var c;if(e.arrayFormat in RC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=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:c,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:s,format:n,formatter:i,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}};IC.exports=function(t,e){var r=t,n=gN(e),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):dt(n.filter)&&(s=n.filter,i=s);var c=[];if(typeof r!="object"||r===null)return"";var d=RC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var p=wC(),y=0;y<i.length;++y){var S=i[y];n.skipNulls&&r[S]===null||MC(c,CN(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 _=c.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 xC=o((v3,jC)=>{"use strict";var hr=ku(),Gu=Object.prototype.hasOwnProperty,bN=Array.isArray,le={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:hr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},AN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},NC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},PN="utf8=%26%2310003%3B",wN="utf8=%E2%9C%93",RN=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,c=i.split(r.delimiter,s),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===wN?p="utf-8":c[f]===PN&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,b,M;_===-1?(b=r.decoder(y,le.decoder,p,"key"),M=r.strictNullHandling?null:""):(b=r.decoder(y.slice(0,_),le.decoder,p,"key"),M=hr.maybeMap(NC(y.slice(_+1),r),function(q){return r.decoder(q,le.decoder,p,"value")})),M&&r.interpretNumericEntities&&p==="iso-8859-1"&&(M=AN(M)),y.indexOf("[]=")>-1&&(M=bN(M)?[M]:M);var w=Gu.call(n,b);w&&r.duplicates==="combine"?n[b]=hr.combine(n[b],M):(!w||r.duplicates==="last")&&(n[b]=M)}return n},MN=function(t,e,r,n){for(var i=n?e:NC(e,r),s=t.length-1;s>=0;--s){var c,d=t[s];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{c=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===""?c={0:i}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},IN=function(e,r,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(s),p=f?s.slice(0,f.index):s,y=[];if(p){if(!n.plainObjects&&Gu.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(s))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Gu.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+s.slice(f.index)+"]"),MN(y,r,n,i)}},qN=function(e){if(!e)return le;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"?le.charset:e.charset,n=typeof e.duplicates>"u"?le.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:le.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:le.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:le.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:le.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:le.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:le.decoder,delimiter:typeof e.delimiter=="string"||hr.isRegExp(e.delimiter)?e.delimiter:le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:le.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:le.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:le.strictNullHandling}};jC.exports=function(t,e){var r=qN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?RN(t,r):t,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),c=0;c<s.length;++c){var d=s[c],f=IN(d,n[d],r,typeof t=="string");i=hr.merge(i,f,r)}return r.allowSparse===!0?i:hr.compact(i)}});var $u=o((S3,UC)=>{"use strict";var NN=qC(),jN=xC(),xN=Zi();UC.exports={formats:xN,parse:jN,stringify:NN}});var E=o(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Service=Gt.RESOURCE_SELECTOR_SEPARATOR=void 0;var UN=$u(),DN=Di();Gt.RESOURCE_SELECTOR_SEPARATOR=":";var Ku=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"},i=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(i)||(i+=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?i=`${i}/projects/${this.options.project.id}${Gt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:i=`${i}/projects/${this.options.project.id}`);let s=`${i}${n.uri}`,c=(0,UN.stringify)(n.qs,r!==void 0?r:void 0);s+=c.length>0?`?${c}`:"";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(s,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new DN.DefaultTransporter(n.expectedStatusCodes)).fetch(s,f)}};Gt.Service=Ku});var DC=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.CategoryCodeService=void 0;var FN=g(),LN=E(),Wu=class extends LN.Service{async findCategoryCodes(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[FN.status.OK]}).then(async r=>r.json())}};Xi.CategoryCodeService=Wu});var FC=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.CreativeWorkService=void 0;var kN=g(),BN=E(),Hu=class extends BN.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[kN.status.OK]}).then(async r=>r.json())}};es.CreativeWorkService=Hu});var LC=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.EmailMessageService=void 0;var GN=g(),$N=E(),Vu=class extends $N.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[GN.status.OK]}).then(async r=>({data:await r.json()}))}};ts.EmailMessageService=Vu});var kC=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.EventService=void 0;var Ct=g(),KN=E(),zu=class extends KN.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ct.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ct.status.OK]}).then(async r=>r.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[Ct.status.OK]}).then(async i=>i.json())}async findSeatOffersDeprecated(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/seats`,method:"GET",qs:{...n},expectedStatusCodes:[Ct.status.OK]}).then(async i=>i.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[Ct.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ct.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ct.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[Ct.status.OK]}).then(async c=>c.json())}};rs.EventService=zu});var BC=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.EventOfferService=void 0;var WN=g(),HN=E(),VN="/eventOffers",Yu=class extends HN.Service{async findEventOffers(e){return this.fetch({uri:VN,method:"GET",qs:e,expectedStatusCodes:[WN.status.OK]}).then(async r=>r.json())}};ns.EventOfferService=Yu});var GC=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.EventSeriesService=void 0;var zN=g(),YN=E(),Qu=class extends YN.Service{async findEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[zN.status.OK]}).then(async r=>r.json())}};is.EventSeriesService=Qu});var $C=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.PaymentProductService=void 0;var QN=g(),ZN=E(),Zu=class extends ZN.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:i}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:i},expectedStatusCodes:[QN.status.OK]}).then(async s=>s.json())}};ss.PaymentProductService=Zu});var KC=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.PlaceService=void 0;var Wr=g(),JN=E(),Ju=class extends JN.Service{async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[Wr.status.OK]}).then(async r=>r.json())}async findRooms(e){return this.fetch({uri:"/rooms",method:"GET",qs:e,expectedStatusCodes:[Wr.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Wr.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Wr.status.OK]}).then(async f=>f.json())}async adminFindPOS(e){let{movieTheaterId:r,limit:n,page:i}=e;return this.fetch({uri:"/pos",method:"GET",qs:{movieTheaterId:r,limit:n,page:i},expectedStatusCodes:[Wr.status.OK]}).then(async s=>s.json())}};os.PlaceService=Ju});var WC=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.ProductService=void 0;var Xu=g(),XN=E(),ed=class extends XN.Service{async findProducts(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Xu.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[Xu.status.OK]}).then(async i=>i.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[Xu.status.OK]}).then(async r=>r.json())}};as.ProductService=ed});var HC=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.SeatOfferService=void 0;var ej=g(),tj=E(),rj="/seatOffers",td=class extends tj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:rj,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[ej.status.OK]}).then(async c=>c.json())}};cs.SeatOfferService=td});var VC=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.SellerService=void 0;var us=g(),nj=E(),rd=class extends nj.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[us.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[us.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:[us.status.OK]}).then(async i=>i.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[us.status.OK]}).then(async i=>i.json())}};ds.SellerService=rd});var zC=o(Ue=>{"use strict";var ij=Ue&&Ue.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),sj=Ue&&Ue.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),et=Ue&&Ue.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&ij(r,e,n[i]);return sj(r,e),r}})();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Chevre=Ue.service=void 0;var Y;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let i;i=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let c;c=t.EventSeries||(t.EventSeries={});let d;d=t.PaymentProduct||(t.PaymentProduct={});let f;f=t.Place||(t.Place={});let p;p=t.Product||(t.Product={});let y;y=t.SeatOffer||(t.SeatOffer={});let S;S=t.Seller||(t.Seller={})})(Y||(Ue.service=Y={}));var nd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return Y.CategoryCode.svc===void 0&&(Y.CategoryCode.svc=(await Promise.resolve().then(()=>et(DC()))).CategoryCodeService),new Y.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return Y.CreativeWork.svc===void 0&&(Y.CreativeWork.svc=(await Promise.resolve().then(()=>et(FC()))).CreativeWorkService),new Y.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return Y.EmailMessage.svc===void 0&&(Y.EmailMessage.svc=(await Promise.resolve().then(()=>et(LC()))).EmailMessageService),new Y.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return Y.Event.svc===void 0&&(Y.Event.svc=(await Promise.resolve().then(()=>et(kC()))).EventService),new Y.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return Y.EventOffer.svc===void 0&&(Y.EventOffer.svc=(await Promise.resolve().then(()=>et(BC()))).EventOfferService),new Y.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return Y.EventSeries.svc===void 0&&(Y.EventSeries.svc=(await Promise.resolve().then(()=>et(GC()))).EventSeriesService),new Y.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return Y.PaymentProduct.svc===void 0&&(Y.PaymentProduct.svc=(await Promise.resolve().then(()=>et($C()))).PaymentProductService),new Y.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return Y.Place.svc===void 0&&(Y.Place.svc=(await Promise.resolve().then(()=>et(KC()))).PlaceService),new Y.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return Y.Product.svc===void 0&&(Y.Product.svc=(await Promise.resolve().then(()=>et(WC()))).ProductService),new Y.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return Y.SeatOffer.svc===void 0&&(Y.SeatOffer.svc=(await Promise.resolve().then(()=>et(HC()))).SeatOfferService),new Y.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return Y.Seller.svc===void 0&&(Y.Seller.svc=(await Promise.resolve().then(()=>et(VC()))).SellerService),new Y.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Ue.Chevre=nd});var YC=o(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.OrderService=void 0;var gt=g(),oj=Q(),aj=E(),id=class extends aj.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:[gt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${oj.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[gt.status.NO_CONTENT]})}async findAcceptedOffersByConfirmationNumber(e,r){let{orderNumber:n,limit:i,page:s,confirmationNumber:c}=e,{minimizeReservationFor:d}=r;return this.fetch({uri:`/orders/${n}/acceptedOffersByConfirmationNumber`,method:"POST",body:{limit:i,page:s,confirmationNumber:c},qs:{minimizeReservationFor:d},expectedStatusCodes:[gt.status.OK]}).then(async f=>f.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}};ls.OrderService=id});var ZC=o(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.ReservationService=void 0;var QC=g(),cj=E(),sd=class extends cj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[QC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[QC.status.OK]}).then(async n=>n.json())}};fs.ReservationService=sd});var JC=o(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.TokenService=void 0;var uj=E(),od=class extends uj.Service{};hs.TokenService=od});var XC=o(De=>{"use strict";var dj=De&&De.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lj=De&&De.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ad=De&&De.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&dj(r,e,n[i]);return lj(r,e),r}})();Object.defineProperty(De,"__esModule",{value:!0});De.ChevreAsset=De.service=void 0;var tt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(tt||(De.service=tt={}));var cd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return tt.Order.svc===void 0&&(tt.Order.svc=(await Promise.resolve().then(()=>ad(YC()))).OrderService),new tt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return tt.Reservation.svc===void 0&&(tt.Reservation.svc=(await Promise.resolve().then(()=>ad(ZC()))).ReservationService),new tt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return tt.Token.svc===void 0&&(tt.Token.svc=(await Promise.resolve().then(()=>ad(JC()))).TokenService),new tt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};De.ChevreAsset=cd});var tg=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.SyncService=void 0;var eg=g(),fj=E(),ud=class extends fj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}};ys.SyncService=ud});var rg=o(Fe=>{"use strict";var hj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pj=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&hj(r,e,n[i]);return yj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAdmic=Fe.service=void 0;var Hr;(function(t){let e;e=t.Sync||(t.Sync={})})(Hr||(Fe.service=Hr={}));var dd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Hr.Sync.svc===void 0&&(Hr.Sync.svc=(await Promise.resolve().then(()=>pj(tg()))).SyncService),new Hr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};Fe.ChevreAdmic=dd});var ng=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.CustomerService=void 0;var vj=g(),Sj=E(),ld=class extends Sj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[vj.status.OK]}).then(async r=>r.json())}};ps.CustomerService=ld});var ig=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.EventService=void 0;var Vr=g(),mj=E(),fd=class extends mj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Vr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:i}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:i===!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())}};vs.EventService=fd});var sg=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.EventOfferService=void 0;var Ss=g(),_j=E(),ms="/eventOffers",hd=class extends _j.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:ms,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ss.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:ms,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ss.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:ms,method:"GET",qs:e,expectedStatusCodes:[Ss.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${ms}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ss.status.CREATED]}).then(async n=>n.json())}};_s.EventOfferService=hd});var cg=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.EventSeriesService=void 0;var og=g(),Oj=E(),ag="/eventSeries",yd=class extends Oj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:i,upsert:s,useSync:c}=r;await this.fetch({uri:ag,method:"POST",body:e,qs:{locationId:n,offerType:i,upsert:s===!0,useSync:c===!0},expectedStatusCodes:[og.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:ag,method:"GET",qs:e,expectedStatusCodes:[og.status.OK]}).then(async r=>r.json())}};Os.EventSeriesService=yd});var dg=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.MeService=void 0;var ug=g(),Tj=E(),pd=class extends Tj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[ug.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:[ug.status.OK]}).then(async i=>i.json())}};Ts.MeService=pd});var lg=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.MemberService=void 0;var Ej=g(),Cj=Q(),gj=E(),vd=class extends gj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Cj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Ej.status.OK]}).then(async r=>r.json())}};Es.MemberService=vd});var yg=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.MovieService=void 0;var fg=g(),bj=E(),hg="/movies",Sd=class extends bj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:hg,method:"PUT",body:e,expectedStatusCodes:[fg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:hg,method:"GET",qs:e,expectedStatusCodes:[fg.status.OK]}).then(async r=>r.json())}};Cs.MovieService=Sd});var vg=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.MovieTheaterService=void 0;var zr=g(),Aj=E(),pg="/movieTheaters",md="/entranceGates",_d=class extends Aj.Service{async findMovieTheaters(e){return this.fetch({uri:pg,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:pg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:md,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:md,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:md,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:i})=>i)},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};gs.MovieTheaterService=_d});var Sg=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.NoteService=void 0;var Od=g(),Pj=E(),Td="/creativeWorks/noteDigitalDocument",Ed=class extends Pj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Td,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Od.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Td,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Od.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Td,method:"GET",qs:e,expectedStatusCodes:[Od.status.OK]}).then(async r=>r.json())}};bs.NoteService=Ed});var mg=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.NoteAboutOrderService=void 0;var Cd=g(),wj=E(),gd="/orderNotes",bd=class extends wj.Service{async upsertByIdentifier(e){await this.fetch({uri:gd,method:"PUT",body:e,expectedStatusCodes:[Cd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:gd,method:"GET",qs:e,expectedStatusCodes:[Cd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${gd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[Cd.status.NO_CONTENT]})}};As.NoteAboutOrderService=bd});var _g=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.OrderService=void 0;var Yr=g(),Rj=E(),Ad=class extends Rj.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,r){let{minimizeReservationFor:n}=r;return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1",minimizeReservationFor:n},expectedStatusCodes:[Yr.status.OK]}).then(async i=>i.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async findAcceptedOffersByOrderNumber(e,r,n){let{minimizeReservationFor:i}=n;return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Yr.status.OK],qs:{...r,minimizeReservationFor:i}}).then(async s=>s.json())}};Ps.OrderService=Ad});var Og=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.PaymentMethodService=void 0;var Mj=g(),Ij=E(),qj="/paymentMethods",Pd=class extends Ij.Service{async findPaymentMethods(e){return this.fetch({uri:qj,method:"GET",qs:e,expectedStatusCodes:[Mj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};ws.PaymentMethodService=Pd});var Eg=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ProductService=void 0;var wd=g(),Nj=E(),Tg="/products",jj="/productHasOfferCatalog",Rd=class extends Nj.Service{async upsertByProductId(e){await this.fetch({uri:Tg,method:"PUT",body:e,expectedStatusCodes:[wd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Tg,method:"GET",qs:e,expectedStatusCodes:[wd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:jj,method:"GET",qs:e,expectedStatusCodes:[wd.status.OK]}).then(async r=>r.json())}};Rs.ProductService=Rd});var Cg=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ReservationService=void 0;var Md=g(),xj=E(),Id=class extends xj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Md.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:i}=e;await this.fetch({uri:`/reservations/${String(i?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[Md.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:[Md.status.OK]}).then(async i=>i.json())}};Ms.ReservationService=Id});var Ag=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.RoomService=void 0;var gg=g(),Uj=E(),bg="/rooms",qd=class extends Uj.Service{async findRooms(e){return this.fetch({uri:bg,method:"GET",qs:e,expectedStatusCodes:[gg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:bg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[gg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Is.RoomService=qd});var Pg=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.SeatService=void 0;var Nd=g(),Dj=E(),jd="/seats",xd=class extends Dj.Service{async findSeats(e){return this.fetch({uri:jd,method:"GET",qs:e,expectedStatusCodes:[Nd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:jd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c},expectedStatusCodes:[Nd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:jd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Nd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};qs.SeatService=xd});var Mg=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.SeatSectionService=void 0;var wg=g(),Fj=E(),Rg="/seatSections",Ud=class extends Fj.Service{async findSeatSections(e){return this.fetch({uri:Rg,method:"GET",qs:e,expectedStatusCodes:[wg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:i}=r;await this.fetch({uri:Rg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:i},expectedStatusCodes:[wg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ns.SeatSectionService=Ud});var Ig=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.SellerService=void 0;var Lj=g(),kj=E(),Dd=class extends kj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Lj.status.OK]}).then(async r=>r.json())}};js.SellerService=Dd});var Ng=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.OfferService=void 0;var qg=g(),Bj=E(),Fd=class extends Bj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[qg.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:[qg.status.NO_CONTENT]})}};xs.OfferService=Fd});var jg=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.OfferCatalogService=void 0;var Gj=g(),$j=E(),Ld=class extends $j.Service{async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s,itemListElementType:c},expectedStatusCodes:[Gj.status.NO_CONTENT]})}};Us.OfferCatalogService=Ld});var Ug=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.OfferCatalogItemService=void 0;var xg=g(),Kj=E(),kd=class extends Kj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[xg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s},expectedStatusCodes:[xg.status.NO_CONTENT]})}};Ds.OfferCatalogItemService=kd});var Dg=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.CancelReservationAssetTransactionService=void 0;var Wj=g(),Hj=E(),Bd=class extends Hj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Wj.status.NO_CONTENT]})}};Fs.CancelReservationAssetTransactionService=Bd});var Fg=o(Le=>{"use strict";var Vj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ue=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&Vj(r,e,n[i]);return zj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.ChevreAdmin=Le.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 i;i=t.EventSeries||(t.EventSeries={});let s;s=t.Me||(t.Me={});let c;c=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 M;M=t.Reservation||(t.Reservation={});let w;w=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 R;R=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||(Le.service=j={}));var Gd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ue(ng()))).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(()=>ue(ig()))).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(()=>ue(sg()))).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(()=>ue(cg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ue(dg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ue(lg()))).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(()=>ue(yg()))).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(()=>ue(vg()))).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(()=>ue(Sg()))).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(()=>ue(mg()))).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(()=>ue(_g()))).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(()=>ue(Og()))).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(()=>ue(Eg()))).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(()=>ue(Cg()))).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(()=>ue(Ag()))).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(()=>ue(Pg()))).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(()=>ue(Mg()))).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(()=>ue(Ig()))).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(()=>ue(Ng()))).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(()=>ue(jg()))).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(()=>ue(Ug()))).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(()=>ue(Dg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.ChevreAdmin=Gd});var Lg=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AccountingReportService=void 0;var Yj=g(),Qj=E(),$d=class extends Qj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};Ls.AccountingReportService=$d});var kg=o(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.AccountTitleService=void 0;var ke=g(),Zj=Q(),Jj=E(),Kd=class extends Jj.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[ke.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[ke.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:[ke.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[ke.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new Zj.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[ke.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[ke.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:[ke.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[ke.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[ke.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[ke.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[ke.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:[ke.status.NO_CONTENT]})}};ks.AccountTitleService=Kd});var Gg=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.ActionService=void 0;var Bg=g(),Xj=E(),Wd=class extends Xj.Service{async adminFindAnyActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Bg.status.OK]}).then(async r=>r.json())}async findRecipesByActionId(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Bg.status.OK]}).then(async r=>r.json())}};Bs.ActionService=Wd});var $g=o(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.UpdateActionService=void 0;var ex=g(),tx=E(),Hd=class extends tx.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[ex.status.OK]}).then(async r=>r.json())}};Gs.UpdateActionService=Hd});var Kg=o($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.InformActionService=void 0;var rx=g(),nx=E(),Vd=class extends nx.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[rx.status.OK]}).then(async r=>r.json())}};$s.InformActionService=Vd});var Wg=o(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.UseActionService=void 0;var ix=g(),sx=E(),zd=class extends sx.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[ix.status.OK]}).then(async r=>r.json())}};Ks.UseActionService=zd});var Hg=o(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.CheckActionService=void 0;var ox=g(),ax=E(),Yd=class extends ax.Service{async findCheckActions(e){return this.fetch({uri:"/checkActions",method:"GET",qs:e,expectedStatusCodes:[ox.status.OK]}).then(async r=>r.json())}};Ws.CheckActionService=Yd});var Vg=o(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.AdditionalPropertyService=void 0;var Qr=g(),cx=E(),Qd=class extends cx.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]})}};Hs.AdditionalPropertyService=Qd});var Yg=o(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.AggregateOfferService=void 0;var zg=g(),ux=E(),Zd=class extends ux.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[zg.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[zg.status.NO_CONTENT]})}};Vs.AggregateOfferService=Zd});var Qg=o(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.AggregateReservationService=void 0;var dx=g(),lx=E(),Jd=class extends lx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[dx.status.OK]}).then(async r=>r.json())}};zs.AggregateReservationService=Jd});var Zg=o(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.AggregationService=void 0;var fx=g(),hx=E(),Xd=class extends hx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[fx.status.OK]}).then(async r=>r.json())}};Ys.AggregationService=Xd});var Jg=o(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.AuthorizationService=void 0;var yx=g(),px=E(),el=class extends px.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[yx.status.OK]}).then(async r=>r.json())}};Qs.AuthorizationService=el});var Xg=o(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.CreativeWorkService=void 0;var vx=g(),Sx=E(),tl=class extends Sx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[vx.status.NO_CONTENT]})}};Zs.CreativeWorkService=tl});var eb=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.CategoryCodeService=void 0;var Js=g(),mx=E(),Xs="/categoryCodes",rl=class extends mx.Service{async createCategoryCode(e){return this.fetch({uri:Xs,method:"POST",body:e,expectedStatusCodes:[Js.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:Xs,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Js.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${Xs}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Js.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${Xs}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Js.status.NO_CONTENT]})}};eo.CategoryCodeService=rl});var tb=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CustomerService=void 0;var nl=g(),_x=E(),il=class extends _x.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[nl.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[nl.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[nl.status.NO_CONTENT]})}};to.CustomerService=il});var rb=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerTypeService=void 0;var Ox=g(),Tx=E(),sl=class extends Tx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[Ox.status.OK]}).then(async r=>r.json())}};ro.CustomerTypeService=sl});var nb=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EmailMessageService=void 0;var no=g(),Ex=E(),ol=class extends Ex.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[no.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[no.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[no.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[no.status.NO_CONTENT]})}};io.EmailMessageService=ol});var sb=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EventService=void 0;var Zr=g(),ib=Q(),Cx=E(),al=class extends Cx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{expectsNoContent:"1",typeOf:ib.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:i,hasTicketedSeat:s,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 i=>i.json())}async updateEventById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e.attributes,qs:{typeOf:ib.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]})}};so.EventService=al});var cb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var ob=g(),ab=Q(),gx=E(),cl=class extends gx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${ab.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[ob.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${ab.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ob.status.NO_CONTENT]})}};oo.EventSeriesService=cl});var ub=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var bx=g(),Ax=E(),ul=class extends Ax.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[bx.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=ul});var db=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var bt=g(),Px=E(),dl=class extends Px.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[bt.status.CREATED,bt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[bt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[bt.status.OK]}).then(async e=>e.json())}};co.IAMService=dl});var lb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=g(),wx=E(),ll=class extends wx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[uo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.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:[uo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[uo.status.NO_CONTENT]})}};lo.IdentityService=ll});var fb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=g(),Rx=E(),fl=class extends Rx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[fo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[fo.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:[fo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fo.status.NO_CONTENT]})}};ho.IdentityProviderService=fl});var hb=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var Jr=g(),Mx=E(),hl=class extends Mx.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]})}};yo.IssuerService=hl});var pb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var yb=g(),Ix=E(),yl=class extends Ix.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[yb.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:[yb.status.OK]}).then(async r=>r.json())}};po.MeService=yl});var vb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var At=g(),Pt=Q(),qx=E(),pl=class extends qx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};vo.MemberService=pl});var Sb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var Xr=g(),Nx=E(),vl=class extends Nx.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]})}};So.MemberProgramService=vl});var mb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var en=g(),jx=E(),Sl=class extends jx.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]})}};mo.MerchantReturnPolicyService=Sl});var _b=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var xx=g(),Ux=E(),ml=class extends Ux.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[xx.status.OK]}).then(async r=>r.json())}};_o.MessageService=ml});var Ob=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=g(),Dx=E(),To="/movieTicketTypes",_l=class extends Dx.Service{async createMovieTicketType(e){return this.fetch({uri:To,method:"POST",body:e,expectedStatusCodes:[Oo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:To,method:"GET",qs:e,expectedStatusCodes:[Oo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${To}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Oo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${To}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Oo.status.NO_CONTENT]})}};Eo.MovieTicketTypeService=_l});var Tb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=g(),Fx=E(),Ol=class extends Fx.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Co.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Co.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:[Co.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[Co.status.OK]}).then(async r=>r.json())}};go.OrderService=Ol});var Eb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.PaymentProductService=void 0;var yr=g(),Lx=E(),Tl=class extends Lx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[yr.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:[yr.status.OK],qs:n}).then(async i=>i.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[yr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[yr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}};bo.PaymentProductService=Tl});var Cb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PaymentServiceChannelService=void 0;var Ao=g(),kx=E(),El=class extends kx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Ao.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Ao.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:[Ao.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Ao.status.NO_CONTENT]})}};Po.PaymentServiceChannelService=El});var bb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PendingReservationService=void 0;var gb=g(),Bx=E(),Cl=class extends Bx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[gb.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:[gb.status.OK]}).then(async n=>n.json())}};wo.PendingReservationService=Cl});var Pb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PermissionService=void 0;var Ab=g(),Gx=E(),gl=class extends Gx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Ab.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:[Ab.status.OK]}).then(async n=>n.json())}};Ro.PermissionService=gl});var Rb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PersonService=void 0;var wb=g(),$x=E(),bl=class extends $x.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[wb.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:[wb.status.OK],qs:{iss:n}}).then(async i=>i.json())}};Mo.PersonService=bl});var Mb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PlaceService=void 0;var tn=g(),rn=Q(),Kx=E(),Al=class extends Kx.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 i=>i.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:i}=e;return this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:i},expectedStatusCodes:[tn.status.OK]}).then(async s=>s.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:i}=r;await this.fetch({uri:`/places/${rn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:i},body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}};Io.PlaceService=Al});var Ib=o(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.HasPOSService=void 0;var qo=g(),No=Q(),Wx=E(),Pl=class extends Wx.Service{async search(e){return this.fetch({uri:`/places/${No.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[qo.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${No.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[qo.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${No.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[qo.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${No.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[qo.status.NO_CONTENT]})}};jo.HasPOSService=Pl});var qb=o(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.PriceSpecificationService=void 0;var xo=g(),Hx=E(),wl=class extends Hx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[xo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[xo.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:[xo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[xo.status.NO_CONTENT]})}};Uo.PriceSpecificationService=wl});var Nb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.ProductService=void 0;var nn=g(),Vx=E(),sn="/products",Rl=class extends Vx.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 i=>i.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]})}};Do.ProductService=Rl});var jb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProjectService=void 0;var Fo=g(),zx=E(),Ml=class extends zx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Fo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Fo.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:[Fo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Fo.status.NO_CONTENT]})}};Lo.ProjectService=Ml});var xb=o(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ProjectMakesOfferService=void 0;var ko=g(),Yx=E(),Il=class extends Yx.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[ko.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[ko.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[ko.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[ko.status.NO_CONTENT]})}};Bo.ProjectMakesOfferService=Il});var Ub=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ReservationService=void 0;var Qx=g(),Zx=E(),ql=class extends Zx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Qx.status.NO_CONTENT]})}};Go.ReservationService=ql});var Db=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.OfferService=void 0;var Nl=g(),Jx=E(),jl=class extends Jx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[Nl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Nl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Nl.status.NO_CONTENT]})}};$o.OfferService=jl});var Fb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.OfferCatalogService=void 0;var Ko=g(),Xx=E(),xl=class extends Xx.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Ko.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ko.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:[Ko.status.OK]}).then(async i=>i.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Ko.status.NO_CONTENT]})}};Wo.OfferCatalogService=xl});var Lb=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogItemService=void 0;var Ul=g(),eU=E(),Dl=class extends eU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ul.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ul.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:[Ul.status.OK]}).then(async i=>i.json())}};Ho.OfferCatalogItemService=Dl});var kb=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferItemConditionService=void 0;var Vo=g(),tU=E(),Fl=class extends tU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Vo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Vo.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:[Vo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Vo.status.NO_CONTENT]})}};zo.OfferItemConditionService=Fl});var Bb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.SellerService=void 0;var _e=g(),rU=E(),Ll=class extends rU.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]})}};Yo.SellerService=Ll});var Gb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerMakesOfferService=void 0;var kl=g(),nU=E(),Bl=class extends nU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[kl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[kl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[kl.status.NO_CONTENT]})}};Qo.SellerMakesOfferService=Bl});var $b=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerReturnPolicyService=void 0;var on=g(),iU=E(),Gl=class extends iU.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]})}};Zo.SellerReturnPolicyService=Gl});var Kb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.AsyncActionService=void 0;var sU=g(),oU=E(),$l=class extends oU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[sU.status.OK]}).then(async r=>r.json())}};Jo.AsyncActionService=$l});var Wb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ScheduledTaskService=void 0;var aU=g(),cU=E(),Kl=class extends cU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[aU.status.OK]}).then(async r=>r.json())}};Xo.ScheduledTaskService=Kl});var Hb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TaskService=void 0;var Wl=g(),uU=E(),Hl=class extends uU.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Wl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Wl.status.NO_CONTENT]})}async findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Wl.status.OK]}).then(async r=>r.json())}};ea.TaskService=Hl});var Vb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TicketService=void 0;var dU=g(),lU=E(),Vl=class extends lU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[dU.status.OK]}).then(async r=>r.json())}};ta.TicketService=Vl});var zb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.AssetTransactionService=void 0;var fU=g(),hU=E(),zl=class extends hU.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[fU.status.OK]}).then(async r=>r.json())}};ra.AssetTransactionService=zl});var Yb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.PayAssetTransactionService=void 0;var na=g(),pr=Q(),yU=E(),Yl=class extends yU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[na.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...i}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[na.status.NO_CONTENT],body:i})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[na.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[na.status.OK]}).then(async r=>r.json())}};ia.PayAssetTransactionService=Yl});var Qb=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.TokenService=void 0;var pU=E(),Ql=class extends pU.Service{};sa.TokenService=Ql});var Jb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.PlaceOrderTransactionService=void 0;var Zb=g(),vU=Q(),SU=E(),Zl=class extends SU.Service{typeOf=vU.factory.transactionType.PlaceOrder;async findPlaceOrderTransactions(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Zb.status.OK]}).then(async r=>r.json())}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Zb.status.OK]}).then(async i=>i.json())}};oa.PlaceOrderTransactionService=Zl});var Xb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.TransactionNumberService=void 0;var mU=g(),_U=E(),Jl=class extends _U.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[mU.status.CREATED]}).then(async e=>e.json())}};aa.TransactionNumberService=Jl});var eA=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.UserPoolService=void 0;var Xl=g(),OU=E(),ef=class extends OU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[Xl.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[Xl.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:[Xl.status.OK]}).then(async r=>r.json())}};ca.UserPoolService=ef});var tA=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.WebSiteService=void 0;var ua=g(),TU=E(),tf=class extends TU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[ua.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[ua.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:[ua.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[ua.status.NO_CONTENT]})}};da.WebSiteService=tf});var rA=o(Be=>{"use strict";var EU=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CU=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&EU(r,e,n[i]);return CU(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreConsole=Be.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 i;i=t.UpdateAction||(t.UpdateAction={});let s;s=t.InformAction||(t.InformAction={});let c;c=t.UseAction||(t.UseAction={});let d;d=t.CheckAction||(t.CheckAction={});let f;f=t.AdditionalProperty||(t.AdditionalProperty={});let p;p=t.AggregateOffer||(t.AggregateOffer={});let y;y=t.AggregateReservation||(t.AggregateReservation={});let S;S=t.Aggregation||(t.Aggregation={});let _;_=t.Authorization||(t.Authorization={});let b;b=t.CategoryCode||(t.CategoryCode={});let M;M=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let q;q=t.CustomerType||(t.CustomerType={});let N;N=t.EmailMessage||(t.EmailMessage={});let C;C=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let D;D=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let k;k=t.IAM||(t.IAM={});let K;K=t.Identity||(t.Identity={});let x;x=t.IdentityProvider||(t.IdentityProvider={});let G;G=t.Issuer||(t.Issuer={});let W;W=t.Me||(t.Me={});let $;$=t.Member||(t.Member={});let z;z=t.MemberProgram||(t.MemberProgram={});let Te;Te=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let ae;ae=t.Message||(t.Message={});let se;se=t.MovieTicketType||(t.MovieTicketType={});let oe;oe=t.Order||(t.Order={});let ee;ee=t.PaymentProduct||(t.PaymentProduct={});let Je;Je=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let it;it=t.PendingReservation||(t.PendingReservation={});let Xe;Xe=t.Permission||(t.Permission={});let je;je=t.Person||(t.Person={});let a;a=t.Place||(t.Place={});let u;(function(U){let Cr;Cr=U.HasPOS||(U.HasPOS={})})(u=t.place||(t.place={}));let l;l=t.PriceSpecification||(t.PriceSpecification={});let h;h=t.Product||(t.Product={});let v;v=t.Project||(t.Project={});let T;T=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let A;A=t.Reservation||(t.Reservation={});let P;P=t.Offer||(t.Offer={});let L;L=t.OfferCatalog||(t.OfferCatalog={});let V;V=t.OfferCatalogItem||(t.OfferCatalogItem={});let Z;Z=t.OfferItemCondition||(t.OfferItemCondition={});let de;de=t.Seller||(t.Seller={});let Ae;Ae=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ee;Ee=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let jt;jt=t.AsyncAction||(t.AsyncAction={});let ye;ye=t.ScheduledTask||(t.ScheduledTask={});let Pe;Pe=t.Task||(t.Task={});let st;st=t.Ticket||(t.Ticket={});let Er;Er=t.AssetTransaction||(t.AssetTransaction={});let zP;(function(U){let Cr;Cr=U.Pay||(U.Pay={})})(zP=t.assetTransaction||(t.assetTransaction={}));let YP;YP=t.Token||(t.Token={});let QP;(function(U){let Cr;Cr=U.PlaceOrder||(U.PlaceOrder={})})(QP=t.transaction||(t.transaction={}));let ZP;ZP=t.TransactionNumber||(t.TransactionNumber={});let JP;JP=t.UserPool||(t.UserPool={});let XP;XP=t.WebSite||(t.WebSite={})})(m||(Be.service=m={}));var rf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>F(Lg()))).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(()=>F(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(()=>F(Gg()))).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(()=>F($g()))).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(()=>F(Kg()))).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(()=>F(Wg()))).UseActionService),new m.UseAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createCheckActionInstance(e){return m.CheckAction.svc===void 0&&(m.CheckAction.svc=(await Promise.resolve().then(()=>F(Hg()))).CheckActionService),new m.CheckAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Vg()))).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(()=>F(Yg()))).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(()=>F(Qg()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>F(Zg()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>F(Jg()))).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(()=>F(Xg()))).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(()=>F(eb()))).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(()=>F(tb()))).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(()=>F(rb()))).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(()=>F(nb()))).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(()=>F(sb()))).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(()=>F(cb()))).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(()=>F(ub()))).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(()=>F(db()))).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(()=>F(lb()))).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(()=>F(fb()))).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(()=>F(hb()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>F(pb()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>F(vb()))).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(()=>F(Sb()))).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(()=>F(mb()))).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(()=>F(_b()))).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(()=>F(Ob()))).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(()=>F(Tb()))).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(()=>F(Eb()))).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(()=>F(Cb()))).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(()=>F(bb()))).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(()=>F(Pb()))).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(()=>F(Rb()))).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(()=>F(Mb()))).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(()=>F(Ib()))).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(()=>F(qb()))).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(()=>F(Nb()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>F(jb()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(xb()))).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(()=>F(Ub()))).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(()=>F(Db()))).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(()=>F(Fb()))).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(()=>F(Lb()))).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(()=>F(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(()=>F(Bb()))).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(()=>F(Gb()))).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(()=>F($b()))).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(()=>F(Kb()))).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(()=>F(Wb()))).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(()=>F(Hb()))).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(()=>F(Vb()))).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(()=>F(zb()))).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(()=>F(Yb()))).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(()=>F(Qb()))).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(()=>F(Jb()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Xb()))).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(()=>F(eA()))).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(()=>F(tA()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreConsole=rf});var nA=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.PaymentService=void 0;var me=g(),ve=Q(),gU=E(),bU=["awashimakisen-production","awashimakisen-test"],nf=class extends gU.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 i=>i.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 i=>i.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:i,issuedThrough:s,paymentMethod:c,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:i,issuedThrough:s,paymentMethod:c,...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:i,issuedThrough:s,paymentMethod:c,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(!bU.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:i,issuedThrough:s,paymentMethod:c,...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 w=>w.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:i}=e,{issuedThrough:s,paymentMethod:c,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:s,paymentMethod:c,...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:i},qs:{checkedActionId:S,async:!0,purpose:{id:i.id}}}).then(async _=>_.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n}=e,{amount:i,creditCard:s,issuedThrough:c,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:i,issuedThrough:c,paymentMethod:d,...s!=null?{creditCard:s}: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:i}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:i},qs:{purpose:{id:i.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:i}=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:i===!0}}).then(async s=>s.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=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:i,page:s}}).then(async c=>c.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=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:i,page:s}}).then(async c=>c.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 i=>i.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:i}=e,s=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:i},qs:{purpose:{id:r.id},serviceOutputType:s}}).then(async c=>c.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 i=>i.json())}};la.PaymentService=nf});var iA=o(Ge=>{"use strict";var AU=Ge&&Ge.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),PU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wU=Ge&&Ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&AU(r,e,n[i]);return PU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevrePay=Ge.service=void 0;var an;(function(t){let e;e=t.Payment||(t.Payment={})})(an||(Ge.service=an={}));var sf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return an.Payment.svc===void 0&&(an.Payment.svc=(await Promise.resolve().then(()=>wU(nA()))).PaymentService),new an.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ge.ChevrePay=sf});var oA=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.OfferService=void 0;var of=g(),sA=Q(),RU=E(),af=class extends RU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:i,eventOfferId:s}=e;return this.fetch({uri:`/offers/${sA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[of.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:i,...typeof s=="string"?{eventOfferId:s}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${sA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[of.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,...i}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[of.status.NO_CONTENT],body:i,qs:{purpose:{id:e.purpose.id}}})}};fa.OfferService=af});var aA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PlaceOrderTransactionService=void 0;var cn=g(),MU=Q(),IU=E(),cf=class extends IU.Service{typeOf=MU.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 i=>i.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[cn.status.NO_CONTENT]})}};ha.PlaceOrderTransactionService=cf});var cA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.ReturnOrderTransactionService=void 0;var ya=g(),uf=Q(),qU=E(),df=class extends qU.Service{async start(e){return this.fetch({uri:`/transactions/${uf.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,expectedStatusCodes:[ya.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${uf.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[ya.status.NO_CONTENT,ya.status.OK]})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${uf.factory.transactionType.ReturnOrder}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[ya.status.NO_CONTENT]})}};pa.ReturnOrderTransactionService=df});var uA=o($e=>{"use strict";var NU=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(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}),lf=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&NU(r,e,n[i]);return jU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreTxn=$e.service=void 0;var rt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(rt||($e.service=rt={}));var ff=class{options;constructor(e){this.options=e}async createOfferInstance(e){return rt.Offer.svc===void 0&&(rt.Offer.svc=(await Promise.resolve().then(()=>lf(oA()))).OfferService),new rt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return rt.transaction.PlaceOrder.svc===void 0&&(rt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>lf(aA()))).PlaceOrderTransactionService),new rt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return rt.transaction.ReturnOrder.svc===void 0&&(rt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>lf(cA()))).ReturnOrderTransactionService),new rt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};$e.ChevreTxn=ff});var dA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.OfferService=void 0;var un=g(),dn=Q(),xU=E(),hf=class extends xU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:i}=e;return this.fetch({uri:`/offers/${dn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[un.status.ACCEPTED],body:{object:r,purpose:n,...typeof i?.id=="string"?{potentialActions:i}:void 0},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${dn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[un.status.OK],qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${dn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[un.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${dn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[un.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:i}=e;return this.fetch({uri:`/offers/${dn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[un.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}};va.OfferService=hf});var lA=o(Ke=>{"use strict";var UU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),DU=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 i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&UU(r,e,n[i]);return DU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevreTxc=Ke.service=void 0;var ln;(function(t){let e;e=t.Offer||(t.Offer={})})(ln||(Ke.service=ln={}));var yf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return ln.Offer.svc===void 0&&(ln.Offer.svc=(await Promise.resolve().then(()=>FU(dA()))).OfferService),new ln.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevreTxc=yf});var fA=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.CategoryCodeService=void 0;var Sa=g(),LU=E(),pf=class extends LU.Service{constructor(e){super({...e,retryableStatusCodes:[Sa.status.BAD_GATEWAY,Sa.status.FORBIDDEN,Sa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[Sa.status.OK]}).then(async r=>({data:await r.json()}))}};ma.CategoryCodeService=pf});var hA=o(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.EmailMessageService=void 0;var _a=g(),kU=E(),vf=class extends kU.Service{constructor(e){super({...e,retryableStatusCodes:[_a.status.BAD_GATEWAY,_a.status.FORBIDDEN,_a.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[_a.status.OK]}).then(async e=>({data:await e.json()}))}};Oa.EmailMessageService=vf});var yA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.PlaceService=void 0;var Ta=g(),BU=Q(),GU=E(),Sf=class extends GU.Service{constructor(e){super({...e,retryableStatusCodes:[Ta.status.BAD_GATEWAY,Ta.status.FORBIDDEN,Ta.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${BU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ta.status.OK]}).then(async r=>({data:await r.json()}))}};Ea.PlaceService=Sf});var pA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.HasPOSService=void 0;var Ca=g(),$U=Q(),KU=E(),mf=class extends KU.Service{constructor(e){super({...e,retryableStatusCodes:[Ca.status.BAD_GATEWAY,Ca.status.FORBIDDEN,Ca.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${$U.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Ca.status.OK]}).then(async r=>r.json())}};ga.HasPOSService=mf});var vA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.SellerService=void 0;var $t=g(),WU=E(),_f=class extends WU.Service{constructor(e){super({...e,retryableStatusCodes:[$t.status.BAD_GATEWAY,$t.status.FORBIDDEN,$t.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[$t.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[$t.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:[$t.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:[$t.status.OK]}).then(async r=>({data:await r.json()}))}};ba.SellerService=_f});var mA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.service=void 0;var HU=fA(),VU=hA(),zU=yA(),YU=pA(),QU=vA(),SA;(function(t){class e extends HU.CategoryCodeService{}t.CategoryCode=e;class r extends VU.EmailMessageService{}t.EmailMessage=r;class n extends zU.PlaceService{}t.Place=n;let i;(function(c){class d extends YU.HasPOSService{}c.HasPOS=d})(i=t.place||(t.place={}));class s extends QU.SellerService{}t.Seller=s})(SA||(Aa.service=SA={}))});var _A=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.CreativeWorkService=void 0;var ZU=te(),JU=E(),Of=class extends JU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,ZU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertMoviesByIdentifier(e)}};Pa.CreativeWorkService=Of});var OA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CustomerService=void 0;var XU=te(),eD=E(),Tf=class extends eD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,XU.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findCustomers(e)}};wa.CustomerService=Tf});var TA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.EventService=void 0;var vr=Q(),Ra=te(),tD=E(),Ef=class extends tD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,Ra.loadChevreAdmin)({auth:n,endpoint:i})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ra.loadChevreAdmin)({auth:n,endpoint:i,disableAutoRetry:d})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c}=this.options;return(await(await(0,Ra.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Ra.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await c.createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ma.EventService=Ef});var EA=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventOfferService=void 0;var rD=te(),nD=E(),Cf=class extends nD.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:i}=this.options,s=await(0,rD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await s.createEventOfferInstance({project:n,seller:{id:typeof i?.id=="string"?i.id:""}})}return this.chevreAdminEventOffer}};Ia.EventOfferService=Cf});var CA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventSeriesService=void 0;var iD=te(),sD=E(),gf=class extends sD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,iD.loadChevreAdmin)({auth:n,endpoint:i})).createEventSeriesInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};qa.EventSeriesService=gf});var bA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.MeService=void 0;var gA=te(),oD=E(),bf=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,gA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,gA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};Na.MeService=bf});var wA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MovieTheaterService=void 0;var ja=Q(),AA=te(),aD=E(),PA=20,Af=class extends aD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,AA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new ja.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new ja.factory.errors.Argument("page","must be number");if(d<1||d>PA)throw new ja.factory.errors.Argument("limit",`must be >=1 and <=${PA}`);if(f<1)throw new ja.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,AA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEntranceGates(e)}};xa.MovieTheaterService=Af});var RA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.NoteAboutOrderService=void 0;var Pf=te(),cD=E(),wf=class extends cD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,Pf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,Pf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:i,endpoint:s,project:c,seller:d}=this.options;await(await(await(0,Pf.loadChevreAdmin)({auth:i,endpoint:s})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Ua.NoteAboutOrderService=wf});var IA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.OfferService=void 0;var vt=Q(),MA=te(),uD=E(),Rf=class extends uD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,MA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new vt.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new vt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new vt.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 vt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await c.createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,project:s,seller:c}=this.options,d=await(0,MA.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==vt.factory.product.ProductType.EventService&&y!==vt.factory.product.ProductType.Product)throw new vt.factory.errors.Argument("itemOffered.typeOf",`must be ${vt.factory.product.ProductType.EventService} or ${vt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Da.OfferService=Rf});var qA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferCatalogService=void 0;var fn=Q(),dD=te(),lD=E(),Mf=class extends lD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options,d=await(0,dD.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==fn.factory.product.ProductType.EventService&&y!==fn.factory.product.ProductType.Product)throw new fn.factory.errors.Argument("itemOffered.typeOf",`must be ${fn.factory.product.ProductType.EventService} or ${fn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Fa.OfferCatalogService=Mf});var jA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogItemService=void 0;var NA=te(),fD=E(),If=class extends fD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,d=await(await(0,NA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,project:s,seller:c}=this.options;await(await(await(0,NA.loadChevreAdmin)({auth:n,endpoint:i})).createOfferCatalogItemInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogItemService=If});var xA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OrderService=void 0;var wt=Q(),hn=te(),hD=E(),ka=20,qf=class extends hD.Service{async findOrders(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,hn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>ka)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${ka}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,hn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>ka)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${ka}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f},{minimizeReservationFor:!0})}async findReturner(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,hn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;return(await(await(0,hn.loadChevreAdmin)({auth:n,endpoint:i})).createOrderInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).findAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r,{minimizeReservationFor:!0})}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,hn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ba.OrderService=qf});var UA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.PaymentMethodService=void 0;var yD=te(),pD=E(),Nf=class extends pD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,yD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findPaymentMethods(e)}};Ga.PaymentMethodService=Nf});var DA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.ProductService=void 0;var yn=Q(),vD=te(),SD=E(),jf=class extends SD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,vD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==yn.factory.product.ProductType.EventService&&f!==yn.factory.product.ProductType.Product)throw new yn.factory.errors.Argument("typeOf",`must be ${yn.factory.product.ProductType.EventService} or ${yn.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByProductId(e)}};$a.ProductService=jf});var LA=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ReservationService=void 0;var pn=Q(),Ka=te(),mD=E(),FA=20,xf=class extends mD.Service{async findReservations(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Ka.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new pn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new pn.factory.errors.Argument("page","must be number");if(d<1||d>FA)throw new pn.factory.errors.Argument("limit",`must be >=1 and <=${FA}`);if(f<1)throw new pn.factory.errors.Argument("page","must be >=1");return await(await c.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f}=this.options,p=await(0,Ka.loadChevreAdmin)({auth:s,endpoint:c}),y=String(i?.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:i,seller:s}=this.options;return(await(await(0,Ka.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;if(typeof s?.id!="string"||s.id.length===0)throw new pn.factory.errors.ArgumentNull("seller.id");let c=await(0,Ka.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await c.createCancelReservationAssetTransactionInstance({project:i,seller:{id:s.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Wa.ReservationService=xf});var kA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.SellerService=void 0;var _D=te(),OD=E(),Uf=class extends OD.Service{async search(e){let{auth:r,endpoint:n,project:i}=this.options;return(await(await(0,_D.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:i})).search(e)}};Ha.SellerService=Uf});var BA=o(We=>{"use strict";var TD=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ED=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&TD(r,e,n[i]);return ED(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.CloudAdmin=We.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 i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=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 M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(We.service=B={}));var Ie=[],Df=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(_A()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Ie})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(OA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(TA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(EA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:Ie})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(CA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:Ie})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(bA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(wA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:Ie})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(RA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(IA()))).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(qA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(jA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:Ie})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(xA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:Ie})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(UA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:Ie})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(DA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:Ie})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(LA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:Ie})}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:Ie})}};We.CloudAdmin=Df});var GA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.OrderService=void 0;var Kt=te(),CD=E(),Ff=class extends CD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:b}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e.object,{object:y,result:S}=e,_=await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0},{minimizeReservationFor:!0})}};Va.OrderService=Ff});var $A=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.DeliveryService=void 0;var gD=te(),bD=E(),Lf=class extends bD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,gD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};za.DeliveryService=Lf});var WA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.ReservationService=void 0;var KA=te(),AD=E(),kf=class extends AD.Service{async findByCode(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,KA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,KA.loadChevreAsset)({auth:n,endpoint:i,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Ya.ReservationService=kf});var HA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.TokenService=void 0;var PD=E(),Bf=class extends PD.Service{};Qa.TokenService=Bf});var VA=o(He=>{"use strict";var wD=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RD=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Za=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&wD(r,e,n[i]);return RD(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.CloudAsset=He.service=void 0;var Ja=g(),qe;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let i;i=t.Token||(t.Token={})})(qe||(He.service=qe={}));var Xa=[Ja.status.BAD_GATEWAY,Ja.status.SERVICE_UNAVAILABLE,Ja.status.FORBIDDEN,Ja.status.UNAUTHORIZED],Gf=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 qe.Order.svc===void 0&&(qe.Order.svc=(await Promise.resolve().then(()=>Za(GA()))).OrderService),new qe.Order.svc({...this.options,...e,retryableStatusCodes:Xa})}async createDeliveryInstance(e){return qe.Delivery.svc===void 0&&(qe.Delivery.svc=(await Promise.resolve().then(()=>Za($A()))).DeliveryService),new qe.Delivery.svc({...this.options,...e,retryableStatusCodes:Xa})}async createReservationInstance(e){return qe.Reservation.svc===void 0&&(qe.Reservation.svc=(await Promise.resolve().then(()=>Za(WA()))).ReservationService),new qe.Reservation.svc({...this.options,...e,retryableStatusCodes:Xa})}async createTokenInstance(e){return qe.Token.svc===void 0&&(qe.Token.svc=(await Promise.resolve().then(()=>Za(HA()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:Xa})}};He.CloudAsset=Gf});var zA=o(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.CreativeWorkService=void 0;var MD=g(),ID=E(),$f=class extends ID.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[MD.status.OK]}).then(async r=>r.json())}};ec.CreativeWorkService=$f});var YA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.PaymentProductService=void 0;var qD=g(),ND=E(),Kf=class extends ND.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:i}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:i},expectedStatusCodes:[qD.status.OK]}).then(async s=>s.json())}};tc.PaymentProductService=Kf});var QA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.ProductService=void 0;var Wf=g(),jD=E(),Hf=class extends jD.Service{async search(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:i,seller:s}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Wf.status.OK],qs:{limit:r,page:n,itemOffered:i,seller:s}}).then(async c=>c.json())}async searchProductModels(e){let{category:r,limit:n,page:i}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}};rc.ProductService=Hf});var ZA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.EventService=void 0;var Rt=g(),xD=E(),Mt="/events",Vf=class extends xD.Service{async findEvents(e){return this.fetch({uri:Mt,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findAggregateReservations4ttts(e){return this.fetch({uri:`${Mt}/aggregations`,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:i}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:i},expectedStatusCodes:[Rt.status.OK]}).then(async s=>{let c=await s.json();return{data:c,...c.length>0?{sectionCode:c[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[Rt.status.OK]}).then(async c=>c.json())}};nc.EventService=Vf});var JA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventSeriesService=void 0;var UD=g(),DD=E(),FD="/eventSeries",zf=class extends DD.Service{async findEventSeries(e){return this.fetch({uri:FD,method:"GET",qs:e,expectedStatusCodes:[UD.status.OK]}).then(async r=>r.json())}};ic.EventSeriesService=zf});var XA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.EventOfferService=void 0;var LD=g(),kD=E(),BD="/eventOffers",Yf=class extends kD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c}=e;return this.fetch({uri:BD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c},expectedStatusCodes:[LD.status.OK]}).then(async d=>d.json())}};sc.EventOfferService=Yf});var eP=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=g(),GD=Q(),$D=E(),Zf=class extends $D.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${GD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var tP=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var KD=g(),WD=E(),HD="/seatOffers",Jf=class extends WD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:HD,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[KD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var rP=o(Ve=>{"use strict";var VD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),It=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&VD(r,e,n[i]);return zD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudSearch=Ve.service=void 0;var Xf=g(),re;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Event||(t.Event={});let n;n=t.EventSeries||(t.EventSeries={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.PaymentProduct||(t.PaymentProduct={});let c;c=t.Place||(t.Place={});let d;d=t.Product||(t.Product={});let f;f=t.SeatOffer||(t.SeatOffer={})})(re||(Ve.service=re={}));var qt=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return re.CreativeWork.svc===void 0&&(re.CreativeWork.svc=(await Promise.resolve().then(()=>It(zA()))).CreativeWorkService),new re.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qt})}async createPaymentProductInstance(e){return re.PaymentProduct.svc===void 0&&(re.PaymentProduct.svc=(await Promise.resolve().then(()=>It(YA()))).PaymentProductService),new re.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:qt})}async createProductInstance(e){return re.Product.svc===void 0&&(re.Product.svc=(await Promise.resolve().then(()=>It(QA()))).ProductService),new re.Product.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventInstance(e){return re.Event.svc===void 0&&(re.Event.svc=(await Promise.resolve().then(()=>It(ZA()))).EventService),new re.Event.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventSeriesInstance(e){return re.EventSeries.svc===void 0&&(re.EventSeries.svc=(await Promise.resolve().then(()=>It(JA()))).EventSeriesService),new re.EventSeries.svc({...this.options,...e,retryableStatusCodes:qt})}async createEventOfferInstance(e){return re.EventOffer.svc===void 0&&(re.EventOffer.svc=(await Promise.resolve().then(()=>It(XA()))).EventOfferService),new re.EventOffer.svc({...this.options,...e,retryableStatusCodes:qt})}async createPlaceInstance(e){return re.Place.svc===void 0&&(re.Place.svc=(await Promise.resolve().then(()=>It(eP()))).PlaceService),new re.Place.svc({...this.options,...e,retryableStatusCodes:qt})}async createSeatOfferInstance(e){return re.SeatOffer.svc===void 0&&(re.SeatOffer.svc=(await Promise.resolve().then(()=>It(tP()))).SeatOfferService),new re.SeatOffer.svc({...this.options,...e,retryableStatusCodes:qt})}};Ve.CloudSearch=eh});var sP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var fe=g(),ge=Q(),be=te(),YD=E(),nP=1e3,QD=5e3;async function iP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends YD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:s});return b.authorizeCreditCard({object:{...n,ticketToken:M},purpose:i})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:i}=e,{checkedActionId:s}=r,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,be.loadChevrePay)({auth:c,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:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:b},purpose:i},{checkedActionId:s})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:s});if(typeof M!="string"||M==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return b.publishCreditCardPaymentUrl({object:{...n,ticketToken:M},purpose:i})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.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(M=>({...M,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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:s,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:i.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:c,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:i})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,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:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,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:i,purpose:s}=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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:i,purpose:s})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:i,purpose:s}=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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:i,purpose:s})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:i}=e,{giveUpInMS:s}=r;if(typeof s!="number"||s<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),b=!1,M=setTimeout(()=>{b=!0},s),w,q=new ge.factory.errors.GatewayTimeout("given up");for(;w===void 0&&!b;){try{w=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:i}),clearTimeout(M);break}catch(N){q=N}await iP(QD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,b)}if(typeof w?.ticketToken=="string")return w;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:i}=e,{checkPaymentMethodId:s}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>nP?r.intervalAfterIssueTicketInMS:nP,f=!1,p=n.paymentMethodId;if(s?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:i});return await iP(d),y}};cc.PaymentService=th});var oP=o(ze=>{"use strict";var ZD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XD=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&ZD(r,e,n[i]);return JD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudPay=ze.service=void 0;var uc=g(),vn;(function(t){let e;e=t.Payment||(t.Payment={})})(vn||(ze.service=vn={}));var eF=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=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 vn.Payment.svc===void 0&&(vn.Payment.svc=(await Promise.resolve().then(()=>XD(sP()))).PaymentService),new vn.Payment.svc({...this.options,...e,retryableStatusCodes:eF})}};ze.CloudPay=rh});var dP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=rF;dc.voidAuthorizeOfferAsync=nF;var ne=Q(),aP=2e4,cP=1e3;async function uP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function tF(t){let e;switch(t.reason){case ne.factory.errorCode.Argument:e=new ne.factory.errors.Argument("",t.message);break;case ne.factory.errorCode.ArgumentNull:e=new ne.factory.errors.ArgumentNull("",t.message);break;case ne.factory.errorCode.Unauthorized:e=new ne.factory.errors.Unauthorized(t.message);break;case ne.factory.errorCode.Forbidden:e=new ne.factory.errors.Forbidden(t.message);break;case ne.factory.errorCode.NotFound:e=new ne.factory.errors.NotFound("",t.message);break;case ne.factory.errorCode.AlreadyInUse:e=new ne.factory.errors.AlreadyInUse("",[],t.message);break;case ne.factory.errorCode.RateLimitExceeded:e=new ne.factory.errors.RateLimitExceeded(t.message);break;case ne.factory.errorCode.GatewayTimeout:e=new ne.factory.errors.GatewayTimeout(t.message);break;default:e=new ne.factory.errors.Internal(t.message)}return e}function rF(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:ne.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},aP);let i,s;for(;i===void 0&&s===void 0;){if(await uP(cP),n){s=new ne.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});if(typeof c.id=="string"&&c.actionStatus===ne.factory.actionStatusType.CompletedActionStatus){i={id:c.id};break}if(c.error!==void 0){s=tF(c.error);break}}if(typeof i?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:i.id},purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});throw s}}function nF(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},aP);let i,s;for(;i===void 0&&s===void 0;){if(await uP(cP),n){s=new ne.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:ne.factory.transactionType.PlaceOrder}});if(c.status===ne.factory.taskStatus.Executed){i=c;break}}if(typeof i?.status!="string")throw s}}});var fP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var lP=Q(),nh=te(),iF=E(),ih=dP(),sh=class extends iF.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:i,acceptedOffer:s,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:b,retryableStatusCodes:M}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:b})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(M)?M:[]]}),N=await(0,ih.authorizeOfferAsync)({purpose:{id:n.id},event:{id:i.id},acceptedOffer:s,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new lP.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:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:i,endpoint:s,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ih.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:i}=e,{event:s,acceptedOffer:c,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:M,retryableStatusCodes:w}=this.options,N=await(await(0,nh.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:M})).createOfferInstance({project:_,seller:{id:typeof b?.id=="string"?b.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),C=await(0,ih.authorizeOfferAsync)({purpose:{id:i.id},event:{id:s.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new lP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=sh});var hP=o(Ye=>{"use strict";var sF=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oF=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aF=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&sF(r,e,n[i]);return oF(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudTxc=Ye.service=void 0;var fc=g(),Sn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(Sn||(Ye.service=Sn={}));var cF=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.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 createPlaceOrderInstance(e){return Sn.transaction.PlaceOrder.svc===void 0&&(Sn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>aF(fP()))).PlaceOrderCOAService),new Sn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:cF})}};Ye.CloudTxc=oh});var yP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var uF=Q(),ah=te(),dF=E(),ch=class extends dF.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.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:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:uF.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:i.itemOffered.typeOf}},purpose:n})}};hc.OfferService=ch});var pP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var Sr=g(),mr=te(),lF=E(),uh=class extends lF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:i})}async cancel(e){let{id:r}=e,{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var vP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),fF=E(),lh=class extends fF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,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:i,project:s,seller:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:i})).createReturnOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var SP=o(Qe=>{"use strict";var hF=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yF=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&hF(r,e,n[i]);return yF(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudTxn=Qe.service=void 0;var vc=g(),nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(Qe.service=nt={}));var hh=[vc.status.BAD_GATEWAY,vc.status.SERVICE_UNAVAILABLE,vc.status.FORBIDDEN,vc.status.UNAUTHORIZED],yh=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 nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>fh(yP()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(pP()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(vP()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Qe.CloudTxn=yh});var mP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var pF=g(),vF=E(),ph=class extends vF.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[pF.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var OP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var _P=g(),SF=E(),vh=class extends SF.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[_P.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[_P.status.NO_CONTENT]})}};mc.RuleSetService=vh});var EP=o(Ze=>{"use strict";var mF=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_F=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),TP=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&mF(r,e,n[i]);return _F(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.WaiterAdmin=Ze.service=void 0;var Nt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Nt||(Ze.service=Nt={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Nt.Rule.svc===void 0&&(Nt.Rule.svc=(await Promise.resolve().then(()=>TP(mP()))).RuleService),new Nt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Nt.RuleSet.svc===void 0&&(Nt.RuleSet.svc=(await Promise.resolve().then(()=>TP(OP()))).RuleSetService),new Nt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Ze.WaiterAdmin=Sh});var te=o(X=>{"use strict";var OF=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),TF=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 i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&OF(r,e,n[i]);return TF(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=gF;X.loadChevreAsset=bF;X.loadChevreAdmic=AF;X.loadChevreAdmin=PF;X.loadChevreConsole=wF;X.loadChevrePay=RF;X.loadChevreTxn=MF;X.loadChevreTxc=IF;X.loadService=qF;X.loadCloudAdmin=NF;X.loadCloudAsset=jF;X.loadCloudSearch=xF;X.loadCloudPay=UF;X.loadCloudTxc=DF;X.loadCloudTxn=FF;X.loadWaiterAdmin=LF;var EF=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return EF.factory}});var CF=Oe(Di());X.transporters=CF;var mh;async function gF(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(zC()))).Chevre),new mh(...t)}var _h;async function bF(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAsset),new _h(...t)}var Oh;async function AF(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(rg()))).ChevreAdmic),new Oh(...t)}var Th;async function PF(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(Fg()))).ChevreAdmin),new Th(...t)}var Eh;async function wF(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(rA()))).ChevreConsole),new Eh(...t)}var Ch;async function RF(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(iA()))).ChevrePay),new Ch(...t)}var gh;async function MF(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(uA()))).ChevreTxn),new gh(...t)}var bh;async function IF(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(lA()))).ChevreTxc),new bh(...t)}var Ah;async function qF(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(mA()))).service),Ah}var Ph;async function NF(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(BA()))).CloudAdmin),new Ph(...t)}var wh;async function jF(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(VA()))).CloudAsset),new wh(...t)}var Rh;async function xF(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(rP()))).CloudSearch),new Rh(...t)}var Mh;async function UF(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(oP()))).CloudPay),new Mh(...t)}var Ih;async function DF(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(hP()))).CloudTxc),new Ih(...t)}var qh;async function FF(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(SP()))).CloudTxn),new qh(...t)}var Nh;async function LF(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(EP()))).WaiterAdmin),new Nh(...t)}});var CP=o(Wt=>{"use strict";var kF=Wt&&Wt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BF=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kF(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});BF(te(),Wt)});var UP=o((_5,xP)=>{var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(t){var e={exports:{}};return t(e,e.exports),e.exports}var GF=zt(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]"},i=0,s=void 0,c=void 0,d=function(h,v){M[i]=h,M[i+1]=v,(i+=2)===2&&(c?c(w):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(w,1)}}var M=new Array(1e3);function w(){for(var h=0;h<i;h+=2)(0,M[h])(M[h+1]),M[h]=void 0,M[h+1]=void 0;i=0}var q,N,C,R,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 L=arguments[P-1];d(function(){return Xe(P,A,L,T._result)})}else Je(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 ae(v,h),v}D=S?function(){return process.nextTick(w)}:y?(N=0,C=new y(w),R=document.createTextNode(""),C.observe(R,{characterData:!0}),function(){R.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=w,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(s=h.runOnLoop||h.runOnContext)!==void 0?function(){s(w)}:b()}catch{return b()}})():b();var x=Math.random().toString(36).substring(2);function G(){}var W=void 0,$=1,z=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?oe(A,P._result):P._state===z?ee(A,P._result):Je(P,void 0,function(L){return ae(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?oe(h,v):r(T)?(function(A,P,L){d(function(V){var Z=!1,de=(function(Ae,Ee,jt,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?ae(V,Pe):oe(V,Pe))},function(Pe){Z||(Z=!0,ee(V,Pe))})}catch(Pe){return Pe}})(L,P);!Z&&de&&(Z=!0,ee(V,de))},A)})(h,v,T):oe(h,v)}function ae(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")oe(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var A,P}function se(h){h._onerror&&h._onerror(h._result),it(h)}function oe(h,v){h._state===W&&(h._result=v,h._state=$,h._subscribers.length!==0&&d(it,h))}function ee(h,v){h._state===W&&(h._state=z,h._result=v,d(se,h))}function Je(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+$]=T,P[L+z]=A,L===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,L=h._result,V=0;V<v.length;V+=3)P=v[V+T],(A=v[V])?Xe(T,A,P,L):P(L);h._subscribers.length=0}}function Xe(h,v,T,A){var P=r(T),L=void 0,V=void 0,Z=!0;if(P){try{L=T(A)}catch(de){Z=!1,V=de}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=A;v._state!==W||(P&&Z?ae(v,L):Z===!1?ee(v,V):h===$?oe(v,L):h===z&&ee(v,L))}var je=0;function a(h){h[x]=je++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(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?oe(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&oe(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===W&&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 L=void 0,V=void 0,Z=!1;try{L=v.then}catch(Ae){Z=!0,V=Ae}if(L===k&&v._state!==W)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(A===l){var de=new A(G);Z?ee(de,V):Te(de,v,L),this._willSettleAt(de,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===W&&(this._remaining--,v===z?ee(P,A):this._result[T]=A),this._remaining===0&&oe(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;Je(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(z,T,P)})},h})(),l=(function(){function h(v){this[x]=je++,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){ae(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 u(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,L=0;L<P;L++)v.resolve(h[L]).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){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Vt!==void 0)h=Vt;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})()}),$F={__proto__:null,default:{}},Fh=zt(function(t,e){var r;t.exports=(r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&Vt!==void 0&&Vt.crypto&&(s=Vt.crypto),!s)try{s=$F}catch{}var c=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.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(R){var D;return C.prototype=R,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var R=d(this);return C&&R.mixIn(C),R.hasOwnProperty("init")&&this.init!==R.init||(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var R in C)C.hasOwnProperty(R)&&(this[R]=C[R]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,R){C=this.words=C||[],this.sigBytes=R??4*C.length},toString:function(C){return(C||b).stringify(this)},concat:function(C){var R=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)R[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)R[k+G>>>2]=D[G>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,R=this.sigBytes;C[R>>>2]&=4294967295<<32-R%4*8,C.length=n.ceil(R/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var R=[],D=0;D<C;D+=4)R.push(c());return new S.init(R,C)}}),_=f.enc={},b=_.Hex={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=R[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 R=C.length,D=[],k=0;k<R;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,R/2)}},M=_.Latin1={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(R[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var R=C.length,D=[],k=0;k<R;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,R)}},w=_.Utf8={stringify:function(C){try{return decodeURIComponent(escape(M.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return M.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=w.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var R,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),W=(G=C?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*W,K);if(W){for(var z=0;z<W;z+=x)this._doProcessBlock(k,z);R=k.splice(0,W),D.sigBytes-=$}return new S.init(R,$)},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(R,D){return new C.init(D).finalize(R)}},_createHmacHelper:function(C){return function(R,D){return new N.HMAC.init(C,D).finalize(R)}}});var N=f.algo={};return f})(Math),r)}),RP=zt(function(t,e){var r;t.exports=(r=Fh,(function(n){var i=r,s=i.lib,c=s.WordArray,d=s.Hasher,f=i.algo,p=[],y=[];(function(){function b(N){for(var C=n.sqrt(N),R=2;R<=C;R++)if(!(N%R))return!1;return!0}function M(N){return 4294967296*(N-(0|N))|0}for(var w=2,q=0;q<64;)b(w)&&(q<8&&(p[q]=M(n.pow(w,.5))),y[q]=M(n.pow(w,1/3)),q++),w++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(b,M){for(var w=this._hash.words,q=w[0],N=w[1],C=w[2],R=w[3],D=w[4],k=w[5],K=w[6],x=w[7],G=0;G<64;G++){if(G<16)S[G]=0|b[M+G];else{var W=S[G-15],$=S[G-2];S[G]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[G-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[G-16]}var z=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=R+Te|0,R=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+z)|0}w[0]=w[0]+q|0,w[1]=w[1]+N|0,w[2]=w[2]+C|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+k|0,w[6]=w[6]+K|0,w[7]=w[7]+x|0},_doFinalize:function(){var b=this._data,M=b.words,w=8*this._nDataBytes,q=8*b.sigBytes;return M[q>>>5]|=128<<24-q%32,M[14+(q+64>>>9<<4)]=n.floor(w/4294967296),M[15+(q+64>>>9<<4)]=w,b.sigBytes=4*M.length,this._process(),this._hash},clone:function(){var b=d.clone.call(this);return b._hash=this._hash.clone(),b}});i.SHA256=d._createHelper(_),i.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),KF=zt(function(t,e){var r,n;t.exports=(n=(r=Fh).lib.WordArray,r.enc.Base64={stringify:function(i){var s=i.words,c=i.sigBytes,d=this._map;i.clamp();for(var f=[],p=0;p<c;p+=3)for(var y=(s[p>>>2]>>>24-p%4*8&255)<<16|(s[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|s[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<c;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(i){var s=i.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=i.indexOf(p);y!==-1&&(s=y)}return(function(S,_,b){for(var M=[],w=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;M[w>>>2]|=(N|C)<<24-w%4*8,w++}return n.create(M,w)})(i,s,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),gP=zt(function(t,e){t.exports=Fh.enc.Hex}),MP=zt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function i(){return new n(null)}var s=typeof navigator<"u";s&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],V=this[a++]>>15,Z=P*L+V*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*V+(v>>>30),l[h++]=1073741823&L}return v},r=30):s&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],V=this[a++]>>14,Z=P*L+V*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*V,l[h++]=268435455&L}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 c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=i();return u.fromInt(a),u}function _(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,l+=1),l}function b(a){this.m=a}function M(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 w(a,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function R(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function x(a){this.r2=i(),this.q3=i(),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,u,l){a.multiplyTo(u,l),this.reduce(l)},b.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},M.prototype.convert=function(a){var u=i();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},M.prototype.revert=function(a){var u=i();return a.copyTo(u),this.reduce(u),u},M.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,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)},M.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},M.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];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,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);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,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){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)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=i());var T=i(),A=this.s,P=a.s,L=this.DB-_(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var V=T.t,Z=T[V-1];if(Z!=0){var de=Z*(1<<this.F1)+(V>1?T[V-2]>>this.F2:0),Ae=this.FV/de,Ee=(1<<this.F1)/de,jt=1<<this.F2,ye=l.t,Pe=ye-V,st=u??i();for(T.dlShiftTo(Pe,st),l.compareTo(st)>=0&&(l[l.t++]=1,l.subTo(st,l)),n.ONE.dlShiftTo(V,st),st.subTo(T,T);T.t<V;)T[T.t++]=0;for(;--Pe>=0;){var Er=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+jt)*Ee);if((l[ye]+=T.am(0,Er,l,Pe,0,V))<Er)for(T.dlShiftTo(Pe,st),l.subTo(st,l);l[ye]<--Er;)l.subTo(st,l)}u!=null&&(l.drShiftTo(V,u),A!=P&&n.ZERO.subTo(u,u)),l.t=V,l.clamp(),L>0&&l.rShiftTo(L,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 u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=i(),h=i(),v=u.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&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=i();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;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 u=i();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new b(u):new M(u),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,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},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 u=i();return a.copyTo(u),this.reduce(u),u},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,u,l){a.multiplyTo(u,l),this.reduce(l)},x.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)};var G,W,$,z=[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)/z[z.length-1];function ae(){var a;a=new Date().getTime(),W[$++]^=255&a,W[$++]^=a>>8&255,W[$++]^=a>>16&255,W[$++]^=a>>24&255,$>=je&&($-=je)}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 u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=i(),T=i(),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,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="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(u);)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),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.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,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);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,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>z.length&&(a=z.length);for(var v=i(),T=0;T<a;++T){v.fromInt(z[Math.floor(Math.random()*z.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=0)return!1}}return!0},n.prototype.clone=function(){var a=i();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,u=new Array;u[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&&(u[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)&&(u[v++]=l);return u},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 u=i();return this.bitwiseTo(a,w,u),u},n.prototype.or=function(a){var u=i();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=i();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=i();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=i(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=i();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=i();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+R(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&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 u=i();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=i();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=i();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=i();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=i();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=i(),l=i();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){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(u):u.isEven()?new x(u):new M(u);var A=new Array,P=3,L=l-1,V=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=i();for(h.sqrTo(A[1],Z);P<=V;)A[P]=i(),h.mulTo(Z,A[P-2],A[P]),P+=2}var de,Ae,Ee=a.t-1,jt=!0,ye=i();for(v=_(a[Ee])-1;Ee>=0;){for(v>=L?de=a[Ee]>>v-L&V:(de=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(de|=a[Ee-1]>>this.DB+v-L)),P=l;(1&de)==0;)de>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),jt)A[de].copyTo(T),jt=!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[de],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 u=a.isEven();if(this.isEven()&&u||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),u?(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),u?(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),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&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 u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=z[z.length-1]){for(u=0;u<z.length;++u)if(l[0]==z[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<z.length;){for(var h=z[u],v=u+1;v<z.length&&h<Te;)h*=z[v++];for(h=l.modInt(h);u<v;)if(h%z[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=i();return this.squareTo(a),a},n.prototype.Barrett=x,W==null){var se;if(W=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var oe=new Uint8Array(32);for(window.crypto.getRandomValues(oe),se=0;se<32;++se)W[$++]=oe[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)W[$++]=255&ee.charCodeAt(se)}}for(;$<je;)se=Math.floor(65536*Math.random()),W[$++]=se>>>8,W[$++]=255&se;$=0,ae()}function Je(){if(G==null){for(ae(),(G=new Xe).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return G.next()}function it(){}function Xe(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=Je()},Xe.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%a.length]&255],this.S[l]=h;this.i=0,this.j=0},Xe.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 je=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Vt)}),bP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},AP={sha256:RP};function IP(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 MP.BigInteger(t,16),this.e=parseInt(e,16)}IP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new MP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(s){for(var c in bP){var d=bP[c],f=d.length;if(s.substring(0,f)===d)return{alg:c,hash:s.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!AP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var i=AP[n.alg](t).toString();return n.hash===i};for(PP=[],Ne=[],qP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ht=0;Ht<64;++Ht)PP[Ht]=jh[Ht],Ne[jh.charCodeAt(Ht)]=Ht;var PP,Ne,qP,jh,Ht;Ne[45]=62,Ne[95]=63;var NP=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),i=n[0],s=n[1],c=new qP((function(p,y,S){return 3*(y+S)/4-S})(0,i,s)),d=0,f=s>0?i-4:i;for(r=0;r<f;r+=4)e=Ne[t.charCodeAt(r)]<<18|Ne[t.charCodeAt(r+1)]<<12|Ne[t.charCodeAt(r+2)]<<6|Ne[t.charCodeAt(r+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return s===2&&(e=Ne[t.charCodeAt(r)]<<2|Ne[t.charCodeAt(r+1)]>>4,c[d++]=255&e),s===1&&(e=Ne[t.charCodeAt(r)]<<10|Ne[t.charCodeAt(r+1)]<<4|Ne[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function jP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function wP(t){return t=jP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(NP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var i=e[n].toString(16);r+=i.length===2?i:"0"+i}return r})(NP(jP(t)))}var WF=zt(function(t){var e,r;e=Vt,r=function(){return function(){return(function(n){var i=[];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 s=n.shift();n[0]=s+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<n.length-1?"":"/"),i.push(d))}var f=i.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 HF(t,e){return e=e||{},new Promise(function(r,n){var i=new XMLHttpRequest,s=[],c=[],d={},f=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:f,headers:{keys:function(){return s},entries:function(){return c},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,_){s.push(S=S.toLowerCase()),c.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},i.onerror=n,i.withCredentials=e.credentials=="include",e.headers)i.setRequestHeader(p,e.headers[p]);i.send(e.body||null)})}function VF(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Uh(t){this.name="ConfigurationError",this.message=t||""}function ie(t){this.name="TokenValidationError",this.message=t||""}Uh.prototype=Error.prototype,ie.prototype=Error.prototype;var zF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();GF.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},YF=function(){return new Date};function mn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new zF,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:YF,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}mn.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ie("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ie("ID token could not be decoded"),null);var i=n.encoded.header+"."+n.encoded.payload,s=xh(n.encoded.signature),c=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,M=n.payload.azp,w=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ie('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(R,D){if(R)return r(R,null);if(!D.verify(i,s))return r(new ie("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ie("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ie('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ie("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ie("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 ie('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 ie('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 ie("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ie('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!M||typeof M!="string")return r(new ie("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(M!==C.audience)return r(new ie('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+M+'"'),null)}if(!S||!_c(S))return r(new ie("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!b||!_c(b))return r(new ie("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 ie('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(_&&_c(_)){var x=_-C.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new ie('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(!w||!_c(w))return r(new ie("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var W=w+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(W),N>$)return r(new ie('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)})},mn.prototype.getRsaVerifier=function(t,e,r){var n=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then(function(s){return s?n.jwksCache.get(i):(d=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||WF(c.iss,".well-known","jwks.json"),(fetch=="undefined"?HF:fetch)(d).then(VF).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===c.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=_).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,d}).then(function(s){if(!s||!s.modulus||!s.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(i,s)).then(function(){r&&r(null,new IP(s.modulus,s.exp))})}).catch(function(s){r&&r(s)})},mn.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ie("Cannot decode a malformed JWT");try{e=JSON.parse(wP(n[0])),r=JSON.parse(wP(n[1]))}catch{return new ie("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},mn.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ie('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,s=RP(t),c=gP.stringify(s),d=c.substring(0,c.length/2),f=gP.parse(d),p=KF.stringify(f);return n((i={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return i[y]})!==r?new ie("Invalid access_token"):null))},xP.exports=mn});var _n=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Lh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Lh});var DP=o(_r=>{"use strict";var QF=_r&&_r.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_r,"__esModule",{value:!0});_r.PopupHandler=void 0;var ZF=QF(ir()),kh=(0,ZF.default)("cinerino-sdk:auth:popupHandler"),Bh=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)}};_r.PopupHandler=Bh});var FP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var JF=_n(),XF=DP(),Gh=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 i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.location.hash}catch(s){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new XF.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 i=new JF.AuthorizeError("Timeout during authentication");i.error="timeout",i.errorDescription="Timeout during authentication",n(i)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=Gh});var Kh=o(Or=>{"use strict";var eL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.IframeHandler=void 0;var tL=eL(ir()),rL=(0,tL.default)("cinerino-sdk:auth:iframeHandler"),$h=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(rL("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)}};Or.IframeHandler=$h});var LP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var nL=_n(),iL=Kh(),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 i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new iL.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 i=new nL.AuthorizeError("Timeout during authentication renew");i.error="timeout",i.errorDescription="Timeout during authentication renew",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Wh});var kP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var sL=_n(),oL=Kh(),Hh=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 i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new oL.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 i=new sL.AuthorizeError("Timeout during logout");i.error="timeout",i.errorDescription="Timeout during logout",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentLogoutHandler=Hh});var BP=o(()=>{});var GP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.LoginTicket=void 0;var Vh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};gc.LoginTicket=Vh});var $P=o(St=>{"use strict";var aL=St&&St.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.OAuth2client=St.MAX_RETRY_NUM=void 0;var cL=BP(),uL=aL(ir()),bc=g(),dL=Di(),lL=GP(),Yt=(0,uL.default)("cinerino-sdk:auth:oAuth2client"),fL=1e3;St.MAX_RETRY_NUM=2;async function hL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var zh=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,cL.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}},i=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(i),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Yt("response:",d.status),d.status!==bc.status.OK)if(d.status===bc.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=>(Yt("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,i){let s=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let c,d=0;for(;c===void 0;)try{d+=1,d>St.MAX_RETRY_NUM&&(s=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Yt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",s,"retryableStatusCodes: ",i),s&&typeof p=="number"&&i.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await hL(fL*d);continue}}throw f}return c}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 i=new dL.DefaultTransporter(n),s;return typeof this.events.preFetch=="function"?s=(await this.events.preFetch({url:e,options:r})).options:s=r,i.fetch(e,s)}async refreshToken(e){Yt("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}`,i=btoa(n),s={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",s),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,s).then(async c=>{if(Yt("response:",c.status),c.status!==bc.status.OK)if(c.status===bc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.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 i,s;try{i=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{s=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(s.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(s)}`);if(s.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(s)}`);if(isNaN(s.iat))throw new Error("iat field using invalid format");if(isNaN(s.exp))throw new Error("exp field using invalid format");if(r!==void 0){let c=s.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new lL.LoginTicket({envelope:i,payload:s})}};St.OAuth2client=zh});var HP=o(Tr=>{"use strict";var WP=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ImplicitGrantClient=void 0;var yL=WP(ir()),KP=WP(UP()),Yh=$u(),pL=_n(),vL=FP(),SL=LP(),mL=kP(),_L=$P(),Ac=(0,yL.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends _L.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,Ac("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},i=await SL.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(i)}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},i=await vL.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(i)}async signOut(){await mL.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let i=new pL.AuthorizeError(n.error_description);throw i.error=n.error,i.errorDescription=n.error_description,i.state=n.state,i}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 i=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i)}if(typeof n.id_token=="string"){let s=new KP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,i)=>{new KP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){i(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.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,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Tr.ImplicitGrantClient=Qh});var VP=o(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.transporters=he.factory=he.loadService=he.loadCloudTxn=he.loadCloudTxc=he.loadCloudSearch=he.loadCloudPay=he.loadCloudAsset=he.loadCloudAdmin=void 0;he.createAuthInstance=TL;var mt=CP();Object.defineProperty(he,"factory",{enumerable:!0,get:function(){return mt.factory}});Object.defineProperty(he,"loadCloudAdmin",{enumerable:!0,get:function(){return mt.loadCloudAdmin}});Object.defineProperty(he,"loadCloudAsset",{enumerable:!0,get:function(){return mt.loadCloudAsset}});Object.defineProperty(he,"loadCloudPay",{enumerable:!0,get:function(){return mt.loadCloudPay}});Object.defineProperty(he,"loadCloudSearch",{enumerable:!0,get:function(){return mt.loadCloudSearch}});Object.defineProperty(he,"loadCloudTxc",{enumerable:!0,get:function(){return mt.loadCloudTxc}});Object.defineProperty(he,"loadCloudTxn",{enumerable:!0,get:function(){return mt.loadCloudTxn}});Object.defineProperty(he,"loadService",{enumerable:!0,get:function(){return mt.loadService}});Object.defineProperty(he,"transporters",{enumerable:!0,get:function(){return mt.transporters}});var OL=HP();function TL(t){return new OL.ImplicitGrantClient(t)}});var q5=window.cinerino=VP();})();
5
5
  /* istanbul ignore else -- @preserve */
6
6
  //# sourceMappingURL=bundle.js.map