@cinerino/sdk 15.0.0-alpha.21 → 15.0.0-alpha.22

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 Hh=o(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0})});var ft=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var BA;(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"})(BA=bn.ErrorCode||(bn.ErrorCode={}))});var Tt=o((uF,Vh)=>{"use strict";Vh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?$A:GA);function $A(t,e){return t.__proto__=e,t}function GA(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(br=>{"use strict";var KA=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 WA=(function(t){KA(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);br.WaiterError=WA});var zh=o(Pr=>{"use strict";var HA=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 VA=Tt(),zA=ft(),YA=ht(),QA=(function(t){HA(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,zA.ErrorCode.Argument,i)||this,s.argumentName=r,VA(s,e.prototype),s}return e})(YA.WaiterError);Pr.ArgumentError=QA});var Yh=o(Ar=>{"use strict";var ZA=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 JA=Tt(),XA=ft(),ew=ht(),tw=(function(t){ZA(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,XA.ErrorCode.Argument,i)||this,s.argumentName=r,JA(s,e.prototype),s}return e})(ew.WaiterError);Ar.ArgumentNullError=tw});var Qh=o(wr=>{"use strict";var rw=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 nw=Tt(),sw=ft(),iw=ht(),ow=(function(t){rw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,sw.ErrorCode.Forbidden,s)||this,nw(n,e.prototype),n}return e})(iw.WaiterError);wr.ForbiddenError=ow});var Zh=o(Rr=>{"use strict";var aw=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var cw=Tt(),uw=ft(),dw=ht(),lw=(function(t){aw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,uw.ErrorCode.NotFound,i)||this,s.entityName=r,cw(s,e.prototype),s}return e})(dw.WaiterError);Rr.NotFoundError=lw});var Jh=o(Mr=>{"use strict";var fw=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 hw=Tt(),yw=ft(),pw=ht(),vw=(function(t){fw(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,yw.ErrorCode.RateLimitExceeded,s)||this,hw(n,e.prototype),n}return e})(pw.WaiterError);Mr.RateLimitExceededError=vw});var Xh=o(Ir=>{"use strict";var Sw=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 mw=Tt(),_w=ft(),Ow=ht(),Tw=(function(t){Sw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,_w.ErrorCode.ServiceUnavailable,s)||this,mw(n,e.prototype),n}return e})(Ow.WaiterError);Ir.ServiceUnavailableError=Tw});var ey=o(qr=>{"use strict";var Ew=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var Cw=Tt(),gw=ft(),bw=ht(),Pw=(function(t){Ew(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,gw.ErrorCode.Unauthorized,s)||this,Cw(n,e.prototype),n}return e})(bw.WaiterError);qr.UnauthorizedError=Pw});var ty=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Aw=zh();at.Argument=Aw.ArgumentError;var ww=Yh();at.ArgumentNull=ww.ArgumentNullError;var Rw=Qh();at.Forbidden=Rw.ForbiddenError;var Mw=Zh();at.NotFound=Mw.NotFoundError;var Iw=Jh();at.RateLimitExceeded=Iw.RateLimitExceededError;var qw=Xh();at.ServiceUnavailable=qw.ServiceUnavailableError;var Nw=ey();at.Unauthorized=Nw.UnauthorizedError;var jw=ht();at.Waiter=jw.WaiterError});var ny=o(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0})});var iy=o(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0})});var ay=o(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0})});var uy=o(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0})});var dy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var xw=Hh();yt.client=xw;var Uw=ft();yt.errorCode=Uw.ErrorCode;var Dw=ty();yt.errors=Dw;var Lw=ny();yt.passport=Lw;var Fw=iy();yt.project=Fw;var kw=ay();yt.rule=kw;var Bw=uy();yt.ruleSet=Bw});var fy=o(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0})});var yy=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.FlgMember=void 0;var hy;(function(t){t.NonMember="0",t.Member="1"})(hy||(Pn.FlgMember=hy={}))});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 Oy=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var _y;(function(t){t.SeatReservation="SeatReservation"})(_y||(An.ObjectType=_y={}))});var Ty=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ObjectType=void 0;var $w=Oy();Object.defineProperty(wn,"ObjectType",{enumerable:!0,get:function(){return $w.ObjectType}})});var gy=o(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ServiceIdentifier=Ht.ResultType=void 0;var Ey;(function(t){t.Payment="Payment"})(Ey||(Ht.ResultType=Ey={}));var Cy;(function(t){t.Chevre="Chevre"})(Cy||(Ht.ServiceIdentifier=Cy={}))});var Py=o(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0})});var wy=o(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0})});var My=o(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0})});var qy=o(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0})});var jy=o(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0})});var Uy=o(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0})});var Ly=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var $y=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0})});var Hy=o(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var zy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=o(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Jy=o(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0})});var ep=o(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var rp=o(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0})});var sp=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var cp=o(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0})});var dp=o(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0})});var lp=o(It=>{"use strict";var Gw=It&&It.__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]})),Kw=It&&It.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gw(e,t,r)};Object.defineProperty(It,"__esModule",{value:!0});Kw(dp(),It)});var hp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ObjectAsTransactionSpecifyingMethod=void 0;var fp;(function(t){t.Id="Id",t.AgentId="AgentId"})(fp||(Rn.ObjectAsTransactionSpecifyingMethod=fp={}))});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 _p=o(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0})});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Ep=o(pt=>{"use strict";var Ww=pt&&pt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ww(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});bc(Sp(),pt);bc(_p(),pt);bc(Tp(),pt)});var gp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ActionStatusType=void 0;var Cp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Cp||(Mn.ActionStatusType=Cp={}))});var Pp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ActionType=void 0;var bp;(function(t){t.AddAction="AddAction",t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.DeleteAction="DeleteAction",t.InformAction="InformAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReplaceAction="ReplaceAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.UpdateAction="UpdateAction",t.UseAction="UseAction"})(bp||(In.ActionType=bp={}))});var wp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var Mp=o(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0})});var qp=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AggregationType=void 0;var Ip;(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.AggregateUseAction="AggregateUseAction"})(Ip||(qn.AggregationType=Ip={}))});var jp=o(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0})});var Up=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.CategorySetIdentifier=void 0;var xp;(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"})(xp||(Nn.CategorySetIdentifier=xp={}))});var Pc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CertificationStatusEnumeration=void 0;var Dp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Dp||(jn.CertificationStatusEnumeration=Dp={}))});var Fp=o(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0})});var Bp=o(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0})});var Gp=o($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0})});var Wp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var Vp=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.AboutIdentifier=void 0;var Hp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Hp||(xn.AboutIdentifier=Hp={}))});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Jp=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.PermissionGranteeAudienceType=Vt.DigitalDocumentPermissionType=void 0;var Qp;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(Qp||(Vt.DigitalDocumentPermissionType=Qp={}));var Zp;(function(t){t.Public="public"})(Zp||(Vt.PermissionGranteeAudienceType=Zp={}))});var ev=o(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0})});var rv=o(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var Ac=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CreativeWorkType=void 0;var nv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(nv||(Un.CreativeWorkType=nv={}))});var iv=o(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var vv=o(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.Video=ae.Text=ae.Multipart=ae.Model=ae.Message=ae.Image=ae.Example=ae.Font=ae.Audio=ae.Application=void 0;var ov;(function(t){t.pdf="application/pdf",t.json="application/json"})(ov||(ae.Application=ov={}));var av;av||(ae.Audio=av={});var cv;cv||(ae.Font=cv={});var uv;uv||(ae.Example=uv={});var dv;dv||(ae.Image=dv={});var lv;lv||(ae.Message=lv={});var fv;fv||(ae.Model=fv={});var hv;hv||(ae.Multipart=hv={});var yv;(function(t){t.csv="text/csv"})(yv||(ae.Text=yv={}));var pv;pv||(ae.Video=pv={})});var mv=o(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Ov=o(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var Ev=o(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0})});var wc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EventStatusType=void 0;var Cv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Cv||(Dn.EventStatusType=Cv={}))});var Rc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.EventType=void 0;var gv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(gv||(Ln.EventType=gv={}))});var Pv=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Mv=o(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ItemAvailability=void 0;var Iv;(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"})(Iv||(Fn.ItemAvailability=Iv={}))});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Mc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var xv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(xv||(Et.RefundTypeEnumeration=xv={}));var Uv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Uv||(Et.ReturnFeesEnumeration=Uv={}));var Dv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Dv||(Et.MerchantReturnEnumeration=Dv={}))});var Fv=o(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Bv=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.CategorySetIdentifier=void 0;var kv;(function(t){t.MovieTicketType="MovieTicketType"})(kv||(kn.CategorySetIdentifier=kv={}))});var Gv=o($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0})});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OfferItemCondition=void 0;var Qv;(function(t){t.NewCondition="NewCondition"})(Qv||(Bn.OfferItemCondition=Qv={}))});var Ic=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OfferType=void 0;var Jv;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(Jv||($n.OfferType=Jv={}))});var qc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var Xv;(function(t){t.Order="Order"})(Xv||(Gn.OrderType=Xv={}))});var Nc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrderStatus=void 0;var eS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(eS||(Kn.OrderStatus=eS={}))});var rS=o(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0})});var jc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.OrganizationType=void 0;var nS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(nS||(Wn.OrganizationType=nS={}))});var iS=o(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0})});var aS=o(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0})});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var xc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PaymentStatusType=void 0;var dS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(dS||(Hn.PaymentStatusType=dS={}))});var fS=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PermitType=void 0;var lS;(function(t){t.Permit="Permit"})(lS||(Vn.PermitType=lS={}))});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var Uc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PersonType=void 0;var pS;(function(t){t.Person="Person"})(pS||(zn.PersonType=pS={}))});var SS=o(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0})});var _S=o(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0})});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});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 Dc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PlaceType=void 0;var PS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(PS||(Yn.PlaceType=PS={}))});var wS=o(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0})});var Lc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PriceCurrency=void 0;var RS;(function(t){t.JPY="JPY"})(RS||(Qn.PriceCurrency=RS={}))});var IS=o(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0})});var Fc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PriceSpecificationType=void 0;var qS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(qS||(Zn.PriceSpecificationType=qS={}))});var kc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ProductType=void 0;var NS;(function(t){t.EventService="EventService",t.Product="Product"})(NS||(Jn.ProductType=NS={}))});var xS=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ProgramMembershipType=void 0;var jS;(function(t){t.ProgramMembership="ProgramMembership"})(jS||(Xn.ProgramMembershipType=jS={}))});var DS=o(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0})});var FS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PropertyValueType=void 0;var LS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(LS||(es.PropertyValueType=LS={}))});var BS=o(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0})});var GS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var WS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.StringValue=void 0;var KS;(function(t){t.Infinity="Infinity"})(KS||(ts.StringValue=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 Bc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReservationStatusType=void 0;var QS;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(QS||(rs.ReservationStatusType=QS={}))});var $c=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ReservationType=void 0;var ZS;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(ZS||(ns.ReservationType=ZS={}))});var Gc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.AssetTransactionType=void 0;var JS;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(JS||(ss.AssetTransactionType=JS={}))});var Kc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.SortType=void 0;var XS;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(XS||(is.SortType=XS={}))});var Wc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TaskStatus=void 0;var em;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(em||(os.TaskStatus=em={}))});var Hc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TransactionStatusType=void 0;var tm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(tm||(as.TransactionStatusType=tm={}))});var Vc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TransactionType=void 0;var rm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(rm||(cs.TransactionType=rm={}))});var zc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.UnitCode=void 0;var nm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(nm||(us.UnitCode=nm={}))});var lm=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RESERVED_CODE_VALUES=void 0;var ds=Gc(),sm=Pc(),qt=Ac(),ls=wc(),im=Rc(),ct=Mc(),om=Ic(),Hw=qc(),zt=Nc(),Yc=jc(),Nr=xc(),Vw=Uc(),Yt=Dc(),zw=Lc(),jr=Fc(),am=kc(),fs=Bc(),cm=$c(),um=Kc(),xr=Wc(),hs=Hc(),dm=Vc(),ys=zc();ps.RESERVED_CODE_VALUES=["AccountTitle",ds.AssetTransactionType.CancelReservation,"MoneyTransfer",ds.AssetTransactionType.Pay,ds.AssetTransactionType.Refund,ds.AssetTransactionType.Reserve,"Authorization",sm.CertificationStatusEnumeration.CertificationActive,sm.CertificationStatusEnumeration.CertificationInactive,qt.CreativeWorkType.Certification,"Comment",qt.CreativeWorkType.EmailMessage,qt.CreativeWorkType.Movie,qt.CreativeWorkType.NoteDigitalDocument,qt.CreativeWorkType.SoftwareApplication,qt.CreativeWorkType.WebApplication,qt.CreativeWorkType.WebSite,"Event",ls.EventStatusType.EventCancelled,ls.EventStatusType.EventPostponed,ls.EventStatusType.EventRescheduled,ls.EventStatusType.EventScheduled,im.EventType.ScreeningEvent,im.EventType.ScreeningEventSeries,ct.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ct.MerchantReturnEnumeration.MerchantReturnNotPermitted,ct.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ct.MerchantReturnEnumeration.MerchantReturnUnspecified,ct.RefundTypeEnumeration.ExchangeRefund,ct.RefundTypeEnumeration.FullRefund,ct.RefundTypeEnumeration.StoreCreditRefund,ct.ReturnFeesEnumeration.FreeReturn,ct.ReturnFeesEnumeration.RestockingFees,ct.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",om.OfferType.AggregateOffer,om.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Hw.OrderType.Order,zt.OrderStatus.OrderCancelled,zt.OrderStatus.OrderDelivered,zt.OrderStatus.OrderInTransit,zt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",zt.OrderStatus.OrderProcessing,zt.OrderStatus.OrderReturned,Yc.OrganizationType.Corporation,Yc.OrganizationType.Organization,Yc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,Vw.PersonType.Person,Yt.PlaceType.AggregatePlace,Yt.PlaceType.MovieTheater,Yt.PlaceType.Place,Yt.PlaceType.ScreeningRoom,Yt.PlaceType.ScreeningRoomSection,Yt.PlaceType.Seat,zw.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,am.ProductType.EventService,am.ProductType.Product,fs.ReservationStatusType.ReservationCancelled,fs.ReservationStatusType.ReservationConfirmed,fs.ReservationStatusType.ReservationPending,"ReservationHold",fs.ReservationStatusType.ReservationPending,"BusReservation",cm.ReservationType.EventReservation,cm.ReservationType.ReservationPackage,um.SortType.Ascending,um.SortType.Descending,xr.TaskStatus.Aborted,xr.TaskStatus.Executed,xr.TaskStatus.Ready,xr.TaskStatus.Running,xr.TaskStatus.Expired,hs.TransactionStatusType.Canceled,hs.TransactionStatusType.Confirmed,hs.TransactionStatusType.Expired,hs.TransactionStatusType.InProgress,dm.TransactionType.PlaceOrder,dm.TransactionType.ReturnOrder,ys.UnitCode.Ann,ys.UnitCode.C62,ys.UnitCode.Day,ys.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var hm=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RoleType=void 0;var fm;(function(t){t.OrganizationRole="OrganizationRole"})(fm||(vs.RoleType=fm={}))});var pm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RoleName=void 0;var ym;(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"})(ym||(Ss.RoleName=ym={}))});var Sm=o(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0})});var _m=o(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0})});var Tm=o(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0})});var Cm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.PaymentServiceType=void 0;var Em;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Em||(ms.PaymentServiceType=Em={}))});var bm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.Identifier=void 0;var gm;(function(t){t.COA="COA",t.Chevre="Chevre"})(gm||(_s.Identifier=gm={}))});var Am=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Rm=o(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0})});var Im=o(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0})});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 Fm=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Bm=o(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0})});var Gm=o($m=>{"use strict";Object.defineProperty($m,"__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 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 A_=o(P_=>{"use strict";Object.defineProperty(P_,"__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 G_=o($_=>{"use strict";Object.defineProperty($_,"__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 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(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.TaskName=void 0;var OO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AccountMoneyTransfer="accountMoneyTransfer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelAccountMoneyTransfer="cancelAccountMoneyTransfer",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeletePerson="deletePerson",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"})(OO||(Os.TaskName=OO={}))});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 AO=o(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});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(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Reason=void 0;var qO;(function(t){t.Customer="Customer",t.Seller="Seller"})(qO||(Ts.Reason=qO={}))});var we=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ErrorCode=void 0;var jO;(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"})(jO||(Es.ErrorCode=jO={}))});var Re=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ChevreError=void 0;var Qc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Cs.ChevreError=Qc});var xO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.AlreadyInUseError=void 0;var Yw=we(),Qw=Re(),Zc=class extends Qw.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(Yw.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};gs.AlreadyInUseError=Zc});var UO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ArgumentError=void 0;var Zw=we(),Jw=Re(),Jc=class extends Jw.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(Zw.ErrorCode.Argument,n),this.argumentName=e}};bs.ArgumentError=Jc});var DO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ArgumentNullError=void 0;var Xw=we(),e0=Re(),Xc=class extends e0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(Xw.ErrorCode.ArgumentNull,n),this.argumentName=e}};Ps.ArgumentNullError=Xc});var LO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ForbiddenError=void 0;var t0=we(),r0=Re(),eu=class extends r0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(t0.ErrorCode.Forbidden,r)}};As.ForbiddenError=eu});var FO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GatewayTimeoutError=void 0;var n0=we(),s0=Re(),tu=class extends s0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(n0.ErrorCode.GatewayTimeout,r)}};ws.GatewayTimeoutError=tu});var kO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.InternalError=void 0;var i0=we(),o0=Re(),ru=class extends o0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(i0.ErrorCode.Internal,r)}};Rs.InternalError=ru});var BO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.NotFoundError=void 0;var a0=we(),c0=Re(),nu=class extends c0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(a0.ErrorCode.NotFound,n),this.entityName=e}};Ms.NotFoundError=nu});var $O=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.NotImplementedError=void 0;var u0=we(),d0=Re(),su=class extends d0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(u0.ErrorCode.NotImplemented,r)}};Is.NotImplementedError=su});var GO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.RateLimitExceededError=void 0;var l0=we(),f0=Re(),iu=class extends f0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(l0.ErrorCode.RateLimitExceeded,r)}};qs.RateLimitExceededError=iu});var KO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.ServiceUnavailableError=void 0;var h0=we(),y0=Re(),ou=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(h0.ErrorCode.ServiceUnavailable,r)}};Ns.ServiceUnavailableError=ou});var WO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.UnauthorizedError=void 0;var p0=we(),v0=Re(),au=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(p0.ErrorCode.Unauthorized,r)}};js.UnauthorizedError=au});var HO=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.UnknownError=void 0;var S0=we(),m0=Re(),cu=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(S0.ErrorCode.Unknown,r)}};xs.UnknownError=cu});var VO=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 _0=xO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return _0.AlreadyInUseError}});var O0=UO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return O0.ArgumentError}});var T0=DO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return T0.ArgumentNullError}});var E0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return E0.ChevreError}});var C0=LO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return C0.ForbiddenError}});var g0=FO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return g0.GatewayTimeoutError}});var b0=kO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return b0.InternalError}});var P0=BO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return P0.NotFoundError}});var A0=$O();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return A0.NotImplementedError}});var w0=GO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return w0.RateLimitExceededError}});var R0=KO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return R0.ServiceUnavailableError}});var M0=WO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return M0.UnauthorizedError}});var I0=HO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return I0.UnknownError}})});var QO=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.StepIdentifier=Qt.RecipeCategory=void 0;var zO;(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"})(zO||(Qt.RecipeCategory=zO={}));var YO;(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"})(YO||(Qt.StepIdentifier=YO={}))});var fT=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=dy();O.cognito=fy();var q0=yy(),N0=vy(),j0=my(),x0=Ty(),U0=gy(),D0=Py(),L0=wy(),F0=My(),k0=qy(),B0=jy(),$0=Uy(),G0=Ly(),K0=ky(),W0=$y(),H0=Ky(),V0=Hy(),z0=zy(),Y0=Qy(),Q0=Jy(),Z0=ep(),J0=rp(),X0=sp(),eR=op(),tR=cp(),rR=lp(),nR=hp(),sR=pp(),iR=Ep(),oR=gp(),aR=Pp(),cR=wp(),uR=Mp(),dR=qp(),lR=jp(),fR=Up(),hR=Pc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return hR.CertificationStatusEnumeration}});var yR=Fp(),pR=Bp(),vR=Gp(),SR=Wp(),mR=Vp(),_R=Yp(),OR=Jp(),TR=ev(),ER=rv(),CR=Ac(),gR=iv(),bR=vv(),PR=mv();O.entryPoint=PR;var AR=Ov();O.eventSeries=Ev();var wR=wc(),RR=Rc(),MR=Pv(),IR=wv(),qR=Mv(),NR=qv(),jR=jv(),xR=Mc(),UR=Fv(),DR=Bv();O.offer=Gv();O.aggregateOffer=Wv();O.eventOffer=Vv();var LR=Yv(),FR=Zv(),kR=Ic();O.order=qc();var BR=Nc(),$R=rS(),GR=jc(),KR=iS(),WR=aS(),HR=uS(),VR=xc(),zR=fS(),YR=yS(),QR=Uc(),ZR=SS(),JR=_S(),XR=TS(),eM=CS(),tM=bS(),rM=Dc(),nM=wS();O.potentialAction=nM;var sM=Lc(),iM=IS(),oM=Fc(),aM=kc(),cM=xS();O.project=DS();var uM=FS(),dM=BS(),lM=GS(),fM=WS(),hM=VS(),yM=YS(),pM=Bc(),vM=$c(),SM=lm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return SM.RESERVED_CODE_VALUES}});var mM=hm(),_M=pm(),OM=Sm(),TM=_m(),EM=Tm(),CM=Cm(),gM=bm(),bM=Am(),PM=Kc(),AM=Rm(),wM=zc();O.unitPriceOffer=Im();var RM=Nm(),MM=xm(),IM=Dm(),qM=Fm(),NM=Bm(),jM=Gm(),xM=Wm(),UM=Vm(),DM=Ym(),LM=Zm(),FM=Xm(),kM=t_(),BM=n_(),$M=i_(),GM=a_(),KM=u_(),WM=l_(),HM=h_(),VM=p_(),zM=S_(),YM=__(),QM=T_(),ZM=C_(),JM=b_(),XM=A_(),eI=R_(),tI=I_(),rI=N_(),nI=x_(),sI=D_(),iI=F_(),oI=B_(),aI=G_(),cI=W_(),uI=V_(),dI=Y_(),lI=Z_(),fI=X_(),hI=tO(),yI=nO(),pI=iO(),vI=aO(),SI=uO(),mI=lO(),_I=hO(),OI=pO(),TI=SO(),EI=_O(),CI=TO(),gI=Wc(),bI=CO(),PI=bO(),AI=AO(),wI=RO(),RI=Gc(),MI=Hc(),II=IO(),qI=NO(),NI=Vc(),jI=we();O.errors=VO();O.recipe=QO();O.errorCode=jI.ErrorCode;O.actionStatusType=oR.ActionStatusType;O.actionType=aR.ActionType;var ZO;(function(t){let e;(function(y){y.coaOffer=q0,y.pay=N0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=U0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=x0})(m=y.offer||(y.offer={})),y.invoice=j0,y.ticketedObject=D0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=L0,y.reservation=F0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=k0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=B0})(s=t.check||(t.check={})),t.create=G0;let i;(function(y){let S;(function(m){m.pay=K0,m.reservation=W0})(S=y.confirm||(y.confirm={})),y.inform=H0})(i=t.interact||(t.interact={}));let u;(function(y){y.order=z0,y.pay=Y0,y.refund=Q0})(u=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=Z0,g.order=J0,g.reserveTransaction=X0})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=eR})(w=g.message||(g.message={})),g.order=tR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=rR,y.deleteAction=nR,y.replace=sR,y.update=iR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=$0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=V0})(ZO||(O.action=ZO={}));O.accountTitle=cR;O.additionalProperty=uR;O.aggregation=dR;O.authorization=lR;O.categoryCode=fR;O.clientUser=yR;var JO;(function(t){let e;(function(s){s.softwareApplication=pR,s.webApplication=vR,s.webSite=SR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=mR})(r=t.message||(t.message={})),t.movie=_R,t.noteDigitalDocument=OR;let n;(function(s){s.softwareApplication=TR,s.webApplication=ER})(n=t.softwareApplication||(t.softwareApplication={}))})(JO||(O.creativeWork=JO={}));O.creativeWorkType=CR.CreativeWorkType;O.customer=gR;var XO;(function(t){t.screeningEvent=AR})(XO||(O.event=XO={}));O.encodingFormat=bR;O.eventStatusType=wR.EventStatusType;O.eventType=RR.EventType;O.iam=MR;O.identityProvider=IR;O.invoice=qR;O.itemAvailability=NR.ItemAvailability;O.language=jR;O.merchantReturnPolicy=xR;O.monetaryAmount=UR;O.movieTicketType=DR;var eT;(function(t){t.event=qM,t.eventSeries=NM,t.order=UM,t.reservation=$M,t.payAction=DM,t.refundAction=BM,t.accountTitle=RM,t.categoryCode=MM,t.creativeWork=IM,t.offer=jM,t.offerCatalog=xM,t.person=LM,t.place=FM,t.product=kM,t.task=GM,t.transaction=KM})(eT||(O.notification=eT={}));O.offerCatalog=LR;O.offerItemCondition=FR;O.offerType=kR.OfferType;O.orderStatus=BR.OrderStatus;O.organization=$R;O.organizationType=GR.OrganizationType;O.ownershipInfo=KR;var tT;(function(t){let e;(function(r){r.creditCard=WR,r.movieTicket=HR})(e=t.paymentCard||(t.paymentCard={}))})(tT||(O.paymentMethod=tT={}));O.paymentStatusType=VR.PaymentStatusType;O.permit=zR;O.person=YR;O.personType=QR.PersonType;O.priceCurrency=sM.PriceCurrency;var rT;(function(t){t.entranceGate=ZR,t.movieTheater=JR,t.screeningRoom=XR,t.screeningRoomSection=eM,t.seat=tM})(rT||(O.place=rT={}));O.placeType=rM.PlaceType;var nT;(function(t){t.unitPrice=iM})(nT||(O.priceSpecification=nT={}));O.priceSpecificationType=oM.PriceSpecificationType;O.programMembership=cM;O.product=aM;var sT;(function(t){t.PropertyValueType=uM.PropertyValueType,t.locationFeatureSpecification=dM})(sT||(O.propertyValue=sT={}));O.qualitativeValue=lM;O.quantitativeValue=fM;var iT;(function(t){t.accountingReport=hM})(iT||(O.report=iT={}));var oT;(function(t){t.eventReservation=yM})(oT||(O.reservation=oT={}));O.reservationStatusType=pM.ReservationStatusType;O.reservationType=vM.ReservationType;var aT;(function(t){t.RoleType=mM.RoleType,t.organizationRole=_M})(aT||(O.role=aT={}));O.schedule=OM;O.seller=TM;O.sellerReturnPolicy=EM;var cT;(function(t){t.acceptCOAOffer=WM,t.aggregateOffers=HM,t.aggregateOnSystem=VM,t.aggregateScreeningEvent=zM,t.authorizePayment=YM,t.cancelPendingReservation=QM,t.cancelReservation=ZM,t.checkMovieTicket=JM,t.checkResource=XM,t.createAccountingReport=tI,t.confirmReserveTransaction=eI,t.deletePerson=rI,t.deleteTransaction=nI,t.handleNotification=sI,t.importEventCapacitiesFromCOA=iI,t.importEventsFromCOA=oI,t.importOffersFromCOA=aI,t.invalidatePaymentUrl=cI,t.onAssetTransactionStatusChanged=uI,t.pay=yI,t.publishPaymentUrl=pI,t.refund=vI,t.reserve=SI,t.sendEmailMessage=mI,t.syncResourcesFromCOA=_I,t.triggerWebhook=OI,t.useReservation=TI,t.voidPayment=EI,t.onAuthorizationCreated=dI,t.onEventChanged=lI,t.onResourceDeleted=fI,t.onResourceUpdated=hI})(cT||(O.task=cT={}));var uT;(function(t){t.paymentService=CM,t.webAPI=gM})(uT||(O.service=uT={}));O.serviceChannel=bM;O.sortType=PM.SortType;O.taskName=CI.TaskName;O.taskStatus=gI.TaskStatus;O.thing=AM;var dT;(function(t){t.cancelReservation=bI,t.pay=PI,t.refund=AI,t.reserve=wI})(dT||(O.assetTransaction=dT={}));var lT;(function(t){t.placeOrder=II,t.returnOrder=qI})(lT||(O.transaction=lT={}));O.transactionType=NI.TransactionType;O.transactionStatusType=MI.TransactionStatusType;O.assetTransactionType=RI.AssetTransactionType;O.unitCode=wM.UnitCode});var hT=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ChevreFactory=void 0;Us.ChevreFactory=fT()});var Q=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.factory=void 0;var xI=hT();Object.defineProperty(Ds,"factory",{enumerable:!0,get:function(){return xI.ChevreFactory}})});var pT=o((s2,yT)=>{var Zt=1e3,Jt=Zt*60,Xt=Jt*60,Nt=Xt*24,UI=Nt*7,DI=Nt*365.25;yT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return LI(t);if(r==="number"&&isFinite(t))return e.long?kI(t):FI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function LI(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*DI;case"weeks":case"week":case"w":return r*UI;case"days":case"day":case"d":return r*Nt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Jt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Zt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function FI(t){var e=Math.abs(t);return e>=Nt?Math.round(t/Nt)+"d":e>=Xt?Math.round(t/Xt)+"h":e>=Jt?Math.round(t/Jt)+"m":e>=Zt?Math.round(t/Zt)+"s":t+"ms"}function kI(t){var e=Math.abs(t);return e>=Nt?Ls(t,e,Nt,"day"):e>=Xt?Ls(t,e,Xt,"hour"):e>=Jt?Ls(t,e,Jt,"minute"):e>=Zt?Ls(t,e,Zt,"second"):t+" ms"}function Ls(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var ST=o((i2,vT)=>{function BI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=pT(),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 m=0;m<y.length;m++)S=(S<<5)-S+y.charCodeAt(m),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,m=null,g,w;function R(...I){if(!R.enabled)return;let D=R,C=Number(new Date),M=C-(S||C);D.diff=M,D.prev=S,D.curr=C,S=C,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let U=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(K,j)=>{if(K==="%%")return"%";U++;let B=r.formatters[j];if(typeof B=="function"){let W=I[U];K=B.call(D,W),I.splice(U,1),U--}return K}),r.formatArgs.call(D,I),(D.log||r.log).apply(D,I)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==r.namespaces&&(g=r.namespaces,w=r.enabled(y)),w),set:I=>{m=I}}),typeof r.init=="function"&&r.init(R),R}function n(y,S){let m=r(this.namespace+(typeof S>"u"?":":S)+y);return m.log=this.log,m}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 m of S)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function i(y,S){let m=0,g=0,w=-1,R=0;for(;m<y.length;)if(g<S.length&&(S[g]===y[m]||S[g]==="*"))S[g]==="*"?(w=g,R=m,g++):(m++,g++);else if(w!==-1)g=w+1,R++,m=R;else return!1;for(;g<S.length&&S[g]==="*";)g++;return g===S.length}function u(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}vT.exports=BI});var er=o((Me,Fs)=>{Me.formatArgs=GI;Me.save=KI;Me.load=WI;Me.useColors=$I;Me.storage=HI();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 $I(){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 GI(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fs.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 KI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function WI(){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 HI(){try{return localStorage}catch{}}Fs.exports=ST()(Me);var{formatters:VI}=Fs.exports;VI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ks=o(De=>{"use strict";var zI=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.StubTransporter=De.DefaultTransporter=De.RequestError=De.Transporter=void 0;var YI=zI(er()),mT=(0,YI.default)("cinerino-sdk:transporters"),uu=class{};De.Transporter=uu;var tr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=tr;var du=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return mT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new tr("An unexpected error occurred");if(mT("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 tr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new tr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=du;var lu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=lu});var OT=o(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});var q={"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"},_T=rr.a={classes:q,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":q.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":q.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":q.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":q.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.SERVER_ERROR,RAILGUN_ERROR:527}}},QI=rr.b=_T;rr.a=_T;rr.b=QI});var b=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var TT=OT();Bs.default=TT.b;Bs.status=TT.a});var jt=o((u2,ET)=>{"use strict";ET.exports=TypeError});var CT=o(()=>{});var kr=o((f2,GT)=>{var Tu=typeof Map=="function"&&Map.prototype,fu=Object.getOwnPropertyDescriptor&&Tu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gs=Tu&&fu&&typeof fu.get=="function"?fu.get:null,gT=Tu&&Map.prototype.forEach,Eu=typeof Set=="function"&&Set.prototype,hu=Object.getOwnPropertyDescriptor&&Eu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ks=Eu&&hu&&typeof hu.get=="function"?hu.get:null,bT=Eu&&Set.prototype.forEach,ZI=typeof WeakMap=="function"&&WeakMap.prototype,Dr=ZI?WeakMap.prototype.has:null,JI=typeof WeakSet=="function"&&WeakSet.prototype,Lr=JI?WeakSet.prototype.has:null,XI=typeof WeakRef=="function"&&WeakRef.prototype,PT=XI?WeakRef.prototype.deref:null,eq=Boolean.prototype.valueOf,tq=Object.prototype.toString,rq=Function.prototype.toString,nq=String.prototype.match,Cu=String.prototype.slice,Ct=String.prototype.replace,sq=String.prototype.toUpperCase,AT=String.prototype.toLowerCase,UT=RegExp.prototype.test,wT=Array.prototype.concat,ut=Array.prototype.join,iq=Array.prototype.slice,RT=Math.floor,vu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yu=Object.getOwnPropertySymbols,Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nr||!0)?Symbol.toStringTag:null,DT=Object.prototype.propertyIsEnumerable,MT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function IT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||UT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-RT(-t):RT(t);if(n!==t){var s=String(n),i=Cu.call(e,s.length+1);return Ct.call(s,r,"$&_")+"."+Ct.call(Ct.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ct.call(e,r,"$&_")}var mu=CT(),qT=mu.custom,NT=kT(qT)?qT:null,LT={__proto__:null,double:'"',single:"'"},oq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};GT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(LT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=vt(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return $T(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?IT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?IT(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 _u(e)?"[Array]":"[Object]";var S=gq(i,n);if(typeof s>"u")s=[];else if(BT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=iq.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!jT(e)){var g=pq(e),w=$s(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(kT(e)){var R=nr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Su.call(e);return typeof e=="object"&&!nr?Ur(R):R}if(Tq(e)){for(var I="<"+AT.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)I+=" "+D[C].name+"="+FT(aq(D[C].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+AT.call(String(e.nodeName))+">",I}if(_u(e)){if(e.length===0)return"[]";var M=$s(e,m);return S&&!Cq(M)?"["+Ou(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(uq(e)){var U=$s(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!DT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(wT.call("[cause]: "+m(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(U,", ")+" }"}if(typeof e=="object"&&u){if(NT&&typeof e[NT]=="function"&&mu)return mu(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vq(e)){var k=[];return gT&&gT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),xT("Map",Gs.call(e),k,S)}if(_q(e)){var K=[];return bT&&bT.call(e,function(oe){K.push(m(oe,e))}),xT("Set",Ks.call(e),K,S)}if(Sq(e))return pu("WeakMap");if(Oq(e))return pu("WeakSet");if(mq(e))return pu("WeakRef");if(lq(e))return Ur(m(Number(e)));if(hq(e))return Ur(m(vu.call(e)));if(fq(e))return Ur(eq.call(e));if(dq(e))return Ur(m(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(!cq(e)&&!jT(e)){var j=$s(e,m),B=MT?MT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!B&&Fr&&Object(e)===e&&Fr in e?Cu.call(gt(e),8,-1):W?"Object":"",Y=B||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+($||W?"["+ut.call(wT.call([],$||[],W||[]),": ")+"] ":"");return j.length===0?Te+"{}":S?Te+"{"+Ou(j,S)+"}":Te+"{ "+ut.call(j,", ")+" }"}return String(e)};function FT(t,e,r){var n=r.quoteStyle||e,s=LT[n];return s+t+s}function aq(t){return Ct.call(String(t),/"/g,"&quot;")}function xt(t){return!Fr||!(typeof t=="object"&&(Fr in t||typeof t[Fr]<"u"))}function _u(t){return gt(t)==="[object Array]"&&xt(t)}function cq(t){return gt(t)==="[object Date]"&&xt(t)}function jT(t){return gt(t)==="[object RegExp]"&&xt(t)}function uq(t){return gt(t)==="[object Error]"&&xt(t)}function dq(t){return gt(t)==="[object String]"&&xt(t)}function lq(t){return gt(t)==="[object Number]"&&xt(t)}function fq(t){return gt(t)==="[object Boolean]"&&xt(t)}function kT(t){if(nr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Su)return!1;try{return Su.call(t),!0}catch{}return!1}function hq(t){if(!t||typeof t!="object"||!vu)return!1;try{return vu.call(t),!0}catch{}return!1}var yq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return yq.call(t,e)}function gt(t){return tq.call(t)}function pq(t){if(t.name)return t.name;var e=nq.call(rq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function BT(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 vq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{Ks.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Sq(t){if(!Dr||!t||typeof t!="object")return!1;try{Dr.call(t,Dr);try{Lr.call(t,Lr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function mq(t){if(!PT||!t||typeof t!="object")return!1;try{return PT.call(t),!0}catch{}return!1}function _q(t){if(!Ks||!t||typeof t!="object")return!1;try{Ks.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Oq(t){if(!Lr||!t||typeof t!="object")return!1;try{Lr.call(t,Lr);try{Dr.call(t,Dr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Tq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function $T(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return $T(Cu.call(t,0,e.maxStringLength),e)+n}var s=oq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Eq);return FT(i,"single",e)}function Eq(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 Ur(t){return"Object("+t+")"}function pu(t){return t+" { ? }"}function xT(t,e,r,n){var s=n?Ou(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Cq(t){for(var e=0;e<t.length;e++)if(BT(t[e],`
2
- `)>=0)return!1;return!0}function gq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function Ou(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 Vh=o(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0})});var ft=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var GA;(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"})(GA=bn.ErrorCode||(bn.ErrorCode={}))});var Tt=o((fF,zh)=>{"use strict";zh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?KA:WA);function KA(t,e){return t.__proto__=e,t}function WA(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(br=>{"use strict";var HA=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 VA=(function(t){HA(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);br.WaiterError=VA});var Yh=o(Pr=>{"use strict";var zA=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 YA=Tt(),QA=ft(),ZA=ht(),JA=(function(t){zA(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,QA.ErrorCode.Argument,i)||this,s.argumentName=r,YA(s,e.prototype),s}return e})(ZA.WaiterError);Pr.ArgumentError=JA});var Qh=o(Ar=>{"use strict";var XA=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 ew=Tt(),tw=ft(),rw=ht(),nw=(function(t){XA(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,tw.ErrorCode.Argument,i)||this,s.argumentName=r,ew(s,e.prototype),s}return e})(rw.WaiterError);Ar.ArgumentNullError=nw});var Zh=o(wr=>{"use strict";var sw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var iw=Tt(),ow=ft(),aw=ht(),cw=(function(t){sw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,ow.ErrorCode.Forbidden,s)||this,iw(n,e.prototype),n}return e})(aw.WaiterError);wr.ForbiddenError=cw});var Jh=o(Rr=>{"use strict";var uw=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 dw=Tt(),lw=ft(),fw=ht(),hw=(function(t){uw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,lw.ErrorCode.NotFound,i)||this,s.entityName=r,dw(s,e.prototype),s}return e})(fw.WaiterError);Rr.NotFoundError=hw});var Xh=o(Mr=>{"use strict";var yw=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 pw=Tt(),vw=ft(),Sw=ht(),mw=(function(t){yw(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,vw.ErrorCode.RateLimitExceeded,s)||this,pw(n,e.prototype),n}return e})(Sw.WaiterError);Mr.RateLimitExceededError=mw});var ey=o(Ir=>{"use strict";var _w=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 Ow=Tt(),Tw=ft(),Ew=ht(),Cw=(function(t){_w(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,Tw.ErrorCode.ServiceUnavailable,s)||this,Ow(n,e.prototype),n}return e})(Ew.WaiterError);Ir.ServiceUnavailableError=Cw});var ty=o(qr=>{"use strict";var gw=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var bw=Tt(),Pw=ft(),Aw=ht(),ww=(function(t){gw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Pw.ErrorCode.Unauthorized,s)||this,bw(n,e.prototype),n}return e})(Aw.WaiterError);qr.UnauthorizedError=ww});var ry=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Rw=Yh();at.Argument=Rw.ArgumentError;var Mw=Qh();at.ArgumentNull=Mw.ArgumentNullError;var Iw=Zh();at.Forbidden=Iw.ForbiddenError;var qw=Jh();at.NotFound=qw.NotFoundError;var Nw=Xh();at.RateLimitExceeded=Nw.RateLimitExceededError;var jw=ey();at.ServiceUnavailable=jw.ServiceUnavailableError;var xw=ty();at.Unauthorized=xw.UnauthorizedError;var Uw=ht();at.Waiter=Uw.WaiterError});var sy=o(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0})});var oy=o(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0})});var cy=o(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0})});var dy=o(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0})});var ly=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Dw=Vh();yt.client=Dw;var Lw=ft();yt.errorCode=Lw.ErrorCode;var Fw=ry();yt.errors=Fw;var kw=sy();yt.passport=kw;var Bw=oy();yt.project=Bw;var $w=cy();yt.rule=$w;var Gw=dy();yt.ruleSet=Gw});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.FlgMember=void 0;var yy;(function(t){t.NonMember="0",t.Member="1"})(yy||(Pn.FlgMember=yy={}))});var Sy=o(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0})});var _y=o(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0})});var Ty=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var Oy;(function(t){t.SeatReservation="SeatReservation"})(Oy||(An.ObjectType=Oy={}))});var Ey=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ObjectType=void 0;var Kw=Ty();Object.defineProperty(wn,"ObjectType",{enumerable:!0,get:function(){return Kw.ObjectType}})});var by=o(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ServiceIdentifier=Ht.ResultType=void 0;var Cy;(function(t){t.Payment="Payment"})(Cy||(Ht.ResultType=Cy={}));var gy;(function(t){t.Chevre="Chevre"})(gy||(Ht.ServiceIdentifier=gy={}))});var Ay=o(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0})});var Ry=o(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0})});var Iy=o(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0})});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 Fy=o(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0})});var By=o(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0})});var Gy=o($y=>{"use strict";Object.defineProperty($y,"__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 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 fp=o(It=>{"use strict";var Ww=It&&It.__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]})),Hw=It&&It.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ww(e,t,r)};Object.defineProperty(It,"__esModule",{value:!0});Hw(lp(),It)});var yp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ObjectAsTransactionSpecifyingMethod=void 0;var hp;(function(t){t.Id="Id",t.AgentId="AgentId"})(hp||(Rn.ObjectAsTransactionSpecifyingMethod=hp={}))});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var mp=o(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0})});var Op=o(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0})});var Ep=o(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0})});var Cp=o(pt=>{"use strict";var Vw=pt&&pt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Vw(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});Pc(mp(),pt);Pc(Op(),pt);Pc(Ep(),pt)});var bp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ActionStatusType=void 0;var gp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(gp||(Mn.ActionStatusType=gp={}))});var Ap=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ActionType=void 0;var Pp;(function(t){t.AddAction="AddAction",t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.DeleteAction="DeleteAction",t.InformAction="InformAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReplaceAction="ReplaceAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.UpdateAction="UpdateAction",t.UseAction="UseAction"})(Pp||(In.ActionType=Pp={}))});var Rp=o(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0})});var Ip=o(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0})});var Np=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AggregationType=void 0;var qp;(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.AggregateUseAction="AggregateUseAction"})(qp||(qn.AggregationType=qp={}))});var xp=o(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0})});var Dp=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.CategorySetIdentifier=void 0;var Up;(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"})(Up||(Nn.CategorySetIdentifier=Up={}))});var Ac=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CertificationStatusEnumeration=void 0;var Lp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Lp||(jn.CertificationStatusEnumeration=Lp={}))});var kp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var $p=o(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0})});var Kp=o(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0})});var Hp=o(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0})});var zp=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.AboutIdentifier=void 0;var Vp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Vp||(xn.AboutIdentifier=Vp={}))});var Qp=o(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0})});var Xp=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.PermissionGranteeAudienceType=Vt.DigitalDocumentPermissionType=void 0;var Zp;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(Zp||(Vt.DigitalDocumentPermissionType=Zp={}));var Jp;(function(t){t.Public="public"})(Jp||(Vt.PermissionGranteeAudienceType=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var nv=o(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0})});var wc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CreativeWorkType=void 0;var sv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(sv||(Un.CreativeWorkType=sv={}))});var ov=o(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var Sv=o(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.Video=ae.Text=ae.Multipart=ae.Model=ae.Message=ae.Image=ae.Example=ae.Font=ae.Audio=ae.Application=void 0;var av;(function(t){t.pdf="application/pdf",t.json="application/json"})(av||(ae.Application=av={}));var cv;cv||(ae.Audio=cv={});var uv;uv||(ae.Font=uv={});var dv;dv||(ae.Example=dv={});var lv;lv||(ae.Image=lv={});var fv;fv||(ae.Message=fv={});var hv;hv||(ae.Model=hv={});var yv;yv||(ae.Multipart=yv={});var pv;(function(t){t.csv="text/csv"})(pv||(ae.Text=pv={}));var vv;vv||(ae.Video=vv={})});var _v=o(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var Tv=o(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0})});var Cv=o(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var Rc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EventStatusType=void 0;var gv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(gv||(Dn.EventStatusType=gv={}))});var Mc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.EventType=void 0;var bv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(bv||(Ln.EventType=bv={}))});var Av=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Rv=o(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0})});var Iv=o(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0})});var Nv=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ItemAvailability=void 0;var qv;(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"})(qv||(Fn.ItemAvailability=qv={}))});var xv=o(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0})});var Ic=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Uv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Uv||(Et.RefundTypeEnumeration=Uv={}));var Dv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Dv||(Et.ReturnFeesEnumeration=Dv={}));var Lv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Lv||(Et.MerchantReturnEnumeration=Lv={}))});var kv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var $v=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.CategorySetIdentifier=void 0;var Bv;(function(t){t.MovieTicketType="MovieTicketType"})(Bv||(kn.CategorySetIdentifier=Bv={}))});var Kv=o(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0})});var Hv=o(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});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(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OfferItemCondition=void 0;var Zv;(function(t){t.NewCondition="NewCondition"})(Zv||(Bn.OfferItemCondition=Zv={}))});var qc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OfferType=void 0;var Xv;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(Xv||($n.OfferType=Xv={}))});var tS=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var eS;(function(t){t.Order="Order"})(eS||(Gn.OrderType=eS={}))});var Nc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrderType=void 0;var zw=tS();Object.defineProperty(Kn,"OrderType",{enumerable:!0,get:function(){return zw.OrderType}})});var jc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.OrderStatus=void 0;var rS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(rS||(Wn.OrderStatus=rS={}))});var sS=o(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0})});var xc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.OrganizationType=void 0;var iS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(iS||(Hn.OrganizationType=iS={}))});var aS=o(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0})});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var lS=o(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0})});var Uc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PaymentStatusType=void 0;var fS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(fS||(Vn.PaymentStatusType=fS={}))});var yS=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PermitType=void 0;var hS;(function(t){t.Permit="Permit"})(hS||(zn.PermitType=hS={}))});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var Dc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PersonType=void 0;var SS;(function(t){t.Person="Person"})(SS||(Yn.PersonType=SS={}))});var _S=o(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0})});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});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 AS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var Lc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PlaceType=void 0;var wS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(wS||(Qn.PlaceType=wS={}))});var MS=o(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0})});var Fc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PriceCurrency=void 0;var IS;(function(t){t.JPY="JPY"})(IS||(Zn.PriceCurrency=IS={}))});var NS=o(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0})});var kc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.PriceSpecificationType=void 0;var jS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(jS||(Jn.PriceSpecificationType=jS={}))});var Bc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ProductType=void 0;var xS;(function(t){t.EventService="EventService",t.Product="Product"})(xS||(Xn.ProductType=xS={}))});var DS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ProgramMembershipType=void 0;var US;(function(t){t.ProgramMembership="ProgramMembership"})(US||(es.ProgramMembershipType=US={}))});var FS=o(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0})});var BS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.PropertyValueType=void 0;var kS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(kS||(ts.PropertyValueType=kS={}))});var GS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var WS=o(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0})});var VS=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.StringValue=void 0;var HS;(function(t){t.Infinity="Infinity"})(HS||(rs.StringValue=HS={}))});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 $c=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ReservationStatusType=void 0;var JS;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(JS||(ns.ReservationStatusType=JS={}))});var Gc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ReservationType=void 0;var XS;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(XS||(ss.ReservationType=XS={}))});var Kc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.AssetTransactionType=void 0;var em;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(em||(is.AssetTransactionType=em={}))});var Wc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.SortType=void 0;var tm;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(tm||(os.SortType=tm={}))});var Hc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TaskStatus=void 0;var rm;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(rm||(as.TaskStatus=rm={}))});var Vc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TransactionStatusType=void 0;var nm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(nm||(cs.TransactionStatusType=nm={}))});var zc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TransactionType=void 0;var sm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(sm||(us.TransactionType=sm={}))});var Yc=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.UnitCode=void 0;var im;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(im||(ds.UnitCode=im={}))});var hm=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RESERVED_CODE_VALUES=void 0;var ls=Kc(),om=Ac(),qt=wc(),fs=Rc(),am=Mc(),ct=Ic(),cm=qc(),Yw=Nc(),zt=jc(),Qc=xc(),Nr=Uc(),Qw=Dc(),Yt=Lc(),Zw=Fc(),jr=kc(),um=Bc(),hs=$c(),dm=Gc(),lm=Wc(),xr=Hc(),ys=Vc(),fm=zc(),ps=Yc();vs.RESERVED_CODE_VALUES=["AccountTitle",ls.AssetTransactionType.CancelReservation,"MoneyTransfer",ls.AssetTransactionType.Pay,ls.AssetTransactionType.Refund,ls.AssetTransactionType.Reserve,"Authorization",om.CertificationStatusEnumeration.CertificationActive,om.CertificationStatusEnumeration.CertificationInactive,qt.CreativeWorkType.Certification,"Comment",qt.CreativeWorkType.EmailMessage,qt.CreativeWorkType.Movie,qt.CreativeWorkType.NoteDigitalDocument,qt.CreativeWorkType.SoftwareApplication,qt.CreativeWorkType.WebApplication,qt.CreativeWorkType.WebSite,"Event",fs.EventStatusType.EventCancelled,fs.EventStatusType.EventPostponed,fs.EventStatusType.EventRescheduled,fs.EventStatusType.EventScheduled,am.EventType.ScreeningEvent,am.EventType.ScreeningEventSeries,ct.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ct.MerchantReturnEnumeration.MerchantReturnNotPermitted,ct.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ct.MerchantReturnEnumeration.MerchantReturnUnspecified,ct.RefundTypeEnumeration.ExchangeRefund,ct.RefundTypeEnumeration.FullRefund,ct.RefundTypeEnumeration.StoreCreditRefund,ct.ReturnFeesEnumeration.FreeReturn,ct.ReturnFeesEnumeration.RestockingFees,ct.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",cm.OfferType.AggregateOffer,cm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Yw.OrderType.Order,zt.OrderStatus.OrderCancelled,zt.OrderStatus.OrderDelivered,zt.OrderStatus.OrderInTransit,zt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",zt.OrderStatus.OrderProcessing,zt.OrderStatus.OrderReturned,Qc.OrganizationType.Corporation,Qc.OrganizationType.Organization,Qc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,Qw.PersonType.Person,Yt.PlaceType.AggregatePlace,Yt.PlaceType.MovieTheater,Yt.PlaceType.Place,Yt.PlaceType.ScreeningRoom,Yt.PlaceType.ScreeningRoomSection,Yt.PlaceType.Seat,Zw.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,um.ProductType.EventService,um.ProductType.Product,hs.ReservationStatusType.ReservationCancelled,hs.ReservationStatusType.ReservationConfirmed,hs.ReservationStatusType.ReservationPending,"ReservationHold",hs.ReservationStatusType.ReservationPending,"BusReservation",dm.ReservationType.EventReservation,dm.ReservationType.ReservationPackage,lm.SortType.Ascending,lm.SortType.Descending,xr.TaskStatus.Aborted,xr.TaskStatus.Executed,xr.TaskStatus.Ready,xr.TaskStatus.Running,xr.TaskStatus.Expired,ys.TransactionStatusType.Canceled,ys.TransactionStatusType.Confirmed,ys.TransactionStatusType.Expired,ys.TransactionStatusType.InProgress,fm.TransactionType.PlaceOrder,fm.TransactionType.ReturnOrder,ps.UnitCode.Ann,ps.UnitCode.C62,ps.UnitCode.Day,ps.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var pm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RoleType=void 0;var ym;(function(t){t.OrganizationRole="OrganizationRole"})(ym||(Ss.RoleType=ym={}))});var Sm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.RoleName=void 0;var vm;(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"})(vm||(ms.RoleName=vm={}))});var _m=o(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0})});var Tm=o(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0})});var Cm=o(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0})});var bm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.PaymentServiceType=void 0;var gm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(gm||(_s.PaymentServiceType=gm={}))});var Am=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.Identifier=void 0;var Pm;(function(t){t.COA="COA",t.Chevre="Chevre"})(Pm||(Os.Identifier=Pm={}))});var Rm=o(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0})});var Im=o(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0})});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 Fm=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Bm=o(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0})});var Gm=o($m=>{"use strict";Object.defineProperty($m,"__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 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 A_=o(P_=>{"use strict";Object.defineProperty(P_,"__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 G_=o($_=>{"use strict";Object.defineProperty($_,"__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 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(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.TaskName=void 0;var EO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AccountMoneyTransfer="accountMoneyTransfer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelAccountMoneyTransfer="cancelAccountMoneyTransfer",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeletePerson="deletePerson",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"})(EO||(Ts.TaskName=EO={}))});var bO=o(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0})});var AO=o(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});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(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.Reason=void 0;var jO;(function(t){t.Customer="Customer",t.Seller="Seller"})(jO||(Es.Reason=jO={}))});var we=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ErrorCode=void 0;var UO;(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"})(UO||(Cs.ErrorCode=UO={}))});var Re=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ChevreError=void 0;var Zc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};gs.ChevreError=Zc});var DO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.AlreadyInUseError=void 0;var Jw=we(),Xw=Re(),Jc=class extends Xw.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(Jw.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};bs.AlreadyInUseError=Jc});var LO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ArgumentError=void 0;var e0=we(),t0=Re(),Xc=class extends t0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(e0.ErrorCode.Argument,n),this.argumentName=e}};Ps.ArgumentError=Xc});var FO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ArgumentNullError=void 0;var r0=we(),n0=Re(),eu=class extends n0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(r0.ErrorCode.ArgumentNull,n),this.argumentName=e}};As.ArgumentNullError=eu});var kO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.ForbiddenError=void 0;var s0=we(),i0=Re(),tu=class extends i0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(s0.ErrorCode.Forbidden,r)}};ws.ForbiddenError=tu});var BO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.GatewayTimeoutError=void 0;var o0=we(),a0=Re(),ru=class extends a0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(o0.ErrorCode.GatewayTimeout,r)}};Rs.GatewayTimeoutError=ru});var $O=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.InternalError=void 0;var c0=we(),u0=Re(),nu=class extends u0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(c0.ErrorCode.Internal,r)}};Ms.InternalError=nu});var GO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.NotFoundError=void 0;var d0=we(),l0=Re(),su=class extends l0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(d0.ErrorCode.NotFound,n),this.entityName=e}};Is.NotFoundError=su});var KO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.NotImplementedError=void 0;var f0=we(),h0=Re(),iu=class extends h0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(f0.ErrorCode.NotImplemented,r)}};qs.NotImplementedError=iu});var WO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.RateLimitExceededError=void 0;var y0=we(),p0=Re(),ou=class extends p0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(y0.ErrorCode.RateLimitExceeded,r)}};Ns.RateLimitExceededError=ou});var HO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.ServiceUnavailableError=void 0;var v0=we(),S0=Re(),au=class extends S0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(v0.ErrorCode.ServiceUnavailable,r)}};js.ServiceUnavailableError=au});var VO=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.UnauthorizedError=void 0;var m0=we(),_0=Re(),cu=class extends _0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(m0.ErrorCode.Unauthorized,r)}};xs.UnauthorizedError=cu});var zO=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.UnknownError=void 0;var O0=we(),T0=Re(),uu=class extends T0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(O0.ErrorCode.Unknown,r)}};Us.UnknownError=uu});var YO=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 E0=DO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return E0.AlreadyInUseError}});var C0=LO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return C0.ArgumentError}});var g0=FO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return g0.ArgumentNullError}});var b0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return b0.ChevreError}});var P0=kO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return P0.ForbiddenError}});var A0=BO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return A0.GatewayTimeoutError}});var w0=$O();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return w0.InternalError}});var R0=GO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return R0.NotFoundError}});var M0=KO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return M0.NotImplementedError}});var I0=WO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return I0.RateLimitExceededError}});var q0=HO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return q0.ServiceUnavailableError}});var N0=VO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return N0.UnauthorizedError}});var j0=zO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return j0.UnknownError}})});var JO=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.StepIdentifier=Qt.RecipeCategory=void 0;var QO;(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"})(QO||(Qt.RecipeCategory=QO={}));var ZO;(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"})(ZO||(Qt.StepIdentifier=ZO={}))});var yT=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=ly();O.cognito=hy();var x0=py(),U0=Sy(),D0=_y(),L0=Ey(),F0=by(),k0=Ay(),B0=Ry(),$0=Iy(),G0=Ny(),K0=xy(),W0=Dy(),H0=Fy(),V0=By(),z0=Gy(),Y0=Wy(),Q0=Vy(),Z0=Yy(),J0=Zy(),X0=Xy(),eR=tp(),tR=np(),rR=ip(),nR=ap(),sR=up(),iR=fp(),oR=yp(),aR=vp(),cR=Cp(),uR=bp(),dR=Ap(),lR=Rp(),fR=Ip(),hR=Np(),yR=xp(),pR=Dp(),vR=Ac();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return vR.CertificationStatusEnumeration}});var SR=kp(),mR=$p(),_R=Kp(),OR=Hp(),TR=zp(),ER=Qp(),CR=Xp(),gR=tv(),bR=nv(),PR=wc(),AR=ov(),wR=Sv(),RR=_v();O.entryPoint=RR;var MR=Tv();O.eventSeries=Cv();var IR=Rc(),qR=Mc(),NR=Av(),jR=Rv(),xR=Iv(),UR=Nv(),DR=xv(),LR=Ic(),FR=kv(),kR=$v();O.offer=Kv();O.aggregateOffer=Hv();O.eventOffer=zv();var BR=Qv(),$R=Jv(),GR=qc();O.order=Nc();var KR=jc(),WR=sS(),HR=xc(),VR=aS(),zR=uS(),YR=lS(),QR=Uc(),ZR=yS(),JR=vS(),XR=Dc(),eM=_S(),tM=TS(),rM=CS(),nM=bS(),sM=AS(),iM=Lc(),oM=MS();O.potentialAction=oM;var aM=Fc(),cM=NS(),uM=kc(),dM=Bc(),lM=DS();O.project=FS();var fM=BS(),hM=GS(),yM=WS(),pM=VS(),vM=YS(),SM=ZS(),mM=$c(),_M=Gc(),OM=hm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return OM.RESERVED_CODE_VALUES}});var TM=pm(),EM=Sm(),CM=_m(),gM=Tm(),bM=Cm(),PM=bm(),AM=Am(),wM=Rm(),RM=Wc(),MM=Im(),IM=Yc();O.unitPriceOffer=Nm();var qM=xm(),NM=Dm(),jM=Fm(),xM=Bm(),UM=Gm(),DM=Wm(),LM=Vm(),FM=Ym(),kM=Zm(),BM=Xm(),$M=t_(),GM=n_(),KM=i_(),WM=a_(),HM=u_(),VM=l_(),zM=h_(),YM=p_(),QM=S_(),ZM=__(),JM=T_(),XM=C_(),eI=b_(),tI=A_(),rI=R_(),nI=I_(),sI=N_(),iI=x_(),oI=D_(),aI=F_(),cI=B_(),uI=G_(),dI=W_(),lI=V_(),fI=Y_(),hI=Z_(),yI=X_(),pI=tO(),vI=nO(),SI=iO(),mI=aO(),_I=uO(),OI=lO(),TI=hO(),EI=pO(),CI=SO(),gI=_O(),bI=TO(),PI=CO(),AI=Hc(),wI=bO(),RI=AO(),MI=RO(),II=IO(),qI=Kc(),NI=Vc(),jI=NO(),xI=xO(),UI=zc(),DI=we();O.errors=YO();O.recipe=JO();O.errorCode=DI.ErrorCode;O.actionStatusType=uR.ActionStatusType;O.actionType=dR.ActionType;var XO;(function(t){let e;(function(y){y.coaOffer=x0,y.pay=U0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=F0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=L0})(m=y.offer||(y.offer={})),y.invoice=D0,y.ticketedObject=k0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=B0,y.reservation=$0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=G0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=K0})(s=t.check||(t.check={})),t.create=H0;let i;(function(y){let S;(function(m){m.pay=V0,m.reservation=z0})(S=y.confirm||(y.confirm={})),y.inform=Y0})(i=t.interact||(t.interact={}));let u;(function(y){y.order=Z0,y.pay=J0,y.refund=X0})(u=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=eR,g.order=tR,g.reserveTransaction=rR})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=nR})(w=g.message||(g.message={})),g.order=sR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=iR,y.deleteAction=oR,y.replace=aR,y.update=cR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=W0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=Q0})(XO||(O.action=XO={}));O.accountTitle=lR;O.additionalProperty=fR;O.aggregation=hR;O.authorization=yR;O.categoryCode=pR;O.clientUser=SR;var eT;(function(t){let e;(function(s){s.softwareApplication=mR,s.webApplication=_R,s.webSite=OR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=TR})(r=t.message||(t.message={})),t.movie=ER,t.noteDigitalDocument=CR;let n;(function(s){s.softwareApplication=gR,s.webApplication=bR})(n=t.softwareApplication||(t.softwareApplication={}))})(eT||(O.creativeWork=eT={}));O.creativeWorkType=PR.CreativeWorkType;O.customer=AR;var tT;(function(t){t.screeningEvent=MR})(tT||(O.event=tT={}));O.encodingFormat=wR;O.eventStatusType=IR.EventStatusType;O.eventType=qR.EventType;O.iam=NR;O.identityProvider=jR;O.invoice=xR;O.itemAvailability=UR.ItemAvailability;O.language=DR;O.merchantReturnPolicy=LR;O.monetaryAmount=FR;O.movieTicketType=kR;var rT;(function(t){t.event=xM,t.eventSeries=UM,t.order=FM,t.reservation=WM,t.payAction=kM,t.refundAction=KM,t.accountTitle=qM,t.categoryCode=NM,t.creativeWork=jM,t.offer=DM,t.offerCatalog=LM,t.person=BM,t.place=$M,t.product=GM,t.task=HM,t.transaction=VM})(rT||(O.notification=rT={}));O.offerCatalog=BR;O.offerItemCondition=$R;O.offerType=GR.OfferType;O.orderStatus=KR.OrderStatus;O.organization=WR;O.organizationType=HR.OrganizationType;O.ownershipInfo=VR;var nT;(function(t){let e;(function(r){r.creditCard=zR,r.movieTicket=YR})(e=t.paymentCard||(t.paymentCard={}))})(nT||(O.paymentMethod=nT={}));O.paymentStatusType=QR.PaymentStatusType;O.permit=ZR;O.person=JR;O.personType=XR.PersonType;O.priceCurrency=aM.PriceCurrency;var sT;(function(t){t.entranceGate=eM,t.movieTheater=tM,t.screeningRoom=rM,t.screeningRoomSection=nM,t.seat=sM})(sT||(O.place=sT={}));O.placeType=iM.PlaceType;var iT;(function(t){t.unitPrice=cM})(iT||(O.priceSpecification=iT={}));O.priceSpecificationType=uM.PriceSpecificationType;O.programMembership=lM;O.product=dM;var oT;(function(t){t.PropertyValueType=fM.PropertyValueType,t.locationFeatureSpecification=hM})(oT||(O.propertyValue=oT={}));O.qualitativeValue=yM;O.quantitativeValue=pM;var aT;(function(t){t.accountingReport=vM})(aT||(O.report=aT={}));var cT;(function(t){t.eventReservation=SM})(cT||(O.reservation=cT={}));O.reservationStatusType=mM.ReservationStatusType;O.reservationType=_M.ReservationType;var uT;(function(t){t.RoleType=TM.RoleType,t.organizationRole=EM})(uT||(O.role=uT={}));O.schedule=CM;O.seller=gM;O.sellerReturnPolicy=bM;var dT;(function(t){t.acceptCOAOffer=zM,t.aggregateOffers=YM,t.aggregateOnSystem=QM,t.aggregateScreeningEvent=ZM,t.authorizePayment=JM,t.cancelPendingReservation=XM,t.cancelReservation=eI,t.checkMovieTicket=tI,t.checkResource=rI,t.createAccountingReport=sI,t.confirmReserveTransaction=nI,t.deletePerson=iI,t.deleteTransaction=oI,t.handleNotification=aI,t.importEventCapacitiesFromCOA=cI,t.importEventsFromCOA=uI,t.importOffersFromCOA=dI,t.invalidatePaymentUrl=lI,t.onAssetTransactionStatusChanged=fI,t.pay=SI,t.publishPaymentUrl=mI,t.refund=_I,t.reserve=OI,t.sendEmailMessage=TI,t.syncResourcesFromCOA=EI,t.triggerWebhook=CI,t.useReservation=gI,t.voidPayment=bI,t.onAuthorizationCreated=hI,t.onEventChanged=yI,t.onResourceDeleted=pI,t.onResourceUpdated=vI})(dT||(O.task=dT={}));var lT;(function(t){t.paymentService=PM,t.webAPI=AM})(lT||(O.service=lT={}));O.serviceChannel=wM;O.sortType=RM.SortType;O.taskName=PI.TaskName;O.taskStatus=AI.TaskStatus;O.thing=MM;var fT;(function(t){t.cancelReservation=wI,t.pay=RI,t.refund=MI,t.reserve=II})(fT||(O.assetTransaction=fT={}));var hT;(function(t){t.placeOrder=jI,t.returnOrder=xI})(hT||(O.transaction=hT={}));O.transactionType=UI.TransactionType;O.transactionStatusType=NI.TransactionStatusType;O.assetTransactionType=qI.AssetTransactionType;O.unitCode=IM.UnitCode});var pT=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ChevreFactory=void 0;Ds.ChevreFactory=yT()});var Q=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.factory=void 0;var LI=pT();Object.defineProperty(Ls,"factory",{enumerable:!0,get:function(){return LI.ChevreFactory}})});var ST=o((c2,vT)=>{var Zt=1e3,Jt=Zt*60,Xt=Jt*60,Nt=Xt*24,FI=Nt*7,kI=Nt*365.25;vT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return BI(t);if(r==="number"&&isFinite(t))return e.long?GI(t):$I(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function BI(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*kI;case"weeks":case"week":case"w":return r*FI;case"days":case"day":case"d":return r*Nt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Jt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Zt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $I(t){var e=Math.abs(t);return e>=Nt?Math.round(t/Nt)+"d":e>=Xt?Math.round(t/Xt)+"h":e>=Jt?Math.round(t/Jt)+"m":e>=Zt?Math.round(t/Zt)+"s":t+"ms"}function GI(t){var e=Math.abs(t);return e>=Nt?Fs(t,e,Nt,"day"):e>=Xt?Fs(t,e,Xt,"hour"):e>=Jt?Fs(t,e,Jt,"minute"):e>=Zt?Fs(t,e,Zt,"second"):t+" ms"}function Fs(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var _T=o((u2,mT)=>{function KI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=ST(),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 m=0;m<y.length;m++)S=(S<<5)-S+y.charCodeAt(m),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,m=null,g,w;function R(...I){if(!R.enabled)return;let D=R,C=Number(new Date),M=C-(S||C);D.diff=M,D.prev=S,D.curr=C,S=C,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let U=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(K,j)=>{if(K==="%%")return"%";U++;let B=r.formatters[j];if(typeof B=="function"){let W=I[U];K=B.call(D,W),I.splice(U,1),U--}return K}),r.formatArgs.call(D,I),(D.log||r.log).apply(D,I)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==r.namespaces&&(g=r.namespaces,w=r.enabled(y)),w),set:I=>{m=I}}),typeof r.init=="function"&&r.init(R),R}function n(y,S){let m=r(this.namespace+(typeof S>"u"?":":S)+y);return m.log=this.log,m}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 m of S)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function i(y,S){let m=0,g=0,w=-1,R=0;for(;m<y.length;)if(g<S.length&&(S[g]===y[m]||S[g]==="*"))S[g]==="*"?(w=g,R=m,g++):(m++,g++);else if(w!==-1)g=w+1,R++,m=R;else return!1;for(;g<S.length&&S[g]==="*";)g++;return g===S.length}function u(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}mT.exports=KI});var er=o((Me,ks)=>{Me.formatArgs=HI;Me.save=VI;Me.load=zI;Me.useColors=WI;Me.storage=YI();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 WI(){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 HI(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ks.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 VI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function zI(){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 YI(){try{return localStorage}catch{}}ks.exports=_T()(Me);var{formatters:QI}=ks.exports;QI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Bs=o(De=>{"use strict";var ZI=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.StubTransporter=De.DefaultTransporter=De.RequestError=De.Transporter=void 0;var JI=ZI(er()),OT=(0,JI.default)("cinerino-sdk:transporters"),du=class{};De.Transporter=du;var tr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=tr;var lu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return OT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new tr("An unexpected error occurred");if(OT("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 tr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new tr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=lu;var fu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=fu});var ET=o(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});var q={"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"},TT=rr.a={classes:q,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":q.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":q.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":q.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":q.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.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":q.SERVER_ERROR,RAILGUN_ERROR:527}}},XI=rr.b=TT;rr.a=TT;rr.b=XI});var b=o($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var CT=ET();$s.default=CT.b;$s.status=CT.a});var jt=o((h2,gT)=>{"use strict";gT.exports=TypeError});var bT=o(()=>{});var kr=o((v2,WT)=>{var Eu=typeof Map=="function"&&Map.prototype,hu=Object.getOwnPropertyDescriptor&&Eu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ks=Eu&&hu&&typeof hu.get=="function"?hu.get:null,PT=Eu&&Map.prototype.forEach,Cu=typeof Set=="function"&&Set.prototype,yu=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ws=Cu&&yu&&typeof yu.get=="function"?yu.get:null,AT=Cu&&Set.prototype.forEach,eq=typeof WeakMap=="function"&&WeakMap.prototype,Dr=eq?WeakMap.prototype.has:null,tq=typeof WeakSet=="function"&&WeakSet.prototype,Lr=tq?WeakSet.prototype.has:null,rq=typeof WeakRef=="function"&&WeakRef.prototype,wT=rq?WeakRef.prototype.deref:null,nq=Boolean.prototype.valueOf,sq=Object.prototype.toString,iq=Function.prototype.toString,oq=String.prototype.match,gu=String.prototype.slice,Ct=String.prototype.replace,aq=String.prototype.toUpperCase,RT=String.prototype.toLowerCase,LT=RegExp.prototype.test,MT=Array.prototype.concat,ut=Array.prototype.join,cq=Array.prototype.slice,IT=Math.floor,Su=typeof BigInt=="function"?BigInt.prototype.valueOf:null,pu=Object.getOwnPropertySymbols,mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nr||!0)?Symbol.toStringTag:null,FT=Object.prototype.propertyIsEnumerable,qT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function NT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||LT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-IT(-t):IT(t);if(n!==t){var s=String(n),i=gu.call(e,s.length+1);return Ct.call(s,r,"$&_")+"."+Ct.call(Ct.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ct.call(e,r,"$&_")}var _u=bT(),jT=_u.custom,xT=$T(jT)?jT:null,kT={__proto__:null,double:'"',single:"'"},uq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};WT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(kT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=vt(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return KT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?NT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?NT(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 Ou(e)?"[Array]":"[Object]";var S=Aq(i,n);if(typeof s>"u")s=[];else if(GT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=cq.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!UT(e)){var g=mq(e),w=Gs(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if($T(e)){var R=nr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):mu.call(e);return typeof e=="object"&&!nr?Ur(R):R}if(gq(e)){for(var I="<"+RT.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)I+=" "+D[C].name+"="+BT(dq(D[C].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+RT.call(String(e.nodeName))+">",I}if(Ou(e)){if(e.length===0)return"[]";var M=Gs(e,m);return S&&!Pq(M)?"["+Tu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(fq(e)){var U=Gs(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!FT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(MT.call("[cause]: "+m(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(U,", ")+" }"}if(typeof e=="object"&&u){if(xT&&typeof e[xT]=="function"&&_u)return _u(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_q(e)){var k=[];return PT&&PT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),DT("Map",Ks.call(e),k,S)}if(Eq(e)){var K=[];return AT&&AT.call(e,function(oe){K.push(m(oe,e))}),DT("Set",Ws.call(e),K,S)}if(Oq(e))return vu("WeakMap");if(Cq(e))return vu("WeakSet");if(Tq(e))return vu("WeakRef");if(yq(e))return Ur(m(Number(e)));if(vq(e))return Ur(m(Su.call(e)));if(pq(e))return Ur(nq.call(e));if(hq(e))return Ur(m(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(!lq(e)&&!UT(e)){var j=Gs(e,m),B=qT?qT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!B&&Fr&&Object(e)===e&&Fr in e?gu.call(gt(e),8,-1):W?"Object":"",Y=B||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+($||W?"["+ut.call(MT.call([],$||[],W||[]),": ")+"] ":"");return j.length===0?Te+"{}":S?Te+"{"+Tu(j,S)+"}":Te+"{ "+ut.call(j,", ")+" }"}return String(e)};function BT(t,e,r){var n=r.quoteStyle||e,s=kT[n];return s+t+s}function dq(t){return Ct.call(String(t),/"/g,"&quot;")}function xt(t){return!Fr||!(typeof t=="object"&&(Fr in t||typeof t[Fr]<"u"))}function Ou(t){return gt(t)==="[object Array]"&&xt(t)}function lq(t){return gt(t)==="[object Date]"&&xt(t)}function UT(t){return gt(t)==="[object RegExp]"&&xt(t)}function fq(t){return gt(t)==="[object Error]"&&xt(t)}function hq(t){return gt(t)==="[object String]"&&xt(t)}function yq(t){return gt(t)==="[object Number]"&&xt(t)}function pq(t){return gt(t)==="[object Boolean]"&&xt(t)}function $T(t){if(nr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!mu)return!1;try{return mu.call(t),!0}catch{}return!1}function vq(t){if(!t||typeof t!="object"||!Su)return!1;try{return Su.call(t),!0}catch{}return!1}var Sq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return Sq.call(t,e)}function gt(t){return sq.call(t)}function mq(t){if(t.name)return t.name;var e=oq.call(iq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function GT(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 _q(t){if(!Ks||!t||typeof t!="object")return!1;try{Ks.call(t);try{Ws.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Oq(t){if(!Dr||!t||typeof t!="object")return!1;try{Dr.call(t,Dr);try{Lr.call(t,Lr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Tq(t){if(!wT||!t||typeof t!="object")return!1;try{return wT.call(t),!0}catch{}return!1}function Eq(t){if(!Ws||!t||typeof t!="object")return!1;try{Ws.call(t);try{Ks.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Cq(t){if(!Lr||!t||typeof t!="object")return!1;try{Lr.call(t,Lr);try{Dr.call(t,Dr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function gq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function KT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return KT(gu.call(t,0,e.maxStringLength),e)+n}var s=uq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,bq);return BT(i,"single",e)}function bq(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":"")+aq.call(e.toString(16))}function Ur(t){return"Object("+t+")"}function vu(t){return t+" { ? }"}function DT(t,e,r,n){var s=n?Tu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Pq(t){for(var e=0;e<t.length;e++)if(GT(t[e],`
2
+ `)>=0)return!1;return!0}function Aq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function Tu(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+ut.call(t,","+r)+`
4
- `+e.prev}function $s(t,e){var r=_u(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=vt(t,s)?e(t[s],t):""}var i=typeof yu=="function"?yu(t):[],u;if(nr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||nr&&u["$"+f]instanceof Symbol||(UT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof yu=="function")for(var p=0;p<i.length;p++)DT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var WT=o((h2,KT)=>{"use strict";var bq=kr(),Pq=jt(),Ws=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},Aq=function(t,e){if(t){var r=Ws(t,e);return r&&r.value}},wq=function(t,e,r){var n=Ws(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Rq=function(t,e){return t?!!Ws(t,e):!1},Mq=function(t,e){if(t)return Ws(t,e,!0)};KT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Pq("Side channel does not contain "+bq(n))},delete:function(n){var s=Mq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Aq(e,n)},has:function(n){return Rq(e,n)},set:function(n,s){e||(e={next:void 0}),wq(e,n,s)}};return r}});var gu=o((y2,HT)=>{"use strict";HT.exports=Object});var zT=o((p2,VT)=>{"use strict";VT.exports=Error});var QT=o((v2,YT)=>{"use strict";YT.exports=EvalError});var JT=o((S2,ZT)=>{"use strict";ZT.exports=RangeError});var eE=o((m2,XT)=>{"use strict";XT.exports=ReferenceError});var rE=o((_2,tE)=>{"use strict";tE.exports=SyntaxError});var sE=o((O2,nE)=>{"use strict";nE.exports=URIError});var oE=o((T2,iE)=>{"use strict";iE.exports=Math.abs});var cE=o((E2,aE)=>{"use strict";aE.exports=Math.floor});var dE=o((C2,uE)=>{"use strict";uE.exports=Math.max});var fE=o((g2,lE)=>{"use strict";lE.exports=Math.min});var yE=o((b2,hE)=>{"use strict";hE.exports=Math.pow});var vE=o((P2,pE)=>{"use strict";pE.exports=Math.round});var mE=o((A2,SE)=>{"use strict";SE.exports=Number.isNaN||function(e){return e!==e}});var OE=o((w2,_E)=>{"use strict";var Iq=mE();_E.exports=function(e){return Iq(e)||e===0?e:e<0?-1:1}});var EE=o((R2,TE)=>{"use strict";TE.exports=Object.getOwnPropertyDescriptor});var bu=o((M2,CE)=>{"use strict";var Hs=EE();if(Hs)try{Hs([],"length")}catch{Hs=null}CE.exports=Hs});var bE=o((I2,gE)=>{"use strict";var Vs=Object.defineProperty||!1;if(Vs)try{Vs({},"a",{value:1})}catch{Vs=!1}gE.exports=Vs});var AE=o((q2,PE)=>{"use strict";PE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var ME=o((N2,RE)=>{"use strict";var wE=typeof Symbol<"u"&&Symbol,qq=AE();RE.exports=function(){return typeof wE!="function"||typeof Symbol!="function"||typeof wE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qq()}});var Pu=o((j2,IE)=>{"use strict";IE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Au=o((x2,qE)=>{"use strict";var Nq=gu();qE.exports=Nq.getPrototypeOf||null});var xE=o((U2,jE)=>{"use strict";var jq="Function.prototype.bind called on incompatible ",xq=Object.prototype.toString,Uq=Math.max,Dq="[object Function]",NE=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},Lq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Fq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};jE.exports=function(e){var r=this;if(typeof r!="function"||xq.apply(r)!==Dq)throw new TypeError(jq+r);for(var n=Lq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,NE(n,arguments));return Object(y)===y?y:this}return r.apply(e,NE(n,arguments))},u=Uq(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Fq(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 Br=o((D2,UE)=>{"use strict";var kq=xE();UE.exports=Function.prototype.bind||kq});var zs=o((L2,DE)=>{"use strict";DE.exports=Function.prototype.call});var wu=o((F2,LE)=>{"use strict";LE.exports=Function.prototype.apply});var kE=o((k2,FE)=>{"use strict";FE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $E=o((B2,BE)=>{"use strict";var Bq=Br(),$q=wu(),Gq=zs(),Kq=kE();BE.exports=Kq||Bq.call(Gq,$q)});var Ru=o(($2,GE)=>{"use strict";var Wq=Br(),Hq=jt(),Vq=zs(),zq=$E();GE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Hq("a function is required");return zq(Wq,Vq,e)}});var YE=o((G2,zE)=>{"use strict";var Yq=Ru(),KE=bu(),HE;try{HE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Mu=!!HE&&KE&&KE(Object.prototype,"__proto__"),VE=Object,WE=VE.getPrototypeOf;zE.exports=Mu&&typeof Mu.get=="function"?Yq([Mu.get]):typeof WE=="function"?function(e){return WE(e==null?e:VE(e))}:!1});var eC=o((K2,XE)=>{"use strict";var QE=Pu(),ZE=Au(),JE=YE();XE.exports=QE?function(e){return QE(e)}:ZE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return ZE(e)}:JE?function(e){return JE(e)}:null});var rC=o((W2,tC)=>{"use strict";var Qq=Function.prototype.call,Zq=Object.prototype.hasOwnProperty,Jq=Br();tC.exports=Jq.call(Qq,Zq)});var Zs=o((H2,cC)=>{"use strict";var V,Xq=gu(),eN=zT(),tN=QT(),rN=JT(),nN=eE(),ar=rE(),or=jt(),sN=sE(),iN=oE(),oN=cE(),aN=dE(),cN=fE(),uN=yE(),dN=vE(),lN=OE(),oC=Function,Iu=function(t){try{return oC('"use strict"; return ('+t+").constructor;")()}catch{}},$r=bu(),fN=bE(),qu=function(){throw new or},hN=$r?(function(){try{return arguments.callee,qu}catch{try{return $r(arguments,"callee").get}catch{return qu}}})():qu,sr=ME()(),Se=eC(),yN=Au(),pN=Pu(),aC=wu(),Gr=zs(),ir={},vN=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Ut={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":sr&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":ir,"%AsyncGenerator%":ir,"%AsyncGeneratorFunction%":ir,"%AsyncIteratorPrototype%":ir,"%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%":eN,"%eval%":eval,"%EvalError%":tN,"%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%":oC,"%GeneratorFunction%":ir,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sr&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sr||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Xq,"%Object.getOwnPropertyDescriptor%":$r,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":rN,"%ReferenceError%":nN,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sr||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sr&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":sr?Symbol:V,"%SyntaxError%":ar,"%ThrowTypeError%":hN,"%TypedArray%":vN,"%TypeError%":or,"%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%":sN,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Gr,"%Function.prototype.apply%":aC,"%Object.defineProperty%":fN,"%Object.getPrototypeOf%":yN,"%Math.abs%":iN,"%Math.floor%":oN,"%Math.max%":aN,"%Math.min%":cN,"%Math.pow%":uN,"%Math.round%":dN,"%Math.sign%":lN,"%Reflect.getPrototypeOf%":pN};if(Se)try{null.error}catch(t){nC=Se(Se(t)),Ut["%Error.prototype%"]=nC}var nC,SN=function t(e){var r;if(e==="%AsyncFunction%")r=Iu("async function () {}");else if(e==="%GeneratorFunction%")r=Iu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Iu("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 Ut[e]=r,r},sC={__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"]},Kr=Br(),Ys=rC(),mN=Kr.call(Gr,Array.prototype.concat),_N=Kr.call(aC,Array.prototype.splice),iC=Kr.call(Gr,String.prototype.replace),Qs=Kr.call(Gr,String.prototype.slice),ON=Kr.call(Gr,RegExp.prototype.exec),TN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,EN=/\\(\\)?/g,CN=function(e){var r=Qs(e,0,1),n=Qs(e,-1);if(r==="%"&&n!=="%")throw new ar("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ar("invalid intrinsic syntax, expected opening `%`");var s=[];return iC(e,TN,function(i,u,d,f){s[s.length]=d?iC(f,EN,"$1"):u||i}),s},gN=function(e,r){var n=e,s;if(Ys(sC,n)&&(s=sC[n],n="%"+s[0]+"%"),Ys(Ut,n)){var i=Ut[n];if(i===ir&&(i=SN(n)),typeof i>"u"&&!r)throw new or("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new ar("intrinsic "+e+" does not exist!")};cC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new or("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new or('"allowMissing" argument must be a boolean');if(ON(/^%?[^%]*%?$/,e)===null)throw new ar("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=CN(e),s=n.length>0?n[0]:"",i=gN("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],_N(n,mN([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var m=n[y],g=Qs(m,0,1),w=Qs(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new ar("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,u="%"+s+"%",Ys(Ut,u))d=Ut[u];else if(d!=null){if(!(m in d)){if(!r)throw new or("base intrinsic for "+e+" exists, but the property is not available.");return}if($r&&y+1>=n.length){var R=$r(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=Ys(d,m),d=d[m];S&&!f&&(Ut[u]=d)}}return d}});var Nu=o((V2,lC)=>{"use strict";var uC=Zs(),dC=Ru(),bN=dC([uC("%String.prototype.indexOf%")]);lC.exports=function(e,r){var n=uC(e,!!r);return typeof n=="function"&&bN(e,".prototype.")>-1?dC([n]):n}});var ju=o((z2,hC)=>{"use strict";var PN=Zs(),Wr=Nu(),AN=kr(),wN=jt(),fC=PN("%Map%",!0),RN=Wr("Map.prototype.get",!0),MN=Wr("Map.prototype.set",!0),IN=Wr("Map.prototype.has",!0),qN=Wr("Map.prototype.delete",!0),NN=Wr("Map.prototype.size",!0);hC.exports=!!fC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new wN("Side channel does not contain "+AN(n))},delete:function(n){if(e){var s=qN(e,n);return NN(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return RN(e,n)},has:function(n){return e?IN(e,n):!1},set:function(n,s){e||(e=new fC),MN(e,n,s)}};return r}});var pC=o((Y2,yC)=>{"use strict";var jN=Zs(),Xs=Nu(),xN=kr(),Js=ju(),UN=jt(),cr=jN("%WeakMap%",!0),DN=Xs("WeakMap.prototype.get",!0),LN=Xs("WeakMap.prototype.set",!0),FN=Xs("WeakMap.prototype.has",!0),kN=Xs("WeakMap.prototype.delete",!0);yC.exports=cr?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new UN("Side channel does not contain "+xN(s))},delete:function(s){if(cr&&s&&(typeof s=="object"||typeof s=="function")){if(e)return kN(e,s)}else if(Js&&r)return r.delete(s);return!1},get:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?DN(e,s):r&&r.get(s)},has:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?FN(e,s):!!r&&r.has(s)},set:function(s,i){cr&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new cr),LN(e,s,i)):Js&&(r||(r=Js()),r.set(s,i))}};return n}:Js});var SC=o((Q2,vC)=>{"use strict";var BN=jt(),$N=kr(),GN=WT(),KN=ju(),WN=pC(),HN=WN||KN||GN;vC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new BN("Side channel does not contain "+$N(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=HN()),e.set(n,s)}};return r}});var ei=o((Z2,mC)=>{"use strict";var VN=String.prototype.replace,zN=/%20/g,xu={RFC1738:"RFC1738",RFC3986:"RFC3986"};mC.exports={default:xu.RFC3986,formatters:{RFC1738:function(t){return VN.call(t,zN,"+")},RFC3986:function(t){return String(t)}},RFC1738:xu.RFC1738,RFC3986:xu.RFC3986}});var Lu=o((J2,OC)=>{"use strict";var YN=ei(),Uu=Object.prototype.hasOwnProperty,Dt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),QN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Dt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},_C=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},ZN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Dt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Uu.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 Dt(e)&&!Dt(r)&&(s=_C(e,n)),Dt(e)&&Dt(r)?(r.forEach(function(i,u){if(Uu.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return Uu.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},JN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},XN=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}},Du=1024,e1=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Du){for(var p=u.length>=Du?u.slice(f,f+Du):u,y=[],S=0;S<p.length;++S){var m=p.charCodeAt(S);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===YN.RFC1738&&(m===40||m===41)){y[y.length]=p.charAt(S);continue}if(m<128){y[y.length]=dt[m];continue}if(m<2048){y[y.length]=dt[192|m>>6]+dt[128|m&63];continue}if(m<55296||m>=57344){y[y.length]=dt[224|m>>12]+dt[128|m>>6&63]+dt[128|m&63];continue}S+=1,m=65536+((m&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=dt[240|m>>18]+dt[128|m>>12&63]+dt[128|m>>6&63]+dt[128|m&63]}d+=y.join("")}return d},t1=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],y=u[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:u,prop:p}),n.push(y))}return QN(r),e},r1=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},n1=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},s1=function(e,r){return[].concat(e,r)},i1=function(e,r){if(Dt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};OC.exports={arrayToObject:_C,assign:JN,combine:s1,compact:t1,decode:XN,encode:e1,isBuffer:n1,isRegExp:r1,maybeMap:i1,merge:ZN}});var PC=o((X2,bC)=>{"use strict";var EC=SC(),ti=Lu(),Hr=ei(),o1=Object.prototype.hasOwnProperty,CC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,a1=Array.prototype.push,gC=function(t,e){a1.apply(t,lt(e)?e:[e])},c1=Date.prototype.toISOString,TC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ti.encode,encodeValuesOnly:!1,format:TC,formatter:Hr.formatters[TC],indices:!1,serializeDate:function(e){return c1.call(e)},skipNulls:!1,strictNullHandling:!1},u1=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Fu={},d1=function t(e,r,n,s,i,u,d,f,p,y,S,m,g,w,R,I,D,C){for(var M=e,U=C,k=0,K=!1;(U=U.get(Fu))!==void 0&&!K;){var j=U.get(e);if(k+=1,typeof j<"u"){if(j===k)throw new RangeError("Cyclic object value");K=!0}typeof U.get(Fu)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&&lt(M)&&(M=ti.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(u)return p&&!I?p(r,pe.encoder,D,"key",w):r;M=""}if(u1(M)||ti.isBuffer(M)){if(p){var B=I?r:p(r,pe.encoder,D,"key",w);return[R(B)+"="+R(p(M,pe.encoder,D,"value",w))]}return[R(r)+"="+R(String(M))]}var W=[];if(typeof M>"u")return W;var $;if(n==="comma"&&lt(M))I&&p&&(M=ti.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Y=Object.keys(M);$=S?Y.sort(S):Y}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&&lt(M)&&M.length===1?Te+"[]":Te;if(i&&lt(M)&&M.length===0)return oe+"[]";for(var se=0;se<$.length;++se){var ie=$[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var et=m&&f?ie.replace(/\./g,"%2E"):ie,it=lt(M)?typeof n=="function"?n(oe,et):oe:oe+(m?"."+et:"["+et+"]");C.set(e,k);var tt=EC();tt.set(Fu,C),gC(W,t(ee,it,n,s,i,u,d,f,n==="comma"&&I&&lt(M)?null:p,y,S,m,g,w,R,I,D,tt))}}return W},l1=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hr.default;if(typeof e.format<"u"){if(!o1.call(Hr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Hr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in CC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};bC.exports=function(t,e){var r=t,n=l1(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=CC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=EC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||gC(u,d1(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 m=u.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}});var RC=o((e3,wC)=>{"use strict";var ur=Lu(),ku=Object.prototype.hasOwnProperty,f1=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ur.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h1=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},AC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},y1="utf8=%26%2310003%3B",p1="utf8=%E2%9C%93",v1=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===p1?p="utf-8":u[f]===y1&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var y=u[f],S=y.indexOf("]="),m=S===-1?y.indexOf("="):S+1,g,w;m===-1?(g=r.decoder(y,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(g=r.decoder(y.slice(0,m),de.decoder,p,"key"),w=ur.maybeMap(AC(y.slice(m+1),r),function(I){return r.decoder(I,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=h1(w)),y.indexOf("[]=")>-1&&(w=f1(w)?[w]:w);var R=ku.call(n,g);R&&r.duplicates==="combine"?n[g]=ur.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},S1=function(t,e,r,n){for(var s=n?e:AC(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},m1=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),S1(y,r,n,s)}},_1=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||ur.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};wC.exports=function(t,e){var r=_1(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?v1(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=m1(d,n[d],r,typeof t=="string");s=ur.merge(s,f,r)}return r.allowSparse===!0?s:ur.compact(s)}});var Bu=o((t3,MC)=>{"use strict";var O1=PC(),T1=RC(),E1=ei();MC.exports={formats:E1,parse:T1,stringify:O1}});var E=o(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Service=Lt.RESOURCE_SELECTOR_SEPARATOR=void 0;var C1=Bu(),g1=ks();Lt.RESOURCE_SELECTOR_SEPARATOR=":";var $u=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}${Lt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,C1.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new g1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Lt.Service=$u});var IC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CategoryCodeService=void 0;var b1=b(),P1=E(),Gu=class extends P1.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[b1.status.OK]}).then(async r=>({data:await r.json()}))}};ri.CategoryCodeService=Gu});var qC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.CreativeWorkService=void 0;var A1=b(),w1=E(),Ku=class extends w1.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[A1.status.OK]}).then(async r=>({data:await r.json()}))}};ni.CreativeWorkService=Ku});var NC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EmailMessageService=void 0;var R1=b(),M1=E(),Wu=class extends M1.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[R1.status.OK]}).then(async r=>({data:await r.json()}))}};si.EmailMessageService=Wu});var xC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventService=void 0;var St=b(),jC=Q(),I1=E(),Hu=class extends I1.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![jC.factory.eventType.ScreeningEvent].includes(n))throw new jC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e,r){let{id:n,...s}=e,{useDefaultSection:i}=r;return this.fetch({uri:`/events/${encodeURIComponent(String(n))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}};ii.EventService=Hu});var UC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventOfferService=void 0;var q1=b(),N1=E(),j1="/eventOffers",Vu=class extends N1.Service{async findEventOffers(e){return this.fetch({uri:j1,method:"GET",qs:e,expectedStatusCodes:[q1.status.OK]}).then(async r=>r.json())}};oi.EventOfferService=Vu});var DC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventSeriesService=void 0;var x1=b(),U1=E(),zu=class extends U1.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[x1.status.OK]}).then(async r=>r.json())}};ai.EventSeriesService=zu});var LC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.NoteService=void 0;var D1=b(),L1=E(),F1="/creativeWorks/noteDigitalDocument",Yu=class extends L1.Service{async findPublicNotes(e){return this.fetch({uri:F1,method:"GET",qs:e,expectedStatusCodes:[D1.status.OK]}).then(async r=>r.json())}};ci.NoteService=Yu});var FC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PaymentProductService=void 0;var k1=b(),B1=E(),Qu=class extends B1.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:[k1.status.OK]}).then(async i=>i.json())}};ui.PaymentProductService=Qu});var kC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PlaceService=void 0;var dr=b(),Zu=Q(),$1=E(),Ju=class extends $1.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${Zu.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${Zu.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${Zu.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[dr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[dr.status.OK]}).then(async f=>f.json())}};di.PlaceService=Ju});var BC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.HasPOSService=void 0;var G1=b(),K1=Q(),W1=E(),Xu=class extends W1.Service{async search(e){return this.fetch({uri:`/places/${K1.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[G1.status.OK]}).then(async r=>r.json())}};li.HasPOSService=Xu});var $C=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ProductService=void 0;var ed=b(),H1=E(),td=class extends H1.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:[ed.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:[ed.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[ed.status.OK]}).then(async r=>r.json())}};fi.ProductService=td});var GC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SeatOfferService=void 0;var V1=b(),z1=E(),Y1="/seatOffers",rd=class extends z1.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:Y1,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[V1.status.OK]}).then(async u=>u.json())}};hi.SeatOfferService=rd});var KC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SellerService=void 0;var yi=b(),Q1=E(),nd=class extends Q1.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[yi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[yi.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:[yi.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:[yi.status.OK]}).then(async s=>s.json())}};pi.SellerService=nd});var WC=o(Le=>{"use strict";var Z1=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]})),J1=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ne=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"&&Z1(r,e,n[s]);return J1(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var H;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let y;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(y=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let m;m=t.SeatOffer||(t.SeatOffer={});let g;g=t.Seller||(t.Seller={})})(H||(Le.service=H={}));var sd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>Ne(IC()))).CategoryCodeService),new H.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return H.CreativeWork.svc===void 0&&(H.CreativeWork.svc=(await Promise.resolve().then(()=>Ne(qC()))).CreativeWorkService),new H.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return H.EmailMessage.svc===void 0&&(H.EmailMessage.svc=(await Promise.resolve().then(()=>Ne(NC()))).EmailMessageService),new H.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return H.Event.svc===void 0&&(H.Event.svc=(await Promise.resolve().then(()=>Ne(xC()))).EventService),new H.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return H.EventOffer.svc===void 0&&(H.EventOffer.svc=(await Promise.resolve().then(()=>Ne(UC()))).EventOfferService),new H.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return H.EventSeries.svc===void 0&&(H.EventSeries.svc=(await Promise.resolve().then(()=>Ne(DC()))).EventSeriesService),new H.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return H.Note.svc===void 0&&(H.Note.svc=(await Promise.resolve().then(()=>Ne(LC()))).NoteService),new H.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return H.PaymentProduct.svc===void 0&&(H.PaymentProduct.svc=(await Promise.resolve().then(()=>Ne(FC()))).PaymentProductService),new H.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return H.Place.svc===void 0&&(H.Place.svc=(await Promise.resolve().then(()=>Ne(kC()))).PlaceService),new H.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return H.place.HasPOS.svc===void 0&&(H.place.HasPOS.svc=(await Promise.resolve().then(()=>Ne(BC()))).HasPOSService),new H.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return H.Product.svc===void 0&&(H.Product.svc=(await Promise.resolve().then(()=>Ne($C()))).ProductService),new H.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return H.SeatOffer.svc===void 0&&(H.SeatOffer.svc=(await Promise.resolve().then(()=>Ne(GC()))).SeatOfferService),new H.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return H.Seller.svc===void 0&&(H.Seller.svc=(await Promise.resolve().then(()=>Ne(KC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=sd});var HC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.OrderService=void 0;var bt=b(),X1=Q(),ej=E(),id=class extends ej.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${X1.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[bt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}};vi.OrderService=id});var zC=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ReservationService=void 0;var VC=b(),tj=E(),od=class extends tj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[VC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[VC.status.OK]}).then(async n=>n.json())}};Si.ReservationService=od});var YC=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.TokenService=void 0;var rj=E(),ad=class extends rj.Service{};mi.TokenService=ad});var QC=o(Fe=>{"use strict";var nj=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]})),sj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cd=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"&&nj(r,e,n[s]);return sj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var rt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(rt||(Fe.service=rt={}));var ud=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>cd(HC()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>cd(zC()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>cd(YC()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=ud});var JC=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.SyncService=void 0;var ZC=b(),ij=E(),dd=class extends ij.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[ZC.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[ZC.status.ACCEPTED]}).then(async r=>r.json())}};_i.SyncService=dd});var XC=o(ke=>{"use strict";var oj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cj=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&oj(r,e,n[s]);return aj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Vr;(function(t){let e;e=t.Sync||(t.Sync={})})(Vr||(ke.service=Vr={}));var ld=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Vr.Sync.svc===void 0&&(Vr.Sync.svc=(await Promise.resolve().then(()=>cj(JC()))).SyncService),new Vr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=ld});var eg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.CustomerService=void 0;var uj=b(),dj=E(),fd=class extends dj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[uj.status.OK]}).then(async r=>r.json())}};Oi.CustomerService=fd});var tg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.EventService=void 0;var zr=b(),lj=E(),hd=class extends lj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[zr.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:[zr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[zr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[zr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}};Ti.EventService=hd});var rg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventOfferService=void 0;var Ei=b(),fj=E(),Ci="/eventOffers",yd=class extends fj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ci,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ei.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ci,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ei.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ci,method:"GET",qs:e,expectedStatusCodes:[Ei.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ci}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ei.status.CREATED]}).then(async n=>n.json())}};gi.EventOfferService=yd});var ig=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.EventSeriesService=void 0;var ng=b(),hj=E(),sg="/eventSeries",pd=class extends hj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:sg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[ng.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:sg,method:"GET",qs:e,expectedStatusCodes:[ng.status.OK]}).then(async r=>r.json())}};bi.EventSeriesService=pd});var ag=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MeService=void 0;var og=b(),yj=E(),vd=class extends yj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[og.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:[og.status.OK]}).then(async s=>s.json())}};Pi.MeService=vd});var cg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MemberService=void 0;var pj=b(),vj=Q(),Sj=E(),Sd=class extends Sj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${vj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[pj.status.OK]}).then(async r=>r.json())}};Ai.MemberService=Sd});var lg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MovieService=void 0;var ug=b(),mj=E(),dg="/movies",md=class extends mj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:dg,method:"PUT",body:e,expectedStatusCodes:[ug.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:dg,method:"GET",qs:e,expectedStatusCodes:[ug.status.OK]}).then(async r=>r.json())}};wi.MovieService=md});var hg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MovieTheaterService=void 0;var Yr=b(),_j=E(),fg="/movieTheaters",_d="/entranceGates",Od=class extends _j.Service{async findMovieTheaters(e){return this.fetch({uri:fg,method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:fg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:_d,method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ri.MovieTheaterService=Od});var yg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.NoteService=void 0;var Td=b(),Oj=E(),Ed="/creativeWorks/noteDigitalDocument",Cd=class extends Oj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ed,method:"GET",qs:e,expectedStatusCodes:[Td.status.OK]}).then(async r=>r.json())}};Mi.NoteService=Cd});var pg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.NoteAboutOrderService=void 0;var gd=b(),Tj=E(),bd="/orderNotes",Pd=class extends Tj.Service{async upsertByIdentifier(e){await this.fetch({uri:bd,method:"PUT",body:e,expectedStatusCodes:[gd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${bd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}};Ii.NoteAboutOrderService=Pd});var vg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OrderService=void 0;var Qr=b(),Ej=E(),Ad=class extends Ej.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}};qi.OrderService=Ad});var Sg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.PaymentMethodService=void 0;var Cj=b(),gj=E(),bj="/paymentMethods",wd=class extends gj.Service{async findPaymentMethods(e){return this.fetch({uri:bj,method:"GET",qs:e,expectedStatusCodes:[Cj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ni.PaymentMethodService=wd});var _g=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.ProductService=void 0;var Rd=b(),Pj=E(),mg="/products",Aj="/productHasOfferCatalog",Md=class extends Pj.Service{async upsertByProductId(e){await this.fetch({uri:mg,method:"PUT",body:e,expectedStatusCodes:[Rd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:mg,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Aj,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}};ji.ProductService=Md});var Og=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ReservationService=void 0;var Id=b(),wj=E(),qd=class extends wj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Id.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:[Id.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:[Id.status.OK]}).then(async s=>s.json())}};xi.ReservationService=qd});var Cg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.RoomService=void 0;var Tg=b(),Rj=E(),Eg="/rooms",Nd=class extends Rj.Service{async findRooms(e){return this.fetch({uri:Eg,method:"GET",qs:e,expectedStatusCodes:[Tg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Eg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Tg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.RoomService=Nd});var gg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SeatService=void 0;var jd=b(),Mj=E(),xd="/seats",Ud=class extends Mj.Service{async findSeats(e){return this.fetch({uri:xd,method:"GET",qs:e,expectedStatusCodes:[jd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:xd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:xd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.SeatService=Ud});var Ag=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SeatSectionService=void 0;var bg=b(),Ij=E(),Pg="/seatSections",Dd=class extends Ij.Service{async findSeatSections(e){return this.fetch({uri:Pg,method:"GET",qs:e,expectedStatusCodes:[bg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Pg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[bg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.SeatSectionService=Dd});var wg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SellerService=void 0;var qj=b(),Nj=E(),Ld=class extends Nj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[qj.status.OK]}).then(async r=>r.json())}};Fi.SellerService=Ld});var Mg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferService=void 0;var Rg=b(),jj=E(),Fd=class extends jj.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Rg.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:[Rg.status.NO_CONTENT]})}};ki.OfferService=Fd});var Ig=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferCatalogService=void 0;var xj=b(),Uj=E(),kd=class extends Uj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[xj.status.NO_CONTENT]})}};Bi.OfferCatalogService=kd});var Ng=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.OfferCatalogItemService=void 0;var qg=b(),Dj=E(),Bd=class extends Dj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[qg.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:[qg.status.NO_CONTENT]})}};$i.OfferCatalogItemService=Bd});var jg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.CancelReservationAssetTransactionService=void 0;var Lj=b(),Fj=E(),$d=class extends Fj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Lj.status.NO_CONTENT]})}};Gi.CancelReservationAssetTransactionService=$d});var xg=o(Be=>{"use strict";var kj=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bj=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ce=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&kj(r,e,n[s]);return Bj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var N;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let u;u=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Room||(t.Room={});let I;I=t.Seat||(t.Seat={});let D;D=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let U;U=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(j){let B;B=j.CancelReservation||(j.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(N||(Be.service=N={}));var Gd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return N.Customer.svc===void 0&&(N.Customer.svc=(await Promise.resolve().then(()=>ce(eg()))).CustomerService),new N.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return N.Event.svc===void 0&&(N.Event.svc=(await Promise.resolve().then(()=>ce(tg()))).EventService),new N.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return N.EventOffer.svc===void 0&&(N.EventOffer.svc=(await Promise.resolve().then(()=>ce(rg()))).EventOfferService),new N.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return N.EventSeries.svc===void 0&&(N.EventSeries.svc=(await Promise.resolve().then(()=>ce(ig()))).EventSeriesService),new N.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return N.Me.svc===void 0&&(N.Me.svc=(await Promise.resolve().then(()=>ce(ag()))).MeService),new N.Me.svc({...this.options})}async createMemberInstance(e){return N.Member.svc===void 0&&(N.Member.svc=(await Promise.resolve().then(()=>ce(cg()))).MemberService),new N.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return N.Movie.svc===void 0&&(N.Movie.svc=(await Promise.resolve().then(()=>ce(lg()))).MovieService),new N.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return N.MovieTheater.svc===void 0&&(N.MovieTheater.svc=(await Promise.resolve().then(()=>ce(hg()))).MovieTheaterService),new N.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return N.Note.svc===void 0&&(N.Note.svc=(await Promise.resolve().then(()=>ce(yg()))).NoteService),new N.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return N.NoteAboutOrder.svc===void 0&&(N.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(pg()))).NoteAboutOrderService),new N.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return N.Order.svc===void 0&&(N.Order.svc=(await Promise.resolve().then(()=>ce(vg()))).OrderService),new N.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return N.PaymentMethod.svc===void 0&&(N.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(Sg()))).PaymentMethodService),new N.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return N.Product.svc===void 0&&(N.Product.svc=(await Promise.resolve().then(()=>ce(_g()))).ProductService),new N.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return N.Reservation.svc===void 0&&(N.Reservation.svc=(await Promise.resolve().then(()=>ce(Og()))).ReservationService),new N.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return N.Room.svc===void 0&&(N.Room.svc=(await Promise.resolve().then(()=>ce(Cg()))).RoomService),new N.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return N.Seat.svc===void 0&&(N.Seat.svc=(await Promise.resolve().then(()=>ce(gg()))).SeatService),new N.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return N.SeatSection.svc===void 0&&(N.SeatSection.svc=(await Promise.resolve().then(()=>ce(Ag()))).SeatSectionService),new N.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return N.Seller.svc===void 0&&(N.Seller.svc=(await Promise.resolve().then(()=>ce(wg()))).SellerService),new N.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return N.Offer.svc===void 0&&(N.Offer.svc=(await Promise.resolve().then(()=>ce(Mg()))).OfferService),new N.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return N.OfferCatalog.svc===void 0&&(N.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(Ig()))).OfferCatalogService),new N.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return N.OfferCatalogItem.svc===void 0&&(N.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(Ng()))).OfferCatalogItemService),new N.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return N.assetTransaction.CancelReservation.svc===void 0&&(N.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce(jg()))).CancelReservationAssetTransactionService),new N.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Gd});var Ug=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.AccountingReportService=void 0;var $j=b(),Gj=E(),Kd=class extends Gj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[$j.status.OK]}).then(async r=>r.json())}};Ki.AccountingReportService=Kd});var Dg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.AccountTitleService=void 0;var $e=b(),Kj=Q(),Wj=E(),Wd=class extends Wj.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new Kj.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}};Wi.AccountTitleService=Wd});var Lg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.ActionService=void 0;var Hd=b(),Hj=E(),Vd=class extends Hj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Hd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Hd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Hd.status.OK]}).then(async r=>r.json())}};Hi.ActionService=Vd});var Fg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AdditionalPropertyService=void 0;var Zr=b(),Vj=E(),zd=class extends Vj.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};Vi.AdditionalPropertyService=zd});var Bg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateOfferService=void 0;var kg=b(),zj=E(),Yd=class extends zj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[kg.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[kg.status.NO_CONTENT]})}};zi.AggregateOfferService=Yd});var $g=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateReservationService=void 0;var Yj=b(),Qj=E(),Qd=class extends Qj.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};Yi.AggregateReservationService=Qd});var Gg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregationService=void 0;var Zj=b(),Jj=E(),Zd=class extends Jj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Zj.status.OK]}).then(async r=>r.json())}};Qi.AggregationService=Zd});var Kg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AuthorizationService=void 0;var Xj=b(),ex=E(),Jd=class extends ex.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[Xj.status.OK]}).then(async r=>r.json())}};Zi.AuthorizationService=Jd});var Wg=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.CreativeWorkService=void 0;var tx=b(),rx=E(),Xd=class extends rx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tx.status.NO_CONTENT]})}};Ji.CreativeWorkService=Xd});var Hg=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CategoryCodeService=void 0;var Xi=b(),nx=E(),eo="/categoryCodes",el=class extends nx.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=el});var Vg=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerService=void 0;var tl=b(),sx=E(),rl=class extends sx.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[tl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[tl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[tl.status.NO_CONTENT]})}};ro.CustomerService=rl});var zg=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerTypeService=void 0;var ix=b(),ox=E(),nl=class extends ox.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[ix.status.OK]}).then(async r=>r.json())}};no.CustomerTypeService=nl});var Yg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EmailMessageService=void 0;var Jr=b(),ax=E(),sl=class extends ax.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[Jr.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}};so.EmailMessageService=sl});var Zg=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventService=void 0;var Xr=b(),Qg=Q(),cx=E(),il=class extends cx.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:Qg.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Xr.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:[Xr.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:Qg.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Xr.status.NO_CONTENT]})}};io.EventService=il});var eb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var Jg=b(),Xg=Q(),ux=E(),ol=class extends ux.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${Xg.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[Jg.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${Xg.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jg.status.NO_CONTENT]})}};oo.EventSeriesService=ol});var tb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var dx=b(),lx=E(),al=class extends lx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[dx.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=al});var rb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var Pt=b(),fx=E(),cl=class extends fx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[Pt.status.CREATED,Pt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[Pt.status.OK]}).then(async e=>e.json())}};co.IAMService=cl});var nb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),hx=E(),ul=class extends hx.Service{async createIdentity(e){return this.fetch({uri:"/identities",method:"POST",body:e,expectedStatusCodes:[uo.status.CREATED]}).then(async r=>r.json())}async projectIdentityFields(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.status.OK]}).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=ul});var sb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),yx=E(),dl=class extends yx.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=dl});var ib=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var en=b(),px=E(),ll=class extends px.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.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:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};yo.IssuerService=ll});var ab=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var ob=b(),vx=E(),fl=class extends vx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[ob.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:[ob.status.OK]}).then(async r=>r.json())}};po.MeService=fl});var cb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var At=b(),wt=Q(),Sx=E(),hl=class extends Sx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};vo.MemberService=hl});var ub=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var tn=b(),mx=E(),yl=class extends mx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[tn.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:[tn.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:[tn.status.NO_CONTENT]})}};So.MemberProgramService=yl});var db=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var rn=b(),_x=E(),pl=class extends _x.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};mo.MerchantReturnPolicyService=pl});var lb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var Ox=b(),Tx=E(),vl=class extends Tx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Ox.status.OK]}).then(async r=>r.json())}};_o.MessageService=vl});var fb=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=b(),Ex=E(),To="/movieTicketTypes",Sl=class extends Ex.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=Sl});var hb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=b(),Cx=E(),ml=class extends Cx.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=ml});var yb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OwnershipInfoService=void 0;var gx=b(),bx=E(),_l=class extends bx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[gx.status.OK]}).then(async r=>({data:await r.json()}))}};bo.OwnershipInfoService=_l});var pb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PaymentProductService=void 0;var lr=b(),Px=E(),Ol=class extends Px.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[lr.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:[lr.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:[lr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[lr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}};Po.PaymentProductService=Ol});var vb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Ao=b(),Ax=E(),Tl=class extends Ax.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]})}};wo.PaymentServiceChannelService=Tl});var mb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Sb=b(),wx=E(),El=class extends wx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Sb.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:[Sb.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=El});var Ob=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var _b=b(),Rx=E(),Cl=class extends Rx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[_b.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:[_b.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Cl});var Eb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var Tb=b(),Mx=E(),gl=class extends Mx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Tb.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:[Tb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=gl});var Cb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var nn=b(),sn=Q(),Ix=E(),bl=class extends Ix.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${sn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[nn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[nn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}};qo.PlaceService=bl});var gb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Q(),qx=E(),Pl=class extends qx.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=Pl});var bb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),Nx=E(),Al=class extends Nx.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=Al});var Pb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var on=b(),jx=E(),an="/products",wl=class extends jx.Service{async createProduct(e){return this.fetch({uri:an,method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:an,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${an}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[on.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Lo.ProductService=wl});var Ab=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),xx=E(),Rl=class extends xx.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=Rl});var wb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectMakesOfferService=void 0;var Bo=b(),Ux=E(),Ml=class extends Ux.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]})}};$o.ProjectMakesOfferService=Ml});var Rb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ReservationService=void 0;var Dx=b(),Lx=E(),Il=class extends Lx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Dx.status.NO_CONTENT]})}};Go.ReservationService=Il});var Mb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var ql=b(),Fx=E(),Nl=class extends Fx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[ql.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[ql.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[ql.status.NO_CONTENT]})}};Ko.OfferService=Nl});var Ib=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=b(),kx=E(),jl=class extends kx.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Ho.OfferCatalogService=jl});var qb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var cn=b(),Bx=E(),xl=class extends Bx.Service{async create(e){return this.fetch({uri:"/offerCatalogItems",method:"POST",body:e,expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[cn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.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:[cn.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=xl});var Nb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),$x=E(),Ul=class extends $x.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=Ul});var jb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),Gx=E(),Dl=class extends Gx.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=Dl});var xb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Ll=b(),Kx=E(),Fl=class extends Kx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=Fl});var Ub=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var un=b(),Wx=E(),kl=class extends Wx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[un.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[un.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:[un.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:[un.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[un.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=kl});var Db=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TaskService=void 0;var Bl=b(),Hx=E(),$l=class extends Hx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Bl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}};Xo.TaskService=$l});var Lb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TicketService=void 0;var Vx=b(),zx=E(),Gl=class extends zx.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[Vx.status.OK]}).then(async r=>r.json())}};ea.TicketService=Gl});var Fb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.AssetTransactionService=void 0;var Yx=b(),Qx=E(),Kl=class extends Qx.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[Yx.status.OK]}).then(async r=>({data:await r.json()}))}};ta.AssetTransactionService=Kl});var kb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PayAssetTransactionService=void 0;var ra=b(),fr=Q(),Zx=E(),Wl=class extends Zx.Service{async check(e){return this.fetch({uri:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ra.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/${fr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ra.status.OK]}).then(async r=>r.json())}};na.PayAssetTransactionService=Wl});var Bb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ReserveAssetTransactionService=void 0;var sa=b(),Jx=E(),Hl=class extends Jx.Service{async start(e){return this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,expectedStatusCodes:[sa.status.OK]}).then(async r=>r.json())}async startWithNoResponse(e){await this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,qs:{expectsNoContent:"1"},expectedStatusCodes:[sa.status.NO_CONTENT]})}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/reserve/${r}/confirm?transactionNumber=1`:`/assetTransactions/reserve/${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/reserve/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT]})}};ia.ReserveAssetTransactionService=Hl});var $b=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var Xx=E(),Vl=class extends Xx.Service{};oa.TokenService=Vl});var Kb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Gb=b(),eU=Q(),tU=E(),zl=class extends tU.Service{typeOf=eU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Gb.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Gb.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=zl});var Wb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ReturnOrderTransactionService=void 0;var rU=b(),nU=Q(),sU=E(),Yl=class extends sU.Service{typeOf=nU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[rU.status.OK]}).then(async r=>({data:await r.json()}))}};ca.ReturnOrderTransactionService=Yl});var Hb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.TransactionNumberService=void 0;var iU=b(),oU=E(),Ql=class extends oU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[iU.status.CREATED]}).then(async e=>e.json())}};ua.TransactionNumberService=Ql});var Vb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.UserPoolService=void 0;var Zl=b(),aU=E(),Jl=class extends aU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[Zl.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[Zl.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:[Zl.status.OK]}).then(async r=>r.json())}};da.UserPoolService=Jl});var zb=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.WebSiteService=void 0;var la=b(),cU=E(),Xl=class extends cU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[la.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[la.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:[la.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[la.status.NO_CONTENT]})}};fa.WebSiteService=Xl});var Yb=o(Ge=>{"use strict";var uU=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]})),dU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=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"&&uU(r,e,n[s]);return dU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevreConsole=Ge.service=void 0;var _;(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.AdditionalProperty||(t.AdditionalProperty={});let i;i=t.AggregateOffer||(t.AggregateOffer={});let u;u=t.AggregateReservation||(t.AggregateReservation={});let d;d=t.Aggregation||(t.Aggregation={});let f;f=t.Authorization||(t.Authorization={});let p;p=t.CategoryCode||(t.CategoryCode={});let y;y=t.CreativeWork||(t.CreativeWork={});let S;S=t.Customer||(t.Customer={});let m;m=t.CustomerType||(t.CustomerType={});let g;g=t.EmailMessage||(t.EmailMessage={});let w;w=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let I;I=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let D;D=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let U;U=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let j;j=t.MemberProgram||(t.MemberProgram={});let B;B=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let W;W=t.Message||(t.Message={});let $;$=t.MovieTicketType||(t.MovieTicketType={});let Y;Y=t.Order||(t.Order={});let Te;Te=t.OwnershipInfo||(t.OwnershipInfo={});let oe;oe=t.PaymentProduct||(t.PaymentProduct={});let se;se=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let ie;ie=t.PendingReservation||(t.PendingReservation={});let ee;ee=t.Permission||(t.Permission={});let et;et=t.Person||(t.Person={});let it;it=t.Place||(t.Place={});let tt;(function(x){let gr;gr=x.HasPOS||(x.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let c;c=t.Project||(t.Project={});let l;l=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let h;h=t.Reservation||(t.Reservation={});let v;v=t.Offer||(t.Offer={});let T;T=t.OfferCatalog||(t.OfferCatalog={});let P;P=t.OfferCatalogItem||(t.OfferCatalogItem={});let A;A=t.OfferItemCondition||(t.OfferItemCondition={});let L;L=t.Seller||(t.Seller={});let z;z=t.SellerMakesOffer||(t.SellerMakesOffer={});let Z;Z=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let ue;ue=t.Task||(t.Task={});let Pe;Pe=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let Mt;(function(x){let gr;gr=x.Pay||(x.Pay={});let gn;gn=x.Reserve||(x.Reserve={})})(Mt=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Ae;(function(x){let gr;gr=x.PlaceOrder||(x.PlaceOrder={});let gn;gn=x.ReturnOrder||(x.ReturnOrder={})})(Ae=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let Cr;Cr=t.UserPool||(t.UserPool={});let kA;kA=t.WebSite||(t.WebSite={})})(_||(Ge.service=_={}));var ef=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Ug()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(Dg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(Lg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Fg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Bg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F($g()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Gg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Kg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(Wg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Hg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Vg()))).CustomerService),new _.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return _.CustomerType.svc===void 0&&(_.CustomerType.svc=(await Promise.resolve().then(()=>F(zg()))).CustomerTypeService),new _.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return _.EmailMessage.svc===void 0&&(_.EmailMessage.svc=(await Promise.resolve().then(()=>F(Yg()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(Zg()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(eb()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(tb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(rb()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(nb()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(sb()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(ib()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(ab()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(cb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(ub()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(db()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(lb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(fb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(hb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(yb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(pb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(vb()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(mb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Ob()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(Eb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(Cb()))).PlaceService),new _.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return _.place.HasPOS.svc===void 0&&(_.place.HasPOS.svc=(await Promise.resolve().then(()=>F(gb()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(bb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Pb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(Ab()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(wb()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(Rb()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(Mb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Ib()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(qb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Nb()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(jb()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(xb()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Ub()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(Db()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(Lb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Fb()))).AssetTransactionService),new _.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return _.assetTransaction.Pay.svc===void 0&&(_.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F(kb()))).PayAssetTransactionService),new _.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createReserveAssetTransactionInstance(e){return _.assetTransaction.Reserve.svc===void 0&&(_.assetTransaction.Reserve.svc=(await Promise.resolve().then(()=>F(Bb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F($b()))).TokenService),new _.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return _.transaction.PlaceOrder.svc===void 0&&(_.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(Kb()))).PlaceOrderTransactionService),new _.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return _.transaction.ReturnOrder.svc===void 0&&(_.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>F(Wb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Hb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Vb()))).UserPoolService),new _.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return _.WebSite.svc===void 0&&(_.WebSite.svc=(await Promise.resolve().then(()=>F(zb()))).WebSiteService),new _.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Ge.ChevreConsole=ef});var Qb=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PaymentService=void 0;var me=b(),ve=Q(),lU=E(),fU=["awashimakisen-production","awashimakisen-test"],tf=class extends lU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,issuedThrough:u,paymentMethod:d,creditCard:f,method:p,paymentMethodId:y,name:S,additionalProperty:m,ticketToken:g,eventIdsAsOrderedItem:w}=r,{acceptedPaymentMethodOfferIds:R}=s;if((typeof y!="string"||y==="")&&(typeof g!="string"||g===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!fU.includes(this.options.project.id)&&(!Array.isArray(w)||w.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:u,paymentMethod:d,...f!=null?{creditCard:f}:void 0,...typeof S=="string"?{name:S}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{paymentMethodId:y}:void 0,...typeof g=="string"?{ticketToken:g}:void 0,...Array.isArray(m)?{additionalProperty:m}:void 0,...Array.isArray(w)?{eventIdsAsOrderedItem:w}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:R}},qs:{async:!0,purpose:{id:n.id}}}).then(async D=>D.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:u,paymentMethod:d,movieTickets:f,name:p,additionalProperty:y,ticketToken:S}=n,{acceptedPaymentMethodOfferIds:m}=i,{checkedActionId:g}=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:u,paymentMethod:d,...Array.isArray(f)?{movieTickets:f}:void 0,...typeof p=="string"?{name:p}:void 0,...typeof S=="string"?{ticketToken:S}:void 0,...Array.isArray(y)?{additionalProperty:y}:void 0},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{checkedActionId:g,async:!0,purpose:{id:s.id}}}).then(async w=>w.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,creditCard:u,issuedThrough:d,paymentMethod:f,method:p,ticketToken:y,eventIdsAsOrderedItem:S}=r,{acceptedPaymentMethodOfferIds:m}=s;if(typeof y!="string"||y==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(S)||S.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:d,paymentMethod:f,...u!=null?{creditCard:u}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(S)?{eventIdsAsOrderedItem:S}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{async:!0,purpose:{id:n.id}}}).then(async g=>g.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ha.PaymentService=tf});var Zb=o(Ke=>{"use strict";var hU=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]})),yU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pU=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"&&hU(r,e,n[s]);return yU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var dn;(function(t){let e;e=t.Payment||(t.Payment={})})(dn||(Ke.service=dn={}));var rf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return dn.Payment.svc===void 0&&(dn.Payment.svc=(await Promise.resolve().then(()=>pU(Qb()))).PaymentService),new dn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=rf});var Xb=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.OfferService=void 0;var nf=b(),Jb=Q(),vU=E(),sf=class extends vU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${Jb.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[nf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${Jb.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[nf.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:[nf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ya.OfferService=sf});var eP=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PlaceOrderTransactionService=void 0;var hr=b(),SU=Q(),mU=E(),of=class extends mU.Service{typeOf=SU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[hr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.object})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[hr.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:[hr.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:[hr.status.NO_CONTENT]})}};pa.PlaceOrderTransactionService=of});var tP=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var ln=b(),_U=Q(),OU=E(),af=class extends OU.Service{typeOf=_U.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[ln.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[ln.status.NO_CONTENT,ln.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[ln.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[ln.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=af});var rP=o(We=>{"use strict";var TU=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]})),EU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cf=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"&&TU(r,e,n[s]);return EU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxn=We.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(We.service=nt={}));var uf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>cf(Xb()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>cf(eP()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>cf(tP()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=uf});var nP=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var fn=b(),hn=Q(),CU=E(),df=class extends CU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[fn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=df});var sP=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]})),bU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PU=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 bU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var yn;(function(t){let e;e=t.Offer||(t.Offer={})})(yn||(He.service=yn={}));var lf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return yn.Offer.svc===void 0&&(yn.Offer.svc=(await Promise.resolve().then(()=>PU(nP()))).OfferService),new yn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=lf});var iP=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),AU=E(),ff=class extends AU.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=ff});var oP=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),wU=E(),hf=class extends wU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Oa.status.OK]}).then(async r=>({data:await r.json()}))}};Ta.EmailMessageService=hf});var aP=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EventService=void 0;var Ie=b(),yr=Q(),RU=E(),yf=class extends RU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==yr.factory.eventType.ScreeningEvent)throw new yr.factory.errors.Argument("typeOf",`typeOf must be ${yr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![yr.factory.eventType.ScreeningEvent].includes(n))throw new yr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new yr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e,r){let{event:n,...s}=e,i=r?.useDefaultSection===!0;return this.fetch({uri:`/events/${encodeURIComponent(String(n.id))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>{let d=await u.json();return{data:d,...d.length>0?{sectionCode:d[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>u.json())}};Ea.EventService=yf});var uP=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PlaceService=void 0;var pn=b(),cP=Q(),MU=E(),pf=class extends MU.Service{constructor(e){super({...e,retryableStatusCodes:[pn.status.BAD_GATEWAY,pn.status.FORBIDDEN,pn.status.UNAUTHORIZED]})}async searchMovieTheaters(e){return this.fetch({uri:`/places/${cP.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRooms(e){return this.fetch({uri:`/places/${cP.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.PlaceService=pf});var dP=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.HasPOSService=void 0;var ga=b(),IU=Q(),qU=E(),vf=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/${IU.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=vf});var lP=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SellerService=void 0;var Ft=b(),NU=E(),Sf=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[Ft.status.BAD_GATEWAY,Ft.status.FORBIDDEN,Ft.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[Ft.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Ft.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:[Ft.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:[Ft.status.OK]}).then(async r=>({data:await r.json()}))}};Pa.SellerService=Sf});var hP=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.service=void 0;var jU=iP(),xU=oP(),UU=aP(),DU=uP(),LU=dP(),FU=lP(),fP;(function(t){class e extends jU.CategoryCodeService{}t.CategoryCode=e;class r extends xU.EmailMessageService{}t.EmailMessage=r;class n extends UU.EventService{}t.Event=n;class s extends DU.PlaceService{}t.Place=s;let i;(function(d){class f extends LU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends FU.SellerService{}t.Seller=u})(fP||(Aa.service=fP={}))});var yP=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CreativeWorkService=void 0;var kU=re(),BU=E(),mf=class extends BU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,kU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};wa.CreativeWorkService=mf});var pP=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CustomerService=void 0;var $U=re(),GU=E(),_f=class extends GU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,$U.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ra.CustomerService=_f});var vP=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventService=void 0;var pr=Q(),Ma=re(),KU=E(),Of=class extends KU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n});if(![pr.factory.eventStatusType.EventCancelled,pr.factory.eventStatusType.EventPostponed,pr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new pr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new pr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:pr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ia.EventService=Of});var SP=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventOfferService=void 0;var WU=re(),HU=E(),Tf=class extends HU.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,WU.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=Tf});var mP=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventSeriesService=void 0;var VU=re(),zU=E(),Ef=class extends zU.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,VU.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};Na.EventSeriesService=Ef});var OP=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.MeService=void 0;var _P=re(),YU=E(),Cf=class extends YU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,_P.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,_P.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};ja.MeService=Cf});var TP=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.NoteAboutOrderService=void 0;var gf=re(),QU=E(),bf=class extends QU.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,gf.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,gf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,gf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};xa.NoteAboutOrderService=bf});var CP=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.OfferService=void 0;var mt=Q(),EP=re(),ZU=E();function JU(t){let e={price:t.priceSpecification.price,referenceQuantity:t.priceSpecification.referenceQuantity,...typeof t.priceSpecification.accounting?.typeOf=="string"?{accounting:t.priceSpecification.accounting}:void 0};return{id:String(t.id),identifier:t.identifier,name:t.name,priceSpecification:e,...t.alternateName!==void 0&&t.alternateName!==null?{alternateName:t.alternateName}:void 0}}var Pf=class extends ZU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,EP.loadChevreAdmin)({auth:r,endpoint:n});if(e.limit!==void 0&&typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(e.page!==void 0&&typeof e.page!="number")throw new mt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new mt.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new mt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");let p=await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),y={id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},...typeof e.limit=="number"?{limit:Math.min(e.limit,100)}:void 0,...typeof e.page=="number"?{page:Math.max(e.page,1)}:void 0};return(await p.search({...y,$projection:{id:1,identifier:1,alternateName:1,name:1,priceSpecification:1}})).map(JU)}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,EP.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==mt.factory.product.ProductType.EventService&&y!==mt.factory.product.ProductType.Product)throw new mt.factory.errors.Argument("itemOffered.typeOf",`must be ${mt.factory.product.ProductType.EventService} or ${mt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};Ua.OfferService=Pf});var gP=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.OfferCatalogService=void 0;var vn=Q(),XU=re(),eD=E(),Af=class extends eD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,XU.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==vn.factory.product.ProductType.EventService&&y!==vn.factory.product.ProductType.Product)throw new vn.factory.errors.Argument("itemOffered.typeOf",`must be ${vn.factory.product.ProductType.EventService} or ${vn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Da.OfferCatalogService=Af});var PP=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogItemService=void 0;var bP=re(),tD=E(),wf=class extends tD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,bP.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,bP.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogItemService=wf});var wP=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OrderService=void 0;var Fa=Q(),Sn=re(),rD=E(),AP=20,Rf=class extends rD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findByOrderNumber({orderNumber:String(e.orderNumber)},{})}async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Fa.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Fa.factory.errors.Argument("page","must be number");if(d<1||d>AP)throw new Fa.factory.errors.Argument("limit",`must be >=1 and <=${AP}`);if(f<1)throw new Fa.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};ka.OrderService=Rf});var RP=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.PaymentMethodService=void 0;var nD=re(),sD=E(),Mf=class extends sD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,nD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ba.PaymentMethodService=Mf});var MP=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.ProductService=void 0;var mn=Q(),iD=re(),oD=E(),If=class extends oD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,iD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==mn.factory.product.ProductType.EventService&&f!==mn.factory.product.ProductType.Product)throw new mn.factory.errors.Argument("typeOf",`must be ${mn.factory.product.ProductType.EventService} or ${mn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};$a.ProductService=If});var qP=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ReservationService=void 0;var _n=Q(),Ga=re(),aD=E(),IP=20,qf=class extends aD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ga.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new _n.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new _n.factory.errors.Argument("page","must be number");if(d<1||d>IP)throw new _n.factory.errors.Argument("limit",`must be >=1 and <=${IP}`);if(f<1)throw new _n.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Ga.loadChevreAdmin)({auth:i,endpoint:u}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Ga.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 _n.factory.errors.ArgumentNull("seller.id");let u=await(0,Ga.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Ka.ReservationService=qf});var NP=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.SellerService=void 0;var cD=re(),uD=E(),Nf=class extends uD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,cD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Wa.SellerService=Nf});var jP=o(Ve=>{"use strict";var dD=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]})),lD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&dD(r,e,n[s]);return lD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var G;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.NoteAboutOrder||(t.NoteAboutOrder={});let f;f=t.Offer||(t.Offer={});let p;p=t.OfferCatalog||(t.OfferCatalog={});let y;y=t.OfferCatalogItem||(t.OfferCatalogItem={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Seller||(t.Seller={})})(G||(Ve.service=G={}));var je=[],jf=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 G.CreativeWork.svc===void 0&&(G.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(yP()))).CreativeWorkService),new G.CreativeWork.svc({...this.options,...e,retryableStatusCodes:je})}async createCustomerInstance(e){return G.Customer.svc===void 0&&(G.Customer.svc=(await Promise.resolve().then(()=>Ce(pP()))).CustomerService),new G.Customer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventInstance(e){return G.Event.svc===void 0&&(G.Event.svc=(await Promise.resolve().then(()=>Ce(vP()))).EventService),new G.Event.svc({...this.options,...e,retryableStatusCodes:je})}async createEventOfferInstance(e){return G.EventOffer.svc===void 0&&(G.EventOffer.svc=(await Promise.resolve().then(()=>Ce(SP()))).EventOfferService),new G.EventOffer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventSeriesInstance(e){return G.EventSeries.svc===void 0&&(G.EventSeries.svc=(await Promise.resolve().then(()=>Ce(mP()))).EventSeriesService),new G.EventSeries.svc({...this.options,...e,retryableStatusCodes:je})}async createMeInstance(){return G.Me.svc===void 0&&(G.Me.svc=(await Promise.resolve().then(()=>Ce(OP()))).MeService),new G.Me.svc({...this.options})}async createNoteInstance(e){return G.NoteAboutOrder.svc===void 0&&(G.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(TP()))).NoteAboutOrderService),new G.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferInstance(e){return G.Offer.svc===void 0&&(G.Offer.svc=(await Promise.resolve().then(()=>Ce(CP()))).OfferService),new G.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return G.OfferCatalog.svc===void 0&&(G.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(gP()))).OfferCatalogService),new G.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferCatalogItemInstance(e){return G.OfferCatalogItem.svc===void 0&&(G.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(PP()))).OfferCatalogItemService),new G.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:je})}async createOrderInstance(e){return G.Order.svc===void 0&&(G.Order.svc=(await Promise.resolve().then(()=>Ce(wP()))).OrderService),new G.Order.svc({...this.options,...e,retryableStatusCodes:je})}async createPaymentMethodInstance(e){return G.PaymentMethod.svc===void 0&&(G.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(RP()))).PaymentMethodService),new G.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:je})}async createProductInstance(e){return G.Product.svc===void 0&&(G.Product.svc=(await Promise.resolve().then(()=>Ce(MP()))).ProductService),new G.Product.svc({...this.options,...e,retryableStatusCodes:je})}async createReservationInstance(e){return G.Reservation.svc===void 0&&(G.Reservation.svc=(await Promise.resolve().then(()=>Ce(qP()))).ReservationService),new G.Reservation.svc({...this.options,...e,retryableStatusCodes:je})}async createSellerInstance(e){return G.Seller.svc===void 0&&(G.Seller.svc=(await Promise.resolve().then(()=>Ce(NP()))).SellerService),new G.Seller.svc({...this.options,...e,retryableStatusCodes:je})}};Ve.CloudAdmin=jf});var xP=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.OrderService=void 0;var kt=re(),fD=E(),xf=class extends fD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:m,orderNumber:g}=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,...m!==void 0?{orderDateThrough:m}:void 0,...typeof g=="string"?{orderNumber:g}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,m=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:g}=await m.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:g}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:m}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:m,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0})}};Ha.OrderService=xf});var UP=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.DeliveryService=void 0;var hD=re(),yD=E(),Uf=class extends yD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,hD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Va.DeliveryService=Uf});var LP=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ReservationService=void 0;var DP=re(),pD=E(),Df=class extends pD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,DP.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,DP.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};za.ReservationService=Df});var FP=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.TokenService=void 0;var vD=E(),Lf=class extends vD.Service{};Ya.TokenService=Lf});var kP=o(ze=>{"use strict";var SD=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]})),mD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qa=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"&&SD(r,e,n[s]);return mD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var Za=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||(ze.service=qe={}));var Ja=[Za.status.BAD_GATEWAY,Za.status.SERVICE_UNAVAILABLE,Za.status.FORBIDDEN,Za.status.UNAUTHORIZED],Ff=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(()=>Qa(xP()))).OrderService),new qe.Order.svc({...this.options,...e,retryableStatusCodes:Ja})}async createDeliveryInstance(e){return qe.Delivery.svc===void 0&&(qe.Delivery.svc=(await Promise.resolve().then(()=>Qa(UP()))).DeliveryService),new qe.Delivery.svc({...this.options,...e,retryableStatusCodes:Ja})}async createReservationInstance(e){return qe.Reservation.svc===void 0&&(qe.Reservation.svc=(await Promise.resolve().then(()=>Qa(LP()))).ReservationService),new qe.Reservation.svc({...this.options,...e,retryableStatusCodes:Ja})}async createTokenInstance(e){return qe.Token.svc===void 0&&(qe.Token.svc=(await Promise.resolve().then(()=>Qa(FP()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:Ja})}};ze.CloudAsset=Ff});var BP=o(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.CreativeWorkService=void 0;var _D=b(),OD=E(),kf=class extends OD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[_D.status.OK]}).then(async r=>r.json())}};Xa.CreativeWorkService=kf});var $P=o(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.PaymentProductService=void 0;var TD=b(),ED=E(),Bf=class extends ED.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:[TD.status.OK]}).then(async i=>i.json())}};ec.PaymentProductService=Bf});var GP=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.ProductService=void 0;var $f=b(),CD=E(),Gf=class extends CD.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:[$f.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:[$f.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[$f.status.OK]}).then(async i=>i.json())}};tc.ProductService=Gf});var KP=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.EventOfferService=void 0;var gD=b(),bD=E(),PD="/eventOffers",Kf=class extends bD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:PD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[gD.status.OK]}).then(async d=>d.json())}};rc.EventOfferService=Kf});var HP=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.PlaceService=void 0;var WP=b(),AD=E(),Wf=class extends AD.Service{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:[WP.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[WP.status.OK]}).then(async f=>f.json())}};nc.PlaceService=Wf});var VP=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.SeatOfferService=void 0;var wD=b(),RD=E(),MD="/seatOffers",Hf=class extends RD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:MD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[wD.status.OK]}).then(async u=>u.json())}};sc.SeatOfferService=Hf});var zP=o(Ye=>{"use strict";var ID=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]})),qD=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vr=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ID(r,e,n[s]);return qD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var Vf=b(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[Vf.status.BAD_GATEWAY,Vf.status.FORBIDDEN,Vf.status.UNAUTHORIZED],zf=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(BP()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>vr($P()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Sr})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>vr(GP()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Sr})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>vr(KP()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>vr(HP()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Sr})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>vr(VP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=zf});var ZP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.PaymentService=void 0;var le=b(),ge=Q(),be=re(),ND=E(),YP=1e3,jD=5e3;async function QP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Yf=class extends ND.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:u});return w.authorizeCreditCard({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,{checkedActionId:u}=r,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,g=await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S}),{ticketToken:w}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await g.createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:w},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}},{checkedActionId:u})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:u});if(typeof R!="string"||R==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return w.publishCreditCardPaymentUrl({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),m=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},g=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(g.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:g,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:m})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,I=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!g;){try{R=await m.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(D){I=D}await QP(jD),console.log("retrying issueTicketThroughMovieTicket...",I?.name,g)}if(typeof R?.ticketToken=="string")return R;throw I}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>YP?r.intervalAfterIssueTicketInMS:YP,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await QP(d),y}};ic.PaymentService=Yf});var JP=o(Qe=>{"use strict";var xD=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]})),UD=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DD=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"&&xD(r,e,n[s]);return UD(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var oc=b(),On;(function(t){let e;e=t.Payment||(t.Payment={})})(On||(Qe.service=On={}));var LD=[oc.status.BAD_GATEWAY,oc.status.SERVICE_UNAVAILABLE,oc.status.FORBIDDEN,oc.status.UNAUTHORIZED],Qf=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 On.Payment.svc===void 0&&(On.Payment.svc=(await Promise.resolve().then(()=>DD(ZP()))).PaymentService),new On.Payment.svc({...this.options,...e,retryableStatusCodes:LD})}};Qe.CloudPay=Qf});var rA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.authorizeOfferAsync=kD;ac.voidAuthorizeOfferAsync=BD;var te=Q(),XP=2e4,eA=1e3;async function tA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function FD(t){let e;switch(t.reason){case te.factory.errorCode.Argument:e=new te.factory.errors.Argument("",t.message);break;case te.factory.errorCode.ArgumentNull:e=new te.factory.errors.ArgumentNull("",t.message);break;case te.factory.errorCode.Unauthorized:e=new te.factory.errors.Unauthorized(t.message);break;case te.factory.errorCode.Forbidden:e=new te.factory.errors.Forbidden(t.message);break;case te.factory.errorCode.NotFound:e=new te.factory.errors.NotFound("",t.message);break;case te.factory.errorCode.AlreadyInUse:e=new te.factory.errors.AlreadyInUse("",[],t.message);break;case te.factory.errorCode.RateLimitExceeded:e=new te.factory.errors.RateLimitExceeded(t.message);break;case te.factory.errorCode.GatewayTimeout:e=new te.factory.errors.GatewayTimeout(t.message);break;default:e=new te.factory.errors.Internal(t.message)}return e}function kD(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:te.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},XP);let s,i;for(;s===void 0&&i===void 0;){if(await tA(eA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===te.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=FD(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});throw i}}function BD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},XP);let s,i;for(;s===void 0&&i===void 0;){if(await tA(eA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(u.status===te.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var sA=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PlaceOrderCOAService=void 0;var nA=Q(),Zf=re(),$D=E(),Jf=rA(),Xf=class extends $D.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,I=await(await(0,Zf.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),D=await(0,Jf.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:I});if(typeof D.result?.price!="number")throw new nA.factory.errors.Internal("result.price undefined");return{id:D.id,result:{price:D.result.price,responseBody:{tmpReserveNum:D.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,Zf.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,Jf.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:m,seller:g,disableAutoRetry:w,retryableStatusCodes:R}=this.options,D=await(await(0,Zf.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:m,seller:{id:typeof g?.id=="string"?g.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),C=await(0,Jf.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:D});if(typeof C.result?.price!="number")throw new nA.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};cc.PlaceOrderCOAService=Xf});var iA=o(Ze=>{"use strict";var GD=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KD=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WD=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&GD(r,e,n[s]);return KD(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var uc=b(),Tn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(Tn||(Ze.service=Tn={}));var HD=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],eh=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 Tn.transaction.PlaceOrder.svc===void 0&&(Tn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>WD(sA()))).PlaceOrderCOAService),new Tn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:HD})}};Ze.CloudTxc=eh});var oA=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.OfferService=void 0;var VD=Q(),th=re(),zD=E(),rh=class extends zD.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,th.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:m,eventOfferId:g}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:m,eventOfferId:g})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,th.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:VD.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,th.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};dc.OfferService=rh});var aA=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderTransactionService=void 0;var mr=b(),_r=re(),YD=E(),nh=class extends YD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u}=e,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u,expectsMinimalResponse:!0})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};lc.PlaceOrderTransactionService=nh});var cA=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.ReturnOrderTransactionService=void 0;var sh=re(),QD=E(),ih=class extends QD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,sh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,sh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,sh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};fc.ReturnOrderTransactionService=ih});var uA=o(Je=>{"use strict";var ZD=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]})),JD=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oh=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"&&ZD(r,e,n[s]);return JD(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var hc=b(),st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(Je.service=st={}));var ah=[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 createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>oh(oA()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:ah})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>oh(aA()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:ah})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>oh(cA()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:ah})}};Je.CloudTxn=ch});var dA=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.RuleService=void 0;var XD=b(),eL=E(),uh=class extends eL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[XD.status.OK]}).then(async r=>r.json())}};yc.RuleService=uh});var fA=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.RuleSetService=void 0;var lA=b(),tL=E(),dh=class extends tL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[lA.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[lA.status.NO_CONTENT]})}};pc.RuleSetService=dh});var yA=o(Xe=>{"use strict";var rL=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hA=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&rL(r,e,n[s]);return nL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Rt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Rt||(Xe.service=Rt={}));var lh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Rt.Rule.svc===void 0&&(Rt.Rule.svc=(await Promise.resolve().then(()=>hA(dA()))).RuleService),new Rt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Rt.RuleSet.svc===void 0&&(Rt.RuleSet.svc=(await Promise.resolve().then(()=>hA(fA()))).RuleSetService),new Rt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=lh});var re=o(X=>{"use strict";var sL=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iL=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sL(r,e,n[s]);return iL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=cL;X.loadChevreAsset=uL;X.loadChevreAdmic=dL;X.loadChevreAdmin=lL;X.loadChevreConsole=fL;X.loadChevrePay=hL;X.loadChevreTxn=yL;X.loadChevreTxc=pL;X.loadService=vL;X.loadCloudAdmin=SL;X.loadCloudAsset=mL;X.loadCloudSearch=_L;X.loadCloudPay=OL;X.loadCloudTxc=TL;X.loadCloudTxn=EL;X.loadWaiterAdmin=CL;var oL=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return oL.factory}});var aL=Oe(ks());X.transporters=aL;var fh;async function cL(...t){return fh===void 0&&(fh=(await Promise.resolve().then(()=>Oe(WC()))).Chevre),new fh(...t)}var hh;async function uL(...t){return hh===void 0&&(hh=(await Promise.resolve().then(()=>Oe(QC()))).ChevreAsset),new hh(...t)}var yh;async function dL(...t){return yh===void 0&&(yh=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAdmic),new yh(...t)}var ph;async function lL(...t){return ph===void 0&&(ph=(await Promise.resolve().then(()=>Oe(xg()))).ChevreAdmin),new ph(...t)}var vh;async function fL(...t){return vh===void 0&&(vh=(await Promise.resolve().then(()=>Oe(Yb()))).ChevreConsole),new vh(...t)}var Sh;async function hL(...t){return Sh===void 0&&(Sh=(await Promise.resolve().then(()=>Oe(Zb()))).ChevrePay),new Sh(...t)}var mh;async function yL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(rP()))).ChevreTxn),new mh(...t)}var _h;async function pL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(sP()))).ChevreTxc),new _h(...t)}var Oh;async function vL(){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(hP()))).service),Oh}var Th;async function SL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(jP()))).CloudAdmin),new Th(...t)}var Eh;async function mL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(kP()))).CloudAsset),new Eh(...t)}var Ch;async function _L(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(zP()))).CloudSearch),new Ch(...t)}var gh;async function OL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(JP()))).CloudPay),new gh(...t)}var bh;async function TL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(iA()))).CloudTxc),new bh(...t)}var Ph;async function EL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(uA()))).CloudTxn),new Ph(...t)}var Ah;async function CL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(yA()))).WaiterAdmin),new Ah(...t)}});var pA=o(Bt=>{"use strict";var gL=Bt&&Bt.__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=Bt&&Bt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gL(e,t,r)};Object.defineProperty(Bt,"__esModule",{value:!0});bL(re(),Bt)});var wA=o((e5,AA)=>{var Gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kt(t){var e={exports:{}};return t(e,e.exports),e.exports}var PL=Kt(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(u?u(R):U())},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]",m=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function g(){var h=setTimeout;return function(){return h(R,1)}}var w=new Array(1e3);function R(){for(var h=0;h<s;h+=2)(0,w[h])(w[h+1]),w[h]=void 0,w[h+1]=void 0;s=0}var I,D,C,M,U=void 0;function k(h,v){var T=this,P=new this.constructor(B);P[j]===void 0&&a(P);var A=T._state;if(A){var L=arguments[A-1];d(function(){return tt(A,P,L,T._result)})}else et(T,P,h,v);return P}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(B);return oe(v,h),v}U=S?function(){return process.nextTick(R)}:y?(D=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=D=++D%2}):m?((I=new MessageChannel).port1.onmessage=R,function(){return I.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:g()}catch{return g()}})():g();var j=Math.random().toString(36).substring(2);function B(){}var W=void 0,$=1,Y=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(P,A){A._state===$?ie(P,A._result):A._state===Y?ee(P,A._result):et(A,void 0,function(L){return oe(P,L)},function(L){return ee(P,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(P,A,L){d(function(z){var Z=!1,ue=(function(Pe,Ee,Mt,ye){try{Pe.call(Ee,function(Ae){Z||(Z=!0,A!==Ae?oe(z,Ae):ie(z,Ae))},function(Ae){Z||(Z=!0,ee(z,Ae))})}catch(Ae){return Ae}})(L,A);!Z&&ue&&(Z=!0,ee(z,ue))},P)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(A=typeof(P=v),P===null||A!=="object"&&A!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var P,A}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(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=Y,h._result=v,d(se,h))}function et(h,v,T,P){var A=h._subscribers,L=A.length;h._onerror=null,A[L]=v,A[L+$]=T,A[L+Y]=P,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var P=void 0,A=void 0,L=h._result,z=0;z<v.length;z+=3)A=v[z+T],(P=v[z])?tt(T,P,A,L):A(L);h._subscribers.length=0}}function tt(h,v,T,P){var A=r(T),L=void 0,z=void 0,Z=!0;if(A){try{L=T(P)}catch(ue){Z=!1,z=ue}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=P;v._state!==W||(A&&Z?oe(v,L):Z===!1?ee(v,z):h===$?ie(v,L):h===Y&&ee(v,L))}var Ue=0;function a(h){h[j]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var c=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(B),this.promise[j]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===W&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var P=this._instanceConstructor,A=P.resolve;if(A===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Pe){Z=!0,z=Pe}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(P===l){var ue=new P(B);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new P(function(Pe){return Pe(v)}),T)}else this._willSettleAt(A(v),T)},h.prototype._settledAt=function(v,T,P){var A=this.promise;A._state===W&&(this._remaining--,v===Y?ee(A,P):this._result[T]=P),this._remaining===0&&ie(A,this._result)},h.prototype._willSettleAt=function(v,T){var P=this;et(v,void 0,function(A){return P._settledAt($,T,A)},function(A){return P._settledAt(Y,T,A)})},h})(),l=(function(){function h(v){this[j]=Ue++,this._result=this._state=void 0,this._subscribers=[],B!==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,P){try{P(function(A){oe(T,A)},function(A){ee(T,A)})}catch(A){ee(T,A)}})(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,P=T.constructor;return r(v)?T.then(function(A){return P.resolve(v()).then(function(){return A})},function(A){return P.resolve(v()).then(function(){throw A})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,P){for(var A=h.length,L=0;L<A;L++)v.resolve(h[L]).then(T,P)}):new v(function(T,P){return P(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(B);return ee(v,h),v},l._setScheduler=function(h){u=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Gt!==void 0)h=Gt;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})()}),AL={__proto__:null,default:{}},qh=Kt(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&&Gt!==void 0&&Gt.crypto&&(i=Gt.crypto),!i)try{i=AL}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var U;return C.prototype=M,U=new C,C.prototype=null,U}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var M=this.words,U=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var j=0;j<K;j++)M[k+j>>>2]|=(U[j>>>2]>>>24-j%4*8&255)<<24-(k+j)%4*8;else for(var B=0;B<K;B+=4)M[k+B>>>2]=U[B>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],U=0;U<C;U+=4)M.push(u());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++){var j=M[K>>>2]>>>24-K%4*8&255;k.push((j>>>4).toString(16)),k.push((15&j).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k+=2)U[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(U,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k++)U[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(U,M)}},R=m.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},I=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,U=this._data,k=U.words,K=U.sigBytes,j=this.blockSize,B=K/(4*j),W=(B=C?n.ceil(B):n.max((0|B)-this._minBufferSize,0))*j,$=n.min(4*W,K);if(W){for(var Y=0;Y<W;Y+=j)this._doProcessBlock(k,Y);M=k.splice(0,W),U.sigBytes-=$}return new S.init(M,$)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=I.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,U){return new C.init(U).finalize(M)}},_createHmacHelper:function(C){return function(M,U){return new D.HMAC.init(C,U).finalize(M)}}});var D=f.algo={};return f})(Math),r)}),TA=Kt(function(t,e){var r;t.exports=(r=qh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(D){for(var C=n.sqrt(D),M=2;M<=C;M++)if(!(D%M))return!1;return!0}function w(D){return 4294967296*(D-(0|D))|0}for(var R=2,I=0;I<64;)g(R)&&(I<8&&(p[I]=w(n.pow(R,.5))),y[I]=w(n.pow(R,1/3)),I++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,I=R[0],D=R[1],C=R[2],M=R[3],U=R[4],k=R[5],K=R[6],j=R[7],B=0;B<64;B++){if(B<16)S[B]=0|g[w+B];else{var W=S[B-15],$=S[B-2];S[B]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[B-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[B-16]}var Y=I&D^I&C^D&C,Te=j+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&k^~U&K)+y[B]+S[B];j=K,K=k,k=U,U=M+Te|0,M=C,C=D,D=I,I=Te+(((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+Y)|0}R[0]=R[0]+I|0,R[1]=R[1]+D|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+U|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+j|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,I=8*g.sigBytes;return w[I>>>5]|=128<<24-I%32,w[14+(I+64>>>9<<4)]=n.floor(R/4294967296),w[15+(I+64>>>9<<4)]=R,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=d.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=d._createHelper(m),s.HmacSHA256=d._createHmacHelper(m)})(Math),r.SHA256)}),wL=Kt(function(t,e){var r,n;t.exports=(n=(r=qh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(y>>>6*(3-S)&63));var m=d.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,I=0;I<m;I++)if(I%4){var D=g[S.charCodeAt(I-1)]<<I%4*2,C=g[S.charCodeAt(I)]>>>6-I%4*2;w[R>>>2]|=(D|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),vA=Kt(function(t,e){t.exports=qh.enc.Hex}),EA=Kt(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var P=32767&c,A=c>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=A*L+z*P;v=((L=P*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+A*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,h,v,T){for(;--T>=0;){var P=c*this[a++]+l[h]+v;v=Math.floor(P/67108864),l[h++]=67108863&P}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var P=16383&c,A=c>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=A*L+z*P;v=((L=P*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+A*z,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 u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function m(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function g(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function I(a,c){return a|c}function D(a,c){return a^c}function C(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function U(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function j(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}g.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},g.prototype.revert=function(a){return a},g.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},g.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},g.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],h=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,h,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var P=l==8?255&a[h]:y(a,h);P<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=P:T+l>this.DB?(this[this.t-1]|=(P&(1<<this.DB-T)-1)<<T,this[this.t++]=P>>this.DB-T):this[this.t-1]|=P<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,P=Math.floor(a/this.DB),A=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+P+1]=this[l]>>v|A,A=(this[l]&T)<<h;for(l=P-1;l>=0;--l)c[l]=0;c[P]=A,c.t=this.t+P+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var P=l+1;P<this.t;++P)c[P-l-1]|=(this[P]&T)<<v,c[P-l]=this[P]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),P=this.s,A=a.s,L=this.DB-m(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var ue=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Pe=this.FV/ue,Ee=(1<<this.F1)/ue,Mt=1<<this.F2,ye=l.t,Ae=ye-z,ot=c??s();for(T.dlShiftTo(Ae,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Ae>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+Mt)*Ee);if((l[ye]+=T.am(0,Cr,l,Ae,0,z))<Cr)for(T.dlShiftTo(Ae,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),P!=A&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),P<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=c.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,h),(a&1<<T)>0)c.mulTo(h,v,l);else{var P=l;l=h,h=P}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",P=this.t,A=this.DB-P*this.DB%c;if(P-- >0)for(A<this.DB&&(l=this[P]>>A)>0&&(v=!0,T=p(l));P>=0;)A<c?(l=(this[P]&(1<<A)-1)<<c-A,l|=this[--P]>>(A+=this.DB-c)):(l=this[P]>>(A-=c)&h,A<=0&&(A+=this.DB,--P)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new g(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},j.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},j.prototype.revert=function(a){return a},j.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)},j.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},j.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var B,W,$,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 oe(){var a;a=new Date().getTime(),W[$++]^=255&a,W[$++]^=a>>8&255,W[$++]^=a>>16&255,W[$++]^=a>>24&255,$>=Ue&&($-=Ue)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),h=S(l),v=s(),T=s(),P="";for(this.divRemTo(h,v,T);v.signum()>0;)P=(l+T.intValue()).toString(a).substr(1)+P,v.divRemTo(h,v,T);return T.intValue().toString(a)+P},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,P=0,A=0;A<a.length;++A){var L=y(a,A);L<0?a.charAt(A)=="-"&&this.signum()==0&&(v=!0):(P=c*P+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(P,0),T=0,P=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(P,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),c.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,c,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=c(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=c(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=c(v,a[h]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],c[l++]=h&this.DM,h>>=this.DB;h+=a.s}c.s=h<0?-1:0,h>0?c[l++]=h:h<-1&&(c[l++]=this.DV+h),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var h,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,c);v<h;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var h=l.t=this.t+a.t-c;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(c-this.t,0);h<a.t;++h)l[this.t+h-c]=this.am(c-h,a[h],l,0,0,this.t+h-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(c*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var h=c.shiftRight(l);(a=a+1>>1)>Y.length&&(a=Y.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Y[Math.floor(Math.random()*Y.length)]);var P=v.modPow(h,this);if(P.compareTo(n.ONE)!=0&&P.compareTo(c)!=0){for(var A=1;A++<l&&P.compareTo(c)!=0;)if((P=P.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(P.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,I,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,D,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,C,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=U(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,I)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,D)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new g(c):c.isEven()?new j(c):new w(c);var P=new Array,A=3,L=l-1,z=(1<<l)-1;if(P[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(P[1],Z);A<=z;)P[A]=s(),h.mulTo(Z,P[A-2],P[A]),A+=2}var ue,Pe,Ee=a.t-1,Mt=!0,ye=s();for(v=m(a[Ee])-1;Ee>=0;){for(v>=L?ue=a[Ee]>>v-L&z:(ue=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-L)),A=l;(1&ue)==0;)ue>>=1,--A;if((v-=A)<0&&(v+=this.DB,--Ee),Mt)P[ue].copyTo(T),Mt=!1;else{for(;A>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),A-=2;A>0?h.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),h.mulTo(ye,P[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),P=S(0),A=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(P.isEven()&&A.isEven()||(P.addTo(this,P),A.subTo(a,A)),P.rShiftTo(1,P)):A.isEven()||A.subTo(a,A),A.rShiftTo(1,A);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(P,v),T.subTo(A,T)):(h.subTo(l,h),c&&P.subTo(v,P),A.subTo(T,A))}return h.compareTo(n.ONE)!=0?n.ZERO:A.compareTo(a)>=0?A.subtract(a):A.signum()<0?(A.addTo(a,A),A.signum()<0?A.add(a):A):A},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Y[Y.length-1]){for(c=0;c<Y.length;++c)if(l[0]==Y[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Y.length;){for(var h=Y[c],v=c+1;v<Y.length&&h<Te;)h*=Y[v++];for(h=l.modInt(h);c<v;)if(h%Y[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=j,W==null){var se;if(W=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)W[$++]=ie[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(;$<Ue;)se=Math.floor(65536*Math.random()),W[$++]=se>>>8,W[$++]=255&se;$=0,oe()}function et(){if(B==null){for(oe(),(B=new tt).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return B.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=et()},tt.prototype.init=function(a){var c,l,h;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)h=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Gt)}),SA={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},mA={sha256:TA};function CA(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 EA.BigInteger(t,16),this.e=parseInt(e,16)}CA.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new EA.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in SA){var d=SA[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!mA.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=mA[n.alg](t).toString();return n.hash===s};for(_A=[],xe=[],gA=typeof Uint8Array<"u"?Uint8Array:Array,wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)_A[$t]=wh[$t],xe[wh.charCodeAt($t)]=$t;var _A,xe,gA,wh,$t;xe[45]=62,xe[95]=63;var bA=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],u=new gA((function(p,y,S){return 3*(y+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=xe[t.charCodeAt(r)]<<18|xe[t.charCodeAt(r+1)]<<12|xe[t.charCodeAt(r+2)]<<6|xe[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function PA(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function OA(t){return t=PA(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(bA(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Rh(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})(bA(PA(t)))}var RL=Kt(function(t){var e,r;e=Gt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function ML(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,m){i.push(S=S.toLowerCase()),u.push([S,m]),d[S]=d[S]?d[S]+","+m:m}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function IL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Mh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Mh.prototype=Error.prototype,ne.prototype=Error.prototype;var qL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();PL.polyfill();var Ih="RS256",vc=function(t){return typeof t=="number"},NL=function(){return new Date};function En(t){var e=t||{};if(this.jwksCache=e.jwksCache||new qL,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:NL,this.leeway<0||this.leeway>300)throw new Mh("The leeway should be positive and lower than five minutes.");if(Ih!==this.expectedAlg)throw new Mh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Ih+'".')}En.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Rh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,m=n.payload.nbf,g=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,I=n.payload.nonce,D=this.__clock(),C=this;if(C.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+Ih+'".'),null);this.getRsaVerifier(y,d,function(M,U){if(M)return r(M,null);if(!U.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!I||typeof I!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(I!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+I+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!vc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!vc(g))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),D>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+D+'" is after expiration time "'+K+'"'),null);if(m&&vc(m)){var j=m-C.leeway,B=new Date(0);if(B.setUTCSeconds(j),D<B)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+D+'" is before the not before time "'+B+'"'),null)}if(C.maxAge){if(!R||!vc(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var W=R+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(W),D>$)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+D+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},En.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||RL(u.iss,".well-known","jwks.json"),(fetch=="undefined"?ML:fetch)(d).then(IL).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===u.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Rh((S=m).n),exp:Rh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new CA(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},En.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(OA(n[0])),r=JSON.parse(OA(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},En.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=TA(t),u=vA.stringify(i),d=u.substring(0,u.length/2),f=vA.parse(d),p=wL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},AA.exports=En});var Cn=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.AuthorizeError=void 0;var Nh=class extends Error{error;errorDescription;state};Sc.AuthorizeError=Nh});var RA=o(Or=>{"use strict";var jL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var xL=jL(er()),jh=(0,xL.default)("cinerino-sdk:auth:popupHandler"),xh=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(jh("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}`)}jh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){jh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Or.PopupHandler=xh});var MA=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.PopupAuthenticationHandler=void 0;var UL=Cn(),DL=RA(),Uh=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 DL.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 UL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};mc.PopupAuthenticationHandler=Uh});var Lh=o(Tr=>{"use strict";var LL=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var FL=LL(er()),kL=(0,FL.default)("cinerino-sdk:auth:iframeHandler"),Dh=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(kL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Tr.IframeHandler=Dh});var IA=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.SilentAuthenticationHandler=void 0;var BL=Cn(),$L=Lh(),Fh=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 $L.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 BL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};_c.SilentAuthenticationHandler=Fh});var qA=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.SilentLogoutHandler=void 0;var GL=Cn(),KL=Lh(),kh=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 KL.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 GL.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Oc.SilentLogoutHandler=kh});var NA=o(()=>{});var jA=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.LoginTicket=void 0;var Bh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};Tc.LoginTicket=Bh});var xA=o(_t=>{"use strict";var WL=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_t,"__esModule",{value:!0});_t.OAuth2client=_t.MAX_RETRY_NUM=void 0;var HL=NA(),VL=WL(er()),Ec=b(),zL=ks(),YL=jA(),Wt=(0,VL.default)("cinerino-sdk:auth:oAuth2client"),QL=1e3;_t.MAX_RETRY_NUM=2;async function ZL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var $h=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,HL.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==Ec.status.OK)if(d.status===Ec.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await ZL(QL*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new zL.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==Ec.status.OK)if(u.status===Ec.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:m}=f;d={access_token:p,id_token:y,token_type:m,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new YL.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=$h});var LA=o(Er=>{"use strict";var DA=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var JL=DA(er()),UA=DA(wA()),Gh=Bu(),XL=Cn(),eF=MA(),tF=IA(),rF=qA(),nF=xA(),Cc=(0,JL.default)("cinerino-sdk:auth:implicitGrantClient"),Kh=class t extends nF.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,Cc("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 tF.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 rF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Cc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Cc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Gh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new XL.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 UA.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 UA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(Cc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Gh.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,Gh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=Kh});var FA=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=iF;var Ot=pA();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var sF=LA();function iF(t){return new sF.ImplicitGrantClient(t)}});var h5=window.cinerino=FA();})();
4
+ `+e.prev}function Gs(t,e){var r=Ou(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=vt(t,s)?e(t[s],t):""}var i=typeof pu=="function"?pu(t):[],u;if(nr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||nr&&u["$"+f]instanceof Symbol||(LT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof pu=="function")for(var p=0;p<i.length;p++)FT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var VT=o((S2,HT)=>{"use strict";var wq=kr(),Rq=jt(),Hs=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},Mq=function(t,e){if(t){var r=Hs(t,e);return r&&r.value}},Iq=function(t,e,r){var n=Hs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},qq=function(t,e){return t?!!Hs(t,e):!1},Nq=function(t,e){if(t)return Hs(t,e,!0)};HT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Rq("Side channel does not contain "+wq(n))},delete:function(n){var s=Nq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Mq(e,n)},has:function(n){return qq(e,n)},set:function(n,s){e||(e={next:void 0}),Iq(e,n,s)}};return r}});var bu=o((m2,zT)=>{"use strict";zT.exports=Object});var QT=o((_2,YT)=>{"use strict";YT.exports=Error});var JT=o((O2,ZT)=>{"use strict";ZT.exports=EvalError});var eE=o((T2,XT)=>{"use strict";XT.exports=RangeError});var rE=o((E2,tE)=>{"use strict";tE.exports=ReferenceError});var sE=o((C2,nE)=>{"use strict";nE.exports=SyntaxError});var oE=o((g2,iE)=>{"use strict";iE.exports=URIError});var cE=o((b2,aE)=>{"use strict";aE.exports=Math.abs});var dE=o((P2,uE)=>{"use strict";uE.exports=Math.floor});var fE=o((A2,lE)=>{"use strict";lE.exports=Math.max});var yE=o((w2,hE)=>{"use strict";hE.exports=Math.min});var vE=o((R2,pE)=>{"use strict";pE.exports=Math.pow});var mE=o((M2,SE)=>{"use strict";SE.exports=Math.round});var OE=o((I2,_E)=>{"use strict";_E.exports=Number.isNaN||function(e){return e!==e}});var EE=o((q2,TE)=>{"use strict";var jq=OE();TE.exports=function(e){return jq(e)||e===0?e:e<0?-1:1}});var gE=o((N2,CE)=>{"use strict";CE.exports=Object.getOwnPropertyDescriptor});var Pu=o((j2,bE)=>{"use strict";var Vs=gE();if(Vs)try{Vs([],"length")}catch{Vs=null}bE.exports=Vs});var AE=o((x2,PE)=>{"use strict";var zs=Object.defineProperty||!1;if(zs)try{zs({},"a",{value:1})}catch{zs=!1}PE.exports=zs});var RE=o((U2,wE)=>{"use strict";wE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var qE=o((D2,IE)=>{"use strict";var ME=typeof Symbol<"u"&&Symbol,xq=RE();IE.exports=function(){return typeof ME!="function"||typeof Symbol!="function"||typeof ME("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xq()}});var Au=o((L2,NE)=>{"use strict";NE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var wu=o((F2,jE)=>{"use strict";var Uq=bu();jE.exports=Uq.getPrototypeOf||null});var DE=o((k2,UE)=>{"use strict";var Dq="Function.prototype.bind called on incompatible ",Lq=Object.prototype.toString,Fq=Math.max,kq="[object Function]",xE=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},Bq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},$q=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};UE.exports=function(e){var r=this;if(typeof r!="function"||Lq.apply(r)!==kq)throw new TypeError(Dq+r);for(var n=Bq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,xE(n,arguments));return Object(y)===y?y:this}return r.apply(e,xE(n,arguments))},u=Fq(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+$q(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 Br=o((B2,LE)=>{"use strict";var Gq=DE();LE.exports=Function.prototype.bind||Gq});var Ys=o(($2,FE)=>{"use strict";FE.exports=Function.prototype.call});var Ru=o((G2,kE)=>{"use strict";kE.exports=Function.prototype.apply});var $E=o((K2,BE)=>{"use strict";BE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var KE=o((W2,GE)=>{"use strict";var Kq=Br(),Wq=Ru(),Hq=Ys(),Vq=$E();GE.exports=Vq||Kq.call(Hq,Wq)});var Mu=o((H2,WE)=>{"use strict";var zq=Br(),Yq=jt(),Qq=Ys(),Zq=KE();WE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Yq("a function is required");return Zq(zq,Qq,e)}});var ZE=o((V2,QE)=>{"use strict";var Jq=Mu(),HE=Pu(),zE;try{zE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Iu=!!zE&&HE&&HE(Object.prototype,"__proto__"),YE=Object,VE=YE.getPrototypeOf;QE.exports=Iu&&typeof Iu.get=="function"?Jq([Iu.get]):typeof VE=="function"?function(e){return VE(e==null?e:YE(e))}:!1});var rC=o((z2,tC)=>{"use strict";var JE=Au(),XE=wu(),eC=ZE();tC.exports=JE?function(e){return JE(e)}:XE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return XE(e)}:eC?function(e){return eC(e)}:null});var sC=o((Y2,nC)=>{"use strict";var Xq=Function.prototype.call,eN=Object.prototype.hasOwnProperty,tN=Br();nC.exports=tN.call(Xq,eN)});var Js=o((Q2,dC)=>{"use strict";var V,rN=bu(),nN=QT(),sN=JT(),iN=eE(),oN=rE(),ar=sE(),or=jt(),aN=oE(),cN=cE(),uN=dE(),dN=fE(),lN=yE(),fN=vE(),hN=mE(),yN=EE(),cC=Function,qu=function(t){try{return cC('"use strict"; return ('+t+").constructor;")()}catch{}},$r=Pu(),pN=AE(),Nu=function(){throw new or},vN=$r?(function(){try{return arguments.callee,Nu}catch{try{return $r(arguments,"callee").get}catch{return Nu}}})():Nu,sr=qE()(),Se=rC(),SN=wu(),mN=Au(),uC=Ru(),Gr=Ys(),ir={},_N=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Ut={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":sr&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":ir,"%AsyncGenerator%":ir,"%AsyncGeneratorFunction%":ir,"%AsyncIteratorPrototype%":ir,"%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%":nN,"%eval%":eval,"%EvalError%":sN,"%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%":cC,"%GeneratorFunction%":ir,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sr&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sr||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rN,"%Object.getOwnPropertyDescriptor%":$r,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":iN,"%ReferenceError%":oN,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sr||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sr&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":sr?Symbol:V,"%SyntaxError%":ar,"%ThrowTypeError%":vN,"%TypedArray%":_N,"%TypeError%":or,"%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%":aN,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Gr,"%Function.prototype.apply%":uC,"%Object.defineProperty%":pN,"%Object.getPrototypeOf%":SN,"%Math.abs%":cN,"%Math.floor%":uN,"%Math.max%":dN,"%Math.min%":lN,"%Math.pow%":fN,"%Math.round%":hN,"%Math.sign%":yN,"%Reflect.getPrototypeOf%":mN};if(Se)try{null.error}catch(t){iC=Se(Se(t)),Ut["%Error.prototype%"]=iC}var iC,ON=function t(e){var r;if(e==="%AsyncFunction%")r=qu("async function () {}");else if(e==="%GeneratorFunction%")r=qu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=qu("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 Ut[e]=r,r},oC={__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"]},Kr=Br(),Qs=sC(),TN=Kr.call(Gr,Array.prototype.concat),EN=Kr.call(uC,Array.prototype.splice),aC=Kr.call(Gr,String.prototype.replace),Zs=Kr.call(Gr,String.prototype.slice),CN=Kr.call(Gr,RegExp.prototype.exec),gN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bN=/\\(\\)?/g,PN=function(e){var r=Zs(e,0,1),n=Zs(e,-1);if(r==="%"&&n!=="%")throw new ar("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ar("invalid intrinsic syntax, expected opening `%`");var s=[];return aC(e,gN,function(i,u,d,f){s[s.length]=d?aC(f,bN,"$1"):u||i}),s},AN=function(e,r){var n=e,s;if(Qs(oC,n)&&(s=oC[n],n="%"+s[0]+"%"),Qs(Ut,n)){var i=Ut[n];if(i===ir&&(i=ON(n)),typeof i>"u"&&!r)throw new or("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new ar("intrinsic "+e+" does not exist!")};dC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new or("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new or('"allowMissing" argument must be a boolean');if(CN(/^%?[^%]*%?$/,e)===null)throw new ar("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=PN(e),s=n.length>0?n[0]:"",i=AN("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],EN(n,TN([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var m=n[y],g=Zs(m,0,1),w=Zs(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new ar("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,u="%"+s+"%",Qs(Ut,u))d=Ut[u];else if(d!=null){if(!(m in d)){if(!r)throw new or("base intrinsic for "+e+" exists, but the property is not available.");return}if($r&&y+1>=n.length){var R=$r(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=Qs(d,m),d=d[m];S&&!f&&(Ut[u]=d)}}return d}});var ju=o((Z2,hC)=>{"use strict";var lC=Js(),fC=Mu(),wN=fC([lC("%String.prototype.indexOf%")]);hC.exports=function(e,r){var n=lC(e,!!r);return typeof n=="function"&&wN(e,".prototype.")>-1?fC([n]):n}});var xu=o((J2,pC)=>{"use strict";var RN=Js(),Wr=ju(),MN=kr(),IN=jt(),yC=RN("%Map%",!0),qN=Wr("Map.prototype.get",!0),NN=Wr("Map.prototype.set",!0),jN=Wr("Map.prototype.has",!0),xN=Wr("Map.prototype.delete",!0),UN=Wr("Map.prototype.size",!0);pC.exports=!!yC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new IN("Side channel does not contain "+MN(n))},delete:function(n){if(e){var s=xN(e,n);return UN(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return qN(e,n)},has:function(n){return e?jN(e,n):!1},set:function(n,s){e||(e=new yC),NN(e,n,s)}};return r}});var SC=o((X2,vC)=>{"use strict";var DN=Js(),ei=ju(),LN=kr(),Xs=xu(),FN=jt(),cr=DN("%WeakMap%",!0),kN=ei("WeakMap.prototype.get",!0),BN=ei("WeakMap.prototype.set",!0),$N=ei("WeakMap.prototype.has",!0),GN=ei("WeakMap.prototype.delete",!0);vC.exports=cr?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new FN("Side channel does not contain "+LN(s))},delete:function(s){if(cr&&s&&(typeof s=="object"||typeof s=="function")){if(e)return GN(e,s)}else if(Xs&&r)return r.delete(s);return!1},get:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?kN(e,s):r&&r.get(s)},has:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?$N(e,s):!!r&&r.has(s)},set:function(s,i){cr&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new cr),BN(e,s,i)):Xs&&(r||(r=Xs()),r.set(s,i))}};return n}:Xs});var _C=o((e3,mC)=>{"use strict";var KN=jt(),WN=kr(),HN=VT(),VN=xu(),zN=SC(),YN=zN||VN||HN;mC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new KN("Side channel does not contain "+WN(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=YN()),e.set(n,s)}};return r}});var ti=o((t3,OC)=>{"use strict";var QN=String.prototype.replace,ZN=/%20/g,Uu={RFC1738:"RFC1738",RFC3986:"RFC3986"};OC.exports={default:Uu.RFC3986,formatters:{RFC1738:function(t){return QN.call(t,ZN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Uu.RFC1738,RFC3986:Uu.RFC3986}});var Fu=o((r3,EC)=>{"use strict";var JN=ti(),Du=Object.prototype.hasOwnProperty,Dt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),XN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Dt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},TC=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},e1=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Dt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Du.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 Dt(e)&&!Dt(r)&&(s=TC(e,n)),Dt(e)&&Dt(r)?(r.forEach(function(i,u){if(Du.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return Du.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},t1=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},r1=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,n1=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Lu){for(var p=u.length>=Lu?u.slice(f,f+Lu):u,y=[],S=0;S<p.length;++S){var m=p.charCodeAt(S);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===JN.RFC1738&&(m===40||m===41)){y[y.length]=p.charAt(S);continue}if(m<128){y[y.length]=dt[m];continue}if(m<2048){y[y.length]=dt[192|m>>6]+dt[128|m&63];continue}if(m<55296||m>=57344){y[y.length]=dt[224|m>>12]+dt[128|m>>6&63]+dt[128|m&63];continue}S+=1,m=65536+((m&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=dt[240|m>>18]+dt[128|m>>12&63]+dt[128|m>>6&63]+dt[128|m&63]}d+=y.join("")}return d},s1=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],y=u[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:u,prop:p}),n.push(y))}return XN(r),e},i1=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},o1=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},a1=function(e,r){return[].concat(e,r)},c1=function(e,r){if(Dt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};EC.exports={arrayToObject:TC,assign:t1,combine:a1,compact:s1,decode:r1,encode:n1,isBuffer:o1,isRegExp:i1,maybeMap:c1,merge:e1}});var wC=o((n3,AC)=>{"use strict";var gC=_C(),ri=Fu(),Hr=ti(),u1=Object.prototype.hasOwnProperty,bC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,d1=Array.prototype.push,PC=function(t,e){d1.apply(t,lt(e)?e:[e])},l1=Date.prototype.toISOString,CC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ri.encode,encodeValuesOnly:!1,format:CC,formatter:Hr.formatters[CC],indices:!1,serializeDate:function(e){return l1.call(e)},skipNulls:!1,strictNullHandling:!1},f1=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ku={},h1=function t(e,r,n,s,i,u,d,f,p,y,S,m,g,w,R,I,D,C){for(var M=e,U=C,k=0,K=!1;(U=U.get(ku))!==void 0&&!K;){var j=U.get(e);if(k+=1,typeof j<"u"){if(j===k)throw new RangeError("Cyclic object value");K=!0}typeof U.get(ku)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&&lt(M)&&(M=ri.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(u)return p&&!I?p(r,pe.encoder,D,"key",w):r;M=""}if(f1(M)||ri.isBuffer(M)){if(p){var B=I?r:p(r,pe.encoder,D,"key",w);return[R(B)+"="+R(p(M,pe.encoder,D,"value",w))]}return[R(r)+"="+R(String(M))]}var W=[];if(typeof M>"u")return W;var $;if(n==="comma"&&lt(M))I&&p&&(M=ri.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Y=Object.keys(M);$=S?Y.sort(S):Y}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&&lt(M)&&M.length===1?Te+"[]":Te;if(i&&lt(M)&&M.length===0)return oe+"[]";for(var se=0;se<$.length;++se){var ie=$[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var et=m&&f?ie.replace(/\./g,"%2E"):ie,it=lt(M)?typeof n=="function"?n(oe,et):oe:oe+(m?"."+et:"["+et+"]");C.set(e,k);var tt=gC();tt.set(ku,C),PC(W,t(ee,it,n,s,i,u,d,f,n==="comma"&&I&&lt(M)?null:p,y,S,m,g,w,R,I,D,tt))}}return W},y1=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hr.default;if(typeof e.format<"u"){if(!u1.call(Hr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Hr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in bC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};AC.exports=function(t,e){var r=t,n=y1(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=bC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=gC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||PC(u,h1(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 m=u.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}});var IC=o((s3,MC)=>{"use strict";var ur=Fu(),Bu=Object.prototype.hasOwnProperty,p1=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ur.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},v1=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},RC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},S1="utf8=%26%2310003%3B",m1="utf8=%E2%9C%93",_1=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===m1?p="utf-8":u[f]===S1&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var y=u[f],S=y.indexOf("]="),m=S===-1?y.indexOf("="):S+1,g,w;m===-1?(g=r.decoder(y,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(g=r.decoder(y.slice(0,m),de.decoder,p,"key"),w=ur.maybeMap(RC(y.slice(m+1),r),function(I){return r.decoder(I,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=v1(w)),y.indexOf("[]=")>-1&&(w=p1(w)?[w]:w);var R=Bu.call(n,g);R&&r.duplicates==="combine"?n[g]=ur.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},O1=function(t,e,r,n){for(var s=n?e:RC(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},T1=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&Bu.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&&Bu.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),O1(y,r,n,s)}},E1=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||ur.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};MC.exports=function(t,e){var r=E1(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?_1(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=T1(d,n[d],r,typeof t=="string");s=ur.merge(s,f,r)}return r.allowSparse===!0?s:ur.compact(s)}});var $u=o((i3,qC)=>{"use strict";var C1=wC(),g1=IC(),b1=ti();qC.exports={formats:b1,parse:g1,stringify:C1}});var E=o(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Service=Lt.RESOURCE_SELECTOR_SEPARATOR=void 0;var P1=$u(),A1=Bs();Lt.RESOURCE_SELECTOR_SEPARATOR=":";var Gu=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}${Lt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,P1.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new A1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Lt.Service=Gu});var NC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.CategoryCodeService=void 0;var w1=b(),R1=E(),Ku=class extends R1.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[w1.status.OK]}).then(async r=>({data:await r.json()}))}};ni.CategoryCodeService=Ku});var jC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.CreativeWorkService=void 0;var M1=b(),I1=E(),Wu=class extends I1.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[M1.status.OK]}).then(async r=>({data:await r.json()}))}};si.CreativeWorkService=Wu});var xC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EmailMessageService=void 0;var q1=b(),N1=E(),Hu=class extends N1.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[q1.status.OK]}).then(async r=>({data:await r.json()}))}};ii.EmailMessageService=Hu});var DC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventService=void 0;var St=b(),UC=Q(),j1=E(),Vu=class extends j1.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![UC.factory.eventType.ScreeningEvent].includes(n))throw new UC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e,r){let{id:n,...s}=e,{useDefaultSection:i}=r;return this.fetch({uri:`/events/${encodeURIComponent(String(n))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}};oi.EventService=Vu});var LC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventOfferService=void 0;var x1=b(),U1=E(),D1="/eventOffers",zu=class extends U1.Service{async findEventOffers(e){return this.fetch({uri:D1,method:"GET",qs:e,expectedStatusCodes:[x1.status.OK]}).then(async r=>r.json())}};ai.EventOfferService=zu});var FC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.EventSeriesService=void 0;var L1=b(),F1=E(),Yu=class extends F1.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[L1.status.OK]}).then(async r=>r.json())}};ci.EventSeriesService=Yu});var kC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.NoteService=void 0;var k1=b(),B1=E(),$1="/creativeWorks/noteDigitalDocument",Qu=class extends B1.Service{async findPublicNotes(e){return this.fetch({uri:$1,method:"GET",qs:e,expectedStatusCodes:[k1.status.OK]}).then(async r=>r.json())}};ui.NoteService=Qu});var BC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PaymentProductService=void 0;var G1=b(),K1=E(),Zu=class extends K1.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:[G1.status.OK]}).then(async i=>i.json())}};di.PaymentProductService=Zu});var $C=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PlaceService=void 0;var dr=b(),Ju=Q(),W1=E(),Xu=class extends W1.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${Ju.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${Ju.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${Ju.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[dr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[dr.status.OK]}).then(async f=>f.json())}};li.PlaceService=Xu});var GC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.HasPOSService=void 0;var H1=b(),V1=Q(),z1=E(),ed=class extends z1.Service{async search(e){return this.fetch({uri:`/places/${V1.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[H1.status.OK]}).then(async r=>r.json())}};fi.HasPOSService=ed});var KC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.ProductService=void 0;var td=b(),Y1=E(),rd=class extends Y1.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())}};hi.ProductService=rd});var WC=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SeatOfferService=void 0;var Q1=b(),Z1=E(),J1="/seatOffers",nd=class extends Z1.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:J1,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[Q1.status.OK]}).then(async u=>u.json())}};yi.SeatOfferService=nd});var HC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.SellerService=void 0;var pi=b(),X1=E(),sd=class extends X1.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[pi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[pi.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:[pi.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:[pi.status.OK]}).then(async s=>s.json())}};vi.SellerService=sd});var VC=o(Le=>{"use strict";var ej=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]})),tj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ne=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"&&ej(r,e,n[s]);return tj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var H;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let y;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(y=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let m;m=t.SeatOffer||(t.SeatOffer={});let g;g=t.Seller||(t.Seller={})})(H||(Le.service=H={}));var id=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>Ne(NC()))).CategoryCodeService),new H.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return H.CreativeWork.svc===void 0&&(H.CreativeWork.svc=(await Promise.resolve().then(()=>Ne(jC()))).CreativeWorkService),new H.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return H.EmailMessage.svc===void 0&&(H.EmailMessage.svc=(await Promise.resolve().then(()=>Ne(xC()))).EmailMessageService),new H.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return H.Event.svc===void 0&&(H.Event.svc=(await Promise.resolve().then(()=>Ne(DC()))).EventService),new H.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return H.EventOffer.svc===void 0&&(H.EventOffer.svc=(await Promise.resolve().then(()=>Ne(LC()))).EventOfferService),new H.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return H.EventSeries.svc===void 0&&(H.EventSeries.svc=(await Promise.resolve().then(()=>Ne(FC()))).EventSeriesService),new H.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return H.Note.svc===void 0&&(H.Note.svc=(await Promise.resolve().then(()=>Ne(kC()))).NoteService),new H.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return H.PaymentProduct.svc===void 0&&(H.PaymentProduct.svc=(await Promise.resolve().then(()=>Ne(BC()))).PaymentProductService),new H.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return H.Place.svc===void 0&&(H.Place.svc=(await Promise.resolve().then(()=>Ne($C()))).PlaceService),new H.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return H.place.HasPOS.svc===void 0&&(H.place.HasPOS.svc=(await Promise.resolve().then(()=>Ne(GC()))).HasPOSService),new H.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return H.Product.svc===void 0&&(H.Product.svc=(await Promise.resolve().then(()=>Ne(KC()))).ProductService),new H.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return H.SeatOffer.svc===void 0&&(H.SeatOffer.svc=(await Promise.resolve().then(()=>Ne(WC()))).SeatOfferService),new H.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return H.Seller.svc===void 0&&(H.Seller.svc=(await Promise.resolve().then(()=>Ne(HC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=id});var zC=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.OrderService=void 0;var bt=b(),rj=Q(),nj=E(),od=class extends nj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${rj.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[bt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}};Si.OrderService=od});var QC=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.ReservationService=void 0;var YC=b(),sj=E(),ad=class extends sj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[YC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[YC.status.OK]}).then(async n=>n.json())}};mi.ReservationService=ad});var ZC=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.TokenService=void 0;var ij=E(),cd=class extends ij.Service{};_i.TokenService=cd});var JC=o(Fe=>{"use strict";var oj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ud=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&oj(r,e,n[s]);return aj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var rt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(rt||(Fe.service=rt={}));var dd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>ud(zC()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>ud(QC()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>ud(ZC()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=dd});var eg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.SyncService=void 0;var XC=b(),cj=E(),ld=class extends cj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[XC.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[XC.status.ACCEPTED]}).then(async r=>r.json())}};Oi.SyncService=ld});var tg=o(ke=>{"use strict";var uj=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]})),dj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lj=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"&&uj(r,e,n[s]);return dj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Vr;(function(t){let e;e=t.Sync||(t.Sync={})})(Vr||(ke.service=Vr={}));var fd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Vr.Sync.svc===void 0&&(Vr.Sync.svc=(await Promise.resolve().then(()=>lj(eg()))).SyncService),new Vr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=fd});var rg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.CustomerService=void 0;var fj=b(),hj=E(),hd=class extends hj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[fj.status.OK]}).then(async r=>r.json())}};Ti.CustomerService=hd});var ng=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.EventService=void 0;var zr=b(),yj=E(),yd=class extends yj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[zr.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:[zr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[zr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[zr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}};Ei.EventService=yd});var sg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.EventOfferService=void 0;var Ci=b(),pj=E(),gi="/eventOffers",pd=class extends pj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:gi,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ci.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:gi,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ci.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:gi,method:"GET",qs:e,expectedStatusCodes:[Ci.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${gi}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ci.status.CREATED]}).then(async n=>n.json())}};bi.EventOfferService=pd});var ag=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.EventSeriesService=void 0;var ig=b(),vj=E(),og="/eventSeries",vd=class extends vj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:og,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[ig.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:og,method:"GET",qs:e,expectedStatusCodes:[ig.status.OK]}).then(async r=>r.json())}};Pi.EventSeriesService=vd});var ug=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MeService=void 0;var cg=b(),Sj=E(),Sd=class extends Sj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[cg.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:[cg.status.OK]}).then(async s=>s.json())}};Ai.MeService=Sd});var dg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MemberService=void 0;var mj=b(),_j=Q(),Oj=E(),md=class extends Oj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${_j.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[mj.status.OK]}).then(async r=>r.json())}};wi.MemberService=md});var hg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MovieService=void 0;var lg=b(),Tj=E(),fg="/movies",_d=class extends Tj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:fg,method:"PUT",body:e,expectedStatusCodes:[lg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:fg,method:"GET",qs:e,expectedStatusCodes:[lg.status.OK]}).then(async r=>r.json())}};Ri.MovieService=_d});var pg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.MovieTheaterService=void 0;var Yr=b(),Ej=E(),yg="/movieTheaters",Od="/entranceGates",Td=class extends Ej.Service{async findMovieTheaters(e){return this.fetch({uri:yg,method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:yg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Od,method:"GET",qs:e,expectedStatusCodes:[Yr.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:[Yr.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:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Mi.MovieTheaterService=Td});var vg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.NoteService=void 0;var Ed=b(),Cj=E(),Cd="/creativeWorks/noteDigitalDocument",gd=class extends Cj.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())}};Ii.NoteService=gd});var Sg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.NoteAboutOrderService=void 0;var bd=b(),gj=E(),Pd="/orderNotes",Ad=class extends gj.Service{async upsertByIdentifier(e){await this.fetch({uri:Pd,method:"PUT",body:e,expectedStatusCodes:[bd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:Pd,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:`${Pd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}};qi.NoteAboutOrderService=Ad});var mg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.OrderService=void 0;var Qr=b(),bj=E(),wd=class extends bj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}};Ni.OrderService=wd});var _g=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.PaymentMethodService=void 0;var Pj=b(),Aj=E(),wj="/paymentMethods",Rd=class extends Aj.Service{async findPaymentMethods(e){return this.fetch({uri:wj,method:"GET",qs:e,expectedStatusCodes:[Pj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};ji.PaymentMethodService=Rd});var Tg=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ProductService=void 0;var Md=b(),Rj=E(),Og="/products",Mj="/productHasOfferCatalog",Id=class extends Rj.Service{async upsertByProductId(e){await this.fetch({uri:Og,method:"PUT",body:e,expectedStatusCodes:[Md.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Og,method:"GET",qs:e,expectedStatusCodes:[Md.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Mj,method:"GET",qs:e,expectedStatusCodes:[Md.status.OK]}).then(async r=>r.json())}};xi.ProductService=Id});var Eg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ReservationService=void 0;var qd=b(),Ij=E(),Nd=class extends Ij.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())}};Ui.ReservationService=Nd});var bg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.RoomService=void 0;var Cg=b(),qj=E(),gg="/rooms",jd=class extends qj.Service{async findRooms(e){return this.fetch({uri:gg,method:"GET",qs:e,expectedStatusCodes:[Cg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:gg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Cg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.RoomService=jd});var Pg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SeatService=void 0;var xd=b(),Nj=E(),Ud="/seats",Dd=class extends Nj.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:u}=r;await this.fetch({uri:Ud,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[xd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Ud,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[xd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.SeatService=Dd});var Rg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SeatSectionService=void 0;var Ag=b(),jj=E(),wg="/seatSections",Ld=class extends jj.Service{async findSeatSections(e){return this.fetch({uri:wg,method:"GET",qs:e,expectedStatusCodes:[Ag.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:wg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[Ag.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Fi.SeatSectionService=Ld});var Mg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.SellerService=void 0;var xj=b(),Uj=E(),Fd=class extends Uj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[xj.status.OK]}).then(async r=>r.json())}};ki.SellerService=Fd});var qg=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferService=void 0;var Ig=b(),Dj=E(),kd=class extends Dj.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ig.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:[Ig.status.NO_CONTENT]})}};Bi.OfferService=kd});var Ng=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.OfferCatalogService=void 0;var Lj=b(),Fj=E(),Bd=class extends Fj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[Lj.status.NO_CONTENT]})}};$i.OfferCatalogService=Bd});var xg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.OfferCatalogItemService=void 0;var jg=b(),kj=E(),$d=class extends kj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[jg.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:[jg.status.NO_CONTENT]})}};Gi.OfferCatalogItemService=$d});var Ug=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.CancelReservationAssetTransactionService=void 0;var Bj=b(),$j=E(),Gd=class extends $j.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Bj.status.NO_CONTENT]})}};Ki.CancelReservationAssetTransactionService=Gd});var Dg=o(Be=>{"use strict";var Gj=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Kj=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ce=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Gj(r,e,n[s]);return Kj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var N;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let u;u=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Room||(t.Room={});let I;I=t.Seat||(t.Seat={});let D;D=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let U;U=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(j){let B;B=j.CancelReservation||(j.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(N||(Be.service=N={}));var Kd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return N.Customer.svc===void 0&&(N.Customer.svc=(await Promise.resolve().then(()=>ce(rg()))).CustomerService),new N.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return N.Event.svc===void 0&&(N.Event.svc=(await Promise.resolve().then(()=>ce(ng()))).EventService),new N.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return N.EventOffer.svc===void 0&&(N.EventOffer.svc=(await Promise.resolve().then(()=>ce(sg()))).EventOfferService),new N.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return N.EventSeries.svc===void 0&&(N.EventSeries.svc=(await Promise.resolve().then(()=>ce(ag()))).EventSeriesService),new N.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return N.Me.svc===void 0&&(N.Me.svc=(await Promise.resolve().then(()=>ce(ug()))).MeService),new N.Me.svc({...this.options})}async createMemberInstance(e){return N.Member.svc===void 0&&(N.Member.svc=(await Promise.resolve().then(()=>ce(dg()))).MemberService),new N.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return N.Movie.svc===void 0&&(N.Movie.svc=(await Promise.resolve().then(()=>ce(hg()))).MovieService),new N.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return N.MovieTheater.svc===void 0&&(N.MovieTheater.svc=(await Promise.resolve().then(()=>ce(pg()))).MovieTheaterService),new N.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return N.Note.svc===void 0&&(N.Note.svc=(await Promise.resolve().then(()=>ce(vg()))).NoteService),new N.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return N.NoteAboutOrder.svc===void 0&&(N.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(Sg()))).NoteAboutOrderService),new N.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return N.Order.svc===void 0&&(N.Order.svc=(await Promise.resolve().then(()=>ce(mg()))).OrderService),new N.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return N.PaymentMethod.svc===void 0&&(N.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(_g()))).PaymentMethodService),new N.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return N.Product.svc===void 0&&(N.Product.svc=(await Promise.resolve().then(()=>ce(Tg()))).ProductService),new N.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return N.Reservation.svc===void 0&&(N.Reservation.svc=(await Promise.resolve().then(()=>ce(Eg()))).ReservationService),new N.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return N.Room.svc===void 0&&(N.Room.svc=(await Promise.resolve().then(()=>ce(bg()))).RoomService),new N.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return N.Seat.svc===void 0&&(N.Seat.svc=(await Promise.resolve().then(()=>ce(Pg()))).SeatService),new N.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return N.SeatSection.svc===void 0&&(N.SeatSection.svc=(await Promise.resolve().then(()=>ce(Rg()))).SeatSectionService),new N.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return N.Seller.svc===void 0&&(N.Seller.svc=(await Promise.resolve().then(()=>ce(Mg()))).SellerService),new N.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return N.Offer.svc===void 0&&(N.Offer.svc=(await Promise.resolve().then(()=>ce(qg()))).OfferService),new N.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return N.OfferCatalog.svc===void 0&&(N.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(Ng()))).OfferCatalogService),new N.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return N.OfferCatalogItem.svc===void 0&&(N.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(xg()))).OfferCatalogItemService),new N.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return N.assetTransaction.CancelReservation.svc===void 0&&(N.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce(Ug()))).CancelReservationAssetTransactionService),new N.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Kd});var Lg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.AccountingReportService=void 0;var Wj=b(),Hj=E(),Wd=class extends Hj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Wj.status.OK]}).then(async r=>r.json())}};Wi.AccountingReportService=Wd});var Fg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AccountTitleService=void 0;var $e=b(),Vj=Q(),zj=E(),Hd=class extends zj.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new Vj.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[$e.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:[$e.status.NO_CONTENT]})}};Hi.AccountTitleService=Hd});var kg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.ActionService=void 0;var Vd=b(),Yj=E(),zd=class extends Yj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Vd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Vd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Vd.status.OK]}).then(async r=>r.json())}};Vi.ActionService=zd});var Bg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AdditionalPropertyService=void 0;var Zr=b(),Qj=E(),Yd=class extends Qj.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};zi.AdditionalPropertyService=Yd});var Gg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateOfferService=void 0;var $g=b(),Zj=E(),Qd=class extends Zj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[$g.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[$g.status.NO_CONTENT]})}};Yi.AggregateOfferService=Qd});var Kg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregateReservationService=void 0;var Jj=b(),Xj=E(),Zd=class extends Xj.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[Jj.status.OK]}).then(async r=>r.json())}};Qi.AggregateReservationService=Zd});var Wg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AggregationService=void 0;var ex=b(),tx=E(),Jd=class extends tx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[ex.status.OK]}).then(async r=>r.json())}};Zi.AggregationService=Jd});var Hg=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AuthorizationService=void 0;var rx=b(),nx=E(),Xd=class extends nx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[rx.status.OK]}).then(async r=>r.json())}};Ji.AuthorizationService=Xd});var Vg=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.CreativeWorkService=void 0;var sx=b(),ix=E(),el=class extends ix.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sx.status.NO_CONTENT]})}};Xi.CreativeWorkService=el});var zg=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CategoryCodeService=void 0;var eo=b(),ox=E(),to="/categoryCodes",tl=class extends ox.Service{async createCategoryCode(e){return this.fetch({uri:to,method:"POST",body:e,expectedStatusCodes:[eo.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:to,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[eo.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[eo.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${to}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[eo.status.NO_CONTENT]})}};ro.CategoryCodeService=tl});var Yg=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerService=void 0;var rl=b(),ax=E(),nl=class extends ax.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[rl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[rl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[rl.status.NO_CONTENT]})}};no.CustomerService=nl});var Qg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CustomerTypeService=void 0;var cx=b(),ux=E(),sl=class extends ux.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[cx.status.OK]}).then(async r=>r.json())}};so.CustomerTypeService=sl});var Zg=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EmailMessageService=void 0;var Jr=b(),dx=E(),il=class extends dx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[Jr.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}};io.EmailMessageService=il});var Xg=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventService=void 0;var Xr=b(),Jg=Q(),lx=E(),ol=class extends lx.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:Jg.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Xr.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:[Xr.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:Jg.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Xr.status.NO_CONTENT]})}};oo.EventService=ol});var rb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.EventSeriesService=void 0;var eb=b(),tb=Q(),fx=E(),al=class extends fx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${tb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[eb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${tb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[eb.status.NO_CONTENT]})}};ao.EventSeriesService=al});var nb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.HasMerchantReturnPolicyService=void 0;var hx=b(),yx=E(),cl=class extends yx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[hx.status.OK]}).then(async e=>e.json())}};co.HasMerchantReturnPolicyService=cl});var sb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.IAMService=void 0;var Pt=b(),px=E(),ul=class extends px.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[Pt.status.CREATED,Pt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[Pt.status.OK]}).then(async e=>e.json())}};uo.IAMService=ul});var ib=o(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.IdentityService=void 0;var lo=b(),vx=E(),dl=class extends vx.Service{async createIdentity(e){return this.fetch({uri:"/identities",method:"POST",body:e,expectedStatusCodes:[lo.status.CREATED]}).then(async r=>r.json())}async projectIdentityFields(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[lo.status.OK]}).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=dl});var ob=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IdentityProviderService=void 0;var ho=b(),Sx=E(),ll=class extends Sx.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=ll});var ab=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.IssuerService=void 0;var en=b(),mx=E(),fl=class extends mx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.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:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};po.IssuerService=fl});var ub=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MeService=void 0;var cb=b(),_x=E(),hl=class extends _x.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[cb.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:[cb.status.OK]}).then(async r=>r.json())}};vo.MeService=hl});var db=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberService=void 0;var At=b(),wt=Q(),Ox=E(),yl=class extends Ox.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};So.MemberService=yl});var lb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberProgramService=void 0;var tn=b(),Tx=E(),pl=class extends Tx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[tn.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:[tn.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:[tn.status.NO_CONTENT]})}};mo.MemberProgramService=pl});var fb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MerchantReturnPolicyService=void 0;var rn=b(),Ex=E(),vl=class extends Ex.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};_o.MerchantReturnPolicyService=vl});var hb=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MessageService=void 0;var Cx=b(),gx=E(),Sl=class extends gx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Cx.status.OK]}).then(async r=>r.json())}};Oo.MessageService=Sl});var yb=o(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.MovieTicketTypeService=void 0;var To=b(),bx=E(),Eo="/movieTicketTypes",ml=class extends bx.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=ml});var pb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OrderService=void 0;var go=b(),Px=E(),_l=class extends Px.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=_l});var vb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.OwnershipInfoService=void 0;var Ax=b(),wx=E(),Ol=class extends wx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[Ax.status.OK]}).then(async r=>({data:await r.json()}))}};Po.OwnershipInfoService=Ol});var Sb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var lr=b(),Rx=E(),Tl=class extends Rx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[lr.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:[lr.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:[lr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[lr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}};Ao.PaymentProductService=Tl});var mb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PaymentServiceChannelService=void 0;var wo=b(),Mx=E(),El=class extends Mx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[wo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[wo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[wo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[wo.status.NO_CONTENT]})}};Ro.PaymentServiceChannelService=El});var Ob=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PendingReservationService=void 0;var _b=b(),Ix=E(),Cl=class extends Ix.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[_b.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:[_b.status.OK]}).then(async n=>n.json())}};Mo.PendingReservationService=Cl});var Eb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PermissionService=void 0;var Tb=b(),qx=E(),gl=class extends qx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Tb.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:[Tb.status.OK]}).then(async n=>n.json())}};Io.PermissionService=gl});var gb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PersonService=void 0;var Cb=b(),Nx=E(),bl=class extends Nx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Cb.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:[Cb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};qo.PersonService=bl});var bb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.PlaceService=void 0;var nn=b(),sn=Q(),jx=E(),Pl=class extends jx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${sn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[nn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[nn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}};No.PlaceService=Pl});var Pb=o(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HasPOSService=void 0;var jo=b(),xo=Q(),xx=E(),Al=class extends xx.Service{async search(e){return this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[jo.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[jo.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${xo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[jo.status.NO_CONTENT]})}};Uo.HasPOSService=Al});var Ab=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.PriceSpecificationService=void 0;var Do=b(),Ux=E(),wl=class extends Ux.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Do.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Do.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Do.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Do.status.NO_CONTENT]})}};Lo.PriceSpecificationService=wl});var wb=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ProductService=void 0;var on=b(),Dx=E(),an="/products",Rl=class extends Dx.Service{async createProduct(e){return this.fetch({uri:an,method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:an,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${an}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[on.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Fo.ProductService=Rl});var Rb=o(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.ProjectService=void 0;var ko=b(),Lx=E(),Ml=class extends Lx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[ko.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[ko.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[ko.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[ko.status.NO_CONTENT]})}};Bo.ProjectService=Ml});var Mb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var $o=b(),Fx=E(),Il=class extends Fx.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[$o.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[$o.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[$o.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[$o.status.NO_CONTENT]})}};Go.ProjectMakesOfferService=Il});var Ib=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ReservationService=void 0;var kx=b(),Bx=E(),ql=class extends Bx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[kx.status.NO_CONTENT]})}};Ko.ReservationService=ql});var qb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.OfferService=void 0;var Nl=b(),$x=E(),jl=class extends $x.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]})}};Wo.OfferService=jl});var Nb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogService=void 0;var Ho=b(),Gx=E(),xl=class extends Gx.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]})}};Vo.OfferCatalogService=xl});var jb=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferCatalogItemService=void 0;var cn=b(),Kx=E(),Ul=class extends Kx.Service{async create(e){return this.fetch({uri:"/offerCatalogItems",method:"POST",body:e,expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[cn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.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:[cn.status.OK]}).then(async s=>s.json())}};zo.OfferCatalogItemService=Ul});var xb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.OfferItemConditionService=void 0;var Yo=b(),Wx=E(),Dl=class extends Wx.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Yo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Yo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yo.status.NO_CONTENT]})}};Qo.OfferItemConditionService=Dl});var Ub=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerService=void 0;var _e=b(),Hx=E(),Ll=class extends Hx.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};Zo.SellerService=Ll});var Db=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerMakesOfferService=void 0;var Fl=b(),Vx=E(),kl=class extends Vx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Fl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Fl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Fl.status.NO_CONTENT]})}};Jo.SellerMakesOfferService=kl});var Lb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.SellerReturnPolicyService=void 0;var un=b(),zx=E(),Bl=class extends zx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[un.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[un.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:[un.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:[un.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[un.status.NO_CONTENT]})}};Xo.SellerReturnPolicyService=Bl});var Fb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TaskService=void 0;var $l=b(),Yx=E(),Gl=class extends Yx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[$l.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[$l.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[$l.status.OK]}).then(async r=>r.json())}};ea.TaskService=Gl});var kb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TicketService=void 0;var Qx=b(),Zx=E(),Kl=class extends Zx.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[Qx.status.OK]}).then(async r=>r.json())}};ta.TicketService=Kl});var Bb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.AssetTransactionService=void 0;var Jx=b(),Xx=E(),Wl=class extends Xx.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[Jx.status.OK]}).then(async r=>({data:await r.json()}))}};ra.AssetTransactionService=Wl});var $b=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.PayAssetTransactionService=void 0;var na=b(),fr=Q(),eU=E(),Hl=class extends eU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${fr.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,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[na.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[na.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[na.status.OK]}).then(async r=>r.json())}};sa.PayAssetTransactionService=Hl});var Gb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.ReserveAssetTransactionService=void 0;var ia=b(),tU=E(),Vl=class extends tU.Service{async start(e){return this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,expectedStatusCodes:[ia.status.OK]}).then(async r=>r.json())}async startWithNoResponse(e){await this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,qs:{expectsNoContent:"1"},expectedStatusCodes:[ia.status.NO_CONTENT]})}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/reserve/${r}/confirm?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/reserve/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT]})}};oa.ReserveAssetTransactionService=Vl});var Kb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.TokenService=void 0;var rU=E(),zl=class extends rU.Service{};aa.TokenService=zl});var Hb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.PlaceOrderTransactionService=void 0;var Wb=b(),nU=Q(),sU=E(),Yl=class extends sU.Service{typeOf=nU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Wb.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Wb.status.OK]}).then(async s=>s.json())}};ca.PlaceOrderTransactionService=Yl});var Vb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.ReturnOrderTransactionService=void 0;var iU=b(),oU=Q(),aU=E(),Ql=class extends aU.Service{typeOf=oU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[iU.status.OK]}).then(async r=>({data:await r.json()}))}};ua.ReturnOrderTransactionService=Ql});var zb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.TransactionNumberService=void 0;var cU=b(),uU=E(),Zl=class extends uU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[cU.status.CREATED]}).then(async e=>e.json())}};da.TransactionNumberService=Zl});var Yb=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.UserPoolService=void 0;var Jl=b(),dU=E(),Xl=class extends dU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[Jl.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[Jl.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:[Jl.status.OK]}).then(async r=>r.json())}};la.UserPoolService=Xl});var Qb=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.WebSiteService=void 0;var fa=b(),lU=E(),ef=class extends lU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[fa.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[fa.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[fa.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fa.status.NO_CONTENT]})}};ha.WebSiteService=ef});var Zb=o(Ge=>{"use strict";var fU=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]})),hU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=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"&&fU(r,e,n[s]);return hU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevreConsole=Ge.service=void 0;var _;(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.AdditionalProperty||(t.AdditionalProperty={});let i;i=t.AggregateOffer||(t.AggregateOffer={});let u;u=t.AggregateReservation||(t.AggregateReservation={});let d;d=t.Aggregation||(t.Aggregation={});let f;f=t.Authorization||(t.Authorization={});let p;p=t.CategoryCode||(t.CategoryCode={});let y;y=t.CreativeWork||(t.CreativeWork={});let S;S=t.Customer||(t.Customer={});let m;m=t.CustomerType||(t.CustomerType={});let g;g=t.EmailMessage||(t.EmailMessage={});let w;w=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let I;I=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let D;D=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let U;U=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let j;j=t.MemberProgram||(t.MemberProgram={});let B;B=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let W;W=t.Message||(t.Message={});let $;$=t.MovieTicketType||(t.MovieTicketType={});let Y;Y=t.Order||(t.Order={});let Te;Te=t.OwnershipInfo||(t.OwnershipInfo={});let oe;oe=t.PaymentProduct||(t.PaymentProduct={});let se;se=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let ie;ie=t.PendingReservation||(t.PendingReservation={});let ee;ee=t.Permission||(t.Permission={});let et;et=t.Person||(t.Person={});let it;it=t.Place||(t.Place={});let tt;(function(x){let gr;gr=x.HasPOS||(x.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let c;c=t.Project||(t.Project={});let l;l=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let h;h=t.Reservation||(t.Reservation={});let v;v=t.Offer||(t.Offer={});let T;T=t.OfferCatalog||(t.OfferCatalog={});let P;P=t.OfferCatalogItem||(t.OfferCatalogItem={});let A;A=t.OfferItemCondition||(t.OfferItemCondition={});let L;L=t.Seller||(t.Seller={});let z;z=t.SellerMakesOffer||(t.SellerMakesOffer={});let Z;Z=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let ue;ue=t.Task||(t.Task={});let Pe;Pe=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let Mt;(function(x){let gr;gr=x.Pay||(x.Pay={});let gn;gn=x.Reserve||(x.Reserve={})})(Mt=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Ae;(function(x){let gr;gr=x.PlaceOrder||(x.PlaceOrder={});let gn;gn=x.ReturnOrder||(x.ReturnOrder={})})(Ae=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let Cr;Cr=t.UserPool||(t.UserPool={});let $A;$A=t.WebSite||(t.WebSite={})})(_||(Ge.service=_={}));var tf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Lg()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(Fg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(kg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Bg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Gg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Kg()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Wg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Hg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(Vg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(zg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Yg()))).CustomerService),new _.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return _.CustomerType.svc===void 0&&(_.CustomerType.svc=(await Promise.resolve().then(()=>F(Qg()))).CustomerTypeService),new _.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return _.EmailMessage.svc===void 0&&(_.EmailMessage.svc=(await Promise.resolve().then(()=>F(Zg()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(Xg()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(rb()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(nb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(sb()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(ib()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(ob()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(ab()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(ub()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(db()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(lb()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(fb()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(hb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(yb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(pb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(vb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(Sb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(mb()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(Ob()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Eb()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(gb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(bb()))).PlaceService),new _.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return _.place.HasPOS.svc===void 0&&(_.place.HasPOS.svc=(await Promise.resolve().then(()=>F(Pb()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(Ab()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(wb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(Rb()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Mb()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(Ib()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(qb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Nb()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(jb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(xb()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(Ub()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(Db()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Lb()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(Fb()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(kb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Bb()))).AssetTransactionService),new _.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return _.assetTransaction.Pay.svc===void 0&&(_.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F($b()))).PayAssetTransactionService),new _.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createReserveAssetTransactionInstance(e){return _.assetTransaction.Reserve.svc===void 0&&(_.assetTransaction.Reserve.svc=(await Promise.resolve().then(()=>F(Gb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F(Kb()))).TokenService),new _.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return _.transaction.PlaceOrder.svc===void 0&&(_.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(Hb()))).PlaceOrderTransactionService),new _.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return _.transaction.ReturnOrder.svc===void 0&&(_.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>F(Vb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(zb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Yb()))).UserPoolService),new _.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return _.WebSite.svc===void 0&&(_.WebSite.svc=(await Promise.resolve().then(()=>F(Qb()))).WebSiteService),new _.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Ge.ChevreConsole=tf});var Jb=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PaymentService=void 0;var me=b(),ve=Q(),yU=E(),pU=["awashimakisen-production","awashimakisen-test"],rf=class extends yU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,issuedThrough:u,paymentMethod:d,creditCard:f,method:p,paymentMethodId:y,name:S,additionalProperty:m,ticketToken:g,eventIdsAsOrderedItem:w}=r,{acceptedPaymentMethodOfferIds:R}=s;if((typeof y!="string"||y==="")&&(typeof g!="string"||g===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!pU.includes(this.options.project.id)&&(!Array.isArray(w)||w.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:u,paymentMethod:d,...f!=null?{creditCard:f}:void 0,...typeof S=="string"?{name:S}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{paymentMethodId:y}:void 0,...typeof g=="string"?{ticketToken:g}:void 0,...Array.isArray(m)?{additionalProperty:m}:void 0,...Array.isArray(w)?{eventIdsAsOrderedItem:w}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:R}},qs:{async:!0,purpose:{id:n.id}}}).then(async D=>D.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:u,paymentMethod:d,movieTickets:f,name:p,additionalProperty:y,ticketToken:S}=n,{acceptedPaymentMethodOfferIds:m}=i,{checkedActionId:g}=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:u,paymentMethod:d,...Array.isArray(f)?{movieTickets:f}:void 0,...typeof p=="string"?{name:p}:void 0,...typeof S=="string"?{ticketToken:S}:void 0,...Array.isArray(y)?{additionalProperty:y}:void 0},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{checkedActionId:g,async:!0,purpose:{id:s.id}}}).then(async w=>w.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,creditCard:u,issuedThrough:d,paymentMethod:f,method:p,ticketToken:y,eventIdsAsOrderedItem:S}=r,{acceptedPaymentMethodOfferIds:m}=s;if(typeof y!="string"||y==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(S)||S.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:d,paymentMethod:f,...u!=null?{creditCard:u}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(S)?{eventIdsAsOrderedItem:S}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{async:!0,purpose:{id:n.id}}}).then(async g=>g.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ya.PaymentService=rf});var Xb=o(Ke=>{"use strict";var vU=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]})),SU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mU=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"&&vU(r,e,n[s]);return SU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var dn;(function(t){let e;e=t.Payment||(t.Payment={})})(dn||(Ke.service=dn={}));var nf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return dn.Payment.svc===void 0&&(dn.Payment.svc=(await Promise.resolve().then(()=>mU(Jb()))).PaymentService),new dn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=nf});var tP=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.OfferService=void 0;var sf=b(),eP=Q(),_U=E(),of=class extends _U.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${eP.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[sf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${eP.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[sf.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:[sf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};pa.OfferService=of});var rP=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.PlaceOrderTransactionService=void 0;var hr=b(),OU=Q(),TU=E(),af=class extends TU.Service{typeOf=OU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[hr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.object})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[hr.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:[hr.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:[hr.status.NO_CONTENT]})}};va.PlaceOrderTransactionService=af});var nP=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.ReturnOrderTransactionService=void 0;var ln=b(),EU=Q(),CU=E(),cf=class extends CU.Service{typeOf=EU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[ln.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[ln.status.NO_CONTENT,ln.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[ln.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[ln.status.NO_CONTENT]})}};Sa.ReturnOrderTransactionService=cf});var sP=o(We=>{"use strict";var gU=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]})),bU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uf=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"&&gU(r,e,n[s]);return bU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxn=We.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(We.service=nt={}));var df=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>uf(tP()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>uf(rP()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>uf(nP()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=df});var iP=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.OfferService=void 0;var fn=b(),hn=Q(),PU=E(),lf=class extends PU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[fn.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/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[fn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};ma.OfferService=lf});var oP=o(He=>{"use strict";var AU=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),wU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),RU=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"&&AU(r,e,n[s]);return wU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var yn;(function(t){let e;e=t.Offer||(t.Offer={})})(yn||(He.service=yn={}));var ff=class{options;constructor(e){this.options=e}async createOfferInstance(e){return yn.Offer.svc===void 0&&(yn.Offer.svc=(await Promise.resolve().then(()=>RU(iP()))).OfferService),new yn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=ff});var aP=o(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.CategoryCodeService=void 0;var _a=b(),MU=E(),hf=class extends MU.Service{constructor(e){super({...e,retryableStatusCodes:[_a.status.BAD_GATEWAY,_a.status.FORBIDDEN,_a.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[_a.status.OK]}).then(async r=>({data:await r.json()}))}};Oa.CategoryCodeService=hf});var cP=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EmailMessageService=void 0;var Ta=b(),IU=E(),yf=class extends IU.Service{constructor(e){super({...e,retryableStatusCodes:[Ta.status.BAD_GATEWAY,Ta.status.FORBIDDEN,Ta.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Ta.status.OK]}).then(async r=>({data:await r.json()}))}};Ea.EmailMessageService=yf});var uP=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.EventService=void 0;var Ie=b(),yr=Q(),qU=E(),pf=class extends qU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==yr.factory.eventType.ScreeningEvent)throw new yr.factory.errors.Argument("typeOf",`typeOf must be ${yr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![yr.factory.eventType.ScreeningEvent].includes(n))throw new yr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new yr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e,r){let{event:n,...s}=e,i=r?.useDefaultSection===!0;return this.fetch({uri:`/events/${encodeURIComponent(String(n.id))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>{let d=await u.json();return{data:d,...d.length>0?{sectionCode:d[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>u.json())}};Ca.EventService=pf});var lP=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.PlaceService=void 0;var pn=b(),dP=Q(),NU=E(),vf=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[pn.status.BAD_GATEWAY,pn.status.FORBIDDEN,pn.status.UNAUTHORIZED]})}async searchMovieTheaters(e){return this.fetch({uri:`/places/${dP.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRooms(e){return this.fetch({uri:`/places/${dP.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}};ga.PlaceService=vf});var fP=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.HasPOSService=void 0;var ba=b(),jU=Q(),xU=E(),Sf=class extends xU.Service{constructor(e){super({...e,retryableStatusCodes:[ba.status.BAD_GATEWAY,ba.status.FORBIDDEN,ba.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${jU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ba.status.OK]}).then(async r=>r.json())}};Pa.HasPOSService=Sf});var hP=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.SellerService=void 0;var Ft=b(),UU=E(),mf=class extends UU.Service{constructor(e){super({...e,retryableStatusCodes:[Ft.status.BAD_GATEWAY,Ft.status.FORBIDDEN,Ft.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[Ft.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Ft.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:[Ft.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:[Ft.status.OK]}).then(async r=>({data:await r.json()}))}};Aa.SellerService=mf});var pP=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.service=void 0;var DU=aP(),LU=cP(),FU=uP(),kU=lP(),BU=fP(),$U=hP(),yP;(function(t){class e extends DU.CategoryCodeService{}t.CategoryCode=e;class r extends LU.EmailMessageService{}t.EmailMessage=r;class n extends FU.EventService{}t.Event=n;class s extends kU.PlaceService{}t.Place=s;let i;(function(d){class f extends BU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends $U.SellerService{}t.Seller=u})(yP||(wa.service=yP={}))});var vP=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CreativeWorkService=void 0;var GU=re(),KU=E(),_f=class extends KU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,GU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ra.CreativeWorkService=_f});var SP=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CustomerService=void 0;var WU=re(),HU=E(),Of=class extends HU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,WU.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ma.CustomerService=Of});var mP=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventService=void 0;var pr=Q(),Ia=re(),VU=E(),Tf=class extends VU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n});if(![pr.factory.eventStatusType.EventCancelled,pr.factory.eventStatusType.EventPostponed,pr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new pr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new pr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:pr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};qa.EventService=Tf});var _P=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventOfferService=void 0;var zU=re(),YU=E(),Ef=class extends YU.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,zU.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};Na.EventOfferService=Ef});var OP=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventSeriesService=void 0;var QU=re(),ZU=E(),Cf=class extends ZU.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,QU.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};ja.EventSeriesService=Cf});var EP=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MeService=void 0;var TP=re(),JU=E(),gf=class extends JU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,TP.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,TP.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};xa.MeService=gf});var CP=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.NoteAboutOrderService=void 0;var bf=re(),XU=E(),Pf=class extends XU.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,bf.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,bf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,bf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Ua.NoteAboutOrderService=Pf});var bP=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.OfferService=void 0;var mt=Q(),gP=re(),eD=E();function tD(t){let e={price:t.priceSpecification.price,referenceQuantity:t.priceSpecification.referenceQuantity,...typeof t.priceSpecification.accounting?.typeOf=="string"?{accounting:t.priceSpecification.accounting}:void 0};return{id:String(t.id),identifier:t.identifier,name:t.name,priceSpecification:e,...t.alternateName!==void 0&&t.alternateName!==null?{alternateName:t.alternateName}:void 0}}var Af=class extends eD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,gP.loadChevreAdmin)({auth:r,endpoint:n});if(e.limit!==void 0&&typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(e.page!==void 0&&typeof e.page!="number")throw new mt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new mt.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new mt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");let p=await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),y={id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},...typeof e.limit=="number"?{limit:Math.min(e.limit,100)}:void 0,...typeof e.page=="number"?{page:Math.max(e.page,1)}:void 0};return(await p.search({...y,$projection:{id:1,identifier:1,alternateName:1,name:1,priceSpecification:1}})).map(tD)}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,gP.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==mt.factory.product.ProductType.EventService&&y!==mt.factory.product.ProductType.Product)throw new mt.factory.errors.Argument("itemOffered.typeOf",`must be ${mt.factory.product.ProductType.EventService} or ${mt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};Da.OfferService=Af});var PP=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogService=void 0;var vn=Q(),rD=re(),nD=E(),wf=class extends nD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,rD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==vn.factory.product.ProductType.EventService&&y!==vn.factory.product.ProductType.Product)throw new vn.factory.errors.Argument("itemOffered.typeOf",`must be ${vn.factory.product.ProductType.EventService} or ${vn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogService=wf});var wP=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferCatalogItemService=void 0;var AP=re(),sD=E(),Rf=class extends sD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,AP.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,AP.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Fa.OfferCatalogItemService=Rf});var MP=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OrderService=void 0;var ka=Q(),Sn=re(),iD=E(),RP=20,Mf=class extends iD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findByOrderNumber({orderNumber:String(e.orderNumber)},{})}async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new ka.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new ka.factory.errors.Argument("page","must be number");if(d<1||d>RP)throw new ka.factory.errors.Argument("limit",`must be >=1 and <=${RP}`);if(f<1)throw new ka.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ba.OrderService=Mf});var IP=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PaymentMethodService=void 0;var oD=re(),aD=E(),If=class extends aD.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=If});var qP=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.ProductService=void 0;var mn=Q(),cD=re(),uD=E(),qf=class extends uD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,cD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==mn.factory.product.ProductType.EventService&&f!==mn.factory.product.ProductType.Product)throw new mn.factory.errors.Argument("typeOf",`must be ${mn.factory.product.ProductType.EventService} or ${mn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Ga.ProductService=qf});var jP=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ReservationService=void 0;var _n=Q(),Ka=re(),dD=E(),NP=20,Nf=class extends dD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ka.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new _n.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new _n.factory.errors.Argument("page","must be number");if(d<1||d>NP)throw new _n.factory.errors.Argument("limit",`must be >=1 and <=${NP}`);if(f<1)throw new _n.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Ka.loadChevreAdmin)({auth:i,endpoint:u}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Ka.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 _n.factory.errors.ArgumentNull("seller.id");let u=await(0,Ka.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Wa.ReservationService=Nf});var xP=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.SellerService=void 0;var lD=re(),fD=E(),jf=class extends fD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,lD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Ha.SellerService=jf});var UP=o(Ve=>{"use strict";var hD=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]})),yD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&hD(r,e,n[s]);return yD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var G;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.NoteAboutOrder||(t.NoteAboutOrder={});let f;f=t.Offer||(t.Offer={});let p;p=t.OfferCatalog||(t.OfferCatalog={});let y;y=t.OfferCatalogItem||(t.OfferCatalogItem={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Seller||(t.Seller={})})(G||(Ve.service=G={}));var je=[],xf=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 G.CreativeWork.svc===void 0&&(G.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(vP()))).CreativeWorkService),new G.CreativeWork.svc({...this.options,...e,retryableStatusCodes:je})}async createCustomerInstance(e){return G.Customer.svc===void 0&&(G.Customer.svc=(await Promise.resolve().then(()=>Ce(SP()))).CustomerService),new G.Customer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventInstance(e){return G.Event.svc===void 0&&(G.Event.svc=(await Promise.resolve().then(()=>Ce(mP()))).EventService),new G.Event.svc({...this.options,...e,retryableStatusCodes:je})}async createEventOfferInstance(e){return G.EventOffer.svc===void 0&&(G.EventOffer.svc=(await Promise.resolve().then(()=>Ce(_P()))).EventOfferService),new G.EventOffer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventSeriesInstance(e){return G.EventSeries.svc===void 0&&(G.EventSeries.svc=(await Promise.resolve().then(()=>Ce(OP()))).EventSeriesService),new G.EventSeries.svc({...this.options,...e,retryableStatusCodes:je})}async createMeInstance(){return G.Me.svc===void 0&&(G.Me.svc=(await Promise.resolve().then(()=>Ce(EP()))).MeService),new G.Me.svc({...this.options})}async createNoteInstance(e){return G.NoteAboutOrder.svc===void 0&&(G.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(CP()))).NoteAboutOrderService),new G.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferInstance(e){return G.Offer.svc===void 0&&(G.Offer.svc=(await Promise.resolve().then(()=>Ce(bP()))).OfferService),new G.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return G.OfferCatalog.svc===void 0&&(G.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(PP()))).OfferCatalogService),new G.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferCatalogItemInstance(e){return G.OfferCatalogItem.svc===void 0&&(G.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(wP()))).OfferCatalogItemService),new G.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:je})}async createOrderInstance(e){return G.Order.svc===void 0&&(G.Order.svc=(await Promise.resolve().then(()=>Ce(MP()))).OrderService),new G.Order.svc({...this.options,...e,retryableStatusCodes:je})}async createPaymentMethodInstance(e){return G.PaymentMethod.svc===void 0&&(G.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(IP()))).PaymentMethodService),new G.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:je})}async createProductInstance(e){return G.Product.svc===void 0&&(G.Product.svc=(await Promise.resolve().then(()=>Ce(qP()))).ProductService),new G.Product.svc({...this.options,...e,retryableStatusCodes:je})}async createReservationInstance(e){return G.Reservation.svc===void 0&&(G.Reservation.svc=(await Promise.resolve().then(()=>Ce(jP()))).ReservationService),new G.Reservation.svc({...this.options,...e,retryableStatusCodes:je})}async createSellerInstance(e){return G.Seller.svc===void 0&&(G.Seller.svc=(await Promise.resolve().then(()=>Ce(xP()))).SellerService),new G.Seller.svc({...this.options,...e,retryableStatusCodes:je})}};Ve.CloudAdmin=xf});var DP=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.OrderService=void 0;var kt=re(),pD=E(),Uf=class extends pD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:m,orderNumber:g}=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,...m!==void 0?{orderDateThrough:m}:void 0,...typeof g=="string"?{orderNumber:g}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,m=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:g}=await m.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:g}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:m}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:m,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0})}};Va.OrderService=Uf});var LP=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.DeliveryService=void 0;var vD=re(),SD=E(),Df=class extends SD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,vD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};za.DeliveryService=Df});var kP=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.ReservationService=void 0;var FP=re(),mD=E(),Lf=class extends mD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,FP.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,FP.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Ya.ReservationService=Lf});var BP=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.TokenService=void 0;var _D=E(),Ff=class extends _D.Service{};Qa.TokenService=Ff});var $P=o(ze=>{"use strict";var OD=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]})),TD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Za=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"&&OD(r,e,n[s]);return TD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var Ja=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||(ze.service=qe={}));var Xa=[Ja.status.BAD_GATEWAY,Ja.status.SERVICE_UNAVAILABLE,Ja.status.FORBIDDEN,Ja.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(()=>Za(DP()))).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(LP()))).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(kP()))).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(BP()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:Xa})}};ze.CloudAsset=kf});var GP=o(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.CreativeWorkService=void 0;var ED=b(),CD=E(),Bf=class extends CD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[ED.status.OK]}).then(async r=>r.json())}};ec.CreativeWorkService=Bf});var KP=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.PaymentProductService=void 0;var gD=b(),bD=E(),$f=class extends bD.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:[gD.status.OK]}).then(async i=>i.json())}};tc.PaymentProductService=$f});var WP=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.ProductService=void 0;var Gf=b(),PD=E(),Kf=class extends PD.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:[Gf.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:[Gf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[Gf.status.OK]}).then(async i=>i.json())}};rc.ProductService=Kf});var HP=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.EventOfferService=void 0;var AD=b(),wD=E(),RD="/eventOffers",Wf=class extends wD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:RD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[AD.status.OK]}).then(async d=>d.json())}};nc.EventOfferService=Wf});var zP=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.PlaceService=void 0;var VP=b(),MD=E(),Hf=class extends MD.Service{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:[VP.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[VP.status.OK]}).then(async f=>f.json())}};sc.PlaceService=Hf});var YP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.SeatOfferService=void 0;var ID=b(),qD=E(),ND="/seatOffers",Vf=class extends qD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:ND,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[ID.status.OK]}).then(async u=>u.json())}};ic.SeatOfferService=Vf});var QP=o(Ye=>{"use strict";var jD=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]})),xD=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vr=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&jD(r,e,n[s]);return xD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var zf=b(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[zf.status.BAD_GATEWAY,zf.status.FORBIDDEN,zf.status.UNAUTHORIZED],Yf=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(GP()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>vr(KP()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Sr})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>vr(WP()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Sr})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>vr(HP()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>vr(zP()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Sr})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>vr(YP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=Yf});var XP=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PaymentService=void 0;var le=b(),ge=Q(),be=re(),UD=E(),ZP=1e3,DD=5e3;async function JP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Qf=class extends UD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:u});return w.authorizeCreditCard({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,{checkedActionId:u}=r,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,g=await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S}),{ticketToken:w}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await g.createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:w},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}},{checkedActionId:u})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:u});if(typeof R!="string"||R==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return w.publishCreditCardPaymentUrl({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),m=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},g=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(g.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:g,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:m})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,I=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!g;){try{R=await m.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(D){I=D}await JP(DD),console.log("retrying issueTicketThroughMovieTicket...",I?.name,g)}if(typeof R?.ticketToken=="string")return R;throw I}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>ZP?r.intervalAfterIssueTicketInMS:ZP,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await JP(d),y}};oc.PaymentService=Qf});var eA=o(Qe=>{"use strict";var LD=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]})),FD=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kD=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"&&LD(r,e,n[s]);return FD(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var ac=b(),On;(function(t){let e;e=t.Payment||(t.Payment={})})(On||(Qe.service=On={}));var BD=[ac.status.BAD_GATEWAY,ac.status.SERVICE_UNAVAILABLE,ac.status.FORBIDDEN,ac.status.UNAUTHORIZED],Zf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return On.Payment.svc===void 0&&(On.Payment.svc=(await Promise.resolve().then(()=>kD(XP()))).PaymentService),new On.Payment.svc({...this.options,...e,retryableStatusCodes:BD})}};Qe.CloudPay=Zf});var sA=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.authorizeOfferAsync=GD;cc.voidAuthorizeOfferAsync=KD;var te=Q(),tA=2e4,rA=1e3;async function nA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function $D(t){let e;switch(t.reason){case te.factory.errorCode.Argument:e=new te.factory.errors.Argument("",t.message);break;case te.factory.errorCode.ArgumentNull:e=new te.factory.errors.ArgumentNull("",t.message);break;case te.factory.errorCode.Unauthorized:e=new te.factory.errors.Unauthorized(t.message);break;case te.factory.errorCode.Forbidden:e=new te.factory.errors.Forbidden(t.message);break;case te.factory.errorCode.NotFound:e=new te.factory.errors.NotFound("",t.message);break;case te.factory.errorCode.AlreadyInUse:e=new te.factory.errors.AlreadyInUse("",[],t.message);break;case te.factory.errorCode.RateLimitExceeded:e=new te.factory.errors.RateLimitExceeded(t.message);break;case te.factory.errorCode.GatewayTimeout:e=new te.factory.errors.GatewayTimeout(t.message);break;default:e=new te.factory.errors.Internal(t.message)}return e}function GD(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:te.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},tA);let s,i;for(;s===void 0&&i===void 0;){if(await nA(rA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===te.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=$D(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});throw i}}function KD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},tA);let s,i;for(;s===void 0&&i===void 0;){if(await nA(rA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(u.status===te.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var oA=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PlaceOrderCOAService=void 0;var iA=Q(),Jf=re(),WD=E(),Xf=sA(),eh=class extends WD.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,I=await(await(0,Jf.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),D=await(0,Xf.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:I});if(typeof D.result?.price!="number")throw new iA.factory.errors.Internal("result.price undefined");return{id:D.id,result:{price:D.result.price,responseBody:{tmpReserveNum:D.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,Jf.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,Xf.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:m,seller:g,disableAutoRetry:w,retryableStatusCodes:R}=this.options,D=await(await(0,Jf.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:m,seller:{id:typeof g?.id=="string"?g.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),C=await(0,Xf.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:D});if(typeof C.result?.price!="number")throw new iA.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};uc.PlaceOrderCOAService=eh});var aA=o(Ze=>{"use strict";var HD=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]})),VD=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zD=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"&&HD(r,e,n[s]);return VD(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var dc=b(),Tn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(Tn||(Ze.service=Tn={}));var YD=[dc.status.BAD_GATEWAY,dc.status.SERVICE_UNAVAILABLE,dc.status.FORBIDDEN,dc.status.UNAUTHORIZED],th=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 Tn.transaction.PlaceOrder.svc===void 0&&(Tn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>zD(oA()))).PlaceOrderCOAService),new Tn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:YD})}};Ze.CloudTxc=th});var cA=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.OfferService=void 0;var QD=Q(),rh=re(),ZD=E(),nh=class extends ZD.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,rh.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:m,eventOfferId:g}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:m,eventOfferId:g})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,rh.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:QD.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,rh.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};lc.OfferService=nh});var uA=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PlaceOrderTransactionService=void 0;var mr=b(),_r=re(),JD=E(),sh=class extends JD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u}=e,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u,expectsMinimalResponse:!0})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};fc.PlaceOrderTransactionService=sh});var dA=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.ReturnOrderTransactionService=void 0;var ih=re(),XD=E(),oh=class extends XD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,ih.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,ih.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,ih.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};hc.ReturnOrderTransactionService=oh});var lA=o(Je=>{"use strict";var eL=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ah=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"&&eL(r,e,n[s]);return tL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var yc=b(),st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(Je.service=st={}));var ch=[yc.status.BAD_GATEWAY,yc.status.SERVICE_UNAVAILABLE,yc.status.FORBIDDEN,yc.status.UNAUTHORIZED],uh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>ah(cA()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:ch})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>ah(uA()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:ch})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>ah(dA()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:ch})}};Je.CloudTxn=uh});var fA=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.RuleService=void 0;var rL=b(),nL=E(),dh=class extends nL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[rL.status.OK]}).then(async r=>r.json())}};pc.RuleService=dh});var yA=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.RuleSetService=void 0;var hA=b(),sL=E(),lh=class extends sL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[hA.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[hA.status.NO_CONTENT]})}};vc.RuleSetService=lh});var vA=o(Xe=>{"use strict";var iL=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pA=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&iL(r,e,n[s]);return oL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Rt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Rt||(Xe.service=Rt={}));var fh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Rt.Rule.svc===void 0&&(Rt.Rule.svc=(await Promise.resolve().then(()=>pA(fA()))).RuleService),new Rt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Rt.RuleSet.svc===void 0&&(Rt.RuleSet.svc=(await Promise.resolve().then(()=>pA(yA()))).RuleSetService),new Rt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=fh});var re=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]})),cL=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 cL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=lL;X.loadChevreAsset=fL;X.loadChevreAdmic=hL;X.loadChevreAdmin=yL;X.loadChevreConsole=pL;X.loadChevrePay=vL;X.loadChevreTxn=SL;X.loadChevreTxc=mL;X.loadService=_L;X.loadCloudAdmin=OL;X.loadCloudAsset=TL;X.loadCloudSearch=EL;X.loadCloudPay=CL;X.loadCloudTxc=gL;X.loadCloudTxn=bL;X.loadWaiterAdmin=PL;var uL=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return uL.factory}});var dL=Oe(Bs());X.transporters=dL;var hh;async function lL(...t){return hh===void 0&&(hh=(await Promise.resolve().then(()=>Oe(VC()))).Chevre),new hh(...t)}var yh;async function fL(...t){return yh===void 0&&(yh=(await Promise.resolve().then(()=>Oe(JC()))).ChevreAsset),new yh(...t)}var ph;async function hL(...t){return ph===void 0&&(ph=(await Promise.resolve().then(()=>Oe(tg()))).ChevreAdmic),new ph(...t)}var vh;async function yL(...t){return vh===void 0&&(vh=(await Promise.resolve().then(()=>Oe(Dg()))).ChevreAdmin),new vh(...t)}var Sh;async function pL(...t){return Sh===void 0&&(Sh=(await Promise.resolve().then(()=>Oe(Zb()))).ChevreConsole),new Sh(...t)}var mh;async function vL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(Xb()))).ChevrePay),new mh(...t)}var _h;async function SL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(sP()))).ChevreTxn),new _h(...t)}var Oh;async function mL(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(oP()))).ChevreTxc),new Oh(...t)}var Th;async function _L(){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(pP()))).service),Th}var Eh;async function OL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(UP()))).CloudAdmin),new Eh(...t)}var Ch;async function TL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe($P()))).CloudAsset),new Ch(...t)}var gh;async function EL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(QP()))).CloudSearch),new gh(...t)}var bh;async function CL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(eA()))).CloudPay),new bh(...t)}var Ph;async function gL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(aA()))).CloudTxc),new Ph(...t)}var Ah;async function bL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(lA()))).CloudTxn),new Ah(...t)}var wh;async function PL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(vA()))).WaiterAdmin),new wh(...t)}});var SA=o(Bt=>{"use strict";var AL=Bt&&Bt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),wL=Bt&&Bt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&AL(e,t,r)};Object.defineProperty(Bt,"__esModule",{value:!0});wL(re(),Bt)});var MA=o((s5,RA)=>{var Gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kt(t){var e={exports:{}};return t(e,e.exports),e.exports}var RL=Kt(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(u?u(R):U())},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]",m=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function g(){var h=setTimeout;return function(){return h(R,1)}}var w=new Array(1e3);function R(){for(var h=0;h<s;h+=2)(0,w[h])(w[h+1]),w[h]=void 0,w[h+1]=void 0;s=0}var I,D,C,M,U=void 0;function k(h,v){var T=this,P=new this.constructor(B);P[j]===void 0&&a(P);var A=T._state;if(A){var L=arguments[A-1];d(function(){return tt(A,P,L,T._result)})}else et(T,P,h,v);return P}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(B);return oe(v,h),v}U=S?function(){return process.nextTick(R)}:y?(D=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=D=++D%2}):m?((I=new MessageChannel).port1.onmessage=R,function(){return I.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:g()}catch{return g()}})():g();var j=Math.random().toString(36).substring(2);function B(){}var W=void 0,$=1,Y=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(P,A){A._state===$?ie(P,A._result):A._state===Y?ee(P,A._result):et(A,void 0,function(L){return oe(P,L)},function(L){return ee(P,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(P,A,L){d(function(z){var Z=!1,ue=(function(Pe,Ee,Mt,ye){try{Pe.call(Ee,function(Ae){Z||(Z=!0,A!==Ae?oe(z,Ae):ie(z,Ae))},function(Ae){Z||(Z=!0,ee(z,Ae))})}catch(Ae){return Ae}})(L,A);!Z&&ue&&(Z=!0,ee(z,ue))},P)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(A=typeof(P=v),P===null||A!=="object"&&A!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var P,A}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(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=Y,h._result=v,d(se,h))}function et(h,v,T,P){var A=h._subscribers,L=A.length;h._onerror=null,A[L]=v,A[L+$]=T,A[L+Y]=P,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var P=void 0,A=void 0,L=h._result,z=0;z<v.length;z+=3)A=v[z+T],(P=v[z])?tt(T,P,A,L):A(L);h._subscribers.length=0}}function tt(h,v,T,P){var A=r(T),L=void 0,z=void 0,Z=!0;if(A){try{L=T(P)}catch(ue){Z=!1,z=ue}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=P;v._state!==W||(A&&Z?oe(v,L):Z===!1?ee(v,z):h===$?ie(v,L):h===Y&&ee(v,L))}var Ue=0;function a(h){h[j]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var c=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(B),this.promise[j]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===W&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var P=this._instanceConstructor,A=P.resolve;if(A===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Pe){Z=!0,z=Pe}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(P===l){var ue=new P(B);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new P(function(Pe){return Pe(v)}),T)}else this._willSettleAt(A(v),T)},h.prototype._settledAt=function(v,T,P){var A=this.promise;A._state===W&&(this._remaining--,v===Y?ee(A,P):this._result[T]=P),this._remaining===0&&ie(A,this._result)},h.prototype._willSettleAt=function(v,T){var P=this;et(v,void 0,function(A){return P._settledAt($,T,A)},function(A){return P._settledAt(Y,T,A)})},h})(),l=(function(){function h(v){this[j]=Ue++,this._result=this._state=void 0,this._subscribers=[],B!==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,P){try{P(function(A){oe(T,A)},function(A){ee(T,A)})}catch(A){ee(T,A)}})(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,P=T.constructor;return r(v)?T.then(function(A){return P.resolve(v()).then(function(){return A})},function(A){return P.resolve(v()).then(function(){throw A})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,P){for(var A=h.length,L=0;L<A;L++)v.resolve(h[L]).then(T,P)}):new v(function(T,P){return P(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(B);return ee(v,h),v},l._setScheduler=function(h){u=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Gt!==void 0)h=Gt;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})()}),ML={__proto__:null,default:{}},Nh=Kt(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&&Gt!==void 0&&Gt.crypto&&(i=Gt.crypto),!i)try{i=ML}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var U;return C.prototype=M,U=new C,C.prototype=null,U}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var M=this.words,U=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var j=0;j<K;j++)M[k+j>>>2]|=(U[j>>>2]>>>24-j%4*8&255)<<24-(k+j)%4*8;else for(var B=0;B<K;B+=4)M[k+B>>>2]=U[B>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],U=0;U<C;U+=4)M.push(u());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++){var j=M[K>>>2]>>>24-K%4*8&255;k.push((j>>>4).toString(16)),k.push((15&j).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k+=2)U[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(U,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k++)U[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(U,M)}},R=m.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},I=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,U=this._data,k=U.words,K=U.sigBytes,j=this.blockSize,B=K/(4*j),W=(B=C?n.ceil(B):n.max((0|B)-this._minBufferSize,0))*j,$=n.min(4*W,K);if(W){for(var Y=0;Y<W;Y+=j)this._doProcessBlock(k,Y);M=k.splice(0,W),U.sigBytes-=$}return new S.init(M,$)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=I.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,U){return new C.init(U).finalize(M)}},_createHmacHelper:function(C){return function(M,U){return new D.HMAC.init(C,U).finalize(M)}}});var D=f.algo={};return f})(Math),r)}),CA=Kt(function(t,e){var r;t.exports=(r=Nh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(D){for(var C=n.sqrt(D),M=2;M<=C;M++)if(!(D%M))return!1;return!0}function w(D){return 4294967296*(D-(0|D))|0}for(var R=2,I=0;I<64;)g(R)&&(I<8&&(p[I]=w(n.pow(R,.5))),y[I]=w(n.pow(R,1/3)),I++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,I=R[0],D=R[1],C=R[2],M=R[3],U=R[4],k=R[5],K=R[6],j=R[7],B=0;B<64;B++){if(B<16)S[B]=0|g[w+B];else{var W=S[B-15],$=S[B-2];S[B]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[B-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[B-16]}var Y=I&D^I&C^D&C,Te=j+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&k^~U&K)+y[B]+S[B];j=K,K=k,k=U,U=M+Te|0,M=C,C=D,D=I,I=Te+(((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+Y)|0}R[0]=R[0]+I|0,R[1]=R[1]+D|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+U|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+j|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,I=8*g.sigBytes;return w[I>>>5]|=128<<24-I%32,w[14+(I+64>>>9<<4)]=n.floor(R/4294967296),w[15+(I+64>>>9<<4)]=R,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=d.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=d._createHelper(m),s.HmacSHA256=d._createHmacHelper(m)})(Math),r.SHA256)}),IL=Kt(function(t,e){var r,n;t.exports=(n=(r=Nh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(y>>>6*(3-S)&63));var m=d.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,I=0;I<m;I++)if(I%4){var D=g[S.charCodeAt(I-1)]<<I%4*2,C=g[S.charCodeAt(I)]>>>6-I%4*2;w[R>>>2]|=(D|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),mA=Kt(function(t,e){t.exports=Nh.enc.Hex}),gA=Kt(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var P=32767&c,A=c>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=A*L+z*P;v=((L=P*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+A*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,h,v,T){for(;--T>=0;){var P=c*this[a++]+l[h]+v;v=Math.floor(P/67108864),l[h++]=67108863&P}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var P=16383&c,A=c>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=A*L+z*P;v=((L=P*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+A*z,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 u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function m(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function g(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function I(a,c){return a|c}function D(a,c){return a^c}function C(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function U(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function j(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}g.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},g.prototype.revert=function(a){return a},g.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},g.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},g.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],h=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,h,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var P=l==8?255&a[h]:y(a,h);P<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=P:T+l>this.DB?(this[this.t-1]|=(P&(1<<this.DB-T)-1)<<T,this[this.t++]=P>>this.DB-T):this[this.t-1]|=P<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,P=Math.floor(a/this.DB),A=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+P+1]=this[l]>>v|A,A=(this[l]&T)<<h;for(l=P-1;l>=0;--l)c[l]=0;c[P]=A,c.t=this.t+P+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var P=l+1;P<this.t;++P)c[P-l-1]|=(this[P]&T)<<v,c[P-l]=this[P]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),P=this.s,A=a.s,L=this.DB-m(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var ue=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Pe=this.FV/ue,Ee=(1<<this.F1)/ue,Mt=1<<this.F2,ye=l.t,Ae=ye-z,ot=c??s();for(T.dlShiftTo(Ae,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Ae>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+Mt)*Ee);if((l[ye]+=T.am(0,Cr,l,Ae,0,z))<Cr)for(T.dlShiftTo(Ae,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),P!=A&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),P<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=c.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,h),(a&1<<T)>0)c.mulTo(h,v,l);else{var P=l;l=h,h=P}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",P=this.t,A=this.DB-P*this.DB%c;if(P-- >0)for(A<this.DB&&(l=this[P]>>A)>0&&(v=!0,T=p(l));P>=0;)A<c?(l=(this[P]&(1<<A)-1)<<c-A,l|=this[--P]>>(A+=this.DB-c)):(l=this[P]>>(A-=c)&h,A<=0&&(A+=this.DB,--P)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new g(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},j.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},j.prototype.revert=function(a){return a},j.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)},j.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},j.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var B,W,$,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 oe(){var a;a=new Date().getTime(),W[$++]^=255&a,W[$++]^=a>>8&255,W[$++]^=a>>16&255,W[$++]^=a>>24&255,$>=Ue&&($-=Ue)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),h=S(l),v=s(),T=s(),P="";for(this.divRemTo(h,v,T);v.signum()>0;)P=(l+T.intValue()).toString(a).substr(1)+P,v.divRemTo(h,v,T);return T.intValue().toString(a)+P},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,P=0,A=0;A<a.length;++A){var L=y(a,A);L<0?a.charAt(A)=="-"&&this.signum()==0&&(v=!0):(P=c*P+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(P,0),T=0,P=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(P,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),c.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,c,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=c(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=c(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=c(v,a[h]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],c[l++]=h&this.DM,h>>=this.DB;h+=a.s}c.s=h<0?-1:0,h>0?c[l++]=h:h<-1&&(c[l++]=this.DV+h),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var h,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,c);v<h;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var h=l.t=this.t+a.t-c;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(c-this.t,0);h<a.t;++h)l[this.t+h-c]=this.am(c-h,a[h],l,0,0,this.t+h-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(c*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var h=c.shiftRight(l);(a=a+1>>1)>Y.length&&(a=Y.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Y[Math.floor(Math.random()*Y.length)]);var P=v.modPow(h,this);if(P.compareTo(n.ONE)!=0&&P.compareTo(c)!=0){for(var A=1;A++<l&&P.compareTo(c)!=0;)if((P=P.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(P.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,I,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,D,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,C,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=U(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,I)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,D)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new g(c):c.isEven()?new j(c):new w(c);var P=new Array,A=3,L=l-1,z=(1<<l)-1;if(P[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(P[1],Z);A<=z;)P[A]=s(),h.mulTo(Z,P[A-2],P[A]),A+=2}var ue,Pe,Ee=a.t-1,Mt=!0,ye=s();for(v=m(a[Ee])-1;Ee>=0;){for(v>=L?ue=a[Ee]>>v-L&z:(ue=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-L)),A=l;(1&ue)==0;)ue>>=1,--A;if((v-=A)<0&&(v+=this.DB,--Ee),Mt)P[ue].copyTo(T),Mt=!1;else{for(;A>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),A-=2;A>0?h.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),h.mulTo(ye,P[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),P=S(0),A=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(P.isEven()&&A.isEven()||(P.addTo(this,P),A.subTo(a,A)),P.rShiftTo(1,P)):A.isEven()||A.subTo(a,A),A.rShiftTo(1,A);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(P,v),T.subTo(A,T)):(h.subTo(l,h),c&&P.subTo(v,P),A.subTo(T,A))}return h.compareTo(n.ONE)!=0?n.ZERO:A.compareTo(a)>=0?A.subtract(a):A.signum()<0?(A.addTo(a,A),A.signum()<0?A.add(a):A):A},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Y[Y.length-1]){for(c=0;c<Y.length;++c)if(l[0]==Y[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Y.length;){for(var h=Y[c],v=c+1;v<Y.length&&h<Te;)h*=Y[v++];for(h=l.modInt(h);c<v;)if(h%Y[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=j,W==null){var se;if(W=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)W[$++]=ie[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(;$<Ue;)se=Math.floor(65536*Math.random()),W[$++]=se>>>8,W[$++]=255&se;$=0,oe()}function et(){if(B==null){for(oe(),(B=new tt).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return B.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=et()},tt.prototype.init=function(a){var c,l,h;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)h=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Gt)}),_A={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},OA={sha256:CA};function bA(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 gA.BigInteger(t,16),this.e=parseInt(e,16)}bA.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new gA.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in _A){var d=_A[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!OA.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=OA[n.alg](t).toString();return n.hash===s};for(TA=[],xe=[],PA=typeof Uint8Array<"u"?Uint8Array:Array,Rh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)TA[$t]=Rh[$t],xe[Rh.charCodeAt($t)]=$t;var TA,xe,PA,Rh,$t;xe[45]=62,xe[95]=63;var AA=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],u=new PA((function(p,y,S){return 3*(y+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=xe[t.charCodeAt(r)]<<18|xe[t.charCodeAt(r+1)]<<12|xe[t.charCodeAt(r+2)]<<6|xe[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function wA(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function EA(t){return t=wA(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(AA(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Mh(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})(AA(wA(t)))}var qL=Kt(function(t){var e,r;e=Gt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function NL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,m){i.push(S=S.toLowerCase()),u.push([S,m]),d[S]=d[S]?d[S]+","+m:m}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function jL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Ih(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Ih.prototype=Error.prototype,ne.prototype=Error.prototype;var xL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();RL.polyfill();var qh="RS256",Sc=function(t){return typeof t=="number"},UL=function(){return new Date};function En(t){var e=t||{};if(this.jwksCache=e.jwksCache||new xL,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:UL,this.leeway<0||this.leeway>300)throw new Ih("The leeway should be positive and lower than five minutes.");if(qh!==this.expectedAlg)throw new Ih('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+qh+'".')}En.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Mh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,m=n.payload.nbf,g=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,I=n.payload.nonce,D=this.__clock(),C=this;if(C.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+qh+'".'),null);this.getRsaVerifier(y,d,function(M,U){if(M)return r(M,null);if(!U.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!I||typeof I!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(I!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+I+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!Sc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!Sc(g))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),D>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+D+'" is after expiration time "'+K+'"'),null);if(m&&Sc(m)){var j=m-C.leeway,B=new Date(0);if(B.setUTCSeconds(j),D<B)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+D+'" is before the not before time "'+B+'"'),null)}if(C.maxAge){if(!R||!Sc(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var W=R+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(W),D>$)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+D+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},En.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||qL(u.iss,".well-known","jwks.json"),(fetch=="undefined"?NL:fetch)(d).then(jL).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===u.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Mh((S=m).n),exp:Mh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new bA(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},En.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(EA(n[0])),r=JSON.parse(EA(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},En.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=CA(t),u=mA.stringify(i),d=u.substring(0,u.length/2),f=mA.parse(d),p=IL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},RA.exports=En});var Cn=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.AuthorizeError=void 0;var jh=class extends Error{error;errorDescription;state};mc.AuthorizeError=jh});var IA=o(Or=>{"use strict";var DL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var LL=DL(er()),xh=(0,LL.default)("cinerino-sdk:auth:popupHandler"),Uh=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(xh("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}`)}xh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){xh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Or.PopupHandler=Uh});var qA=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.PopupAuthenticationHandler=void 0;var FL=Cn(),kL=IA(),Dh=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 kL.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 FL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};_c.PopupAuthenticationHandler=Dh});var Fh=o(Tr=>{"use strict";var BL=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var $L=BL(er()),GL=(0,$L.default)("cinerino-sdk:auth:iframeHandler"),Lh=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(GL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Tr.IframeHandler=Lh});var NA=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.SilentAuthenticationHandler=void 0;var KL=Cn(),WL=Fh(),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.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 WL.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 KL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Oc.SilentAuthenticationHandler=kh});var jA=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.SilentLogoutHandler=void 0;var HL=Cn(),VL=Fh(),Bh=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 VL.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 HL.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Tc.SilentLogoutHandler=Bh});var xA=o(()=>{});var UA=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.LoginTicket=void 0;var $h=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};Ec.LoginTicket=$h});var DA=o(_t=>{"use strict";var zL=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_t,"__esModule",{value:!0});_t.OAuth2client=_t.MAX_RETRY_NUM=void 0;var YL=xA(),QL=zL(er()),Cc=b(),ZL=Bs(),JL=UA(),Wt=(0,QL.default)("cinerino-sdk:auth:oAuth2client"),XL=1e3;_t.MAX_RETRY_NUM=2;async function eF(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Gh=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,YL.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==Cc.status.OK)if(d.status===Cc.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await eF(XL*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new ZL.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==Cc.status.OK)if(u.status===Cc.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:m}=f;d={access_token:p,id_token:y,token_type:m,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new JL.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=Gh});var kA=o(Er=>{"use strict";var FA=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var tF=FA(er()),LA=FA(MA()),Kh=$u(),rF=Cn(),nF=qA(),sF=NA(),iF=jA(),oF=DA(),gc=(0,tF.default)("cinerino-sdk:auth:implicitGrantClient"),Wh=class t extends oF.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,gc("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 sF.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 nF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await iF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return gc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),gc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Kh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new rF.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 LA.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 LA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(gc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Kh.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,Kh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=Wh});var BA=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=cF;var Ot=SA();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var aF=kA();function cF(t){return new aF.ImplicitGrantClient(t)}});var S5=window.cinerino=BA();})();
5
5
  /* istanbul ignore else -- @preserve */
6
6
  //# sourceMappingURL=bundle.js.map