@cinerino/sdk 15.0.0 → 16.0.0

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 zh=o(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0})});var ft=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});var GP;(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"})(GP=An.ErrorCode||(An.ErrorCode={}))});var Tt=o((fF,Yh)=>{"use strict";Yh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?KP:WP);function KP(t,e){return t.__proto__=e,t}function WP(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(Pr=>{"use strict";var HP=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 VP=(function(t){HP(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);Pr.WaiterError=VP});var Qh=o(wr=>{"use strict";var zP=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 YP=Tt(),QP=ft(),ZP=ht(),JP=(function(t){zP(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,QP.ErrorCode.Argument,i)||this,s.argumentName=r,YP(s,e.prototype),s}return e})(ZP.WaiterError);wr.ArgumentError=JP});var Zh=o(Rr=>{"use strict";var XP=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 ew=Tt(),tw=ft(),rw=ht(),nw=(function(t){XP(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);Rr.ArgumentNullError=nw});var Jh=o(Mr=>{"use strict";var sw=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 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);Mr.ForbiddenError=cw});var Xh=o(Ir=>{"use strict";var uw=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 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);Ir.NotFoundError=hw});var ey=o(qr=>{"use strict";var yw=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 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);qr.RateLimitExceededError=mw});var ty=o(Nr=>{"use strict";var _w=Nr&&Nr.__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(Nr,"__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);Nr.ServiceUnavailableError=Cw});var ry=o(jr=>{"use strict";var gw=jr&&jr.__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(jr,"__esModule",{value:!0});var bw=Tt(),Aw=ft(),Pw=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,Aw.ErrorCode.Unauthorized,s)||this,bw(n,e.prototype),n}return e})(Pw.WaiterError);jr.UnauthorizedError=ww});var ny=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Rw=Qh();at.Argument=Rw.ArgumentError;var Mw=Zh();at.ArgumentNull=Mw.ArgumentNullError;var Iw=Jh();at.Forbidden=Iw.ForbiddenError;var qw=Xh();at.NotFound=qw.NotFoundError;var Nw=ey();at.RateLimitExceeded=Nw.RateLimitExceededError;var jw=ty();at.ServiceUnavailable=jw.ServiceUnavailableError;var xw=ry();at.Unauthorized=xw.UnauthorizedError;var Uw=ht();at.Waiter=Uw.WaiterError});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 ly=o(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0})});var fy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Dw=zh();yt.client=Dw;var Lw=ft();yt.errorCode=Lw.ErrorCode;var Fw=ny();yt.errors=Fw;var kw=iy();yt.passport=kw;var Bw=ay();yt.project=Bw;var $w=uy();yt.rule=$w;var Gw=ly();yt.ruleSet=Gw});var yy=o(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0})});var vy=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.FlgMember=void 0;var py;(function(t){t.NonMember="0",t.Member="1"})(py||(Pn.FlgMember=py={}))});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=o(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0})});var Ey=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ObjectType=void 0;var Ty;(function(t){t.SeatReservation="SeatReservation"})(Ty||(wn.ObjectType=Ty={}))});var Cy=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ObjectType=void 0;var Kw=Ey();Object.defineProperty(Rn,"ObjectType",{enumerable:!0,get:function(){return Kw.ObjectType}})});var Ay=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var gy;(function(t){t.Payment="Payment"})(gy||(Vt.ResultType=gy={}));var by;(function(t){t.Chevre="Chevre"})(by||(Vt.ServiceIdentifier=by={}))});var wy=o(Py=>{"use strict";Object.defineProperty(Py,"__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 fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var hp=o(qt=>{"use strict";var Ww=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Hw=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ww(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});Hw(fp(),qt)});var pp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ObjectAsTransactionSpecifyingMethod=void 0;var yp;(function(t){t.Id="Id",t.AgentId="AgentId"})(yp||(Mn.ObjectAsTransactionSpecifyingMethod=yp={}))});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 Cp=o(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0})});var gp=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(_p(),pt);Pc(Tp(),pt);Pc(Cp(),pt)});var Ap=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ActionStatusType=void 0;var bp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(bp||(In.ActionStatusType=bp={}))});var wp=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.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||(qn.ActionType=Pp={}))});var Mp=o(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0})});var qp=o(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0})});var jp=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.AggregationType=void 0;var Np;(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"})(Np||(Nn.AggregationType=Np={}))});var Up=o(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0})});var Lp=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CategorySetIdentifier=void 0;var Dp;(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"})(Dp||(jn.CategorySetIdentifier=Dp={}))});var wc=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.CertificationStatusEnumeration=void 0;var Fp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Fp||(xn.CertificationStatusEnumeration=Fp={}))});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(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0})});var Yp=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.AboutIdentifier=void 0;var zp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(zp||(Un.AboutIdentifier=zp={}))});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var ev=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var Jp;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(Jp||(zt.DigitalDocumentPermissionType=Jp={}));var Xp;(function(t){t.Public="public"})(Xp||(zt.PermissionGranteeAudienceType=Xp={}))});var rv=o(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var sv=o(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0})});var Rc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.CreativeWorkType=void 0;var iv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(iv||(Dn.CreativeWorkType=iv={}))});var av=o(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var mv=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 cv;(function(t){t.pdf="application/pdf",t.json="application/json"})(cv||(ae.Application=cv={}));var uv;uv||(ae.Audio=uv={});var dv;dv||(ae.Font=dv={});var lv;lv||(ae.Example=lv={});var fv;fv||(ae.Image=fv={});var hv;hv||(ae.Message=hv={});var yv;yv||(ae.Model=yv={});var pv;pv||(ae.Multipart=pv={});var vv;(function(t){t.csv="text/csv"})(vv||(ae.Text=vv={}));var Sv;Sv||(ae.Video=Sv={})});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 gv=o(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var Mc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.EventStatusType=void 0;var bv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(bv||(Ln.EventStatusType=bv={}))});var Ic=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.EventType=void 0;var Av;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Av||(Fn.EventType=Av={}))});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Mv=o(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=o(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var jv=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.ItemAvailability=void 0;var Nv;(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"})(Nv||(kn.ItemAvailability=Nv={}))});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var qc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Dv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Dv||(Et.RefundTypeEnumeration=Dv={}));var Lv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Lv||(Et.ReturnFeesEnumeration=Lv={}));var Fv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Fv||(Et.MerchantReturnEnumeration=Fv={}))});var Bv=o(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0})});var Gv=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.CategorySetIdentifier=void 0;var $v;(function(t){t.MovieTicketType="MovieTicketType"})($v||(Bn.CategorySetIdentifier=$v={}))});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(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Xv=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OfferItemCondition=void 0;var Jv;(function(t){t.NewCondition="NewCondition"})(Jv||($n.OfferItemCondition=Jv={}))});var Nc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OfferType=void 0;var eS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(eS||(Gn.OfferType=eS={}))});var rS=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrderType=void 0;var tS;(function(t){t.Order="Order"})(tS||(Kn.OrderType=tS={}))});var jc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.OrderType=void 0;var zw=rS();Object.defineProperty(Wn,"OrderType",{enumerable:!0,get:function(){return zw.OrderType}})});var xc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.OrderStatus=void 0;var nS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(nS||(Hn.OrderStatus=nS={}))});var iS=o(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0})});var Uc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.OrganizationType=void 0;var oS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(oS||(Vn.OrganizationType=oS={}))});var cS=o(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0})});var dS=o(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0})});var fS=o(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0})});var Dc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PaymentStatusType=void 0;var hS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(hS||(zn.PaymentStatusType=hS={}))});var pS=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PermitType=void 0;var yS;(function(t){t.Permit="Permit"})(yS||(Yn.PermitType=yS={}))});var SS=o(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0})});var Lc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PersonType=void 0;var mS;(function(t){t.Person="Person"})(mS||(Qn.PersonType=mS={}))});var OS=o(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0})});var ES=o(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0})});var gS=o(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0})});var AS=o(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0})});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var Fc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PlaceType=void 0;var RS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(RS||(Zn.PlaceType=RS={}))});var IS=o(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0})});var kc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.PriceCurrency=void 0;var qS;(function(t){t.JPY="JPY"})(qS||(Jn.PriceCurrency=qS={}))});var jS=o(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0})});var Bc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.PriceSpecificationType=void 0;var xS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(xS||(Xn.PriceSpecificationType=xS={}))});var $c=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ProductType=void 0;var US;(function(t){t.EventService="EventService",t.Product="Product"})(US||(es.ProductType=US={}))});var LS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ProgramMembershipType=void 0;var DS;(function(t){t.ProgramMembership="ProgramMembership"})(DS||(ts.ProgramMembershipType=DS={}))});var kS=o(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0})});var $S=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.PropertyValueType=void 0;var BS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(BS||(rs.PropertyValueType=BS={}))});var KS=o(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0})});var HS=o(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0})});var zS=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.StringValue=void 0;var VS;(function(t){t.Infinity="Infinity"})(VS||(ns.StringValue=VS={}))});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0})});var Gc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ReservationStatusType=void 0;var XS;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(XS||(ss.ReservationStatusType=XS={}))});var Kc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.ReservationType=void 0;var em;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(em||(is.ReservationType=em={}))});var Wc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.AssetTransactionType=void 0;var tm;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(tm||(os.AssetTransactionType=tm={}))});var Hc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.SortType=void 0;var rm;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(rm||(as.SortType=rm={}))});var Vc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TaskStatus=void 0;var nm;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(nm||(cs.TaskStatus=nm={}))});var zc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TransactionStatusType=void 0;var sm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(sm||(us.TransactionStatusType=sm={}))});var Yc=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.TransactionType=void 0;var im;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(im||(ds.TransactionType=im={}))});var Qc=o(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.UnitCode=void 0;var om;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(om||(ls.UnitCode=om={}))});var ym=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RESERVED_CODE_VALUES=void 0;var fs=Wc(),am=wc(),Nt=Rc(),hs=Mc(),cm=Ic(),ct=qc(),um=Nc(),Yw=jc(),Yt=xc(),Zc=Uc(),xr=Dc(),Qw=Lc(),Qt=Fc(),Zw=kc(),Ur=Bc(),dm=$c(),ys=Gc(),lm=Kc(),fm=Hc(),Dr=Vc(),ps=zc(),hm=Yc(),vs=Qc();Ss.RESERVED_CODE_VALUES=["AccountTitle",fs.AssetTransactionType.CancelReservation,"MoneyTransfer",fs.AssetTransactionType.Pay,fs.AssetTransactionType.Refund,fs.AssetTransactionType.Reserve,"Authorization",am.CertificationStatusEnumeration.CertificationActive,am.CertificationStatusEnumeration.CertificationInactive,Nt.CreativeWorkType.Certification,"Comment",Nt.CreativeWorkType.EmailMessage,Nt.CreativeWorkType.Movie,Nt.CreativeWorkType.NoteDigitalDocument,Nt.CreativeWorkType.SoftwareApplication,Nt.CreativeWorkType.WebApplication,Nt.CreativeWorkType.WebSite,"Event",hs.EventStatusType.EventCancelled,hs.EventStatusType.EventPostponed,hs.EventStatusType.EventRescheduled,hs.EventStatusType.EventScheduled,cm.EventType.ScreeningEvent,cm.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",um.OfferType.AggregateOffer,um.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Yw.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Zc.OrganizationType.Corporation,Zc.OrganizationType.Organization,Zc.OrganizationType.Project,"OwnershipInfo",xr.PaymentStatusType.PaymentAutomaticallyApplied,xr.PaymentStatusType.PaymentComplete,xr.PaymentStatusType.PaymentDeclined,xr.PaymentStatusType.PaymentDue,xr.PaymentStatusType.PaymentPastDue,Qw.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,Zw.PriceCurrency.JPY,Ur.PriceSpecificationType.CategoryCodeChargeSpecification,Ur.PriceSpecificationType.CompoundPriceSpecification,Ur.PriceSpecificationType.MovieTicketTypeChargeSpecification,Ur.PriceSpecificationType.PriceSpecification,Ur.PriceSpecificationType.UnitPriceSpecification,dm.ProductType.EventService,dm.ProductType.Product,ys.ReservationStatusType.ReservationCancelled,ys.ReservationStatusType.ReservationConfirmed,ys.ReservationStatusType.ReservationPending,"ReservationHold",ys.ReservationStatusType.ReservationPending,"BusReservation",lm.ReservationType.EventReservation,lm.ReservationType.ReservationPackage,fm.SortType.Ascending,fm.SortType.Descending,Dr.TaskStatus.Aborted,Dr.TaskStatus.Executed,Dr.TaskStatus.Ready,Dr.TaskStatus.Running,Dr.TaskStatus.Expired,ps.TransactionStatusType.Canceled,ps.TransactionStatusType.Confirmed,ps.TransactionStatusType.Expired,ps.TransactionStatusType.InProgress,hm.TransactionType.PlaceOrder,hm.TransactionType.ReturnOrder,vs.UnitCode.Ann,vs.UnitCode.C62,vs.UnitCode.Day,vs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var vm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.RoleType=void 0;var pm;(function(t){t.OrganizationRole="OrganizationRole"})(pm||(ms.RoleType=pm={}))});var mm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.RoleName=void 0;var Sm;(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"})(Sm||(_s.RoleName=Sm={}))});var Om=o(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0})});var Em=o(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0})});var gm=o(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0})});var Am=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.PaymentServiceType=void 0;var bm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(bm||(Os.PaymentServiceType=bm={}))});var wm=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Identifier=void 0;var Pm;(function(t){t.COA="COA",t.Chevre="Chevre"})(Pm||(Ts.Identifier=Pm={}))});var Mm=o(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0})});var qm=o(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0})});var jm=o(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0})});var Um=o(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0})});var Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var $m=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0})});var Hm=o(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0})});var Qm=o(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0})});var Jm=o(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0})});var e_=o(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0})});var r_=o(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0})});var s_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var c_=o(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0})});var d_=o(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var f_=o(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0})});var y_=o(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0})});var v_=o(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0})});var m_=o(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0})});var O_=o(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0})});var E_=o(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0})});var g_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0})});var M_=o(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var q_=o(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0})});var j_=o(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0})});var U_=o(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0})});var L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var $_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var H_=o(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0})});var Q_=o(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var J_=o(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0})});var eO=o(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0})});var rO=o(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var sO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var cO=o(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var dO=o(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0})});var fO=o(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var yO=o(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=o(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var mO=o(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0})});var OO=o(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0})});var EO=o(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var gO=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.TaskName=void 0;var CO;(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"})(CO||(Es.TaskName=CO={}))});var AO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var MO=o(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0})});var qO=o(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var jO=o(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var UO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.Reason=void 0;var xO;(function(t){t.Customer="Customer",t.Seller="Seller"})(xO||(Cs.Reason=xO={}))});var we=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ErrorCode=void 0;var DO;(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"})(DO||(gs.ErrorCode=DO={}))});var Re=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ChevreError=void 0;var Jc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};bs.ChevreError=Jc});var LO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.AlreadyInUseError=void 0;var Jw=we(),Xw=Re(),Xc=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}};As.AlreadyInUseError=Xc});var FO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ArgumentError=void 0;var e0=we(),t0=Re(),eu=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=eu});var kO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.ArgumentNullError=void 0;var r0=we(),n0=Re(),tu=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}};ws.ArgumentNullError=tu});var BO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ForbiddenError=void 0;var s0=we(),i0=Re(),ru=class extends i0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(s0.ErrorCode.Forbidden,r)}};Rs.ForbiddenError=ru});var $O=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.GatewayTimeoutError=void 0;var o0=we(),a0=Re(),nu=class extends a0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(o0.ErrorCode.GatewayTimeout,r)}};Ms.GatewayTimeoutError=nu});var GO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.InternalError=void 0;var c0=we(),u0=Re(),su=class extends u0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(c0.ErrorCode.Internal,r)}};Is.InternalError=su});var KO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.NotFoundError=void 0;var d0=we(),l0=Re(),iu=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}};qs.NotFoundError=iu});var WO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.NotImplementedError=void 0;var f0=we(),h0=Re(),ou=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)}};Ns.NotImplementedError=ou});var HO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.RateLimitExceededError=void 0;var y0=we(),p0=Re(),au=class extends p0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(y0.ErrorCode.RateLimitExceeded,r)}};js.RateLimitExceededError=au});var VO=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.ServiceUnavailableError=void 0;var v0=we(),S0=Re(),cu=class extends S0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(v0.ErrorCode.ServiceUnavailable,r)}};xs.ServiceUnavailableError=cu});var zO=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.UnauthorizedError=void 0;var m0=we(),_0=Re(),uu=class extends _0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(m0.ErrorCode.Unauthorized,r)}};Us.UnauthorizedError=uu});var YO=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.UnknownError=void 0;var O0=we(),T0=Re(),du=class extends T0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(O0.ErrorCode.Unknown,r)}};Ds.UnknownError=du});var QO=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=LO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return E0.AlreadyInUseError}});var C0=FO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return C0.ArgumentError}});var g0=kO();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 A0=BO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return A0.ForbiddenError}});var P0=$O();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return P0.GatewayTimeoutError}});var w0=GO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return w0.InternalError}});var R0=KO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return R0.NotFoundError}});var M0=WO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return M0.NotImplementedError}});var I0=HO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return I0.RateLimitExceededError}});var q0=VO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return q0.ServiceUnavailableError}});var N0=zO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return N0.UnauthorizedError}});var j0=YO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return j0.UnknownError}})});var XO=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.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||(Zt.RecipeCategory=ZO={}));var JO;(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"})(JO||(Zt.StepIdentifier=JO={}))});var pT=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=fy();O.cognito=yy();var x0=vy(),U0=my(),D0=Oy(),L0=Cy(),F0=Ay(),k0=wy(),B0=My(),$0=qy(),G0=jy(),K0=Uy(),W0=Ly(),H0=ky(),V0=$y(),z0=Ky(),Y0=Hy(),Q0=zy(),Z0=Qy(),J0=Jy(),X0=ep(),eR=rp(),tR=sp(),rR=op(),nR=cp(),sR=dp(),iR=hp(),oR=pp(),aR=Sp(),cR=gp(),uR=Ap(),dR=wp(),lR=Mp(),fR=qp(),hR=jp(),yR=Up(),pR=Lp(),vR=wc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return vR.CertificationStatusEnumeration}});var SR=Bp(),mR=Gp(),_R=Wp(),OR=Vp(),TR=Yp(),ER=Zp(),CR=ev(),gR=rv(),bR=sv(),AR=Rc(),PR=av(),wR=mv(),RR=Ov();O.entryPoint=RR;var MR=Ev();O.eventSeries=gv();var IR=Mc(),qR=Ic(),NR=wv(),jR=Mv(),xR=qv(),UR=jv(),DR=Uv(),LR=qc(),FR=Bv(),kR=Gv();O.offer=Wv();O.aggregateOffer=Vv();O.eventOffer=Yv();var BR=Zv(),$R=Xv(),GR=Nc();O.order=jc();var KR=xc(),WR=iS(),HR=Uc(),VR=cS(),zR=dS(),YR=fS(),QR=Dc(),ZR=pS(),JR=SS(),XR=Lc(),eM=OS(),tM=ES(),rM=gS(),nM=AS(),sM=wS(),iM=Fc(),oM=IS();O.potentialAction=oM;var aM=kc(),cM=jS(),uM=Bc(),dM=$c(),lM=LS();O.project=kS();var fM=$S(),hM=KS(),yM=HS(),pM=zS(),vM=QS(),SM=JS(),mM=Gc(),_M=Kc(),OM=ym();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return OM.RESERVED_CODE_VALUES}});var TM=vm(),EM=mm(),CM=Om(),gM=Em(),bM=gm(),AM=Am(),PM=wm(),wM=Mm(),RM=Hc(),MM=qm(),IM=Qc();O.unitPriceOffer=jm();var qM=Um(),NM=Lm(),jM=km(),xM=$m(),UM=Km(),DM=Hm(),LM=zm(),FM=Qm(),kM=Jm(),BM=e_(),$M=r_(),GM=s_(),KM=o_(),WM=c_(),HM=d_(),VM=f_(),zM=y_(),YM=v_(),QM=m_(),ZM=O_(),JM=E_(),XM=g_(),eI=A_(),tI=w_(),rI=M_(),nI=q_(),sI=j_(),iI=U_(),oI=L_(),aI=k_(),cI=$_(),uI=K_(),dI=H_(),lI=z_(),fI=Q_(),hI=J_(),yI=eO(),pI=rO(),vI=sO(),SI=oO(),mI=cO(),_I=dO(),OI=fO(),TI=yO(),EI=vO(),CI=mO(),gI=OO(),bI=EO(),AI=gO(),PI=Vc(),wI=AO(),RI=wO(),MI=MO(),II=qO(),qI=Wc(),NI=zc(),jI=jO(),xI=UO(),UI=Yc(),DI=we();O.errors=QO();O.recipe=XO();O.errorCode=DI.ErrorCode;O.actionStatusType=uR.ActionStatusType;O.actionType=dR.ActionType;var eT;(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})(eT||(O.action=eT={}));O.accountTitle=lR;O.additionalProperty=fR;O.aggregation=hR;O.authorization=yR;O.categoryCode=pR;O.clientUser=SR;var tT;(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={}))})(tT||(O.creativeWork=tT={}));O.creativeWorkType=AR.CreativeWorkType;O.customer=PR;var rT;(function(t){t.screeningEvent=MR})(rT||(O.event=rT={}));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 nT;(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})(nT||(O.notification=nT={}));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 sT;(function(t){let e;(function(r){r.creditCard=zR,r.movieTicket=YR})(e=t.paymentCard||(t.paymentCard={}))})(sT||(O.paymentMethod=sT={}));O.paymentStatusType=QR.PaymentStatusType;O.permit=ZR;O.person=JR;O.personType=XR.PersonType;O.priceCurrency=aM.PriceCurrency;var iT;(function(t){t.entranceGate=eM,t.movieTheater=tM,t.screeningRoom=rM,t.screeningRoomSection=nM,t.seat=sM})(iT||(O.place=iT={}));O.placeType=iM.PlaceType;var oT;(function(t){t.unitPrice=cM})(oT||(O.priceSpecification=oT={}));O.priceSpecificationType=uM.PriceSpecificationType;O.programMembership=lM;O.product=dM;var aT;(function(t){t.PropertyValueType=fM.PropertyValueType,t.locationFeatureSpecification=hM})(aT||(O.propertyValue=aT={}));O.qualitativeValue=yM;O.quantitativeValue=pM;var cT;(function(t){t.accountingReport=vM})(cT||(O.report=cT={}));var uT;(function(t){t.eventReservation=SM})(uT||(O.reservation=uT={}));O.reservationStatusType=mM.ReservationStatusType;O.reservationType=_M.ReservationType;var dT;(function(t){t.RoleType=TM.RoleType,t.organizationRole=EM})(dT||(O.role=dT={}));O.schedule=CM;O.seller=gM;O.sellerReturnPolicy=bM;var lT;(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})(lT||(O.task=lT={}));var fT;(function(t){t.paymentService=AM,t.webAPI=PM})(fT||(O.service=fT={}));O.serviceChannel=wM;O.sortType=RM.SortType;O.taskName=AI.TaskName;O.taskStatus=PI.TaskStatus;O.thing=MM;var hT;(function(t){t.cancelReservation=wI,t.pay=RI,t.refund=MI,t.reserve=II})(hT||(O.assetTransaction=hT={}));var yT;(function(t){t.placeOrder=jI,t.returnOrder=xI})(yT||(O.transaction=yT={}));O.transactionType=UI.TransactionType;O.transactionStatusType=NI.TransactionStatusType;O.assetTransactionType=qI.AssetTransactionType;O.unitCode=IM.UnitCode});var vT=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.ChevreFactory=void 0;Ls.ChevreFactory=pT()});var Q=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.factory=void 0;var LI=vT();Object.defineProperty(Fs,"factory",{enumerable:!0,get:function(){return LI.ChevreFactory}})});var mT=o((c2,ST)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,FI=jt*7,kI=jt*365.25;ST.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*jt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $I(t){var e=Math.abs(t);return e>=jt?Math.round(t/jt)+"d":e>=er?Math.round(t/er)+"h":e>=Xt?Math.round(t/Xt)+"m":e>=Jt?Math.round(t/Jt)+"s":t+"ms"}function GI(t){var e=Math.abs(t);return e>=jt?ks(t,e,jt,"day"):e>=er?ks(t,e,er,"hour"):e>=Xt?ks(t,e,Xt,"minute"):e>=Jt?ks(t,e,Jt,"second"):t+" ms"}function ks(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var OT=o((u2,_T)=>{function KI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=mT(),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}_T.exports=KI});var tr=o((Me,Bs)=>{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 ":" ")+"+"+Bs.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{}}Bs.exports=OT()(Me);var{formatters:QI}=Bs.exports;QI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $s=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(tr()),TT=(0,JI.default)("cinerino-sdk:transporters"),lu=class{};De.Transporter=lu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var fu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return TT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(TT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new rr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new rr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=fu;var hu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=hu});var CT=o(nr=>{"use strict";Object.defineProperty(nr,"__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"},ET=nr.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=nr.b=ET;nr.a=ET;nr.b=XI});var b=o(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var gT=CT();Gs.default=gT.b;Gs.status=gT.a});var xt=o((h2,bT)=>{"use strict";bT.exports=TypeError});var AT=o(()=>{});var $r=o((v2,HT)=>{var Cu=typeof Map=="function"&&Map.prototype,yu=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ws=Cu&&yu&&typeof yu.get=="function"?yu.get:null,PT=Cu&&Map.prototype.forEach,gu=typeof Set=="function"&&Set.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hs=gu&&pu&&typeof pu.get=="function"?pu.get:null,wT=gu&&Set.prototype.forEach,eq=typeof WeakMap=="function"&&WeakMap.prototype,Fr=eq?WeakMap.prototype.has:null,tq=typeof WeakSet=="function"&&WeakSet.prototype,kr=tq?WeakSet.prototype.has:null,rq=typeof WeakRef=="function"&&WeakRef.prototype,RT=rq?WeakRef.prototype.deref:null,nq=Boolean.prototype.valueOf,sq=Object.prototype.toString,iq=Function.prototype.toString,oq=String.prototype.match,bu=String.prototype.slice,Ct=String.prototype.replace,aq=String.prototype.toUpperCase,MT=String.prototype.toLowerCase,FT=RegExp.prototype.test,IT=Array.prototype.concat,ut=Array.prototype.join,cq=Array.prototype.slice,qT=Math.floor,mu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vu=Object.getOwnPropertySymbols,_u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Br=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,kT=Object.prototype.propertyIsEnumerable,NT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||FT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-qT(-t):qT(t);if(n!==t){var s=String(n),i=bu.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 Ou=AT(),xT=Ou.custom,UT=GT(xT)?xT:null,BT={__proto__:null,double:'"',single:"'"},uq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};HT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(BT,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 WT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?jT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?jT(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 Tu(e)?"[Array]":"[Object]";var S=Pq(i,n);if(typeof s>"u")s=[];else if(KT(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"&&!DT(e)){var g=mq(e),w=Ks(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(GT(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_u.call(e);return typeof e=="object"&&!sr?Lr(R):R}if(gq(e)){for(var I="<"+MT.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)I+=" "+D[C].name+"="+$T(dq(D[C].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+MT.call(String(e.nodeName))+">",I}if(Tu(e)){if(e.length===0)return"[]";var M=Ks(e,m);return S&&!Aq(M)?"["+Eu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(fq(e)){var U=Ks(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!kT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(IT.call("[cause]: "+m(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(U,", ")+" }"}if(typeof e=="object"&&u){if(UT&&typeof e[UT]=="function"&&Ou)return Ou(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))}),LT("Map",Ws.call(e),k,S)}if(Eq(e)){var K=[];return wT&&wT.call(e,function(oe){K.push(m(oe,e))}),LT("Set",Hs.call(e),K,S)}if(Oq(e))return Su("WeakMap");if(Cq(e))return Su("WeakSet");if(Tq(e))return Su("WeakRef");if(yq(e))return Lr(m(Number(e)));if(vq(e))return Lr(m(mu.call(e)));if(pq(e))return Lr(nq.call(e));if(hq(e))return Lr(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)&&!DT(e)){var j=Ks(e,m),B=NT?NT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!B&&Br&&Object(e)===e&&Br in e?bu.call(gt(e),8,-1):W?"Object":"",Y=B||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+($||W?"["+ut.call(IT.call([],$||[],W||[]),": ")+"] ":"");return j.length===0?Te+"{}":S?Te+"{"+Eu(j,S)+"}":Te+"{ "+ut.call(j,", ")+" }"}return String(e)};function $T(t,e,r){var n=r.quoteStyle||e,s=BT[n];return s+t+s}function dq(t){return Ct.call(String(t),/"/g,"&quot;")}function Ut(t){return!Br||!(typeof t=="object"&&(Br in t||typeof t[Br]<"u"))}function Tu(t){return gt(t)==="[object Array]"&&Ut(t)}function lq(t){return gt(t)==="[object Date]"&&Ut(t)}function DT(t){return gt(t)==="[object RegExp]"&&Ut(t)}function fq(t){return gt(t)==="[object Error]"&&Ut(t)}function hq(t){return gt(t)==="[object String]"&&Ut(t)}function yq(t){return gt(t)==="[object Number]"&&Ut(t)}function pq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function GT(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}function vq(t){if(!t||typeof t!="object"||!mu)return!1;try{return mu.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 KT(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(!Ws||!t||typeof t!="object")return!1;try{Ws.call(t);try{Hs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Oq(t){if(!Fr||!t||typeof t!="object")return!1;try{Fr.call(t,Fr);try{kr.call(t,kr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Tq(t){if(!RT||!t||typeof t!="object")return!1;try{return RT.call(t),!0}catch{}return!1}function Eq(t){if(!Hs||!t||typeof t!="object")return!1;try{Hs.call(t);try{Ws.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Cq(t){if(!kr||!t||typeof t!="object")return!1;try{kr.call(t,kr);try{Fr.call(t,Fr)}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 WT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return WT(bu.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 $T(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 Lr(t){return"Object("+t+")"}function Su(t){return t+" { ? }"}function LT(t,e,r,n){var s=n?Eu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Aq(t){for(var e=0;e<t.length;e++)if(KT(t[e],`
2
- `)>=0)return!1;return!0}function Pq(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 Eu(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 Jh=o(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0})});var ft=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var zP;(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"})(zP=gn.ErrorCode||(gn.ErrorCode={}))});var Tt=o((OF,Xh)=>{"use strict";Xh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?YP:QP);function YP(t,e){return t.__proto__=e,t}function QP(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(Pr=>{"use strict";var ZP=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 JP=(function(t){ZP(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);Pr.WaiterError=JP});var ey=o(wr=>{"use strict";var XP=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 ew=Tt(),tw=ft(),rw=ht(),nw=(function(t){XP(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,tw.ErrorCode.Argument,i)||this,s.argumentName=r,ew(s,e.prototype),s}return e})(rw.WaiterError);wr.ArgumentError=nw});var ty=o(Rr=>{"use strict";var sw=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 iw=Tt(),ow=ft(),aw=ht(),cw=(function(t){sw(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,ow.ErrorCode.Argument,i)||this,s.argumentName=r,iw(s,e.prototype),s}return e})(aw.WaiterError);Rr.ArgumentNullError=cw});var ry=o(Mr=>{"use strict";var uw=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 dw=Tt(),lw=ft(),fw=ht(),hw=(function(t){uw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,lw.ErrorCode.Forbidden,s)||this,dw(n,e.prototype),n}return e})(fw.WaiterError);Mr.ForbiddenError=hw});var ny=o(Ir=>{"use strict";var yw=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 pw=Tt(),vw=ft(),Sw=ht(),mw=(function(t){yw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,vw.ErrorCode.NotFound,i)||this,s.entityName=r,pw(s,e.prototype),s}return e})(Sw.WaiterError);Ir.NotFoundError=mw});var sy=o(qr=>{"use strict";var _w=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 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="Rate limit exceeded."),n=t.call(this,Tw.ErrorCode.RateLimitExceeded,s)||this,Ow(n,e.prototype),n}return e})(Ew.WaiterError);qr.RateLimitExceededError=Cw});var iy=o(Nr=>{"use strict";var gw=Nr&&Nr.__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(Nr,"__esModule",{value:!0});var bw=Tt(),Aw=ft(),Pw=ht(),ww=(function(t){gw(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,Aw.ErrorCode.ServiceUnavailable,s)||this,bw(n,e.prototype),n}return e})(Pw.WaiterError);Nr.ServiceUnavailableError=ww});var oy=o(jr=>{"use strict";var Rw=jr&&jr.__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(jr,"__esModule",{value:!0});var Mw=Tt(),Iw=ft(),qw=ht(),Nw=(function(t){Rw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Iw.ErrorCode.Unauthorized,s)||this,Mw(n,e.prototype),n}return e})(qw.WaiterError);jr.UnauthorizedError=Nw});var ay=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var jw=ey();at.Argument=jw.ArgumentError;var xw=ty();at.ArgumentNull=xw.ArgumentNullError;var Uw=ry();at.Forbidden=Uw.ForbiddenError;var Dw=ny();at.NotFound=Dw.NotFoundError;var Lw=sy();at.RateLimitExceeded=Lw.RateLimitExceededError;var Fw=iy();at.ServiceUnavailable=Fw.ServiceUnavailableError;var kw=oy();at.Unauthorized=kw.UnauthorizedError;var Bw=ht();at.Waiter=Bw.WaiterError});var uy=o(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0})});var ly=o(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0})});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var vy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var $w=Jh();yt.client=$w;var Gw=ft();yt.errorCode=Gw.ErrorCode;var Kw=ay();yt.errors=Kw;var Hw=uy();yt.passport=Hw;var Ww=ly();yt.project=Ww;var Vw=hy();yt.rule=Vw;var zw=py();yt.ruleSet=zw});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.FlgMember=void 0;var _y;(function(t){t.NonMember="0",t.Member="1"})(_y||(bn.FlgMember=_y={}))});var Ey=o(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0})});var gy=o(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ay=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var by;(function(t){t.SeatReservation="SeatReservation"})(by||(An.ObjectType=by={}))});var Py=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ObjectType=void 0;var Yw=Ay();Object.defineProperty(Pn,"ObjectType",{enumerable:!0,get:function(){return Yw.ObjectType}})});var My=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var wy;(function(t){t.Payment="Payment"})(wy||(Vt.ResultType=wy={}));var Ry;(function(t){t.Chevre="Chevre"})(Ry||(Vt.ServiceIdentifier=Ry={}))});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 Wy=o(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0})});var zy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=o(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Jy=o(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0})});var ep=o(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var rp=o(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0})});var sp=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var cp=o(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0})});var dp=o(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0})});var fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var yp=o(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0})});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var Sp=o(qt=>{"use strict";var Qw=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Zw=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qw(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});Zw(vp(),qt)});var _p=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ObjectAsTransactionSpecifyingMethod=void 0;var mp;(function(t){t.Id="Id",t.AgentId="AgentId"})(mp||(wn.ObjectAsTransactionSpecifyingMethod=mp={}))});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Cp=o(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0})});var bp=o(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var wp=o(pt=>{"use strict";var Jw=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]})),wc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Jw(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});wc(Cp(),pt);wc(bp(),pt);wc(Pp(),pt)});var Mp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ActionStatusType=void 0;var Rp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Rp||(Rn.ActionStatusType=Rp={}))});var qp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ActionType=void 0;var Ip;(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"})(Ip||(Mn.ActionType=Ip={}))});var jp=o(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0})});var Up=o(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0})});var Lp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.AggregationType=void 0;var Dp;(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"})(Dp||(In.AggregationType=Dp={}))});var kp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var $p=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CategorySetIdentifier=void 0;var Bp;(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"})(Bp||(qn.CategorySetIdentifier=Bp={}))});var Rc=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.CertificationStatusEnumeration=void 0;var Gp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Gp||(Nn.CertificationStatusEnumeration=Gp={}))});var Hp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var Vp=o(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0})});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.AboutIdentifier=void 0;var Jp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Jp||(jn.AboutIdentifier=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var sv=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var rv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(rv||(zt.DigitalDocumentPermissionType=rv={}));var nv;(function(t){t.Public="public"})(nv||(zt.PermissionGranteeAudienceType=nv={}))});var ov=o(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var Mc=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.CreativeWorkType=void 0;var uv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(uv||(xn.CreativeWorkType=uv={}))});var lv=o(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var Ev=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 fv;(function(t){t.pdf="application/pdf",t.json="application/json"})(fv||(ae.Application=fv={}));var hv;hv||(ae.Audio=hv={});var yv;yv||(ae.Font=yv={});var pv;pv||(ae.Example=pv={});var vv;vv||(ae.Image=vv={});var Sv;Sv||(ae.Message=Sv={});var mv;mv||(ae.Model=mv={});var _v;_v||(ae.Multipart=_v={});var Ov;(function(t){t.csv="text/csv"})(Ov||(ae.Text=Ov={}));var Tv;Tv||(ae.Video=Tv={})});var gv=o(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var Av=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Ic=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.EventStatusType=void 0;var Rv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Rv||(Un.EventStatusType=Rv={}))});var qc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EventType=void 0;var Mv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Mv||(Dn.EventType=Mv={}))});var qv=o(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Lv=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ItemAvailability=void 0;var Dv;(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"})(Dv||(Ln.ItemAvailability=Dv={}))});var kv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Nc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Bv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Bv||(Et.RefundTypeEnumeration=Bv={}));var $v;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})($v||(Et.ReturnFeesEnumeration=$v={}));var Gv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Gv||(Et.MerchantReturnEnumeration=Gv={}))});var Hv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.CategorySetIdentifier=void 0;var Wv;(function(t){t.MovieTicketType="MovieTicketType"})(Wv||(Fn.CategorySetIdentifier=Wv={}))});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Xv=o(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var tS=o(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0})});var nS=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OfferItemCondition=void 0;var rS;(function(t){t.NewCondition="NewCondition"})(rS||(kn.OfferItemCondition=rS={}))});var jc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OfferType=void 0;var sS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(sS||(Bn.OfferType=sS={}))});var oS=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OrderType=void 0;var iS;(function(t){t.Order="Order"})(iS||($n.OrderType=iS={}))});var xc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var Xw=oS();Object.defineProperty(Gn,"OrderType",{enumerable:!0,get:function(){return Xw.OrderType}})});var Uc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrderStatus=void 0;var aS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(aS||(Kn.OrderStatus=aS={}))});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var Dc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.OrganizationType=void 0;var dS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(dS||(Hn.OrganizationType=dS={}))});var fS=o(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0})});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var Lc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PaymentStatusType=void 0;var SS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(SS||(Wn.PaymentStatusType=SS={}))});var _S=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PermitType=void 0;var mS;(function(t){t.Permit="Permit"})(mS||(Vn.PermitType=mS={}))});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var Fc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PersonType=void 0;var ES;(function(t){t.Person="Person"})(ES||(zn.PersonType=ES={}))});var gS=o(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0})});var AS=o(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0})});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var MS=o(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0})});var qS=o(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0})});var kc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PlaceType=void 0;var NS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(NS||(Yn.PlaceType=NS={}))});var xS=o(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0})});var Bc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PriceCurrency=void 0;var US;(function(t){t.JPY="JPY"})(US||(Qn.PriceCurrency=US={}))});var LS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var $c=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PriceSpecificationType=void 0;var FS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(FS||(Zn.PriceSpecificationType=FS={}))});var Gc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ProductType=void 0;var kS;(function(t){t.EventService="EventService",t.Product="Product"})(kS||(Jn.ProductType=kS={}))});var $S=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ProgramMembershipType=void 0;var BS;(function(t){t.ProgramMembership="ProgramMembership"})(BS||(Xn.ProgramMembershipType=BS={}))});var KS=o(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0})});var WS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PropertyValueType=void 0;var HS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(HS||(es.PropertyValueType=HS={}))});var zS=o(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.StringValue=void 0;var ZS;(function(t){t.Infinity="Infinity"})(ZS||(ts.StringValue=ZS={}))});var em=o(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0})});var rm=o(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0})});var Kc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReservationStatusType=void 0;var nm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(nm||(rs.ReservationStatusType=nm={}))});var Hc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ReservationType=void 0;var sm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(sm||(ns.ReservationType=sm={}))});var Wc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.AssetTransactionType=void 0;var im;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(im||(ss.AssetTransactionType=im={}))});var Vc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.SortType=void 0;var om;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(om||(is.SortType=om={}))});var zc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TaskStatus=void 0;var am;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(am||(os.TaskStatus=am={}))});var Yc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TransactionStatusType=void 0;var cm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(cm||(as.TransactionStatusType=cm={}))});var Qc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TransactionType=void 0;var um;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(um||(cs.TransactionType=um={}))});var Zc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.UnitCode=void 0;var dm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(dm||(us.UnitCode=dm={}))});var mm=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RESERVED_CODE_VALUES=void 0;var ds=Wc(),lm=Rc(),Nt=Mc(),ls=Ic(),fm=qc(),ct=Nc(),hm=jc(),e0=xc(),Yt=Uc(),Jc=Dc(),xr=Lc(),t0=Fc(),Qt=kc(),r0=Bc(),Ur=$c(),ym=Gc(),fs=Kc(),pm=Hc(),vm=Vc(),Dr=zc(),hs=Yc(),Sm=Qc(),ys=Zc();ps.RESERVED_CODE_VALUES=["AccountTitle",ds.AssetTransactionType.CancelReservation,"MoneyTransfer",ds.AssetTransactionType.Pay,ds.AssetTransactionType.Refund,ds.AssetTransactionType.Reserve,"Authorization",lm.CertificationStatusEnumeration.CertificationActive,lm.CertificationStatusEnumeration.CertificationInactive,Nt.CreativeWorkType.Certification,"Comment",Nt.CreativeWorkType.EmailMessage,Nt.CreativeWorkType.Movie,Nt.CreativeWorkType.NoteDigitalDocument,Nt.CreativeWorkType.SoftwareApplication,Nt.CreativeWorkType.WebApplication,Nt.CreativeWorkType.WebSite,"Event",ls.EventStatusType.EventCancelled,ls.EventStatusType.EventPostponed,ls.EventStatusType.EventRescheduled,ls.EventStatusType.EventScheduled,fm.EventType.ScreeningEvent,fm.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",hm.OfferType.AggregateOffer,hm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",e0.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",xr.PaymentStatusType.PaymentAutomaticallyApplied,xr.PaymentStatusType.PaymentComplete,xr.PaymentStatusType.PaymentDeclined,xr.PaymentStatusType.PaymentDue,xr.PaymentStatusType.PaymentPastDue,t0.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,r0.PriceCurrency.JPY,Ur.PriceSpecificationType.CategoryCodeChargeSpecification,Ur.PriceSpecificationType.CompoundPriceSpecification,Ur.PriceSpecificationType.MovieTicketTypeChargeSpecification,Ur.PriceSpecificationType.PriceSpecification,Ur.PriceSpecificationType.UnitPriceSpecification,ym.ProductType.EventService,ym.ProductType.Product,fs.ReservationStatusType.ReservationCancelled,fs.ReservationStatusType.ReservationConfirmed,fs.ReservationStatusType.ReservationPending,"ReservationHold",fs.ReservationStatusType.ReservationPending,"BusReservation",pm.ReservationType.EventReservation,pm.ReservationType.ReservationPackage,vm.SortType.Ascending,vm.SortType.Descending,Dr.TaskStatus.Aborted,Dr.TaskStatus.Executed,Dr.TaskStatus.Ready,Dr.TaskStatus.Running,Dr.TaskStatus.Expired,hs.TransactionStatusType.Canceled,hs.TransactionStatusType.Confirmed,hs.TransactionStatusType.Expired,hs.TransactionStatusType.InProgress,Sm.TransactionType.PlaceOrder,Sm.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 Om=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RoleType=void 0;var _m;(function(t){t.OrganizationRole="OrganizationRole"})(_m||(vs.RoleType=_m={}))});var Em=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RoleName=void 0;var Tm;(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"})(Tm||(Ss.RoleName=Tm={}))});var gm=o(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0})});var Am=o(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0})});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.PaymentServiceType=void 0;var Rm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Rm||(ms.PaymentServiceType=Rm={}))});var qm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.Identifier=void 0;var Im;(function(t){t.COA="COA",t.Chevre="Chevre"})(Im||(_s.Identifier=Im={}))});var jm=o(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0})});var Um=o(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0})});var Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var $m=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0})});var Wm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0})});var Qm=o(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0})});var Jm=o(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0})});var e_=o(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0})});var r_=o(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0})});var s_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var c_=o(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0})});var d_=o(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var f_=o(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0})});var y_=o(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0})});var v_=o(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0})});var m_=o(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0})});var O_=o(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0})});var E_=o(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0})});var g_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0})});var M_=o(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var q_=o(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0})});var j_=o(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0})});var U_=o(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0})});var L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var $_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var W_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0})});var Q_=o(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var J_=o(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0})});var eO=o(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0})});var rO=o(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var sO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var cO=o(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var dO=o(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0})});var fO=o(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var yO=o(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=o(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var mO=o(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0})});var OO=o(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0})});var EO=o(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var gO=o(CO=>{"use strict";Object.defineProperty(CO,"__esModule",{value:!0})});var AO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.TaskName=void 0;var PO;(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"})(PO||(Os.TaskName=PO={}))});var MO=o(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0})});var qO=o(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var jO=o(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var UO=o(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0})});var LO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Reason=void 0;var FO;(function(t){t.Customer="Customer",t.Seller="Seller"})(FO||(Ts.Reason=FO={}))});var we=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ErrorCode=void 0;var BO;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.GatewayTimeout="GatewayTimeout",t.Internal="Internal",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.RateLimitExceeded="RateLimitExceeded",t.ServiceUnavailable="ServiceUnavailable",t.Unauthorized="Unauthorized",t.Unknown="Unknown"})(BO||(Es.ErrorCode=BO={}))});var Re=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Cs.ChevreError=Xc});var $O=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.AlreadyInUseError=void 0;var n0=we(),s0=Re(),eu=class extends s0.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(n0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};gs.AlreadyInUseError=eu});var GO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ArgumentError=void 0;var i0=we(),o0=Re(),tu=class extends o0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(i0.ErrorCode.Argument,n),this.argumentName=e}};bs.ArgumentError=tu});var KO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ArgumentNullError=void 0;var a0=we(),c0=Re(),ru=class extends c0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(a0.ErrorCode.ArgumentNull,n),this.argumentName=e}};As.ArgumentNullError=ru});var HO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ForbiddenError=void 0;var u0=we(),d0=Re(),nu=class extends d0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(u0.ErrorCode.Forbidden,r)}};Ps.ForbiddenError=nu});var WO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GatewayTimeoutError=void 0;var l0=we(),f0=Re(),su=class extends f0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(l0.ErrorCode.GatewayTimeout,r)}};ws.GatewayTimeoutError=su});var VO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.InternalError=void 0;var h0=we(),y0=Re(),iu=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(h0.ErrorCode.Internal,r)}};Rs.InternalError=iu});var zO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.NotFoundError=void 0;var p0=we(),v0=Re(),ou=class extends v0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(p0.ErrorCode.NotFound,n),this.entityName=e}};Ms.NotFoundError=ou});var YO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.NotImplementedError=void 0;var S0=we(),m0=Re(),au=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(S0.ErrorCode.NotImplemented,r)}};Is.NotImplementedError=au});var QO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.RateLimitExceededError=void 0;var _0=we(),O0=Re(),cu=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(_0.ErrorCode.RateLimitExceeded,r)}};qs.RateLimitExceededError=cu});var ZO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.ServiceUnavailableError=void 0;var T0=we(),E0=Re(),uu=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(T0.ErrorCode.ServiceUnavailable,r)}};Ns.ServiceUnavailableError=uu});var JO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.UnauthorizedError=void 0;var C0=we(),g0=Re(),du=class extends g0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(C0.ErrorCode.Unauthorized,r)}};js.UnauthorizedError=du});var XO=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.UnknownError=void 0;var b0=we(),A0=Re(),lu=class extends A0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(b0.ErrorCode.Unknown,r)}};xs.UnknownError=lu});var eT=o(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.Unknown=J.Unauthorized=J.ServiceUnavailable=J.RateLimitExceeded=J.NotImplemented=J.NotFound=J.Internal=J.GatewayTimeout=J.Forbidden=J.Chevre=J.ArgumentNull=J.Argument=J.AlreadyInUse=void 0;var P0=$O();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return P0.AlreadyInUseError}});var w0=GO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return w0.ArgumentError}});var R0=KO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return R0.ArgumentNullError}});var M0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return M0.ChevreError}});var I0=HO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return I0.ForbiddenError}});var q0=WO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return q0.GatewayTimeoutError}});var N0=VO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return N0.InternalError}});var j0=zO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return j0.NotFoundError}});var x0=YO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return x0.NotImplementedError}});var U0=QO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return U0.RateLimitExceededError}});var D0=ZO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return D0.ServiceUnavailableError}});var L0=JO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return L0.UnauthorizedError}});var F0=XO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return F0.UnknownError}})});var nT=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.RecipeCategory=void 0;var tT;(function(t){t.payCreditCard="payCreditCard",t.payMovieTicket="payMovieTicket",t.publishPaymentUrl="publishPaymentUrl",t.checkMovieTicket="checkMovieTicket",t.refundCreditCard="refundCreditCard",t.refundMovieTicket="refundMovieTicket",t.acceptCOAOffer="acceptCOAOffer",t.cancelPendingCOAReserve="cancelPendingCOAReserve",t.confirmCOAReserve="confirmCOAReserve",t.returnCOAReserve="returnCOAReserve",t.authorizeInvoice="authorizeInvoice",t.authorizeInvoice3ds="authorizeInvoice3ds",t.sendEmailMessage="sendEmailMessage"})(tT||(Zt.RecipeCategory=tT={}));var rT;(function(t){t.entryTran="entryTran",t.execTran="execTran",t.searchTrade="searchTrade",t.alterTran="alterTran",t.secureTran2="secureTran2",t.seatInfoSync="seatInfoSync",t.seatInfoSyncCancel="seatInfoSyncCancel",t.purchaseNumberAuth="purchaseNumberAuth",t.updTmpReserveSeat="updTmpReserveSeat",t.updReserve="updReserve",t.stateReserve="stateReserve",t.delReserve="delReserve",t.delTmpReserve="delTmpReserve",t.sendMultiple="sendMultiple"})(rT||(Zt.StepIdentifier=rT={}))});var _T=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.person=O.permit=O.paymentStatusType=O.paymentMethod=O.ownershipInfo=O.organizationType=O.organization=O.orderStatus=O.offerType=O.offerItemCondition=O.offerCatalog=O.notification=O.movieTicketType=O.monetaryAmount=O.merchantReturnPolicy=O.language=O.itemAvailability=O.invoice=O.identityProvider=O.iam=O.eventType=O.eventStatusType=O.entryPoint=O.encodingFormat=O.event=O.customer=O.creativeWorkType=O.creativeWork=O.clientUser=O.CertificationStatusEnumeration=O.categoryCode=O.authorization=O.aggregation=O.additionalProperty=O.accountTitle=O.action=O.actionType=O.actionStatusType=O.errorCode=O.recipe=O.errors=O.unitPriceOffer=O.project=O.order=O.eventOffer=O.aggregateOffer=O.offer=O.eventSeries=O.cognito=O.waiter=void 0;O.unitCode=O.assetTransactionType=O.transactionStatusType=O.transactionType=O.transaction=O.assetTransaction=O.thing=O.taskStatus=O.taskName=O.sortType=O.serviceChannel=O.service=O.task=O.sellerReturnPolicy=O.seller=O.schedule=O.role=O.RESERVED_CODE_VALUES=O.reservationType=O.reservationStatusType=O.reservation=O.report=O.quantitativeValue=O.qualitativeValue=O.propertyValue=O.product=O.programMembership=O.priceSpecificationType=O.priceSpecification=O.potentialAction=O.placeType=O.place=O.priceCurrency=O.personType=void 0;O.waiter=vy();O.cognito=my();var k0=Oy(),B0=Ey(),$0=gy(),G0=Py(),K0=My(),H0=qy(),W0=jy(),V0=Uy(),z0=Ly(),Y0=ky(),Q0=$y(),Z0=Ky(),J0=Wy(),X0=zy(),eR=Qy(),tR=Jy(),rR=ep(),nR=rp(),sR=sp(),iR=op(),oR=cp(),aR=dp(),cR=fp(),uR=yp(),dR=Sp(),lR=_p(),fR=Tp(),hR=wp(),yR=Mp(),pR=qp(),vR=jp(),SR=Up(),mR=Lp(),_R=kp(),OR=$p(),TR=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return TR.CertificationStatusEnumeration}});var ER=Hp(),CR=Vp(),gR=Yp(),bR=Zp(),AR=Xp(),PR=tv(),wR=sv(),RR=ov(),MR=cv(),IR=Mc(),qR=lv(),NR=Ev(),jR=gv();O.entryPoint=jR;var xR=Av();O.eventSeries=wv();var UR=Ic(),DR=qc(),LR=qv(),FR=jv(),kR=Uv(),BR=Lv(),$R=kv(),GR=Nc(),KR=Hv(),HR=Vv();O.offer=Yv();O.aggregateOffer=Zv();O.eventOffer=Xv();var WR=tS(),VR=nS(),zR=jc();O.order=xc();var YR=Uc(),QR=uS(),ZR=Dc(),JR=fS(),XR=yS(),eM=vS(),tM=Lc(),rM=_S(),nM=TS(),sM=Fc(),iM=gS(),oM=AS(),aM=wS(),cM=MS(),uM=qS(),dM=kc(),lM=xS();O.potentialAction=lM;var fM=Bc(),hM=LS(),yM=$c(),pM=Gc(),vM=$S();O.project=KS();var SM=WS(),mM=zS(),_M=QS(),OM=JS(),TM=em(),EM=rm(),CM=Kc(),gM=Hc(),bM=mm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return bM.RESERVED_CODE_VALUES}});var AM=Om(),PM=Em(),wM=gm(),RM=Am(),MM=wm(),IM=Mm(),qM=qm(),NM=jm(),jM=Vc(),xM=Um(),UM=Zc();O.unitPriceOffer=Lm();var DM=km(),LM=$m(),FM=Km(),kM=Wm(),BM=zm(),$M=Qm(),GM=Jm(),KM=e_(),HM=r_(),WM=s_(),VM=o_(),zM=c_(),YM=d_(),QM=f_(),ZM=y_(),JM=v_(),XM=m_(),eI=O_(),tI=E_(),rI=g_(),nI=A_(),sI=w_(),iI=M_(),oI=q_(),aI=j_(),cI=U_(),uI=L_(),dI=k_(),lI=$_(),fI=K_(),hI=W_(),yI=z_(),pI=Q_(),vI=J_(),SI=eO(),mI=rO(),_I=sO(),OI=oO(),TI=cO(),EI=dO(),CI=fO(),gI=yO(),bI=vO(),AI=mO(),PI=OO(),wI=EO(),RI=gO(),MI=AO(),II=wO(),qI=zc(),NI=MO(),jI=qO(),xI=jO(),UI=UO(),DI=Wc(),LI=Yc(),FI=LO(),kI=kO(),BI=Qc(),$I=we();O.errors=eT();O.recipe=nT();O.errorCode=$I.ErrorCode;O.actionStatusType=yR.ActionStatusType;O.actionType=pR.ActionType;var sT;(function(t){let e;(function(y){y.coaOffer=k0,y.pay=B0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=K0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=G0})(m=y.offer||(y.offer={})),y.invoice=$0,y.ticketedObject=H0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=W0,y.reservation=V0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=z0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=Y0})(s=t.check||(t.check={})),t.create=Z0;let i;(function(y){let S;(function(m){m.pay=J0,m.reservation=X0})(S=y.confirm||(y.confirm={})),y.inform=eR})(i=t.interact||(t.interact={}));let c;(function(y){y.order=rR,y.pay=nR,y.refund=sR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=iR,g.order=oR,g.reserveTransaction=aR})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=cR})(w=g.message||(g.message={})),g.order=uR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=dR,y.deleteAction=lR,y.replace=fR,y.update=hR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=Q0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=tR})(sT||(O.action=sT={}));O.accountTitle=vR;O.additionalProperty=SR;O.aggregation=mR;O.authorization=_R;O.categoryCode=OR;O.clientUser=ER;var iT;(function(t){let e;(function(s){s.softwareApplication=CR,s.webApplication=gR,s.webSite=bR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=AR})(r=t.message||(t.message={})),t.movie=PR,t.noteDigitalDocument=wR;let n;(function(s){s.softwareApplication=RR,s.webApplication=MR})(n=t.softwareApplication||(t.softwareApplication={}))})(iT||(O.creativeWork=iT={}));O.creativeWorkType=IR.CreativeWorkType;O.customer=qR;var oT;(function(t){t.screeningEvent=xR})(oT||(O.event=oT={}));O.encodingFormat=NR;O.eventStatusType=UR.EventStatusType;O.eventType=DR.EventType;O.iam=LR;O.identityProvider=FR;O.invoice=kR;O.itemAvailability=BR.ItemAvailability;O.language=$R;O.merchantReturnPolicy=GR;O.monetaryAmount=KR;O.movieTicketType=HR;var aT;(function(t){t.event=kM,t.eventSeries=BM,t.order=KM,t.reservation=QM,t.payAction=HM,t.refundAction=YM,t.accountTitle=DM,t.categoryCode=LM,t.creativeWork=FM,t.offer=$M,t.offerCatalog=GM,t.person=WM,t.place=VM,t.product=zM,t.task=ZM,t.transaction=JM})(aT||(O.notification=aT={}));O.offerCatalog=WR;O.offerItemCondition=VR;O.offerType=zR.OfferType;O.orderStatus=YR.OrderStatus;O.organization=QR;O.organizationType=ZR.OrganizationType;O.ownershipInfo=JR;var cT;(function(t){let e;(function(r){r.creditCard=XR,r.movieTicket=eM})(e=t.paymentCard||(t.paymentCard={}))})(cT||(O.paymentMethod=cT={}));O.paymentStatusType=tM.PaymentStatusType;O.permit=rM;O.person=nM;O.personType=sM.PersonType;O.priceCurrency=fM.PriceCurrency;var uT;(function(t){t.entranceGate=iM,t.movieTheater=oM,t.screeningRoom=aM,t.screeningRoomSection=cM,t.seat=uM})(uT||(O.place=uT={}));O.placeType=dM.PlaceType;var dT;(function(t){t.unitPrice=hM})(dT||(O.priceSpecification=dT={}));O.priceSpecificationType=yM.PriceSpecificationType;O.programMembership=vM;O.product=pM;var lT;(function(t){t.PropertyValueType=SM.PropertyValueType,t.locationFeatureSpecification=mM})(lT||(O.propertyValue=lT={}));O.qualitativeValue=_M;O.quantitativeValue=OM;var fT;(function(t){t.accountingReport=TM})(fT||(O.report=fT={}));var hT;(function(t){t.eventReservation=EM})(hT||(O.reservation=hT={}));O.reservationStatusType=CM.ReservationStatusType;O.reservationType=gM.ReservationType;var yT;(function(t){t.RoleType=AM.RoleType,t.organizationRole=PM})(yT||(O.role=yT={}));O.schedule=wM;O.seller=RM;O.sellerReturnPolicy=MM;var pT;(function(t){t.acceptCOAOffer=XM,t.aggregateOffers=eI,t.aggregateOnSystem=tI,t.aggregateScreeningEvent=rI,t.authorizePayment=nI,t.cancelPendingReservation=sI,t.cancelReservation=iI,t.checkMovieTicket=oI,t.checkResource=aI,t.createAccountingReport=uI,t.confirmReserveTransaction=cI,t.deletePerson=dI,t.deleteTransaction=lI,t.handleNotification=fI,t.importEventCapacitiesFromCOA=hI,t.importEventsFromCOA=yI,t.importOffersFromCOA=pI,t.invalidatePaymentUrl=vI,t.onAssetTransactionStatusChanged=SI,t.pay=EI,t.publishPaymentUrl=CI,t.refund=gI,t.reserve=bI,t.sendEmailMessage=AI,t.syncResourcesFromCOA=PI,t.triggerWebhook=wI,t.useReservation=RI,t.voidPayment=MI,t.onAuthorizationCreated=mI,t.onEventChanged=_I,t.onResourceDeleted=OI,t.onResourceUpdated=TI})(pT||(O.task=pT={}));var vT;(function(t){t.paymentService=IM,t.webAPI=qM})(vT||(O.service=vT={}));O.serviceChannel=NM;O.sortType=jM.SortType;O.taskName=II.TaskName;O.taskStatus=qI.TaskStatus;O.thing=xM;var ST;(function(t){t.cancelReservation=NI,t.pay=jI,t.refund=xI,t.reserve=UI})(ST||(O.assetTransaction=ST={}));var mT;(function(t){t.placeOrder=FI,t.returnOrder=kI})(mT||(O.transaction=mT={}));O.transactionType=BI.TransactionType;O.transactionStatusType=LI.TransactionStatusType;O.assetTransactionType=DI.AssetTransactionType;O.unitCode=UM.UnitCode});var OT=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ChevreFactory=void 0;Us.ChevreFactory=_T()});var Y=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.factory=void 0;var GI=OT();Object.defineProperty(Ds,"factory",{enumerable:!0,get:function(){return GI.ChevreFactory}})});var ET=o((v2,TT)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,KI=jt*7,HI=jt*365.25;TT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return WI(t);if(r==="number"&&isFinite(t))return e.long?zI(t):VI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function WI(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*HI;case"weeks":case"week":case"w":return r*KI;case"days":case"day":case"d":return r*jt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function VI(t){var e=Math.abs(t);return e>=jt?Math.round(t/jt)+"d":e>=er?Math.round(t/er)+"h":e>=Xt?Math.round(t/Xt)+"m":e>=Jt?Math.round(t/Jt)+"s":t+"ms"}function zI(t){var e=Math.abs(t);return e>=jt?Ls(t,e,jt,"day"):e>=er?Ls(t,e,er,"hour"):e>=Xt?Ls(t,e,Xt,"minute"):e>=Jt?Ls(t,e,Jt,"second"):t+" ms"}function Ls(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var gT=o((S2,CT)=>{function YI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=s,r.enabled=d,r.humanize=ET(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let 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(...q){if(!R.enabled)return;let N=R,C=Number(new Date),M=C-(S||C);N.diff=M,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,x)=>{if(K==="%%")return"%";D++;let $=r.formatters[x];if(typeof $=="function"){let H=q[D];K=$.call(N,H),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==r.namespaces&&(g=r.namespaces,w=r.enabled(y)),w),set:q=>{m=q}}),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 c(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}CT.exports=YI});var tr=o((Me,Fs)=>{Me.formatArgs=ZI;Me.save=JI;Me.load=XI;Me.useColors=QI;Me.storage=eq();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 QI(){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 ZI(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 JI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function XI(){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 eq(){try{return localStorage}catch{}}Fs.exports=gT()(Me);var{formatters:tq}=Fs.exports;tq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ks=o(De=>{"use strict";var rq=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 nq=rq(tr()),bT=(0,nq.default)("cinerino-sdk:transporters"),fu=class{};De.Transporter=fu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var hu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return bT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(bT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new rr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new rr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=hu;var yu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=yu});var PT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var I={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},AT=nr.a={classes:I,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":I.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":I.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":I.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":I.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":I.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":I.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":I.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":I.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":I.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":I.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":I.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":I.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":I.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":I.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":I.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":I.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":I.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":I.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":I.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":I.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":I.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":I.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":I.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":I.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":I.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":I.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":I.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":I.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":I.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":I.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":I.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":I.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":I.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":I.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":I.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":I.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":I.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":I.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":I.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":I.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":I.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":I.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":I.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":I.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":I.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":I.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":I.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":I.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":I.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":I.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":I.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":I.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":I.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":I.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":I.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":I.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":I.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":I.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":I.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":I.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":I.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":I.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":I.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":I.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":I.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":I.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":I.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":I.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":I.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":I.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":I.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":I.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":I.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":I.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":I.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":I.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":I.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":I.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":I.SERVER_ERROR,RAILGUN_ERROR:527}}},sq=nr.b=AT;nr.a=AT;nr.b=sq});var b=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var wT=PT();Bs.default=wT.b;Bs.status=wT.a});var xt=o((T2,RT)=>{"use strict";RT.exports=TypeError});var MT=o(()=>{});var $r=o((g2,QT)=>{var gu=typeof Map=="function"&&Map.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gs=gu&&pu&&typeof pu.get=="function"?pu.get:null,IT=gu&&Map.prototype.forEach,bu=typeof Set=="function"&&Set.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ks=bu&&vu&&typeof vu.get=="function"?vu.get:null,qT=bu&&Set.prototype.forEach,iq=typeof WeakMap=="function"&&WeakMap.prototype,Fr=iq?WeakMap.prototype.has:null,oq=typeof WeakSet=="function"&&WeakSet.prototype,kr=oq?WeakSet.prototype.has:null,aq=typeof WeakRef=="function"&&WeakRef.prototype,NT=aq?WeakRef.prototype.deref:null,cq=Boolean.prototype.valueOf,uq=Object.prototype.toString,dq=Function.prototype.toString,lq=String.prototype.match,Au=String.prototype.slice,Ct=String.prototype.replace,fq=String.prototype.toUpperCase,jT=String.prototype.toLowerCase,GT=RegExp.prototype.test,xT=Array.prototype.concat,ut=Array.prototype.join,hq=Array.prototype.slice,UT=Math.floor,_u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Su=Object.getOwnPropertySymbols,Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Br=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,KT=Object.prototype.propertyIsEnumerable,DT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function LT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||GT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-UT(-t):UT(t);if(n!==t){var s=String(n),i=Au.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 Tu=MT(),FT=Tu.custom,kT=VT(FT)?FT:null,HT={__proto__:null,double:'"',single:"'"},yq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};QT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(HT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=vt(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return YT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?LT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?LT(e,p):p}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Eu(e)?"[Array]":"[Object]";var S=qq(i,n);if(typeof s>"u")s=[];else if(zT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=hq.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!BT(e)){var g=Cq(e),w=$s(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(VT(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ou.call(e);return typeof e=="object"&&!sr?Lr(R):R}if(Rq(e)){for(var q="<"+jT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+WT(pq(N[C].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+jT.call(String(e.nodeName))+">",q}if(Eu(e)){if(e.length===0)return"[]";var M=$s(e,m);return S&&!Iq(M)?"["+Cu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(Sq(e)){var D=$s(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!KT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(xT.call("[cause]: "+m(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(D,", ")+" }"}if(typeof e=="object"&&c){if(kT&&typeof e[kT]=="function"&&Tu)return Tu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(gq(e)){var k=[];return IT&&IT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),$T("Map",Gs.call(e),k,S)}if(Pq(e)){var K=[];return qT&&qT.call(e,function(oe){K.push(m(oe,e))}),$T("Set",Ks.call(e),K,S)}if(bq(e))return mu("WeakMap");if(wq(e))return mu("WeakSet");if(Aq(e))return mu("WeakRef");if(_q(e))return Lr(m(Number(e)));if(Tq(e))return Lr(m(_u.call(e)));if(Oq(e))return Lr(cq.call(e));if(mq(e))return Lr(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(!vq(e)&&!BT(e)){var x=$s(e,m),$=DT?DT(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",G=!$&&Br&&Object(e)===e&&Br in e?Au.call(gt(e),8,-1):H?"Object":"",Q=$||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Q+(G||H?"["+ut.call(xT.call([],G||[],H||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+Cu(x,S)+"}":Te+"{ "+ut.call(x,", ")+" }"}return String(e)};function WT(t,e,r){var n=r.quoteStyle||e,s=HT[n];return s+t+s}function pq(t){return Ct.call(String(t),/"/g,"&quot;")}function Ut(t){return!Br||!(typeof t=="object"&&(Br in t||typeof t[Br]<"u"))}function Eu(t){return gt(t)==="[object Array]"&&Ut(t)}function vq(t){return gt(t)==="[object Date]"&&Ut(t)}function BT(t){return gt(t)==="[object RegExp]"&&Ut(t)}function Sq(t){return gt(t)==="[object Error]"&&Ut(t)}function mq(t){return gt(t)==="[object String]"&&Ut(t)}function _q(t){return gt(t)==="[object Number]"&&Ut(t)}function Oq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function VT(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}function Tq(t){if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}var Eq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return Eq.call(t,e)}function gt(t){return uq.call(t)}function Cq(t){if(t.name)return t.name;var e=lq.call(dq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function zT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function gq(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 bq(t){if(!Fr||!t||typeof t!="object")return!1;try{Fr.call(t,Fr);try{kr.call(t,kr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Aq(t){if(!NT||!t||typeof t!="object")return!1;try{return NT.call(t),!0}catch{}return!1}function Pq(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 wq(t){if(!kr||!t||typeof t!="object")return!1;try{kr.call(t,kr);try{Fr.call(t,Fr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Rq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function YT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return YT(Au.call(t,0,e.maxStringLength),e)+n}var s=yq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Mq);return WT(i,"single",e)}function Mq(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":"")+fq.call(e.toString(16))}function Lr(t){return"Object("+t+")"}function mu(t){return t+" { ? }"}function $T(t,e,r,n){var s=n?Cu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Iq(t){for(var e=0;e<t.length;e++)if(zT(t[e],`
2
+ `)>=0)return!1;return!0}function qq(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 Cu(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+ut.call(t,","+r)+`
4
- `+e.prev}function Ks(t,e){var r=Tu(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 vu=="function"?vu(t):[],u;if(sr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&u["$"+f]instanceof Symbol||(FT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof vu=="function")for(var p=0;p<i.length;p++)kT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var zT=o((S2,VT)=>{"use strict";var wq=$r(),Rq=xt(),Vs=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=Vs(t,e);return r&&r.value}},Iq=function(t,e,r){var n=Vs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},qq=function(t,e){return t?!!Vs(t,e):!1},Nq=function(t,e){if(t)return Vs(t,e,!0)};VT.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 Au=o((m2,YT)=>{"use strict";YT.exports=Object});var ZT=o((_2,QT)=>{"use strict";QT.exports=Error});var XT=o((O2,JT)=>{"use strict";JT.exports=EvalError});var tE=o((T2,eE)=>{"use strict";eE.exports=RangeError});var nE=o((E2,rE)=>{"use strict";rE.exports=ReferenceError});var iE=o((C2,sE)=>{"use strict";sE.exports=SyntaxError});var aE=o((g2,oE)=>{"use strict";oE.exports=URIError});var uE=o((b2,cE)=>{"use strict";cE.exports=Math.abs});var lE=o((A2,dE)=>{"use strict";dE.exports=Math.floor});var hE=o((P2,fE)=>{"use strict";fE.exports=Math.max});var pE=o((w2,yE)=>{"use strict";yE.exports=Math.min});var SE=o((R2,vE)=>{"use strict";vE.exports=Math.pow});var _E=o((M2,mE)=>{"use strict";mE.exports=Math.round});var TE=o((I2,OE)=>{"use strict";OE.exports=Number.isNaN||function(e){return e!==e}});var CE=o((q2,EE)=>{"use strict";var jq=TE();EE.exports=function(e){return jq(e)||e===0?e:e<0?-1:1}});var bE=o((N2,gE)=>{"use strict";gE.exports=Object.getOwnPropertyDescriptor});var Pu=o((j2,AE)=>{"use strict";var zs=bE();if(zs)try{zs([],"length")}catch{zs=null}AE.exports=zs});var wE=o((x2,PE)=>{"use strict";var Ys=Object.defineProperty||!1;if(Ys)try{Ys({},"a",{value:1})}catch{Ys=!1}PE.exports=Ys});var ME=o((U2,RE)=>{"use strict";RE.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 NE=o((D2,qE)=>{"use strict";var IE=typeof Symbol<"u"&&Symbol,xq=ME();qE.exports=function(){return typeof IE!="function"||typeof Symbol!="function"||typeof IE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xq()}});var wu=o((L2,jE)=>{"use strict";jE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ru=o((F2,xE)=>{"use strict";var Uq=Au();xE.exports=Uq.getPrototypeOf||null});var LE=o((k2,DE)=>{"use strict";var Dq="Function.prototype.bind called on incompatible ",Lq=Object.prototype.toString,Fq=Math.max,kq="[object Function]",UE=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};DE.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,UE(n,arguments));return Object(y)===y?y:this}return r.apply(e,UE(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 Gr=o((B2,FE)=>{"use strict";var Gq=LE();FE.exports=Function.prototype.bind||Gq});var Qs=o(($2,kE)=>{"use strict";kE.exports=Function.prototype.call});var Mu=o((G2,BE)=>{"use strict";BE.exports=Function.prototype.apply});var GE=o((K2,$E)=>{"use strict";$E.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var WE=o((W2,KE)=>{"use strict";var Kq=Gr(),Wq=Mu(),Hq=Qs(),Vq=GE();KE.exports=Vq||Kq.call(Hq,Wq)});var Iu=o((H2,HE)=>{"use strict";var zq=Gr(),Yq=xt(),Qq=Qs(),Zq=WE();HE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Yq("a function is required");return Zq(zq,Qq,e)}});var JE=o((V2,ZE)=>{"use strict";var Jq=Iu(),VE=Pu(),YE;try{YE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var qu=!!YE&&VE&&VE(Object.prototype,"__proto__"),QE=Object,zE=QE.getPrototypeOf;ZE.exports=qu&&typeof qu.get=="function"?Jq([qu.get]):typeof zE=="function"?function(e){return zE(e==null?e:QE(e))}:!1});var nC=o((z2,rC)=>{"use strict";var XE=wu(),eC=Ru(),tC=JE();rC.exports=XE?function(e){return XE(e)}:eC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return eC(e)}:tC?function(e){return tC(e)}:null});var iC=o((Y2,sC)=>{"use strict";var Xq=Function.prototype.call,eN=Object.prototype.hasOwnProperty,tN=Gr();sC.exports=tN.call(Xq,eN)});var Xs=o((Q2,lC)=>{"use strict";var V,rN=Au(),nN=ZT(),sN=XT(),iN=tE(),oN=nE(),cr=iE(),ar=xt(),aN=aE(),cN=uE(),uN=lE(),dN=hE(),lN=pE(),fN=SE(),hN=_E(),yN=CE(),uC=Function,Nu=function(t){try{return uC('"use strict"; return ('+t+").constructor;")()}catch{}},Kr=Pu(),pN=wE(),ju=function(){throw new ar},vN=Kr?(function(){try{return arguments.callee,ju}catch{try{return Kr(arguments,"callee").get}catch{return ju}}})():ju,ir=NE()(),Se=nC(),SN=Ru(),mN=wu(),dC=Mu(),Wr=Qs(),or={},_N=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":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%":uC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rN,"%Object.getOwnPropertyDescriptor%":Kr,"%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"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":vN,"%TypedArray%":_N,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":aN,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Wr,"%Function.prototype.apply%":dC,"%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){oC=Se(Se(t)),Dt["%Error.prototype%"]=oC}var oC,ON=function t(e){var r;if(e==="%AsyncFunction%")r=Nu("async function () {}");else if(e==="%GeneratorFunction%")r=Nu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Nu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Dt[e]=r,r},aC={__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"]},Hr=Gr(),Zs=iC(),TN=Hr.call(Wr,Array.prototype.concat),EN=Hr.call(dC,Array.prototype.splice),cC=Hr.call(Wr,String.prototype.replace),Js=Hr.call(Wr,String.prototype.slice),CN=Hr.call(Wr,RegExp.prototype.exec),gN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bN=/\\(\\)?/g,AN=function(e){var r=Js(e,0,1),n=Js(e,-1);if(r==="%"&&n!=="%")throw new cr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cr("invalid intrinsic syntax, expected opening `%`");var s=[];return cC(e,gN,function(i,u,d,f){s[s.length]=d?cC(f,bN,"$1"):u||i}),s},PN=function(e,r){var n=e,s;if(Zs(aC,n)&&(s=aC[n],n="%"+s[0]+"%"),Zs(Dt,n)){var i=Dt[n];if(i===or&&(i=ON(n)),typeof i>"u"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new cr("intrinsic "+e+" does not exist!")};lC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(CN(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=AN(e),s=n.length>0?n[0]:"",i=PN("%"+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=Js(m,0,1),w=Js(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new cr("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,u="%"+s+"%",Zs(Dt,u))d=Dt[u];else if(d!=null){if(!(m in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kr&&y+1>=n.length){var R=Kr(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=Zs(d,m),d=d[m];S&&!f&&(Dt[u]=d)}}return d}});var xu=o((Z2,yC)=>{"use strict";var fC=Xs(),hC=Iu(),wN=hC([fC("%String.prototype.indexOf%")]);yC.exports=function(e,r){var n=fC(e,!!r);return typeof n=="function"&&wN(e,".prototype.")>-1?hC([n]):n}});var Uu=o((J2,vC)=>{"use strict";var RN=Xs(),Vr=xu(),MN=$r(),IN=xt(),pC=RN("%Map%",!0),qN=Vr("Map.prototype.get",!0),NN=Vr("Map.prototype.set",!0),jN=Vr("Map.prototype.has",!0),xN=Vr("Map.prototype.delete",!0),UN=Vr("Map.prototype.size",!0);vC.exports=!!pC&&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 pC),NN(e,n,s)}};return r}});var mC=o((X2,SC)=>{"use strict";var DN=Xs(),ti=xu(),LN=$r(),ei=Uu(),FN=xt(),ur=DN("%WeakMap%",!0),kN=ti("WeakMap.prototype.get",!0),BN=ti("WeakMap.prototype.set",!0),$N=ti("WeakMap.prototype.has",!0),GN=ti("WeakMap.prototype.delete",!0);SC.exports=ur?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(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return GN(e,s)}else if(ei&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?kN(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?$N(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),BN(e,s,i)):ei&&(r||(r=ei()),r.set(s,i))}};return n}:ei});var OC=o((e3,_C)=>{"use strict";var KN=xt(),WN=$r(),HN=zT(),VN=Uu(),zN=mC(),YN=zN||VN||HN;_C.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 ri=o((t3,TC)=>{"use strict";var QN=String.prototype.replace,ZN=/%20/g,Du={RFC1738:"RFC1738",RFC3986:"RFC3986"};TC.exports={default:Du.RFC3986,formatters:{RFC1738:function(t){return QN.call(t,ZN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Du.RFC1738,RFC3986:Du.RFC3986}});var ku=o((r3,CC)=>{"use strict";var JN=ri(),Lu=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),XN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},EC=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(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Lu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Lt(e)&&!Lt(r)&&(s=EC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,u){if(Lu.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 Lu.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}},Fu=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+=Fu){for(var p=u.length>=Fu?u.slice(f,f+Fu):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(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};CC.exports={arrayToObject:EC,assign:t1,combine:a1,compact:s1,decode:r1,encode:n1,isBuffer:o1,isRegExp:i1,maybeMap:c1,merge:e1}});var RC=o((n3,wC)=>{"use strict";var bC=OC(),ni=ku(),zr=ri(),u1=Object.prototype.hasOwnProperty,AC={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,gC=zr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ni.encode,encodeValuesOnly:!1,format:gC,formatter:zr.formatters[gC],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"},Bu={},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(Bu))!==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(Bu)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&&lt(M)&&(M=ni.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)||ni.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=ni.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=bC();tt.set(Bu,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=zr.default;if(typeof e.format<"u"){if(!u1.call(zr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=zr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in AC?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}};wC.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=AC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=bC(),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 qC=o((s3,IC)=>{"use strict";var dr=ku(),$u=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:dr.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))})},MC=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=dr.maybeMap(MC(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=$u.call(n,g);R&&r.duplicates==="combine"?n[g]=dr.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},O1=function(t,e,r,n){for(var s=n?e:MC(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&&$u.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&$u.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),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"||dr.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};IC.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=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Gu=o((i3,NC)=>{"use strict";var C1=RC(),g1=qC(),b1=ri();NC.exports={formats:b1,parse:g1,stringify:C1}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var A1=Gu(),P1=$s();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Ku=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,A1.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 P1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Ku});var jC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.CategoryCodeService=void 0;var w1=b(),R1=E(),Wu=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()}))}};si.CategoryCodeService=Wu});var xC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.CreativeWorkService=void 0;var M1=b(),I1=E(),Hu=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()}))}};ii.CreativeWorkService=Hu});var UC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EmailMessageService=void 0;var q1=b(),N1=E(),Vu=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()}))}};oi.EmailMessageService=Vu});var LC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventService=void 0;var St=b(),DC=Q(),j1=E(),zu=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(![DC.factory.eventType.ScreeningEvent].includes(n))throw new DC.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())}};ai.EventService=zu});var FC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.EventOfferService=void 0;var x1=b(),U1=E(),D1="/eventOffers",Yu=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())}};ci.EventOfferService=Yu});var kC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.EventSeriesService=void 0;var L1=b(),F1=E(),Qu=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())}};ui.EventSeriesService=Qu});var BC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.NoteService=void 0;var k1=b(),B1=E(),$1="/creativeWorks/noteDigitalDocument",Zu=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())}};di.NoteService=Zu});var $C=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PaymentProductService=void 0;var G1=b(),K1=E(),Ju=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())}};li.PaymentProductService=Ju});var GC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PlaceService=void 0;var lr=b(),Xu=Q(),W1=E(),ed=class extends W1.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${Xu.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${Xu.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${Xu.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[lr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};fi.PlaceService=ed});var KC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.HasPOSService=void 0;var H1=b(),V1=Q(),z1=E(),td=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())}};hi.HasPOSService=td});var WC=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.ProductService=void 0;var rd=b(),Y1=E(),nd=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:[rd.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:[rd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[rd.status.OK]}).then(async r=>r.json())}};yi.ProductService=nd});var HC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SeatOfferService=void 0;var Q1=b(),Z1=E(),J1="/seatOffers",sd=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())}};pi.SeatOfferService=sd});var VC=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SellerService=void 0;var vi=b(),X1=E(),id=class extends X1.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[vi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[vi.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:[vi.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:[vi.status.OK]}).then(async s=>s.json())}};Si.SellerService=id});var zC=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 od=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>Ne(jC()))).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(xC()))).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(UC()))).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(LC()))).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(FC()))).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(kC()))).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(BC()))).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($C()))).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(GC()))).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(KC()))).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(WC()))).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(HC()))).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(VC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=od});var YC=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.OrderService=void 0;var bt=b(),rj=Q(),nj=E(),ad=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())}};mi.OrderService=ad});var ZC=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ReservationService=void 0;var QC=b(),sj=E(),cd=class extends sj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[QC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[QC.status.OK]}).then(async n=>n.json())}};_i.ReservationService=cd});var JC=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.TokenService=void 0;var ij=E(),ud=class extends ij.Service{};Oi.TokenService=ud});var XC=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}),dd=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 ld=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>dd(YC()))).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(()=>dd(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(()=>dd(JC()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=ld});var tg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.SyncService=void 0;var eg=b(),cj=E(),fd=class extends cj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}};Ti.SyncService=fd});var rg=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 Yr;(function(t){let e;e=t.Sync||(t.Sync={})})(Yr||(ke.service=Yr={}));var hd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Yr.Sync.svc===void 0&&(Yr.Sync.svc=(await Promise.resolve().then(()=>lj(tg()))).SyncService),new Yr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=hd});var ng=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.CustomerService=void 0;var fj=b(),hj=E(),yd=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())}};Ei.CustomerService=yd});var sg=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.EventService=void 0;var Qr=b(),yj=E(),pd=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:[Qr.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:[Qr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}};Ci.EventService=pd});var ig=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.EventOfferService=void 0;var gi=b(),pj=E(),bi="/eventOffers",vd=class extends pj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:bi,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[gi.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:bi,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[gi.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:bi,method:"GET",qs:e,expectedStatusCodes:[gi.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${bi}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[gi.status.CREATED]}).then(async n=>n.json())}};Ai.EventOfferService=vd});var cg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.EventSeriesService=void 0;var og=b(),vj=E(),ag="/eventSeries",Sd=class extends vj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:ag,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[og.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:ag,method:"GET",qs:e,expectedStatusCodes:[og.status.OK]}).then(async r=>r.json())}};Pi.EventSeriesService=Sd});var dg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MeService=void 0;var ug=b(),Sj=E(),md=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:[ug.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[ug.status.OK]}).then(async s=>s.json())}};wi.MeService=md});var lg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MemberService=void 0;var mj=b(),_j=Q(),Oj=E(),_d=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())}};Ri.MemberService=_d});var yg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.MovieService=void 0;var fg=b(),Tj=E(),hg="/movies",Od=class extends Tj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:hg,method:"PUT",body:e,expectedStatusCodes:[fg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:hg,method:"GET",qs:e,expectedStatusCodes:[fg.status.OK]}).then(async r=>r.json())}};Mi.MovieService=Od});var vg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.MovieTheaterService=void 0;var Zr=b(),Ej=E(),pg="/movieTheaters",Td="/entranceGates",Ed=class extends Ej.Service{async findMovieTheaters(e){return this.fetch({uri:pg,method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:pg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Td,method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Td,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Td,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ii.MovieTheaterService=Ed});var Sg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.NoteService=void 0;var Cd=b(),Cj=E(),gd="/creativeWorks/noteDigitalDocument",bd=class extends Cj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:gd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Cd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:gd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Cd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:gd,method:"GET",qs:e,expectedStatusCodes:[Cd.status.OK]}).then(async r=>r.json())}};qi.NoteService=bd});var mg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.NoteAboutOrderService=void 0;var Ad=b(),gj=E(),Pd="/orderNotes",wd=class extends gj.Service{async upsertByIdentifier(e){await this.fetch({uri:Pd,method:"PUT",body:e,expectedStatusCodes:[Ad.status.NO_CONTENT]})}async search(e){return this.fetch({uri:Pd,method:"GET",qs:e,expectedStatusCodes:[Ad.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:[Ad.status.NO_CONTENT]})}};Ni.NoteAboutOrderService=wd});var _g=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.OrderService=void 0;var Jr=b(),bj=E(),Rd=class extends bj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Jr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Jr.status.OK],qs:r}).then(async n=>n.json())}};ji.OrderService=Rd});var Og=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.PaymentMethodService=void 0;var Aj=b(),Pj=E(),wj="/paymentMethods",Md=class extends Pj.Service{async findPaymentMethods(e){return this.fetch({uri:wj,method:"GET",qs:e,expectedStatusCodes:[Aj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};xi.PaymentMethodService=Md});var Eg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ProductService=void 0;var Id=b(),Rj=E(),Tg="/products",Mj="/productHasOfferCatalog",qd=class extends Rj.Service{async upsertByProductId(e){await this.fetch({uri:Tg,method:"PUT",body:e,expectedStatusCodes:[Id.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Tg,method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Mj,method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}};Ui.ProductService=qd});var Cg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ReservationService=void 0;var Nd=b(),Ij=E(),jd=class extends Ij.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Nd.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:[Nd.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:[Nd.status.OK]}).then(async s=>s.json())}};Di.ReservationService=jd});var Ag=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.RoomService=void 0;var gg=b(),qj=E(),bg="/rooms",xd=class extends qj.Service{async findRooms(e){return this.fetch({uri:bg,method:"GET",qs:e,expectedStatusCodes:[gg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:bg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[gg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.RoomService=xd});var Pg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SeatService=void 0;var Ud=b(),Nj=E(),Dd="/seats",Ld=class extends Nj.Service{async findSeats(e){return this.fetch({uri:Dd,method:"GET",qs:e,expectedStatusCodes:[Ud.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:Dd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[Ud.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:Dd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Ud.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Fi.SeatService=Ld});var Mg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.SeatSectionService=void 0;var wg=b(),jj=E(),Rg="/seatSections",Fd=class extends jj.Service{async findSeatSections(e){return this.fetch({uri:Rg,method:"GET",qs:e,expectedStatusCodes:[wg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Rg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[wg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ki.SeatSectionService=Fd});var Ig=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.SellerService=void 0;var xj=b(),Uj=E(),kd=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())}};Bi.SellerService=kd});var Ng=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.OfferService=void 0;var qg=b(),Dj=E(),Bd=class extends Dj.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[qg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[qg.status.NO_CONTENT]})}};$i.OfferService=Bd});var jg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.OfferCatalogService=void 0;var Lj=b(),Fj=E(),$d=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]})}};Gi.OfferCatalogService=$d});var Ug=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.OfferCatalogItemService=void 0;var xg=b(),kj=E(),Gd=class extends kj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[xg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[xg.status.NO_CONTENT]})}};Ki.OfferCatalogItemService=Gd});var Dg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.CancelReservationAssetTransactionService=void 0;var Bj=b(),$j=E(),Kd=class extends $j.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Bj.status.NO_CONTENT]})}};Wi.CancelReservationAssetTransactionService=Kd});var Lg=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 Wd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return N.Customer.svc===void 0&&(N.Customer.svc=(await Promise.resolve().then(()=>ce(ng()))).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(sg()))).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(ig()))).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(cg()))).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(dg()))).MeService),new N.Me.svc({...this.options})}async createMemberInstance(e){return N.Member.svc===void 0&&(N.Member.svc=(await Promise.resolve().then(()=>ce(lg()))).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(yg()))).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(vg()))).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(Sg()))).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(mg()))).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(_g()))).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(Og()))).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(Eg()))).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(Cg()))).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(Ag()))).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(Mg()))).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(Ig()))).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(Ng()))).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(jg()))).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(Ug()))).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(Dg()))).CancelReservationAssetTransactionService),new N.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Wd});var Fg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AccountingReportService=void 0;var Wj=b(),Hj=E(),Hd=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())}};Hi.AccountingReportService=Hd});var kg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AccountTitleService=void 0;var $e=b(),Vj=Q(),zj=E(),Vd=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]})}};Vi.AccountTitleService=Vd});var Bg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.ActionService=void 0;var zd=b(),Yj=E(),Yd=class extends Yj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[zd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[zd.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:[zd.status.OK]}).then(async r=>r.json())}};zi.ActionService=Yd});var $g=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AdditionalPropertyService=void 0;var Xr=b(),Qj=E(),Qd=class extends Qj.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Xr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xr.status.NO_CONTENT]})}};Yi.AdditionalPropertyService=Qd});var Kg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregateOfferService=void 0;var Gg=b(),Zj=E(),Zd=class extends Zj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Gg.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Gg.status.NO_CONTENT]})}};Qi.AggregateOfferService=Zd});var Wg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AggregateReservationService=void 0;var Jj=b(),Xj=E(),Jd=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())}};Zi.AggregateReservationService=Jd});var Hg=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AggregationService=void 0;var ex=b(),tx=E(),Xd=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())}};Ji.AggregationService=Xd});var Vg=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.AuthorizationService=void 0;var rx=b(),nx=E(),el=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())}};Xi.AuthorizationService=el});var zg=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.CreativeWorkService=void 0;var sx=b(),ix=E(),tl=class extends ix.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sx.status.NO_CONTENT]})}};eo.CreativeWorkService=tl});var Yg=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CategoryCodeService=void 0;var to=b(),ox=E(),ro="/categoryCodes",rl=class extends ox.Service{async createCategoryCode(e){return this.fetch({uri:ro,method:"POST",body:e,expectedStatusCodes:[to.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:ro,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[to.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${ro}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[to.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${ro}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[to.status.NO_CONTENT]})}};no.CategoryCodeService=rl});var Qg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CustomerService=void 0;var nl=b(),ax=E(),sl=class extends ax.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[nl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[nl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[nl.status.NO_CONTENT]})}};so.CustomerService=sl});var Zg=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.CustomerTypeService=void 0;var cx=b(),ux=E(),il=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())}};io.CustomerTypeService=il});var Jg=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EmailMessageService=void 0;var en=b(),dx=E(),ol=class extends dx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[en.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:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};oo.EmailMessageService=ol});var eb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.EventService=void 0;var tn=b(),Xg=Q(),lx=E(),al=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:Xg.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[tn.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[tn.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:[tn.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:Xg.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[tn.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[tn.status.NO_CONTENT]})}};ao.EventService=al});var nb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.EventSeriesService=void 0;var tb=b(),rb=Q(),fx=E(),cl=class extends fx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${rb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[tb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${rb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tb.status.NO_CONTENT]})}};co.EventSeriesService=cl});var sb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.HasMerchantReturnPolicyService=void 0;var hx=b(),yx=E(),ul=class extends yx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[hx.status.OK]}).then(async e=>e.json())}};uo.HasMerchantReturnPolicyService=ul});var ib=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IAMService=void 0;var At=b(),px=E(),dl=class extends px.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};lo.IAMService=dl});var ob=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityService=void 0;var fo=b(),vx=E(),ll=class extends vx.Service{async createIdentity(e){return this.fetch({uri:"/identities",method:"POST",body:e,expectedStatusCodes:[fo.status.CREATED]}).then(async r=>r.json())}async projectIdentityFields(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[fo.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:[fo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fo.status.NO_CONTENT]})}};ho.IdentityService=ll});var ab=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.IdentityProviderService=void 0;var yo=b(),Sx=E(),fl=class extends Sx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[yo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[yo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[yo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[yo.status.NO_CONTENT]})}};po.IdentityProviderService=fl});var cb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.IssuerService=void 0;var rn=b(),mx=E(),hl=class extends mx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[rn.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:[rn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};vo.IssuerService=hl});var db=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MeService=void 0;var ub=b(),_x=E(),yl=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:[ub.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:[ub.status.OK]}).then(async r=>r.json())}};So.MeService=yl});var lb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberService=void 0;var Pt=b(),wt=Q(),Ox=E(),pl=class extends Ox.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};mo.MemberService=pl});var fb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MemberProgramService=void 0;var nn=b(),Tx=E(),vl=class extends Tx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[nn.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:[nn.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:[nn.status.NO_CONTENT]})}};_o.MemberProgramService=vl});var hb=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MerchantReturnPolicyService=void 0;var sn=b(),Ex=E(),Sl=class extends Ex.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[sn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[sn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[sn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sn.status.NO_CONTENT]})}};Oo.MerchantReturnPolicyService=Sl});var yb=o(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.MessageService=void 0;var Cx=b(),gx=E(),ml=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())}};To.MessageService=ml});var pb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.MovieTicketTypeService=void 0;var Eo=b(),bx=E(),Co="/movieTicketTypes",_l=class extends bx.Service{async createMovieTicketType(e){return this.fetch({uri:Co,method:"POST",body:e,expectedStatusCodes:[Eo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Co,method:"GET",qs:e,expectedStatusCodes:[Eo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Eo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Co}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Eo.status.NO_CONTENT]})}};go.MovieTicketTypeService=_l});var vb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.OrderService=void 0;var bo=b(),Ax=E(),Ol=class extends Ax.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async processOrder(e){let{confirmationNumber:r,orderNumber:n}=e.object;await this.fetch({uri:`/orders/${n}/processOrder`,method:"POST",body:{confirmationNumber:r},expectedStatusCodes:[bo.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[bo.status.OK]}).then(async r=>r.json())}};Ao.OrderService=Ol});var Sb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.OwnershipInfoService=void 0;var Px=b(),wx=E(),Tl=class extends wx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[Px.status.OK]}).then(async r=>({data:await r.json()}))}};Po.OwnershipInfoService=Tl});var mb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentProductService=void 0;var fr=b(),Rx=E(),El=class extends Rx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[fr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[fr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[fr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}};wo.PaymentProductService=El});var _b=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PaymentServiceChannelService=void 0;var Ro=b(),Mx=E(),Cl=class extends Mx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Ro.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Ro.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:[Ro.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Ro.status.NO_CONTENT]})}};Mo.PaymentServiceChannelService=Cl});var Tb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PendingReservationService=void 0;var Ob=b(),Ix=E(),gl=class extends Ix.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Ob.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:[Ob.status.OK]}).then(async n=>n.json())}};Io.PendingReservationService=gl});var Cb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PermissionService=void 0;var Eb=b(),qx=E(),bl=class extends qx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Eb.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:[Eb.status.OK]}).then(async n=>n.json())}};qo.PermissionService=bl});var bb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.PersonService=void 0;var gb=b(),Nx=E(),Al=class extends Nx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[gb.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:[gb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};No.PersonService=Al});var Ab=o(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.PlaceService=void 0;var on=b(),an=Q(),jx=E(),Pl=class extends jx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${an.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[on.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[on.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}};jo.PlaceService=Pl});var Pb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.HasPOSService=void 0;var xo=b(),Uo=Q(),xx=E(),wl=class extends xx.Service{async search(e){return this.fetch({uri:`/places/${Uo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[xo.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${Uo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[xo.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${Uo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[xo.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${Uo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[xo.status.NO_CONTENT]})}};Do.HasPOSService=wl});var wb=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.PriceSpecificationService=void 0;var Lo=b(),Ux=E(),Rl=class extends Ux.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Lo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Lo.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:[Lo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Lo.status.NO_CONTENT]})}};Fo.PriceSpecificationService=Rl});var Rb=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProductService=void 0;var cn=b(),Dx=E(),un="/products",Ml=class extends Dx.Service{async createProduct(e){return this.fetch({uri:un,method:"POST",body:e,expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:un,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${un}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[cn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${un}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${un}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.status.NO_CONTENT]})}};ko.ProductService=Ml});var Mb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectService=void 0;var Bo=b(),Lx=E(),Il=class extends Lx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Bo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Bo.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:[Bo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Bo.status.NO_CONTENT]})}};$o.ProjectService=Il});var Ib=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ProjectMakesOfferService=void 0;var Go=b(),Fx=E(),ql=class extends Fx.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Go.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Go.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Go.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Go.status.NO_CONTENT]})}};Ko.ProjectMakesOfferService=ql});var qb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ReservationService=void 0;var kx=b(),Bx=E(),Nl=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]})}};Wo.ReservationService=Nl});var Nb=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferService=void 0;var jl=b(),$x=E(),xl=class extends $x.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[jl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[jl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[jl.status.NO_CONTENT]})}};Ho.OfferService=xl});var jb=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferCatalogService=void 0;var Vo=b(),Gx=E(),Ul=class extends Gx.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Vo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Vo.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:[Vo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Vo.status.NO_CONTENT]})}};zo.OfferCatalogService=Ul});var xb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferCatalogItemService=void 0;var dn=b(),Kx=E(),Dl=class extends Kx.Service{async create(e){return this.fetch({uri:"/offerCatalogItems",method:"POST",body:e,expectedStatusCodes:[dn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[dn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[dn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[dn.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:[dn.status.OK]}).then(async s=>s.json())}};Yo.OfferCatalogItemService=Dl});var Ub=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.OfferItemConditionService=void 0;var Qo=b(),Wx=E(),Ll=class extends Wx.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Qo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Qo.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:[Qo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qo.status.NO_CONTENT]})}};Zo.OfferItemConditionService=Ll});var Db=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerService=void 0;var _e=b(),Hx=E(),Fl=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]})}};Jo.SellerService=Fl});var Lb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.SellerMakesOfferService=void 0;var kl=b(),Vx=E(),Bl=class extends Vx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[kl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[kl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[kl.status.NO_CONTENT]})}};Xo.SellerMakesOfferService=Bl});var Fb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.SellerReturnPolicyService=void 0;var ln=b(),zx=E(),$l=class extends zx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[ln.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[ln.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:[ln.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:[ln.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[ln.status.NO_CONTENT]})}};ea.SellerReturnPolicyService=$l});var kb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TaskService=void 0;var Gl=b(),Yx=E(),Kl=class extends Yx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Gl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Gl.status.OK]}).then(async r=>r.json())}};ta.TaskService=Kl});var Bb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TicketService=void 0;var Qx=b(),Zx=E(),Wl=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())}};ra.TicketService=Wl});var $b=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.AssetTransactionService=void 0;var Jx=b(),Xx=E(),Hl=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()}))}};na.AssetTransactionService=Hl});var Gb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.PayAssetTransactionService=void 0;var sa=b(),hr=Q(),eU=E(),Vl=class extends eU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[sa.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[sa.status.OK]}).then(async r=>r.json())}};ia.PayAssetTransactionService=Vl});var Kb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.ReserveAssetTransactionService=void 0;var oa=b(),tU=E(),zl=class extends tU.Service{async start(e){return this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,expectedStatusCodes:[oa.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:[oa.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:[oa.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:[oa.status.NO_CONTENT]})}};aa.ReserveAssetTransactionService=zl});var Wb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.TokenService=void 0;var rU=E(),Yl=class extends rU.Service{};ca.TokenService=Yl});var Vb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.PlaceOrderTransactionService=void 0;var Hb=b(),nU=Q(),sU=E(),Ql=class extends sU.Service{typeOf=nU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Hb.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:[Hb.status.OK]}).then(async s=>s.json())}};ua.PlaceOrderTransactionService=Ql});var zb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.ReturnOrderTransactionService=void 0;var iU=b(),oU=Q(),aU=E(),Zl=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()}))}};da.ReturnOrderTransactionService=Zl});var Yb=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.TransactionNumberService=void 0;var cU=b(),uU=E(),Jl=class extends uU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[cU.status.CREATED]}).then(async e=>e.json())}};la.TransactionNumberService=Jl});var Qb=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.UserPoolService=void 0;var Xl=b(),dU=E(),ef=class extends dU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[Xl.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[Xl.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[Xl.status.OK]}).then(async r=>r.json())}};fa.UserPoolService=ef});var Zb=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.WebSiteService=void 0;var ha=b(),lU=E(),tf=class extends lU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[ha.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[ha.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:[ha.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[ha.status.NO_CONTENT]})}};ya.WebSiteService=tf});var Jb=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 Ar;Ar=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 A;A=t.OfferCatalogItem||(t.OfferCatalogItem={});let P;P=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 Ae;Ae=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let It;(function(x){let Ar;Ar=x.Pay||(x.Pay={});let bn;bn=x.Reserve||(x.Reserve={})})(It=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Pe;(function(x){let Ar;Ar=x.PlaceOrder||(x.PlaceOrder={});let bn;bn=x.ReturnOrder||(x.ReturnOrder={})})(Pe=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let br;br=t.UserPool||(t.UserPool={});let $P;$P=t.WebSite||(t.WebSite={})})(_||(Ge.service=_={}));var rf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Fg()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(kg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(Bg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F($g()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Kg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Wg()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Hg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Vg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(zg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Yg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Qg()))).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(Jg()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(eb()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(nb()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(sb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(ib()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(ob()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(ab()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(cb()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(db()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(lb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(fb()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(hb()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(yb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(pb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(vb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(Sb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(mb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(_b()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(Tb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Cb()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(bb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(Ab()))).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(wb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Rb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(Mb()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Ib()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(qb()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(Nb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(jb()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(xb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Ub()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(Db()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(Lb()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Fb()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(kb()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(Bb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F($b()))).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(Gb()))).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(Kb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F(Wb()))).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(Vb()))).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(zb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Yb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Qb()))).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=rf});var Xb=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PaymentService=void 0;var me=b(),ve=Q(),yU=E(),pU=["awashimakisen-production","awashimakisen-test"],nf=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())}};pa.PaymentService=nf});var eA=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 fn;(function(t){let e;e=t.Payment||(t.Payment={})})(fn||(Ke.service=fn={}));var sf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return fn.Payment.svc===void 0&&(fn.Payment.svc=(await Promise.resolve().then(()=>mU(Xb()))).PaymentService),new fn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=sf});var rA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.OfferService=void 0;var of=b(),tA=Q(),_U=E(),af=class extends _U.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${tA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[of.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/${tA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[of.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[of.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};va.OfferService=af});var nA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.PlaceOrderTransactionService=void 0;var yr=b(),OU=Q(),TU=E(),cf=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:[yr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[yr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[yr.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:[yr.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:[yr.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:[yr.status.NO_CONTENT]})}};Sa.PlaceOrderTransactionService=cf});var sA=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.ReturnOrderTransactionService=void 0;var hn=b(),EU=Q(),CU=E(),uf=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:[hn.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:[hn.status.NO_CONTENT,hn.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[hn.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:[hn.status.NO_CONTENT]})}};ma.ReturnOrderTransactionService=uf});var iA=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}),df=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 lf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>df(rA()))).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(()=>df(nA()))).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(()=>df(sA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=lf});var oA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.OfferService=void 0;var yn=b(),pn=Q(),AU=E(),ff=class extends AU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${pn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[yn.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/${pn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[yn.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/${pn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[yn.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/${pn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[yn.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/${pn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[yn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};_a.OfferService=ff});var aA=o(He=>{"use strict";var PU=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"&&PU(r,e,n[s]);return wU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var vn;(function(t){let e;e=t.Offer||(t.Offer={})})(vn||(He.service=vn={}));var hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return vn.Offer.svc===void 0&&(vn.Offer.svc=(await Promise.resolve().then(()=>RU(oA()))).OfferService),new vn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=hf});var cA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.CategoryCodeService=void 0;var Oa=b(),MU=E(),yf=class extends MU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[Oa.status.OK]}).then(async r=>({data:await r.json()}))}};Ta.CategoryCodeService=yf});var uA=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.EmailMessageService=void 0;var Ea=b(),IU=E(),pf=class extends IU.Service{constructor(e){super({...e,retryableStatusCodes:[Ea.status.BAD_GATEWAY,Ea.status.FORBIDDEN,Ea.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Ea.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.EmailMessageService=pf});var dA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.EventService=void 0;var Ie=b(),pr=Q(),qU=E(),vf=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!==pr.factory.eventType.ScreeningEvent)throw new pr.factory.errors.Argument("typeOf",`typeOf must be ${pr.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(![pr.factory.eventType.ScreeningEvent].includes(n))throw new pr.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 pr.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())}};ga.EventService=vf});var fA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.PlaceService=void 0;var Sn=b(),lA=Q(),NU=E(),Sf=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[Sn.status.BAD_GATEWAY,Sn.status.FORBIDDEN,Sn.status.UNAUTHORIZED]})}async searchMovieTheaters(e){return this.fetch({uri:`/places/${lA.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Sn.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRooms(e){return this.fetch({uri:`/places/${lA.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Sn.status.OK]}).then(async r=>({data:await r.json()}))}};ba.PlaceService=Sf});var hA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.HasPOSService=void 0;var Aa=b(),jU=Q(),xU=E(),mf=class extends xU.Service{constructor(e){super({...e,retryableStatusCodes:[Aa.status.BAD_GATEWAY,Aa.status.FORBIDDEN,Aa.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:[Aa.status.OK]}).then(async r=>r.json())}};Pa.HasPOSService=mf});var yA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.SellerService=void 0;var kt=b(),UU=E(),_f=class extends UU.Service{constructor(e){super({...e,retryableStatusCodes:[kt.status.BAD_GATEWAY,kt.status.FORBIDDEN,kt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[kt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}};wa.SellerService=_f});var vA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.service=void 0;var DU=cA(),LU=uA(),FU=dA(),kU=fA(),BU=hA(),$U=yA(),pA;(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})(pA||(Ra.service=pA={}))});var SA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CreativeWorkService=void 0;var GU=re(),KU=E(),Of=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)}};Ma.CreativeWorkService=Of});var mA=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.CustomerService=void 0;var WU=re(),HU=E(),Tf=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)}};Ia.CustomerService=Tf});var _A=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventService=void 0;var vr=Q(),qa=re(),VU=E(),Ef=class extends VU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,qa.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,qa.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,qa.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Na.EventService=Ef});var OA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventOfferService=void 0;var zU=re(),YU=E(),Cf=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}};ja.EventOfferService=Cf});var TA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.EventSeriesService=void 0;var QU=re(),ZU=E(),gf=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})}};xa.EventSeriesService=gf});var CA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MeService=void 0;var EA=re(),JU=E(),bf=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,EA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,EA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};Ua.MeService=bf});var gA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.NoteAboutOrderService=void 0;var Af=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,Af.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,Af.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,Af.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Da.NoteAboutOrderService=Pf});var AA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferService=void 0;var mt=Q(),bA=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 wf=class extends eD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,bA.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,bA.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)}};La.OfferService=wf});var PA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferCatalogService=void 0;var mn=Q(),rD=re(),nD=E(),Rf=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!==mn.factory.product.ProductType.EventService&&y!==mn.factory.product.ProductType.Product)throw new mn.factory.errors.Argument("itemOffered.typeOf",`must be ${mn.factory.product.ProductType.EventService} or ${mn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Fa.OfferCatalogService=Rf});var RA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogItemService=void 0;var wA=re(),sD=E(),Mf=class extends sD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,wA.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,wA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogItemService=Mf});var MA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.OrderService=void 0;var Rt=Q(),Sr=re(),iD=E(),Ba=20,If=class extends iD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sr.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,Sr.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Sr.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,$unwindAcceptedOffers:"1",limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sr.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,Sr.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,Sr.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};$a.OrderService=If});var IA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.PaymentMethodService=void 0;var oD=re(),aD=E(),qf=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)}};Ga.PaymentMethodService=qf});var qA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ProductService=void 0;var _n=Q(),cD=re(),uD=E(),Nf=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!==_n.factory.product.ProductType.EventService&&f!==_n.factory.product.ProductType.Product)throw new _n.factory.errors.Argument("typeOf",`must be ${_n.factory.product.ProductType.EventService} or ${_n.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Ka.ProductService=Nf});var jA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.ReservationService=void 0;var On=Q(),Wa=re(),dD=E(),NA=20,jf=class extends dD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new On.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new On.factory.errors.Argument("page","must be number");if(d<1||d>NA)throw new On.factory.errors.Argument("limit",`must be >=1 and <=${NA}`);if(f<1)throw new On.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,Wa.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,Wa.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 On.factory.errors.ArgumentNull("seller.id");let u=await(0,Wa.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})}};Ha.ReservationService=jf});var xA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.SellerService=void 0;var lD=re(),fD=E(),xf=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)}};Va.SellerService=xf});var UA=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=[],Uf=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(SA()))).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(mA()))).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(_A()))).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(OA()))).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(TA()))).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(CA()))).MeService),new G.Me.svc({...this.options})}async createNoteInstance(e){return G.NoteAboutOrder.svc===void 0&&(G.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(gA()))).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(AA()))).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(PA()))).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(RA()))).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(MA()))).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(IA()))).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(qA()))).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(jA()))).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(xA()))).SellerService),new G.Seller.svc({...this.options,...e,retryableStatusCodes:je})}};Ve.CloudAdmin=Uf});var DA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.OrderService=void 0;var Bt=re(),pD=E(),Df=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,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough: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,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,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,Bt.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})}};za.OrderService=Df});var LA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.DeliveryService=void 0;var vD=re(),SD=E(),Lf=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})}};Ya.DeliveryService=Lf});var kA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.ReservationService=void 0;var FA=re(),mD=E(),Ff=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,FA.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,FA.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)}};Qa.ReservationService=Ff});var BA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.TokenService=void 0;var _D=E(),kf=class extends _D.Service{};Za.TokenService=kf});var $A=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}),Ja=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 Xa=b(),qe;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(qe||(ze.service=qe={}));var ec=[Xa.status.BAD_GATEWAY,Xa.status.SERVICE_UNAVAILABLE,Xa.status.FORBIDDEN,Xa.status.UNAUTHORIZED],Bf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOrderInstance(e){return qe.Order.svc===void 0&&(qe.Order.svc=(await Promise.resolve().then(()=>Ja(DA()))).OrderService),new qe.Order.svc({...this.options,...e,retryableStatusCodes:ec})}async createDeliveryInstance(e){return qe.Delivery.svc===void 0&&(qe.Delivery.svc=(await Promise.resolve().then(()=>Ja(LA()))).DeliveryService),new qe.Delivery.svc({...this.options,...e,retryableStatusCodes:ec})}async createReservationInstance(e){return qe.Reservation.svc===void 0&&(qe.Reservation.svc=(await Promise.resolve().then(()=>Ja(kA()))).ReservationService),new qe.Reservation.svc({...this.options,...e,retryableStatusCodes:ec})}async createTokenInstance(e){return qe.Token.svc===void 0&&(qe.Token.svc=(await Promise.resolve().then(()=>Ja(BA()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:ec})}};ze.CloudAsset=Bf});var GA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.CreativeWorkService=void 0;var ED=b(),CD=E(),$f=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())}};tc.CreativeWorkService=$f});var KA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.PaymentProductService=void 0;var gD=b(),bD=E(),Gf=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())}};rc.PaymentProductService=Gf});var WA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.ProductService=void 0;var Kf=b(),AD=E(),Wf=class extends AD.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:[Kf.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:[Kf.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:[Kf.status.OK]}).then(async i=>i.json())}};nc.ProductService=Wf});var HA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.EventOfferService=void 0;var PD=b(),wD=E(),RD="/eventOffers",Hf=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:[PD.status.OK]}).then(async d=>d.json())}};sc.EventOfferService=Hf});var zA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.PlaceService=void 0;var VA=b(),MD=E(),Vf=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:[VA.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:[VA.status.OK]}).then(async f=>f.json())}};ic.PlaceService=Vf});var YA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.SeatOfferService=void 0;var ID=b(),qD=E(),ND="/seatOffers",zf=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())}};oc.SeatOfferService=zf});var QA=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}),mr=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 Yf=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 _r=[Yf.status.BAD_GATEWAY,Yf.status.FORBIDDEN,Yf.status.UNAUTHORIZED],Qf=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>mr(GA()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:_r})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>mr(KA()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:_r})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>mr(WA()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:_r})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>mr(HA()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:_r})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>mr(zA()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:_r})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>mr(YA()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:_r})}};Ye.CloudSearch=Qf});var XA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.PaymentService=void 0;var le=b(),ge=Q(),be=re(),UD=E(),ZA=1e3,DD=5e3;async function JA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Zf=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 JA(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>ZA?r.intervalAfterIssueTicketInMS:ZA,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 JA(d),y}};ac.PaymentService=Zf});var eP=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 cc=b(),Tn;(function(t){let e;e=t.Payment||(t.Payment={})})(Tn||(Qe.service=Tn={}));var BD=[cc.status.BAD_GATEWAY,cc.status.SERVICE_UNAVAILABLE,cc.status.FORBIDDEN,cc.status.UNAUTHORIZED],Jf=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 Tn.Payment.svc===void 0&&(Tn.Payment.svc=(await Promise.resolve().then(()=>kD(XA()))).PaymentService),new Tn.Payment.svc({...this.options,...e,retryableStatusCodes:BD})}};Qe.CloudPay=Jf});var sP=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.authorizeOfferAsync=GD;uc.voidAuthorizeOfferAsync=KD;var te=Q(),tP=2e4,rP=1e3;async function nP(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},tP);let s,i;for(;s===void 0&&i===void 0;){if(await nP(rP),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},tP);let s,i;for(;s===void 0&&i===void 0;){if(await nP(rP),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 oP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.PlaceOrderCOAService=void 0;var iP=Q(),Xf=re(),WD=E(),eh=sP(),th=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,Xf.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,eh.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 iP.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,Xf.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,eh.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,Xf.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,eh.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 iP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};dc.PlaceOrderCOAService=th});var aP=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 lc=b(),En;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(En||(Ze.service=En={}));var YD=[lc.status.BAD_GATEWAY,lc.status.SERVICE_UNAVAILABLE,lc.status.FORBIDDEN,lc.status.UNAUTHORIZED],rh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return En.transaction.PlaceOrder.svc===void 0&&(En.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>zD(oP()))).PlaceOrderCOAService),new En.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:YD})}};Ze.CloudTxc=rh});var cP=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.OfferService=void 0;var QD=Q(),nh=re(),ZD=E(),sh=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,nh.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,nh.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,nh.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})}};fc.OfferService=sh});var uP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.PlaceOrderTransactionService=void 0;var Or=b(),Tr=re(),JD=E(),ih=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,Tr.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,Tr.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,Tr.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,Tr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Or.status.CONFLICT,Or.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,Tr.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],Or.status.CONFLICT,Or.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,Tr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Or.status.CONFLICT,Or.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};hc.PlaceOrderTransactionService=ih});var dP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.ReturnOrderTransactionService=void 0;var oh=re(),XD=E(),ah=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,oh.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,oh.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,oh.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})}};yc.ReturnOrderTransactionService=ah});var lP=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}),ch=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 pc=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 uh=[pc.status.BAD_GATEWAY,pc.status.SERVICE_UNAVAILABLE,pc.status.FORBIDDEN,pc.status.UNAUTHORIZED],dh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>ch(cP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:uh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>ch(uP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:uh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>ch(dP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:uh})}};Je.CloudTxn=dh});var fP=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.RuleService=void 0;var rL=b(),nL=E(),lh=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())}};vc.RuleService=lh});var yP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleSetService=void 0;var hP=b(),sL=E(),fh=class extends sL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[hP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[hP.status.NO_CONTENT]})}};Sc.RuleSetService=fh});var vP=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}),pP=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 Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var hh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>pP(fP()))).RuleService),new Mt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Mt.RuleSet.svc===void 0&&(Mt.RuleSet.svc=(await Promise.resolve().then(()=>pP(yP()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=hh});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=AL;var uL=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return uL.factory}});var dL=Oe($s());X.transporters=dL;var yh;async function lL(...t){return yh===void 0&&(yh=(await Promise.resolve().then(()=>Oe(zC()))).Chevre),new yh(...t)}var ph;async function fL(...t){return ph===void 0&&(ph=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAsset),new ph(...t)}var vh;async function hL(...t){return vh===void 0&&(vh=(await Promise.resolve().then(()=>Oe(rg()))).ChevreAdmic),new vh(...t)}var Sh;async function yL(...t){return Sh===void 0&&(Sh=(await Promise.resolve().then(()=>Oe(Lg()))).ChevreAdmin),new Sh(...t)}var mh;async function pL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(Jb()))).ChevreConsole),new mh(...t)}var _h;async function vL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(eA()))).ChevrePay),new _h(...t)}var Oh;async function SL(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(iA()))).ChevreTxn),new Oh(...t)}var Th;async function mL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(aA()))).ChevreTxc),new Th(...t)}var Eh;async function _L(){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(vA()))).service),Eh}var Ch;async function OL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(UA()))).CloudAdmin),new Ch(...t)}var gh;async function TL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe($A()))).CloudAsset),new gh(...t)}var bh;async function EL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(QA()))).CloudSearch),new bh(...t)}var Ah;async function CL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(eP()))).CloudPay),new Ah(...t)}var Ph;async function gL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(aP()))).CloudTxc),new Ph(...t)}var wh;async function bL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(lP()))).CloudTxn),new wh(...t)}var Rh;async function AL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(vP()))).WaiterAdmin),new Rh(...t)}});var SP=o($t=>{"use strict";var PL=$t&&$t.__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=$t&&$t.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PL(e,t,r)};Object.defineProperty($t,"__esModule",{value:!0});wL(re(),$t)});var MP=o((s5,RP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(t){var e={exports:{}};return t(e,e.exports),e.exports}var RL=Wt(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,A=new this.constructor(B);A[j]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return tt(P,A,L,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(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(A,P){P._state===$?ie(A,P._result):P._state===Y?ee(A,P._result):et(P,void 0,function(L){return oe(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,L){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(L,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(P=typeof(A=v),A===null||P!=="object"&&P!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var A,P}function se(h){h._onerror&&h._onerror(h._result),it(h)}function 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,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+$]=T,P[L+Y]=A,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,L=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,L):P(L);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),L=void 0,z=void 0,Z=!0;if(P){try{L=T(A)}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=A;v._state!==W||(P&&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 A=this._instanceConstructor,P=A.resolve;if(P===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Ae){Z=!0,z=Ae}if(L===k&&v._state!==W)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(A===l){var ue=new A(B);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===W&&(this._remaining--,v===Y?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Y,T,P)})},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,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var T=this,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,L=0;L<P;L++)v.resolve(h[L]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(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(Kt!==void 0)h=Kt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),ML={__proto__:null,default:{}},jh=Wt(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Kt!==void 0&&Kt.crypto&&(i=Kt.crypto),!i)try{i=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)}),CP=Wt(function(t,e){var r;t.exports=(r=jh,(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=Wt(function(t,e){var r,n;t.exports=(n=(r=jh).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)}),mP=Wt(function(t,e){t.exports=jh.enc.Hex}),gP=Wt(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var A=32767&c,P=c>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=P*L+z*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*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 A=c*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var A=16383&c,P=c>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=P*L+z*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*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 A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)c[l]=0;c[A]=P,c.t=this.t+A+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)c[A-l-1]|=(this[A]&T)<<v,c[A-l]=this[A]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=a.s,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),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=c??s();for(T.dlShiftTo(Pe,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Pe>=0;){var br=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,br,l,Pe,0,z))<br)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--br;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),A!=P&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var 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 A=l;l=h,h=A}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%c;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<c?(l=(this[A]&(1<<P)-1)<<c-P,l|=this[--A]>>(P+=this.DB-c)):(l=this[A]>>(P-=c)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+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(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=c*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),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 A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(c)!=0){for(var P=1;P++<l&&A.compareTo(c)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,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 A=new Array,P=3,L=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!0,ye=s();for(v=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)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),c&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=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(Kt)}),_P={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},OP={sha256:CP};function bP(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 gP.BigInteger(t,16),this.e=parseInt(e,16)}bP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new gP.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 _P){var d=_P[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(!OP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=OP[n.alg](t).toString();return n.hash===s};for(TP=[],xe=[],AP=typeof Uint8Array<"u"?Uint8Array:Array,Mh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=0;Gt<64;++Gt)TP[Gt]=Mh[Gt],xe[Mh.charCodeAt(Gt)]=Gt;var TP,xe,AP,Mh,Gt;xe[45]=62,xe[95]=63;var PP=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 AP((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 wP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function EP(t){return t=wP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(PP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Ih(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})(PP(wP(t)))}var qL=Wt(function(t){var e,r;e=Kt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function 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 qh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}qh.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 Nh="RS256",mc=function(t){return typeof t=="number"},UL=function(){return new Date};function Cn(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 qh("The leeway should be positive and lower than five minutes.");if(Nh!==this.expectedAlg)throw new qh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Nh+'".')}Cn.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=Ih(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 "'+Nh+'".'),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||!mc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!mc(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&&mc(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||!mc(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)})},Cn.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:Ih((S=m).n),exp:Ih(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 bP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},Cn.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(EP(n[0])),r=JSON.parse(EP(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]}}},Cn.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=CP(t),u=mP.stringify(i),d=u.substring(0,u.length/2),f=mP.parse(d),p=IL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},RP.exports=Cn});var gn=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.AuthorizeError=void 0;var xh=class extends Error{error;errorDescription;state};_c.AuthorizeError=xh});var IP=o(Er=>{"use strict";var DL=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.PopupHandler=void 0;var LL=DL(tr()),Uh=(0,LL.default)("cinerino-sdk:auth:popupHandler"),Dh=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(Uh("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}`)}Uh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){Uh("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)}};Er.PopupHandler=Dh});var qP=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.PopupAuthenticationHandler=void 0;var FL=gn(),kL=IP(),Lh=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()})}};Oc.PopupAuthenticationHandler=Lh});var kh=o(Cr=>{"use strict";var BL=Cr&&Cr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IframeHandler=void 0;var $L=BL(tr()),GL=(0,$L.default)("cinerino-sdk:auth:iframeHandler"),Fh=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)}};Cr.IframeHandler=Fh});var NP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.SilentAuthenticationHandler=void 0;var KL=gn(),WL=kh(),Bh=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()})}};Tc.SilentAuthenticationHandler=Bh});var jP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentLogoutHandler=void 0;var HL=gn(),VL=kh(),$h=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()})}};Ec.SilentLogoutHandler=$h});var xP=o(()=>{});var UP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.LoginTicket=void 0;var Gh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};Cc.LoginTicket=Gh});var DP=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=xP(),QL=zL(tr()),gc=b(),ZL=$s(),JL=UP(),Ht=(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 Kh=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 Ht("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Ht("response:",d.status),d.status!==gc.status.OK)if(d.status===gc.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=>(Ht("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(Ht("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){Ht("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 Ht("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Ht("response:",u.status),u.status!==gc.status.OK)if(u.status===gc.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=Kh});var kP=o(gr=>{"use strict";var FP=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});gr.ImplicitGrantClient=void 0;var tF=FP(tr()),LP=FP(MP()),Wh=Gu(),rF=gn(),nF=qP(),sF=NP(),iF=jP(),oF=DP(),bc=(0,tF.default)("cinerino-sdk:auth:implicitGrantClient"),Hh=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,bc("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 bc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),bc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Wh.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 LP.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 LP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(bc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Wh.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,Wh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};gr.ImplicitGrantClient=Hh});var BP=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=SP();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=kP();function cF(t){return new aF.ImplicitGrantClient(t)}});var S5=window.cinerino=BP();})();
4
+ `+e.prev}function $s(t,e){var r=Eu(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 Su=="function"?Su(t):[],c;if(sr){c={};for(var d=0;d<i.length;d++)c["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&c["$"+f]instanceof Symbol||(GT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof Su=="function")for(var p=0;p<i.length;p++)KT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var JT=o((b2,ZT)=>{"use strict";var Nq=$r(),jq=xt(),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},xq=function(t,e){if(t){var r=Hs(t,e);return r&&r.value}},Uq=function(t,e,r){var n=Hs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Dq=function(t,e){return t?!!Hs(t,e):!1},Lq=function(t,e){if(t)return Hs(t,e,!0)};ZT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new jq("Side channel does not contain "+Nq(n))},delete:function(n){var s=Lq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return xq(e,n)},has:function(n){return Dq(e,n)},set:function(n,s){e||(e={next:void 0}),Uq(e,n,s)}};return r}});var Pu=o((A2,XT)=>{"use strict";XT.exports=Object});var tE=o((P2,eE)=>{"use strict";eE.exports=Error});var nE=o((w2,rE)=>{"use strict";rE.exports=EvalError});var iE=o((R2,sE)=>{"use strict";sE.exports=RangeError});var aE=o((M2,oE)=>{"use strict";oE.exports=ReferenceError});var uE=o((I2,cE)=>{"use strict";cE.exports=SyntaxError});var lE=o((q2,dE)=>{"use strict";dE.exports=URIError});var hE=o((N2,fE)=>{"use strict";fE.exports=Math.abs});var pE=o((j2,yE)=>{"use strict";yE.exports=Math.floor});var SE=o((x2,vE)=>{"use strict";vE.exports=Math.max});var _E=o((U2,mE)=>{"use strict";mE.exports=Math.min});var TE=o((D2,OE)=>{"use strict";OE.exports=Math.pow});var CE=o((L2,EE)=>{"use strict";EE.exports=Math.round});var bE=o((F2,gE)=>{"use strict";gE.exports=Number.isNaN||function(e){return e!==e}});var PE=o((k2,AE)=>{"use strict";var Fq=bE();AE.exports=function(e){return Fq(e)||e===0?e:e<0?-1:1}});var RE=o((B2,wE)=>{"use strict";wE.exports=Object.getOwnPropertyDescriptor});var wu=o(($2,ME)=>{"use strict";var Ws=RE();if(Ws)try{Ws([],"length")}catch{Ws=null}ME.exports=Ws});var qE=o((G2,IE)=>{"use strict";var Vs=Object.defineProperty||!1;if(Vs)try{Vs({},"a",{value:1})}catch{Vs=!1}IE.exports=Vs});var jE=o((K2,NE)=>{"use strict";NE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var DE=o((H2,UE)=>{"use strict";var xE=typeof Symbol<"u"&&Symbol,kq=jE();UE.exports=function(){return typeof xE!="function"||typeof Symbol!="function"||typeof xE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kq()}});var Ru=o((W2,LE)=>{"use strict";LE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mu=o((V2,FE)=>{"use strict";var Bq=Pu();FE.exports=Bq.getPrototypeOf||null});var $E=o((z2,BE)=>{"use strict";var $q="Function.prototype.bind called on incompatible ",Gq=Object.prototype.toString,Kq=Math.max,Hq="[object Function]",kE=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},Wq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Vq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};BE.exports=function(e){var r=this;if(typeof r!="function"||Gq.apply(r)!==Hq)throw new TypeError($q+r);for(var n=Wq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,kE(n,arguments));return Object(y)===y?y:this}return r.apply(e,kE(n,arguments))},c=Kq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Vq(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 Gr=o((Y2,GE)=>{"use strict";var zq=$E();GE.exports=Function.prototype.bind||zq});var zs=o((Q2,KE)=>{"use strict";KE.exports=Function.prototype.call});var Iu=o((Z2,HE)=>{"use strict";HE.exports=Function.prototype.apply});var VE=o((J2,WE)=>{"use strict";WE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var YE=o((X2,zE)=>{"use strict";var Yq=Gr(),Qq=Iu(),Zq=zs(),Jq=VE();zE.exports=Jq||Yq.call(Zq,Qq)});var qu=o((e3,QE)=>{"use strict";var Xq=Gr(),eN=xt(),tN=zs(),rN=YE();QE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new eN("a function is required");return rN(Xq,tN,e)}});var rC=o((t3,tC)=>{"use strict";var nN=qu(),ZE=wu(),XE;try{XE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Nu=!!XE&&ZE&&ZE(Object.prototype,"__proto__"),eC=Object,JE=eC.getPrototypeOf;tC.exports=Nu&&typeof Nu.get=="function"?nN([Nu.get]):typeof JE=="function"?function(e){return JE(e==null?e:eC(e))}:!1});var aC=o((r3,oC)=>{"use strict";var nC=Ru(),sC=Mu(),iC=rC();oC.exports=nC?function(e){return nC(e)}:sC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return sC(e)}:iC?function(e){return iC(e)}:null});var uC=o((n3,cC)=>{"use strict";var sN=Function.prototype.call,iN=Object.prototype.hasOwnProperty,oN=Gr();cC.exports=oN.call(sN,iN)});var Zs=o((s3,pC)=>{"use strict";var V,aN=Pu(),cN=tE(),uN=nE(),dN=iE(),lN=aE(),cr=uE(),ar=xt(),fN=lE(),hN=hE(),yN=pE(),pN=SE(),vN=_E(),SN=TE(),mN=CE(),_N=PE(),hC=Function,ju=function(t){try{return hC('"use strict"; return ('+t+").constructor;")()}catch{}},Kr=wu(),ON=qE(),xu=function(){throw new ar},TN=Kr?(function(){try{return arguments.callee,xu}catch{try{return Kr(arguments,"callee").get}catch{return xu}}})():xu,ir=DE()(),Se=aC(),EN=Mu(),CN=Ru(),yC=Iu(),Hr=zs(),or={},gN=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":cN,"%eval%":eval,"%EvalError%":uN,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":hC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":aN,"%Object.getOwnPropertyDescriptor%":Kr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":dN,"%ReferenceError%":lN,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":TN,"%TypedArray%":gN,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":fN,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Hr,"%Function.prototype.apply%":yC,"%Object.defineProperty%":ON,"%Object.getPrototypeOf%":EN,"%Math.abs%":hN,"%Math.floor%":yN,"%Math.max%":pN,"%Math.min%":vN,"%Math.pow%":SN,"%Math.round%":mN,"%Math.sign%":_N,"%Reflect.getPrototypeOf%":CN};if(Se)try{null.error}catch(t){dC=Se(Se(t)),Dt["%Error.prototype%"]=dC}var dC,bN=function t(e){var r;if(e==="%AsyncFunction%")r=ju("async function () {}");else if(e==="%GeneratorFunction%")r=ju("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ju("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Dt[e]=r,r},lC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Wr=Gr(),Ys=uC(),AN=Wr.call(Hr,Array.prototype.concat),PN=Wr.call(yC,Array.prototype.splice),fC=Wr.call(Hr,String.prototype.replace),Qs=Wr.call(Hr,String.prototype.slice),wN=Wr.call(Hr,RegExp.prototype.exec),RN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MN=/\\(\\)?/g,IN=function(e){var r=Qs(e,0,1),n=Qs(e,-1);if(r==="%"&&n!=="%")throw new cr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cr("invalid intrinsic syntax, expected opening `%`");var s=[];return fC(e,RN,function(i,c,d,f){s[s.length]=d?fC(f,MN,"$1"):c||i}),s},qN=function(e,r){var n=e,s;if(Ys(lC,n)&&(s=lC[n],n="%"+s[0]+"%"),Ys(Dt,n)){var i=Dt[n];if(i===or&&(i=bN(n)),typeof i>"u"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new cr("intrinsic "+e+" does not exist!")};pC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(wN(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=IN(e),s=n.length>0?n[0]:"",i=qN("%"+s+"%",r),c=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],PN(n,AN([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 cr("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,c="%"+s+"%",Ys(Dt,c))d=Dt[c];else if(d!=null){if(!(m in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kr&&y+1>=n.length){var R=Kr(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&&(Dt[c]=d)}}return d}});var Uu=o((i3,mC)=>{"use strict";var vC=Zs(),SC=qu(),NN=SC([vC("%String.prototype.indexOf%")]);mC.exports=function(e,r){var n=vC(e,!!r);return typeof n=="function"&&NN(e,".prototype.")>-1?SC([n]):n}});var Du=o((o3,OC)=>{"use strict";var jN=Zs(),Vr=Uu(),xN=$r(),UN=xt(),_C=jN("%Map%",!0),DN=Vr("Map.prototype.get",!0),LN=Vr("Map.prototype.set",!0),FN=Vr("Map.prototype.has",!0),kN=Vr("Map.prototype.delete",!0),BN=Vr("Map.prototype.size",!0);OC.exports=!!_C&&function(){var e,r={assert:function(n){if(!r.has(n))throw new UN("Side channel does not contain "+xN(n))},delete:function(n){if(e){var s=kN(e,n);return BN(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return DN(e,n)},has:function(n){return e?FN(e,n):!1},set:function(n,s){e||(e=new _C),LN(e,n,s)}};return r}});var EC=o((a3,TC)=>{"use strict";var $N=Zs(),Xs=Uu(),GN=$r(),Js=Du(),KN=xt(),ur=$N("%WeakMap%",!0),HN=Xs("WeakMap.prototype.get",!0),WN=Xs("WeakMap.prototype.set",!0),VN=Xs("WeakMap.prototype.has",!0),zN=Xs("WeakMap.prototype.delete",!0);TC.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new KN("Side channel does not contain "+GN(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return zN(e,s)}else if(Js&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?HN(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?VN(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),WN(e,s,i)):Js&&(r||(r=Js()),r.set(s,i))}};return n}:Js});var gC=o((c3,CC)=>{"use strict";var YN=xt(),QN=$r(),ZN=JT(),JN=Du(),XN=EC(),e1=XN||JN||ZN;CC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new YN("Side channel does not contain "+QN(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=e1()),e.set(n,s)}};return r}});var ei=o((u3,bC)=>{"use strict";var t1=String.prototype.replace,r1=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};bC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return t1.call(t,r1,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Bu=o((d3,PC)=>{"use strict";var n1=ei(),Fu=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),s1=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},AC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},i1=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Fu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Lt(e)&&!Lt(r)&&(s=AC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,c){if(Fu.call(e,c)){var d=e[c];d&&typeof d=="object"&&i&&typeof i=="object"?e[c]=t(d,i,n):e.push(i)}else e[c]=i}),e):Object.keys(r).reduce(function(i,c){var d=r[c];return Fu.call(i,c)?i[c]=t(i[c],d,n):i[c]=d,i},s)},o1=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},a1=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ku=1024,c1=function(e,r,n,s,i){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=ku){for(var p=c.length>=ku?c.slice(f,f+ku):c,y=[],S=0;S<p.length;++S){var 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===n1.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},u1=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],c=i.obj[i.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return s1(r),e},d1=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},l1=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},f1=function(e,r){return[].concat(e,r)},h1=function(e,r){if(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};PC.exports={arrayToObject:AC,assign:o1,combine:f1,compact:u1,decode:a1,encode:c1,isBuffer:l1,isRegExp:d1,maybeMap:h1,merge:i1}});var NC=o((l3,qC)=>{"use strict";var RC=gC(),ti=Bu(),zr=ei(),y1=Object.prototype.hasOwnProperty,MC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,p1=Array.prototype.push,IC=function(t,e){p1.apply(t,lt(e)?e:[e])},v1=Date.prototype.toISOString,wC=zr.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:wC,formatter:zr.formatters[wC],indices:!1,serializeDate:function(e){return v1.call(e)},skipNulls:!1,strictNullHandling:!1},S1=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$u={},m1=function t(e,r,n,s,i,c,d,f,p,y,S,m,g,w,R,q,N,C){for(var M=e,D=C,k=0,K=!1;(D=D.get($u))!==void 0&&!K;){var x=D.get(e);if(k+=1,typeof x<"u"){if(x===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get($u)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&&lt(M)&&(M=ti.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",w):r;M=""}if(S1(M)||ti.isBuffer(M)){if(p){var $=q?r:p(r,pe.encoder,N,"key",w);return[R($)+"="+R(p(M,pe.encoder,N,"value",w))]}return[R(r)+"="+R(String(M))]}var H=[];if(typeof M>"u")return H;var G;if(n==="comma"&&lt(M))q&&p&&(M=ti.maybeMap(M,p)),G=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))G=y;else{var Q=Object.keys(M);G=S?Q.sort(S):Q}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<G.length;++se){var ie=G[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=RC();tt.set($u,C),IC(H,t(ee,it,n,s,i,c,d,f,n==="comma"&&q&&lt(M)?null:p,y,S,m,g,w,R,q,N,tt))}}return H},_1=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=zr.default;if(typeof e.format<"u"){if(!y1.call(zr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=zr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var c;if(e.arrayFormat in MC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:c,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};qC.exports=function(t,e){var r=t,n=_1(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var c=[];if(typeof r!="object"||r===null)return"";var d=MC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=RC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||IC(c,m1(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=c.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 UC=o((f3,xC)=>{"use strict";var dr=Bu(),Gu=Object.prototype.hasOwnProperty,O1=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:dr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},T1=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},jC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},E1="utf8=%26%2310003%3B",C1="utf8=%E2%9C%93",g1=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,c=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===C1?p="utf-8":c[f]===E1&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[f],S=y.indexOf("]="),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=dr.maybeMap(jC(y.slice(m+1),r),function(q){return r.decoder(q,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=T1(w)),y.indexOf("[]=")>-1&&(w=O1(w)?[w]:w);var R=Gu.call(n,g);R&&r.duplicates==="combine"?n[g]=dr.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},b1=function(t,e,r,n){for(var s=n?e:jC(e,r),i=t.length-1;i>=0;--i){var c,d=t[i];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{c=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?c={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=s):p!=="__proto__"&&(c[p]=s)}s=c}return s},A1=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&Gu.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&&Gu.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),b1(y,r,n,s)}},P1=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||dr.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};xC.exports=function(t,e){var r=P1(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?g1(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var d=i[c],f=A1(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Ku=o((h3,DC)=>{"use strict";var w1=NC(),R1=UC(),M1=ei();DC.exports={formats:M1,parse:R1,stringify:w1}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var I1=Ku(),q1=ks();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Hu=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,c=(0,I1.stringify)(n.qs,r!==void 0?r:void 0);i+=c.length>0?`?${c}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new q1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Hu});var LC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CategoryCodeService=void 0;var N1=b(),j1=E(),Wu=class extends j1.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[N1.status.OK]}).then(async r=>({data:await r.json()}))}};ri.CategoryCodeService=Wu});var FC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.CreativeWorkService=void 0;var x1=b(),U1=E(),Vu=class extends U1.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[x1.status.OK]}).then(async r=>({data:await r.json()}))}};ni.CreativeWorkService=Vu});var kC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EmailMessageService=void 0;var D1=b(),L1=E(),zu=class extends L1.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[D1.status.OK]}).then(async r=>({data:await r.json()}))}};si.EmailMessageService=zu});var $C=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventService=void 0;var St=b(),BC=Y(),F1=E(),Yu=class extends F1.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![BC.factory.eventType.ScreeningEvent].includes(n))throw new BC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e,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 c=>c.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 c=>c.json())}};ii.EventService=Yu});var GC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventOfferService=void 0;var k1=b(),B1=E(),$1="/eventOffers",Qu=class extends B1.Service{async findEventOffers(e){return this.fetch({uri:$1,method:"GET",qs:e,expectedStatusCodes:[k1.status.OK]}).then(async r=>r.json())}};oi.EventOfferService=Qu});var KC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventSeriesService=void 0;var G1=b(),K1=E(),Zu=class extends K1.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[G1.status.OK]}).then(async r=>r.json())}};ai.EventSeriesService=Zu});var HC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.NoteService=void 0;var H1=b(),W1=E(),V1="/creativeWorks/noteDigitalDocument",Ju=class extends W1.Service{async findPublicNotes(e){return this.fetch({uri:V1,method:"GET",qs:e,expectedStatusCodes:[H1.status.OK]}).then(async r=>r.json())}};ci.NoteService=Ju});var WC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PaymentProductService=void 0;var z1=b(),Y1=E(),Xu=class extends Y1.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:[z1.status.OK]}).then(async i=>i.json())}};ui.PaymentProductService=Xu});var VC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PlaceService=void 0;var lr=b(),ed=Y(),Q1=E(),td=class extends Q1.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${ed.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${ed.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${ed.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[lr.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};di.PlaceService=td});var zC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.HasPOSService=void 0;var Z1=b(),J1=Y(),X1=E(),rd=class extends X1.Service{async search(e){return this.fetch({uri:`/places/${J1.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Z1.status.OK]}).then(async r=>r.json())}};li.HasPOSService=rd});var YC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ProductService=void 0;var nd=b(),ej=E(),sd=class extends ej.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:[nd.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:[nd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[nd.status.OK]}).then(async r=>r.json())}};fi.ProductService=sd});var QC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SeatOfferService=void 0;var tj=b(),rj=E(),nj="/seatOffers",id=class extends rj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:nj,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[tj.status.OK]}).then(async c=>c.json())}};hi.SeatOfferService=id});var ZC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SellerService=void 0;var yi=b(),sj=E(),od=class extends sj.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=od});var JC=o(Le=>{"use strict";var ij=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]})),oj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),je=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ij(r,e,n[s]);return oj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var W;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let c;c=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={})})(W||(Le.service=W={}));var ad=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return W.CategoryCode.svc===void 0&&(W.CategoryCode.svc=(await Promise.resolve().then(()=>je(LC()))).CategoryCodeService),new W.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return W.CreativeWork.svc===void 0&&(W.CreativeWork.svc=(await Promise.resolve().then(()=>je(FC()))).CreativeWorkService),new W.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return W.EmailMessage.svc===void 0&&(W.EmailMessage.svc=(await Promise.resolve().then(()=>je(kC()))).EmailMessageService),new W.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return W.Event.svc===void 0&&(W.Event.svc=(await Promise.resolve().then(()=>je($C()))).EventService),new W.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return W.EventOffer.svc===void 0&&(W.EventOffer.svc=(await Promise.resolve().then(()=>je(GC()))).EventOfferService),new W.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return W.EventSeries.svc===void 0&&(W.EventSeries.svc=(await Promise.resolve().then(()=>je(KC()))).EventSeriesService),new W.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return W.Note.svc===void 0&&(W.Note.svc=(await Promise.resolve().then(()=>je(HC()))).NoteService),new W.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return W.PaymentProduct.svc===void 0&&(W.PaymentProduct.svc=(await Promise.resolve().then(()=>je(WC()))).PaymentProductService),new W.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return W.Place.svc===void 0&&(W.Place.svc=(await Promise.resolve().then(()=>je(VC()))).PlaceService),new W.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return W.place.HasPOS.svc===void 0&&(W.place.HasPOS.svc=(await Promise.resolve().then(()=>je(zC()))).HasPOSService),new W.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return W.Product.svc===void 0&&(W.Product.svc=(await Promise.resolve().then(()=>je(YC()))).ProductService),new W.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return W.SeatOffer.svc===void 0&&(W.SeatOffer.svc=(await Promise.resolve().then(()=>je(QC()))).SeatOfferService),new W.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return W.Seller.svc===void 0&&(W.Seller.svc=(await Promise.resolve().then(()=>je(ZC()))).SellerService),new W.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=ad});var XC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.OrderService=void 0;var bt=b(),aj=Y(),cj=E(),cd=class extends cj.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}/${aj.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=cd});var tg=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ReservationService=void 0;var eg=b(),uj=E(),ud=class extends uj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[eg.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[eg.status.OK]}).then(async n=>n.json())}};Si.ReservationService=ud});var rg=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.TokenService=void 0;var dj=E(),dd=class extends dj.Service{};mi.TokenService=dd});var ng=o(Fe=>{"use strict";var lj=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]})),fj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ld=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"&&lj(r,e,n[s]);return fj(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 fd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>ld(XC()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>ld(tg()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>ld(rg()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=fd});var ig=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.SyncService=void 0;var sg=b(),hj=E(),hd=class extends hj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[sg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[sg.status.ACCEPTED]}).then(async r=>r.json())}};_i.SyncService=hd});var og=o(ke=>{"use strict";var yj=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]})),pj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vj=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"&&yj(r,e,n[s]);return pj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Yr;(function(t){let e;e=t.Sync||(t.Sync={})})(Yr||(ke.service=Yr={}));var yd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Yr.Sync.svc===void 0&&(Yr.Sync.svc=(await Promise.resolve().then(()=>vj(ig()))).SyncService),new Yr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=yd});var ag=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.CustomerService=void 0;var Sj=b(),mj=E(),pd=class extends mj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[Sj.status.OK]}).then(async r=>r.json())}};Oi.CustomerService=pd});var cg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.EventService=void 0;var Qr=b(),_j=E(),vd=class extends _j.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Qr.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:[Qr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}};Ti.EventService=vd});var ug=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventOfferService=void 0;var Ei=b(),Oj=E(),Ci="/eventOffers",Sd=class extends Oj.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=Sd});var fg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.EventSeriesService=void 0;var dg=b(),Tj=E(),lg="/eventSeries",md=class extends Tj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:c}=r;await this.fetch({uri:lg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:c===!0},expectedStatusCodes:[dg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:lg,method:"GET",qs:e,expectedStatusCodes:[dg.status.OK]}).then(async r=>r.json())}};bi.EventSeriesService=md});var yg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MeService=void 0;var hg=b(),Ej=E(),_d=class extends Ej.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[hg.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[hg.status.OK]}).then(async s=>s.json())}};Ai.MeService=_d});var pg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MemberService=void 0;var Cj=b(),gj=Y(),bj=E(),Od=class extends bj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${gj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Cj.status.OK]}).then(async r=>r.json())}};Pi.MemberService=Od});var mg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MovieService=void 0;var vg=b(),Aj=E(),Sg="/movies",Td=class extends Aj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:Sg,method:"PUT",body:e,expectedStatusCodes:[vg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:Sg,method:"GET",qs:e,expectedStatusCodes:[vg.status.OK]}).then(async r=>r.json())}};wi.MovieService=Td});var Og=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MovieTheaterService=void 0;var Zr=b(),Pj=E(),_g="/movieTheaters",Ed="/entranceGates",Cd=class extends Pj.Service{async findMovieTheaters(e){return this.fetch({uri:_g,method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:_g,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Ed,method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Ed,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Ed,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ri.MovieTheaterService=Cd});var Tg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.NoteService=void 0;var gd=b(),wj=E(),bd="/creativeWorks/noteDigitalDocument",Ad=class extends wj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}};Mi.NoteService=Ad});var Eg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.NoteAboutOrderService=void 0;var Pd=b(),Rj=E(),wd="/orderNotes",Rd=class extends Rj.Service{async upsertByIdentifier(e){await this.fetch({uri:wd,method:"PUT",body:e,expectedStatusCodes:[Pd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:wd,method:"GET",qs:e,expectedStatusCodes:[Pd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${wd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[Pd.status.NO_CONTENT]})}};Ii.NoteAboutOrderService=Rd});var Cg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OrderService=void 0;var Jr=b(),Mj=E(),Md=class extends Mj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Jr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Jr.status.OK],qs:r}).then(async n=>n.json())}};qi.OrderService=Md});var gg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.PaymentMethodService=void 0;var Ij=b(),qj=E(),Nj="/paymentMethods",Id=class extends qj.Service{async findPaymentMethods(e){return this.fetch({uri:Nj,method:"GET",qs:e,expectedStatusCodes:[Ij.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ni.PaymentMethodService=Id});var Ag=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.ProductService=void 0;var qd=b(),jj=E(),bg="/products",xj="/productHasOfferCatalog",Nd=class extends jj.Service{async upsertByProductId(e){await this.fetch({uri:bg,method:"PUT",body:e,expectedStatusCodes:[qd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:bg,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:xj,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}};ji.ProductService=Nd});var Pg=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ReservationService=void 0;var jd=b(),Uj=E(),xd=class extends Uj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[jd.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:[jd.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:[jd.status.OK]}).then(async s=>s.json())}};xi.ReservationService=xd});var Mg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.RoomService=void 0;var wg=b(),Dj=E(),Rg="/rooms",Ud=class extends Dj.Service{async findRooms(e){return this.fetch({uri:Rg,method:"GET",qs:e,expectedStatusCodes:[wg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Rg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[wg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.RoomService=Ud});var Ig=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SeatService=void 0;var Dd=b(),Lj=E(),Ld="/seats",Fd=class extends Lj.Service{async findSeats(e){return this.fetch({uri:Ld,method:"GET",qs:e,expectedStatusCodes:[Dd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.SeatService=Fd});var jg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SeatSectionService=void 0;var qg=b(),Fj=E(),Ng="/seatSections",kd=class extends Fj.Service{async findSeatSections(e){return this.fetch({uri:Ng,method:"GET",qs:e,expectedStatusCodes:[qg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Ng,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[qg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.SeatSectionService=kd});var xg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SellerService=void 0;var kj=b(),Bj=E(),Bd=class extends Bj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kj.status.OK]}).then(async r=>r.json())}};Fi.SellerService=Bd});var Dg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferService=void 0;var Ug=b(),$j=E(),$d=class extends $j.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ug.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[Ug.status.NO_CONTENT]})}};ki.OfferService=$d});var Lg=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferCatalogService=void 0;var Gj=b(),Kj=E(),Gd=class extends Kj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:c},expectedStatusCodes:[Gj.status.NO_CONTENT]})}};Bi.OfferCatalogService=Gd});var kg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.OfferCatalogItemService=void 0;var Fg=b(),Hj=E(),Kd=class extends Hj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Fg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[Fg.status.NO_CONTENT]})}};$i.OfferCatalogItemService=Kd});var Bg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.CancelReservationAssetTransactionService=void 0;var Wj=b(),Vj=E(),Hd=class extends Vj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Wj.status.NO_CONTENT]})}};Gi.CancelReservationAssetTransactionService=Hd});var $g=o(Be=>{"use strict";var zj=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]})),Yj=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"&&zj(r,e,n[s]);return Yj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var j;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let c;c=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let 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 q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let D;D=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(x){let $;$=x.CancelReservation||(x.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(j||(Be.service=j={}));var Wd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ce(ag()))).CustomerService),new j.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return j.Event.svc===void 0&&(j.Event.svc=(await Promise.resolve().then(()=>ce(cg()))).EventService),new j.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return j.EventOffer.svc===void 0&&(j.EventOffer.svc=(await Promise.resolve().then(()=>ce(ug()))).EventOfferService),new j.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return j.EventSeries.svc===void 0&&(j.EventSeries.svc=(await Promise.resolve().then(()=>ce(fg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ce(yg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ce(pg()))).MemberService),new j.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return j.Movie.svc===void 0&&(j.Movie.svc=(await Promise.resolve().then(()=>ce(mg()))).MovieService),new j.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return j.MovieTheater.svc===void 0&&(j.MovieTheater.svc=(await Promise.resolve().then(()=>ce(Og()))).MovieTheaterService),new j.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return j.Note.svc===void 0&&(j.Note.svc=(await Promise.resolve().then(()=>ce(Tg()))).NoteService),new j.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return j.NoteAboutOrder.svc===void 0&&(j.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(Eg()))).NoteAboutOrderService),new j.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return j.Order.svc===void 0&&(j.Order.svc=(await Promise.resolve().then(()=>ce(Cg()))).OrderService),new j.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return j.PaymentMethod.svc===void 0&&(j.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(gg()))).PaymentMethodService),new j.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return j.Product.svc===void 0&&(j.Product.svc=(await Promise.resolve().then(()=>ce(Ag()))).ProductService),new j.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return j.Reservation.svc===void 0&&(j.Reservation.svc=(await Promise.resolve().then(()=>ce(Pg()))).ReservationService),new j.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return j.Room.svc===void 0&&(j.Room.svc=(await Promise.resolve().then(()=>ce(Mg()))).RoomService),new j.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return j.Seat.svc===void 0&&(j.Seat.svc=(await Promise.resolve().then(()=>ce(Ig()))).SeatService),new j.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return j.SeatSection.svc===void 0&&(j.SeatSection.svc=(await Promise.resolve().then(()=>ce(jg()))).SeatSectionService),new j.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return j.Seller.svc===void 0&&(j.Seller.svc=(await Promise.resolve().then(()=>ce(xg()))).SellerService),new j.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return j.Offer.svc===void 0&&(j.Offer.svc=(await Promise.resolve().then(()=>ce(Dg()))).OfferService),new j.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return j.OfferCatalog.svc===void 0&&(j.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(Lg()))).OfferCatalogService),new j.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return j.OfferCatalogItem.svc===void 0&&(j.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(kg()))).OfferCatalogItemService),new j.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return j.assetTransaction.CancelReservation.svc===void 0&&(j.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce(Bg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Wd});var Gg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.AccountingReportService=void 0;var Qj=b(),Zj=E(),Vd=class extends Zj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Qj.status.OK]}).then(async r=>r.json())}};Ki.AccountingReportService=Vd});var Kg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AccountTitleService=void 0;var $e=b(),Jj=Y(),Xj=E(),zd=class extends Xj.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 Jj.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=zd});var Hg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.ActionService=void 0;var Yd=b(),ex=E(),Qd=class extends ex.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Yd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yd.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:[Yd.status.OK]}).then(async r=>r.json())}};Wi.ActionService=Qd});var Wg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AdditionalPropertyService=void 0;var Xr=b(),tx=E(),Zd=class extends tx.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Xr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xr.status.NO_CONTENT]})}};Vi.AdditionalPropertyService=Zd});var zg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateOfferService=void 0;var Vg=b(),rx=E(),Jd=class extends rx.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Vg.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Vg.status.NO_CONTENT]})}};zi.AggregateOfferService=Jd});var Yg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateReservationService=void 0;var nx=b(),sx=E(),Xd=class extends sx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[nx.status.OK]}).then(async r=>r.json())}};Yi.AggregateReservationService=Xd});var Qg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregationService=void 0;var ix=b(),ox=E(),el=class extends ox.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[ix.status.OK]}).then(async r=>r.json())}};Qi.AggregationService=el});var Zg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AuthorizationService=void 0;var ax=b(),cx=E(),tl=class extends cx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[ax.status.OK]}).then(async r=>r.json())}};Zi.AuthorizationService=tl});var Jg=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.CreativeWorkService=void 0;var ux=b(),dx=E(),rl=class extends dx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ux.status.NO_CONTENT]})}};Ji.CreativeWorkService=rl});var Xg=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CategoryCodeService=void 0;var Xi=b(),lx=E(),eo="/categoryCodes",nl=class extends lx.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=nl});var eb=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerService=void 0;var sl=b(),fx=E(),il=class extends fx.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[sl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[sl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[sl.status.NO_CONTENT]})}};ro.CustomerService=il});var tb=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerTypeService=void 0;var hx=b(),yx=E(),ol=class extends yx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[hx.status.OK]}).then(async r=>r.json())}};no.CustomerTypeService=ol});var rb=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EmailMessageService=void 0;var en=b(),px=E(),al=class extends px.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[en.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:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};so.EmailMessageService=al});var sb=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventService=void 0;var tn=b(),nb=Y(),vx=E(),cl=class extends vx.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:nb.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[tn.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[tn.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:[tn.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:nb.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[tn.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[tn.status.NO_CONTENT]})}};io.EventService=cl});var ab=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var ib=b(),ob=Y(),Sx=E(),ul=class extends Sx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${ob.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[ib.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${ob.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ib.status.NO_CONTENT]})}};oo.EventSeriesService=ul});var cb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var mx=b(),_x=E(),dl=class extends _x.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[mx.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=dl});var ub=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var At=b(),Ox=E(),ll=class extends Ox.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};co.IAMService=ll});var db=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),Tx=E(),fl=class extends Tx.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=fl});var lb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),Ex=E(),hl=class extends Ex.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=hl});var fb=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var rn=b(),Cx=E(),yl=class extends Cx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[rn.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:[rn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};yo.IssuerService=yl});var yb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var hb=b(),gx=E(),pl=class extends gx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[hb.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:[hb.status.OK]}).then(async r=>r.json())}};po.MeService=pl});var pb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var Pt=b(),wt=Y(),bx=E(),vl=class extends bx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};vo.MemberService=vl});var vb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var nn=b(),Ax=E(),Sl=class extends Ax.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[nn.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:[nn.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:[nn.status.NO_CONTENT]})}};So.MemberProgramService=Sl});var Sb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var sn=b(),Px=E(),ml=class extends Px.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[sn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[sn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[sn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sn.status.NO_CONTENT]})}};mo.MerchantReturnPolicyService=ml});var mb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var wx=b(),Rx=E(),_l=class extends Rx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[wx.status.OK]}).then(async r=>r.json())}};_o.MessageService=_l});var _b=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=b(),Mx=E(),To="/movieTicketTypes",Ol=class extends Mx.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=Ol});var Ob=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=b(),Ix=E(),Tl=class extends Ix.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=Tl});var Tb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OwnershipInfoService=void 0;var qx=b(),Nx=E(),El=class extends Nx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[qx.status.OK]}).then(async r=>({data:await r.json()}))}};bo.OwnershipInfoService=El});var Eb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var fr=b(),jx=E(),Cl=class extends jx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[fr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[fr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[fr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}};Ao.PaymentProductService=Cl});var Cb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Po=b(),xx=E(),gl=class extends xx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Po.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Po.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[Po.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Po.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=gl});var bb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var gb=b(),Ux=E(),bl=class extends Ux.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[gb.status.OK]}).then(async r=>r.json())}async projectSubReservationByReservationNumber(e){let{reservationNumber:r}=e;return this.fetch({uri:`/pendingReservations/${encodeURIComponent(String(r.$eq))}/subReservation`,method:"GET",expectedStatusCodes:[gb.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=bl});var Pb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var Ab=b(),Dx=E(),Al=class extends Dx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Ab.status.OK]}).then(async e=>e.json())}async token2permissions(e){let{token:r}=e;return this.fetch({uri:"/permissions/token2permissions",method:"POST",body:{token:r},expectedStatusCodes:[Ab.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Al});var Rb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var wb=b(),Lx=E(),Pl=class extends Lx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[wb.status.OK]}).then(async r=>r.json())}async findPersonById(e){let{id:r,iss:n}=e;return this.fetch({uri:`/people/${r}`,method:"GET",expectedStatusCodes:[wb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=Pl});var Mb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var on=b(),an=Y(),Fx=E(),wl=class extends Fx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${an.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[on.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[on.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${an.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}};qo.PlaceService=wl});var Ib=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Y(),kx=E(),Rl=class extends kx.Service{async search(e){return this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[No.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[No.status.NO_CONTENT]})}};xo.HasPOSService=Rl});var qb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),Bx=E(),Ml=class extends Bx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Uo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Uo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Uo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Uo.status.NO_CONTENT]})}};Do.PriceSpecificationService=Ml});var Nb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var cn=b(),$x=E(),un="/products",Il=class extends $x.Service{async createProduct(e){return this.fetch({uri:un,method:"POST",body:e,expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:un,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${un}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[cn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${un}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${un}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.status.NO_CONTENT]})}};Lo.ProductService=Il});var jb=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),Gx=E(),ql=class extends Gx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Fo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Fo.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Fo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Fo.status.NO_CONTENT]})}};ko.ProjectService=ql});var xb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectMakesOfferService=void 0;var Bo=b(),Kx=E(),Nl=class extends Kx.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=Nl});var Ub=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ReservationService=void 0;var Hx=b(),Wx=E(),jl=class extends Wx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Hx.status.NO_CONTENT]})}};Go.ReservationService=jl});var Db=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var xl=b(),Vx=E(),Ul=class extends Vx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[xl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[xl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[xl.status.NO_CONTENT]})}};Ko.OfferService=Ul});var Lb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.OfferCatalogService=void 0;var Ho=b(),zx=E(),Dl=class extends zx.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Ho.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ho.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Ho.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Ho.status.NO_CONTENT]})}};Wo.OfferCatalogService=Dl});var Fb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var Ll=b(),Yx=E(),Fl=class extends Yx.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ll.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Ll.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=Fl});var kb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),Qx=E(),kl=class extends Qx.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[zo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[zo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[zo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[zo.status.NO_CONTENT]})}};Yo.OfferItemConditionService=kl});var Bb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),Zx=E(),Bl=class extends Zx.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};Qo.SellerService=Bl});var $b=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var $l=b(),Jx=E(),Gl=class extends Jx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[$l.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[$l.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[$l.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=Gl});var Gb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var dn=b(),Xx=E(),Kl=class extends Xx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[dn.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[dn.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:[dn.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:[dn.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[dn.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=Kl});var Kb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TaskService=void 0;var Hl=b(),eU=E(),Wl=class extends eU.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Hl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Hl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Hl.status.OK]}).then(async r=>r.json())}};Xo.TaskService=Wl});var Hb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TicketService=void 0;var tU=b(),rU=E(),Vl=class extends rU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[tU.status.OK]}).then(async r=>r.json())}};ea.TicketService=Vl});var Wb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.AssetTransactionService=void 0;var nU=b(),sU=E(),zl=class extends sU.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[nU.status.OK]}).then(async r=>({data:await r.json()}))}};ta.AssetTransactionService=zl});var Vb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PayAssetTransactionService=void 0;var ra=b(),hr=Y(),iU=E(),Yl=class extends iU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ra.status.OK]}).then(async r=>r.json())}};na.PayAssetTransactionService=Yl});var zb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ReserveAssetTransactionService=void 0;var sa=b(),oU=E(),Ql=class extends oU.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=Ql});var Yb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var aU=E(),Zl=class extends aU.Service{};oa.TokenService=Zl});var Zb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Qb=b(),cU=Y(),uU=E(),Jl=class extends uU.Service{typeOf=cU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Qb.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:[Qb.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=Jl});var Jb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ReturnOrderTransactionService=void 0;var dU=b(),lU=Y(),fU=E(),Xl=class extends fU.Service{typeOf=lU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[dU.status.OK]}).then(async r=>({data:await r.json()}))}};ca.ReturnOrderTransactionService=Xl});var Xb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.TransactionNumberService=void 0;var hU=b(),yU=E(),ef=class extends yU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[hU.status.CREATED]}).then(async e=>e.json())}};ua.TransactionNumberService=ef});var eA=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.UserPoolService=void 0;var tf=b(),pU=E(),rf=class extends pU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[tf.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[tf.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[tf.status.OK]}).then(async r=>r.json())}};da.UserPoolService=rf});var tA=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.WebSiteService=void 0;var la=b(),vU=E(),nf=class extends vU.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=nf});var rA=o(Ge=>{"use strict";var SU=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]})),mU=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"&&SU(r,e,n[s]);return mU(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 c;c=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 q;q=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let N;N=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let D;D=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let x;x=t.MemberProgram||(t.MemberProgram={});let $;$=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let H;H=t.Message||(t.Message={});let G;G=t.MovieTicketType||(t.MovieTicketType={});let Q;Q=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(U){let Ar;Ar=U.HasPOS||(U.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let u;u=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 A;A=t.OfferCatalogItem||(t.OfferCatalogItem={});let P;P=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 Ae;Ae=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let It;(function(U){let Ar;Ar=U.Pay||(U.Pay={});let Cn;Cn=U.Reserve||(U.Reserve={})})(It=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Pe;(function(U){let Ar;Ar=U.PlaceOrder||(U.PlaceOrder={});let Cn;Cn=U.ReturnOrder||(U.ReturnOrder={})})(Pe=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let br;br=t.UserPool||(t.UserPool={});let VP;VP=t.WebSite||(t.WebSite={})})(_||(Ge.service=_={}));var sf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Gg()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(Kg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(Hg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Wg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(zg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Yg()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Qg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Zg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(Jg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Xg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(eb()))).CustomerService),new _.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return _.CustomerType.svc===void 0&&(_.CustomerType.svc=(await Promise.resolve().then(()=>F(tb()))).CustomerTypeService),new _.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return _.EmailMessage.svc===void 0&&(_.EmailMessage.svc=(await Promise.resolve().then(()=>F(rb()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(sb()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(ab()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(cb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(ub()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(db()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(lb()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(fb()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(yb()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(pb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(vb()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(Sb()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(mb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(_b()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(Ob()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(Tb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(Eb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(Cb()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(bb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Pb()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(Rb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(Mb()))).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(Ib()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(qb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Nb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(jb()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(xb()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(Ub()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(Db()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Lb()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(Fb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(kb()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(Bb()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F($b()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Gb()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(Kb()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(Hb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Wb()))).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(Vb()))).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(zb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F(Yb()))).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(Zb()))).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(Jb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Xb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(eA()))).UserPoolService),new _.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return _.WebSite.svc===void 0&&(_.WebSite.svc=(await Promise.resolve().then(()=>F(tA()))).WebSiteService),new _.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Ge.ChevreConsole=sf});var nA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PaymentService=void 0;var me=b(),ve=Y(),_U=E(),OU=["awashimakisen-production","awashimakisen-test"],of=class extends _U.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:c,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:c,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,issuedThrough:c,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(!OU.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:c,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 N=>N.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:c,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:c,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:c,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,...c!=null?{creditCard:c}: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 c=>c.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async c=>c.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async c=>c.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ha.PaymentService=of});var sA=o(Ke=>{"use strict";var TU=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]})),EU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CU=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"&&TU(r,e,n[s]);return EU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var ln;(function(t){let e;e=t.Payment||(t.Payment={})})(ln||(Ke.service=ln={}));var af=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return ln.Payment.svc===void 0&&(ln.Payment.svc=(await Promise.resolve().then(()=>CU(nA()))).PaymentService),new ln.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=af});var oA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.OfferService=void 0;var cf=b(),iA=Y(),gU=E(),uf=class extends gU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${iA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[cf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${iA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[cf.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[cf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ya.OfferService=uf});var aA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PlaceOrderTransactionService=void 0;var yr=b(),bU=Y(),AU=E(),df=class extends AU.Service{typeOf=bU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[yr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[yr.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:[yr.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:[yr.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:[yr.status.NO_CONTENT]})}};pa.PlaceOrderTransactionService=df});var cA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var fn=b(),PU=Y(),wU=E(),lf=class extends wU.Service{typeOf=PU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[fn.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:[fn.status.NO_CONTENT,fn.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[fn.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:[fn.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=lf});var uA=o(He=>{"use strict";var RU=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]})),MU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ff=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"&&RU(r,e,n[s]);return MU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxn=He.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(He.service=nt={}));var hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>ff(oA()))).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(()=>ff(aA()))).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(()=>ff(cA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxn=hf});var dA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var hn=b(),yn=Y(),IU=E(),yf=class extends IU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${yn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[hn.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/${yn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[hn.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/${yn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[hn.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/${yn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[hn.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/${yn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[hn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=yf});var lA=o(We=>{"use strict";var qU=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]})),NU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jU=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"&&qU(r,e,n[s]);return NU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxc=We.service=void 0;var pn;(function(t){let e;e=t.Offer||(t.Offer={})})(pn||(We.service=pn={}));var pf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return pn.Offer.svc===void 0&&(pn.Offer.svc=(await Promise.resolve().then(()=>jU(dA()))).OfferService),new pn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxc=pf});var fA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),xU=E(),vf=class extends xU.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=vf});var hA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),UU=E(),Sf=class extends UU.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=Sf});var yA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EventService=void 0;var Ie=b(),pr=Y(),DU=E(),mf=class extends DU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==pr.factory.eventType.ScreeningEvent)throw new pr.factory.errors.Argument("typeOf",`typeOf must be ${pr.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(![pr.factory.eventType.ScreeningEvent].includes(n))throw new pr.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 pr.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 c=>{let d=await c.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 c=>c.json())}};Ea.EventService=mf});var pA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.PlaceService=void 0;var Ca=b(),LU=Y(),FU=E(),_f=class extends FU.Service{constructor(e){super({...e,retryableStatusCodes:[Ca.status.BAD_GATEWAY,Ca.status.FORBIDDEN,Ca.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${LU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ca.status.OK]}).then(async r=>({data:await r.json()}))}};ga.PlaceService=_f});var vA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.HasPOSService=void 0;var ba=b(),kU=Y(),BU=E(),Of=class extends BU.Service{constructor(e){super({...e,retryableStatusCodes:[ba.status.BAD_GATEWAY,ba.status.FORBIDDEN,ba.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${kU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ba.status.OK]}).then(async r=>r.json())}};Aa.HasPOSService=Of});var SA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SellerService=void 0;var kt=b(),$U=E(),Tf=class extends $U.Service{constructor(e){super({...e,retryableStatusCodes:[kt.status.BAD_GATEWAY,kt.status.FORBIDDEN,kt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[kt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}};Pa.SellerService=Tf});var _A=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.service=void 0;var GU=fA(),KU=hA(),HU=yA(),WU=pA(),VU=vA(),zU=SA(),mA;(function(t){class e extends GU.CategoryCodeService{}t.CategoryCode=e;class r extends KU.EmailMessageService{}t.EmailMessage=r;class n extends HU.EventService{}t.Event=n;class s extends WU.PlaceService{}t.Place=s;let i;(function(d){class f extends VU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class c extends zU.SellerService{}t.Seller=c})(mA||(wa.service=mA={}))});var OA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CreativeWorkService=void 0;var YU=te(),QU=E(),Ef=class extends QU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,YU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ra.CreativeWorkService=Ef});var TA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CustomerService=void 0;var ZU=te(),JU=E(),Cf=class extends JU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,ZU.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ma.CustomerService=Cf});var EA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventService=void 0;var vr=Y(),Ia=te(),XU=E(),gf=class extends XU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c}=this.options;return(await(await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await c.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};qa.EventService=gf});var CA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventOfferService=void 0;var eD=te(),tD=E(),bf=class extends tD.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,eD.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=bf});var gA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventSeriesService=void 0;var rD=te(),nD=E(),Af=class extends nD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,rD.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};ja.EventSeriesService=Af});var AA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MeService=void 0;var bA=te(),sD=E(),Pf=class extends sD.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,bA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,bA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};xa.MeService=Pf});var RA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.MovieTheaterService=void 0;var Ua=Y(),PA=te(),iD=E(),wA=20,wf=class extends iD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,PA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Ua.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Ua.factory.errors.Argument("page","must be number");if(d<1||d>wA)throw new Ua.factory.errors.Argument("limit",`must be >=1 and <=${wA}`);if(f<1)throw new Ua.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,PA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};Da.MovieTheaterService=wf});var MA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.NoteAboutOrderService=void 0;var Rf=te(),oD=E(),Mf=class extends oD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Rf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Rf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:c,seller:d}=this.options;await(await(await(0,Rf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};La.NoteAboutOrderService=Mf});var qA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferService=void 0;var mt=Y(),IA=te(),aD=E();function cD(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 If=class extends aD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,IA.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 c.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(cD)}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,IA.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 c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Fa.OfferService=If});var NA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogService=void 0;var vn=Y(),uD=te(),dD=E(),qf=class extends dD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,uD.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 c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogService=qf});var xA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OfferCatalogItemService=void 0;var jA=te(),lD=E(),Nf=class extends lD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,jA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,jA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ba.OfferCatalogItemService=Nf});var UA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OrderService=void 0;var Rt=Y(),Sr=te(),fD=E(),$a=20,jf=class extends fD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sr.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,c=await(0,Sr.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Sr.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>$a)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${$a}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,$unwindAcceptedOffers:"1",limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sr.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;return(await(await(0,Sr.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof c?.id=="string"?c.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,Sr.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ga.OrderService=jf});var DA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.PaymentMethodService=void 0;var hD=te(),yD=E(),xf=class extends yD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,hD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ka.PaymentMethodService=xf});var LA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.ProductService=void 0;var Sn=Y(),pD=te(),vD=E(),Uf=class extends vD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,pD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==Sn.factory.product.ProductType.EventService&&f!==Sn.factory.product.ProductType.Product)throw new Sn.factory.errors.Argument("typeOf",`must be ${Sn.factory.product.ProductType.EventService} or ${Sn.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Ha.ProductService=Uf});var kA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ReservationService=void 0;var mn=Y(),Wa=te(),SD=E(),FA=20,Df=class extends SD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new mn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new mn.factory.errors.Argument("page","must be number");if(d<1||d>FA)throw new mn.factory.errors.Argument("limit",`must be >=1 and <=${FA}`);if(f<1)throw new mn.factory.errors.Argument("page","must be >=1");return await(await c.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:c,project:d,seller:f}=this.options,p=await(0,Wa.loadChevreAdmin)({auth:i,endpoint:c}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Wa.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 mn.factory.errors.ArgumentNull("seller.id");let c=await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await c.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Va.ReservationService=Df});var BA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SellerService=void 0;var mD=te(),_D=E(),Lf=class extends _D.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,mD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};za.SellerService=Lf});var $A=o(Ve=>{"use strict";var OD=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]})),TD=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"&&OD(r,e,n[s]);return TD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var B;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let c;c=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let m;m=t.Order||(t.Order={});let g;g=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(Ve.service=B={}));var qe=[],Ff=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createCreativeWorkInstance(e){return B.CreativeWork.svc===void 0&&(B.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(OA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qe})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(TA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(EA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(CA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(gA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:qe})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(AA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(RA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:qe})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(MA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(qA()))).OfferService),new B.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return B.OfferCatalog.svc===void 0&&(B.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(NA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(xA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:qe})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(UA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:qe})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(DA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:qe})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(LA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:qe})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(kA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:qe})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce(BA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};Ve.CloudAdmin=Ff});var GA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.OrderService=void 0;var Bt=te(),ED=E(),kf=class extends ED.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Ya.OrderService=kf});var KA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.DeliveryService=void 0;var CD=te(),gD=E(),Bf=class extends gD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,CD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Qa.DeliveryService=Bf});var WA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.ReservationService=void 0;var HA=te(),bD=E(),$f=class extends bD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,HA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,HA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Za.ReservationService=$f});var VA=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.TokenService=void 0;var AD=E(),Gf=class extends AD.Service{};Ja.TokenService=Gf});var zA=o(ze=>{"use strict";var PD=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]})),wD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xa=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"&&PD(r,e,n[s]);return wD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var ec=b(),Ne;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(Ne||(ze.service=Ne={}));var tc=[ec.status.BAD_GATEWAY,ec.status.SERVICE_UNAVAILABLE,ec.status.FORBIDDEN,ec.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 Ne.Order.svc===void 0&&(Ne.Order.svc=(await Promise.resolve().then(()=>Xa(GA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:tc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>Xa(KA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:tc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>Xa(WA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:tc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>Xa(VA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:tc})}};ze.CloudAsset=Kf});var YA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.CreativeWorkService=void 0;var RD=b(),MD=E(),Hf=class extends MD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[RD.status.OK]}).then(async r=>r.json())}};rc.CreativeWorkService=Hf});var QA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.PaymentProductService=void 0;var ID=b(),qD=E(),Wf=class extends qD.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:[ID.status.OK]}).then(async i=>i.json())}};nc.PaymentProductService=Wf});var ZA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.ProductService=void 0;var Vf=b(),ND=E(),zf=class extends ND.Service{async search(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[Vf.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:s,seller:i}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Vf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async c=>c.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[Vf.status.OK]}).then(async i=>i.json())}};sc.ProductService=zf});var JA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventOfferService=void 0;var jD=b(),xD=E(),UD="/eventOffers",Yf=class extends xD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c}=e;return this.fetch({uri:UD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c},expectedStatusCodes:[jD.status.OK]}).then(async d=>d.json())}};ic.EventOfferService=Yf});var XA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=b(),DD=Y(),LD=E(),Zf=class extends LD.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${DD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var eP=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var FD=b(),kD=E(),BD="/seatOffers",Jf=class extends kD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:BD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[FD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var tP=o(Ye=>{"use strict";var $D=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]})),GD=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mr=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"&&$D(r,e,n[s]);return GD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var Xf=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 c;c=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var _r=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>mr(YA()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:_r})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>mr(QA()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:_r})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>mr(ZA()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:_r})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>mr(JA()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:_r})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>mr(XA()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:_r})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>mr(eP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:_r})}};Ye.CloudSearch=eh});var sP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var le=b(),ge=Y(),be=te(),KD=E(),rP=1e3,HD=5e3;async function nP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends KD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,c=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:c});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:c}=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:c})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,c=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:c});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:c,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],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:c,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,q=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(N){q=N}await nP(HD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,g)}if(typeof R?.ticketToken=="string")return R;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>rP?r.intervalAfterIssueTicketInMS:rP,f=!1,p=n.paymentMethodId;if(i?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await nP(d),y}};cc.PaymentService=th});var iP=o(Qe=>{"use strict";var WD=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]})),VD=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zD=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"&&WD(r,e,n[s]);return VD(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var uc=b(),_n;(function(t){let e;e=t.Payment||(t.Payment={})})(_n||(Qe.service=_n={}));var YD=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return _n.Payment.svc===void 0&&(_n.Payment.svc=(await Promise.resolve().then(()=>zD(sP()))).PaymentService),new _n.Payment.svc({...this.options,...e,retryableStatusCodes:YD})}};Qe.CloudPay=rh});var uP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=ZD;dc.voidAuthorizeOfferAsync=JD;var re=Y(),oP=2e4,aP=1e3;async function cP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function QD(t){let e;switch(t.reason){case re.factory.errorCode.Argument:e=new re.factory.errors.Argument("",t.message);break;case re.factory.errorCode.ArgumentNull:e=new re.factory.errors.ArgumentNull("",t.message);break;case re.factory.errorCode.Unauthorized:e=new re.factory.errors.Unauthorized(t.message);break;case re.factory.errorCode.Forbidden:e=new re.factory.errors.Forbidden(t.message);break;case re.factory.errorCode.NotFound:e=new re.factory.errors.NotFound("",t.message);break;case re.factory.errorCode.AlreadyInUse:e=new re.factory.errors.AlreadyInUse("",[],t.message);break;case re.factory.errorCode.RateLimitExceeded:e=new re.factory.errors.RateLimitExceeded(t.message);break;case re.factory.errorCode.GatewayTimeout:e=new re.factory.errors.GatewayTimeout(t.message);break;default:e=new re.factory.errors.Internal(t.message)}return e}function ZD(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},oP);let s,i;for(;s===void 0&&i===void 0;){if(await cP(aP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(typeof c.id=="string"&&c.actionStatus===re.factory.actionStatusType.CompletedActionStatus){s={id:c.id};break}if(c.error!==void 0){i=QD(c.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw i}}function JD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},oP);let s,i;for(;s===void 0&&i===void 0;){if(await cP(aP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(c.status===re.factory.taskStatus.Executed){s=c;break}}if(typeof s?.status!="string")throw i}}});var lP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var dP=Y(),nh=te(),XD=E(),sh=uP(),ih=class extends XD.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),N=await(0,sh.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new dP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,sh.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:c,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:m,seller:g,disableAutoRetry:w,retryableStatusCodes:R}=this.options,N=await(await(0,nh.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,sh.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new dP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=ih});var fP=o(Ze=>{"use strict";var eL=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]})),tL=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rL=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"&&eL(r,e,n[s]);return tL(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var fc=b(),On;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(On||(Ze.service=On={}));var nL=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],oh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return On.transaction.PlaceOrder.svc===void 0&&(On.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>rL(lP()))).PlaceOrderCOAService),new On.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:nL})}};Ze.CloudTxc=oh});var hP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var sL=Y(),ah=te(),iL=E(),ch=class extends iL.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId: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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:sL.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:i,endpoint:c,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};hc.OfferService=ch});var yP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var Or=b(),Tr=te(),oL=E(),uh=class extends oL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Tr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,Tr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,Tr.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,Tr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Or.status.CONFLICT,Or.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,potentialActions:n,result:s,sendEmailMessage:i,email:c}=e,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options;return(await(await(0,Tr.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],Or.status.CONFLICT,Or.status.TOO_MANY_REQUESTS]})).confirm({id:r,potentialActions:n,result:s,sendEmailMessage:i,email:c,expectsMinimalResponse:!0})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,Tr.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Or.status.CONFLICT,Or.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var pP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),aL=E(),lh=class extends aL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var vP=o(Je=>{"use strict";var cL=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=Je&&Je.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&cL(r,e,n[s]);return uL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var vc=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 hh=[vc.status.BAD_GATEWAY,vc.status.SERVICE_UNAVAILABLE,vc.status.FORBIDDEN,vc.status.UNAUTHORIZED],yh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>fh(hP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(yP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(pP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Je.CloudTxn=yh});var SP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var dL=b(),lL=E(),ph=class extends lL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[dL.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var _P=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var mP=b(),fL=E(),vh=class extends fL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[mP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[mP.status.NO_CONTENT]})}};mc.RuleSetService=vh});var TP=o(Xe=>{"use strict";var hL=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]})),yL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),OP=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"&&hL(r,e,n[s]);return yL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>OP(SP()))).RuleService),new Mt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Mt.RuleSet.svc===void 0&&(Mt.RuleSet.svc=(await Promise.resolve().then(()=>OP(_P()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=Sh});var te=o(X=>{"use strict";var pL=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vL=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&pL(r,e,n[s]);return vL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=_L;X.loadChevreAsset=OL;X.loadChevreAdmic=TL;X.loadChevreAdmin=EL;X.loadChevreConsole=CL;X.loadChevrePay=gL;X.loadChevreTxn=bL;X.loadChevreTxc=AL;X.loadService=PL;X.loadCloudAdmin=wL;X.loadCloudAsset=RL;X.loadCloudSearch=ML;X.loadCloudPay=IL;X.loadCloudTxc=qL;X.loadCloudTxn=NL;X.loadWaiterAdmin=jL;var SL=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return SL.factory}});var mL=Oe(ks());X.transporters=mL;var mh;async function _L(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(JC()))).Chevre),new mh(...t)}var _h;async function OL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(ng()))).ChevreAsset),new _h(...t)}var Oh;async function TL(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(og()))).ChevreAdmic),new Oh(...t)}var Th;async function EL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe($g()))).ChevreAdmin),new Th(...t)}var Eh;async function CL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(rA()))).ChevreConsole),new Eh(...t)}var Ch;async function gL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(sA()))).ChevrePay),new Ch(...t)}var gh;async function bL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(uA()))).ChevreTxn),new gh(...t)}var bh;async function AL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(lA()))).ChevreTxc),new bh(...t)}var Ah;async function PL(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(_A()))).service),Ah}var Ph;async function wL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe($A()))).CloudAdmin),new Ph(...t)}var wh;async function RL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(zA()))).CloudAsset),new wh(...t)}var Rh;async function ML(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(tP()))).CloudSearch),new Rh(...t)}var Mh;async function IL(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(iP()))).CloudPay),new Mh(...t)}var Ih;async function qL(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(fP()))).CloudTxc),new Ih(...t)}var qh;async function NL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(vP()))).CloudTxn),new qh(...t)}var Nh;async function jL(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(TP()))).WaiterAdmin),new Nh(...t)}});var EP=o($t=>{"use strict";var xL=$t&&$t.__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]})),UL=$t&&$t.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xL(e,t,r)};Object.defineProperty($t,"__esModule",{value:!0});UL(te(),$t)});var xP=o((h5,jP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(t){var e={exports:{}};return t(e,e.exports),e.exports}var DL=Ht(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,c=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(c?c(R):D())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",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 q,N,C,M,D=void 0;function k(h,v){var T=this,A=new this.constructor($);A[x]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return tt(P,A,L,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this($);return oe(v,h),v}D=S?function(){return process.nextTick(R)}:y?(N=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=N=++N%2}):m?((q=new MessageChannel).port1.onmessage=R,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:g()}catch{return g()}})():g();var x=Math.random().toString(36).substring(2);function $(){}var H=void 0,G=1,Q=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===G?ie(A,P._result):P._state===Q?ee(A,P._result):et(P,void 0,function(L){return oe(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,L){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(L,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(P=typeof(A=v),A===null||P!=="object"&&P!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var A,P}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(h,v){h._state===H&&(h._result=v,h._state=G,h._subscribers.length!==0&&d(it,h))}function ee(h,v){h._state===H&&(h._state=Q,h._result=v,d(se,h))}function et(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+G]=T,P[L+Q]=A,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,L=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,L):P(L);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),L=void 0,z=void 0,Z=!0;if(P){try{L=T(A)}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=A;v._state!==H||(P&&Z?oe(v,L):Z===!1?ee(v,z):h===G?ie(v,L):h===Q&&ee(v,L))}var Ue=0;function a(h){h[x]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v($),this.promise[x]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===H&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var A=this._instanceConstructor,P=A.resolve;if(P===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Ae){Z=!0,z=Ae}if(L===k&&v._state!==H)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(A===l){var ue=new A($);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===H&&(this._remaining--,v===Q?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt(G,T,P)},function(P){return A._settledAt(Q,T,P)})},h})(),l=(function(){function h(v){this[x]=Ue++,this._result=this._state=void 0,this._subscribers=[],$!==v&&(typeof v!="function"&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof h?(function(T,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var T=this,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new u(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,L=0;L<P;L++)v.resolve(h[L]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this($);return ee(v,h),v},l._setScheduler=function(h){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Kt!==void 0)h=Kt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),LL={__proto__:null,default:{}},Lh=Ht(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Kt!==void 0&&Kt.crypto&&(i=Kt.crypto),!i)try{i=LL}catch{}var c=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var D;return C.prototype=M,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var M=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)M[k+x>>>2]|=(D[x>>>2]>>>24-x%4*8&255)<<24-(k+x)%4*8;else for(var $=0;$<K;$+=4)M[k+$>>>2]=D[$>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],D=0;D<C;D+=4)M.push(c());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=M[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,M)}},R=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)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,$=K/(4*x),H=($=C?n.ceil($):n.max((0|$)-this._minBufferSize,0))*x,G=n.min(4*H,K);if(H){for(var Q=0;Q<H;Q+=x)this._doProcessBlock(k,Q);M=k.splice(0,H),D.sigBytes-=G}return new S.init(M,G)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=q.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){q.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,D){return new C.init(D).finalize(M)}},_createHmacHelper:function(C){return function(M,D){return new N.HMAC.init(C,D).finalize(M)}}});var N=f.algo={};return f})(Math),r)}),wP=Ht(function(t,e){var r;t.exports=(r=Lh,(function(n){var s=r,i=s.lib,c=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(N){for(var C=n.sqrt(N),M=2;M<=C;M++)if(!(N%M))return!1;return!0}function w(N){return 4294967296*(N-(0|N))|0}for(var R=2,q=0;q<64;)g(R)&&(q<8&&(p[q]=w(n.pow(R,.5))),y[q]=w(n.pow(R,1/3)),q++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,q=R[0],N=R[1],C=R[2],M=R[3],D=R[4],k=R[5],K=R[6],x=R[7],$=0;$<64;$++){if($<16)S[$]=0|g[w+$];else{var H=S[$-15],G=S[$-2];S[$]=((H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3)+S[$-7]+((G<<15|G>>>17)^(G<<13|G>>>19)^G>>>10)+S[$-16]}var Q=q&N^q&C^N&C,Te=x+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[$]+S[$];x=K,K=k,k=D,D=M+Te|0,M=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Q)|0}R[0]=R[0]+q|0,R[1]=R[1]+N|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+D|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+x|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,q=8*g.sigBytes;return w[q>>>5]|=128<<24-q%32,w[14+(q+64>>>9<<4)]=n.floor(R/4294967296),w[15+(q+64>>>9<<4)]=R,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)}),FL=Ht(function(t,e){var r,n;t.exports=(n=(r=Lh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<c;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<c;S++)f.push(d.charAt(y>>>6*(3-S)&63));var m=d.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(s){var i=s.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,q=0;q<m;q++)if(q%4){var N=g[S.charCodeAt(q-1)]<<q%4*2,C=g[S.charCodeAt(q)]>>>6-q%4*2;w[R>>>2]|=(N|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),CP=Ht(function(t,e){t.exports=Lh.enc.Hex}),RP=Ht(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=P*L+z*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=P*L+z*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*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 c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=s();return u.fromInt(a),u}function m(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,l+=1),l}function 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,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function M(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function x(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}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,u,l){a.multiplyTo(u,l),this.reduce(l)},g.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},w.prototype.convert=function(a){var u=s();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},w.prototype.revert=function(a){var u=s();return a.copyTo(u),this.reduce(u),u},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},w.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=a.s,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),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=u??s();for(T.dlShiftTo(Pe,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Pe>=0;){var br=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,br,l,Pe,0,z))<br)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--br;)l.subTo(ot,l)}u!=null&&(l.drShiftTo(z,u),A!=P&&n.ZERO.subTo(u,u)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=u.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var u=s();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new g(u):new w(u),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},x.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var u=s();return a.copyTo(u),this.reduce(u),u},x.prototype.revert=function(a){return a},x.prototype.reduce=function(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)},x.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},x.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)};var $,H,G,Q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/Q[Q.length-1];function oe(){var a;a=new Date().getTime(),H[G++]^=255&a,H[G++]^=a>>8&255,H[G++]^=a>>16&255,H[G++]^=a>>24&255,G>=Ue&&(G-=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 u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=s(),T=s(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>Q.length&&(a=Q.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Q[Math.floor(Math.random()*Q.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,u=new Array;u[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(u[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(u[v++]=l);return u},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var u=s();return this.bitwiseTo(a,R,u),u},n.prototype.or=function(a){var u=s();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=s();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=s();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=s(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=s();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=s();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=s();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=s();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=s();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=s();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=s();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=s(),l=s();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new g(u):u.isEven()?new x(u):new w(u);var A=new Array,P=3,L=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!0,ye=s();for(v=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)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var u=a.isEven();if(this.isEven()&&u||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),u?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),u?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=Q[Q.length-1]){for(u=0;u<Q.length;++u)if(l[0]==Q[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<Q.length;){for(var h=Q[u],v=u+1;v<Q.length&&h<Te;)h*=Q[v++];for(h=l.modInt(h);u<v;)if(h%Q[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=x,H==null){var se;if(H=new Array,G=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)H[G++]=ie[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)H[G++]=255&ee.charCodeAt(se)}}for(;G<Ue;)se=Math.floor(65536*Math.random()),H[G++]=se>>>8,H[G++]=255&se;G=0,oe()}function et(){if($==null){for(oe(),($=new tt).init(H),G=0;G<H.length;++G)H[G]=0;G=0}return $.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=et()},tt.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Kt)}),gP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},bP={sha256:wP};function MP(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 RP.BigInteger(t,16),this.e=parseInt(e,16)}MP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new RP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var c in gP){var d=gP[c],f=d.length;if(i.substring(0,f)===d)return{alg:c,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!bP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=bP[n.alg](t).toString();return n.hash===s};for(AP=[],xe=[],IP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=0;Gt<64;++Gt)AP[Gt]=jh[Gt],xe[jh.charCodeAt(Gt)]=Gt;var AP,xe,IP,jh,Gt;xe[45]=62,xe[95]=63;var qP=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],c=new IP((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)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,c[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function NP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function PP(t){return t=NP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(qP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var s=e[n].toString(16);r+=s.length===2?s:"0"+s}return r})(qP(NP(t)))}var kL=Ht(function(t){var e,r;e=Kt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function BL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],c=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return c},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,m){i.push(S=S.toLowerCase()),c.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 $L(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Uh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Uh.prototype=Error.prototype,ne.prototype=Error.prototype;var GL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();DL.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},KL=function(){return new Date};function Tn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new GL,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:KL,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}Tn.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=xh(n.encoded.signature),c=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,m=n.payload.nbf,g=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ne('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(M,D){if(M)return r(M,null);if(!D.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!q||typeof q!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!_c(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!_c(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),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(m&&_c(m)){var x=m-C.leeway,$=new Date(0);if($.setUTCSeconds(x),N<$)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+$+'"'),null)}if(C.maxAge){if(!R||!_c(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var H=R+C.maxAge+C.leeway,G=new Date(0);if(G.setUTCSeconds(H),N>G)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+N+'" is after last auth time at "'+G+'"'),null)}return r(null,n.payload)})},Tn.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||kL(c.iss,".well-known","jwks.json"),(fetch=="undefined"?BL:fetch)(d).then($L).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===c.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=m).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new MP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},Tn.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(PP(n[0])),r=JSON.parse(PP(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]}}},Tn.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=wP(t),c=CP.stringify(i),d=c.substring(0,c.length/2),f=CP.parse(d),p=FL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},jP.exports=Tn});var En=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Fh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Fh});var UP=o(Er=>{"use strict";var HL=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.PopupHandler=void 0;var WL=HL(tr()),kh=(0,WL.default)("cinerino-sdk:auth:popupHandler"),Bh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(kh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){kh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Er.PopupHandler=Bh});var DP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var VL=En(),zL=UP(),$h=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 zL.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 VL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=$h});var Kh=o(Cr=>{"use strict";var YL=Cr&&Cr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IframeHandler=void 0;var QL=YL(tr()),ZL=(0,QL.default)("cinerino-sdk:auth:iframeHandler"),Gh=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(ZL("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)}};Cr.IframeHandler=Gh});var LP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var JL=En(),XL=Kh(),Hh=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 XL.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 JL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Hh});var FP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var eF=En(),tF=Kh(),Wh=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 tF.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 eF.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentLogoutHandler=Wh});var kP=o(()=>{});var BP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.LoginTicket=void 0;var Vh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};gc.LoginTicket=Vh});var $P=o(_t=>{"use strict";var rF=_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 nF=kP(),sF=rF(tr()),bc=b(),iF=ks(),oF=BP(),Wt=(0,sF.default)("cinerino-sdk:auth:oAuth2client"),aF=1e3;_t.MAX_RETRY_NUM=2;async function cF(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var zh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,nF.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Wt("response:",d.status),d.status!==bc.status.OK)if(d.status===bc.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(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 c,d=0;for(;c===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await cF(aF*d);continue}}throw f}return c}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new iF.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 c=>{if(Wt("response:",c.status),c.status!==bc.status.OK)if(c.status===bc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type: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 c=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new oF.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=zh});var HP=o(gr=>{"use strict";var KP=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});gr.ImplicitGrantClient=void 0;var uF=KP(tr()),GP=KP(xP()),Yh=Ku(),dF=En(),lF=DP(),fF=LP(),hF=FP(),yF=$P(),Ac=(0,uF.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends yF.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Ac("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await fF.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 lF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await hF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new dF.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 GP.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 GP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){s(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};gr.ImplicitGrantClient=Qh});var WP=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=vF;var Ot=EP();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var pF=HP();function vF(t){return new pF.ImplicitGrantClient(t)}});var A5=window.cinerino=WP();})();
5
5
  /* istanbul ignore else -- @preserve */
6
6
  //# sourceMappingURL=bundle.js.map