@cinerino/sdk 18.3.0-alpha.7 → 18.3.0-alpha.9
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/abstract/chevreAdmin/emailMessage.d.ts +1 -1
- package/lib/abstract/chevreAdmin/order.d.ts +2 -0
- package/lib/abstract/chevreAdmin/order.js +6 -4
- package/lib/abstract/chevreAsset/order/factory.d.ts +2 -1
- package/lib/abstract/chevreAsset/order.d.ts +1 -0
- package/lib/abstract/chevreAsset/order.js +3 -2
- package/lib/abstract/chevreConsole/message.d.ts +1 -8
- package/lib/abstract/chevreConsole/message.js +1 -1
- package/lib/abstract/chevreConsole/order/factory.d.ts +2 -1
- package/lib/abstract/chevreConsole/product.d.ts +0 -6
- package/lib/abstract/chevreConsole/product.js +0 -28
- package/lib/abstract/chevreConsole/project.d.ts +11 -2
- package/lib/abstract/chevreConsole/project.js +2 -3
- package/lib/abstract/cinerino/service/emailMessage.d.ts +1 -1
- package/lib/abstract/cloud/admin/order.js +4 -2
- package/lib/abstract/cloud/asset/order.js +2 -1
- package/lib/abstract/cloud/search/event.d.ts +1 -1
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +3 -3
- package/package.json +2 -2
package/lib/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jh=o(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0})});var dt=o(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var JP;(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"})(JP=Sn.ErrorCode||(Sn.ErrorCode={}))});var Ot=o((gL,Xh)=>{"use strict";Xh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?XP:ew);function XP(t,e){return t.__proto__=e,t}function ew(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var lt=o(Cr=>{"use strict";var tw=Cr&&Cr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Cr,"__esModule",{value:!0});var rw=(function(t){tw(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name="WaiterError",i.reason=r,i}return e})(Error);Cr.WaiterError=rw});var ey=o(br=>{"use strict";var nw=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(br,"__esModule",{value:!0});var iw=Ot(),sw=dt(),ow=lt(),aw=(function(t){nw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Invalid or missing argument supplied: "+r),i=t.call(this,sw.ErrorCode.Argument,s)||this,i.argumentName=r,iw(i,e.prototype),i}return e})(ow.WaiterError);br.ArgumentError=aw});var ty=o(gr=>{"use strict";var cw=gr&&gr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(gr,"__esModule",{value:!0});var uw=Ot(),dw=dt(),lw=lt(),fw=(function(t){cw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Missing argument: "+r),i=t.call(this,dw.ErrorCode.Argument,s)||this,i.argumentName=r,uw(i,e.prototype),i}return e})(lw.WaiterError);gr.ArgumentNullError=fw});var ry=o(Ar=>{"use strict";var hw=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ar,"__esModule",{value:!0});var yw=Ot(),pw=dt(),vw=lt(),Sw=(function(t){hw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Forbidden"),n=t.call(this,pw.ErrorCode.Forbidden,i)||this,yw(n,e.prototype),n}return e})(vw.WaiterError);Ar.ForbiddenError=Sw});var ny=o(Pr=>{"use strict";var mw=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pr,"__esModule",{value:!0});var _w=Ot(),Ow=dt(),Tw=lt(),Ew=(function(t){mw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Not Found: "+r),i=t.call(this,Ow.ErrorCode.NotFound,s)||this,i.entityName=r,_w(i,e.prototype),i}return e})(Tw.WaiterError);Pr.NotFoundError=Ew});var iy=o(wr=>{"use strict";var Cw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var bw=Ot(),gw=dt(),Aw=lt(),Pw=(function(t){Cw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Rate limit exceeded."),n=t.call(this,gw.ErrorCode.RateLimitExceeded,i)||this,bw(n,e.prototype),n}return e})(Aw.WaiterError);wr.RateLimitExceededError=Pw});var sy=o(Rr=>{"use strict";var ww=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var Rw=Ot(),Mw=dt(),Iw=lt(),qw=(function(t){ww(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Service unavailable temporarily."),n=t.call(this,Mw.ErrorCode.ServiceUnavailable,i)||this,Rw(n,e.prototype),n}return e})(Iw.WaiterError);Rr.ServiceUnavailableError=qw});var oy=o(Mr=>{"use strict";var Nw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var jw=Ot(),xw=dt(),Uw=lt(),Dw=(function(t){Nw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Unauthorized."),n=t.call(this,xw.ErrorCode.Unauthorized,i)||this,jw(n,e.prototype),n}return e})(Uw.WaiterError);Mr.UnauthorizedError=Dw});var ay=o(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});var Fw=ey();st.Argument=Fw.ArgumentError;var Lw=ty();st.ArgumentNull=Lw.ArgumentNullError;var kw=ry();st.Forbidden=kw.ForbiddenError;var Bw=ny();st.NotFound=Bw.NotFoundError;var Gw=iy();st.RateLimitExceeded=Gw.RateLimitExceededError;var $w=sy();st.ServiceUnavailable=$w.ServiceUnavailableError;var Kw=oy();st.Unauthorized=Kw.UnauthorizedError;var Ww=lt();st.Waiter=Ww.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(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});var Hw=Jh();ft.client=Hw;var Vw=dt();ft.errorCode=Vw.ErrorCode;var zw=ay();ft.errors=zw;var Yw=uy();ft.passport=Yw;var Qw=ly();ft.project=Qw;var Zw=hy();ft.rule=Zw;var Jw=py();ft.ruleSet=Jw});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(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.FlgMember=void 0;var Ty;(function(t){t.NonMember="0",t.Member="1"})(Ty||(mn.FlgMember=Ty={}))});var by=o(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ay=o(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0})});var wy=o(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.ObjectType=void 0;var Py;(function(t){t.SeatReservation="SeatReservation"})(Py||(_n.ObjectType=Py={}))});var Ry=o(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.ObjectType=void 0;var Xw=wy();Object.defineProperty(On,"ObjectType",{enumerable:!0,get:function(){return Xw.ObjectType}})});var qy=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ServiceIdentifier=Qt.ResultType=void 0;var My;(function(t){t.Payment="Payment"})(My||(Qt.ResultType=My={}));var Iy;(function(t){t.Chevre="Chevre"})(Iy||(Qt.ServiceIdentifier=Iy={}))});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 Fy=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0})});var Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var 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 ip=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(sp=>{"use strict";Object.defineProperty(sp,"__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(Nt=>{"use strict";var e0=Nt&&Nt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),t0=Nt&&Nt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&e0(e,t,r)};Object.defineProperty(Nt,"__esModule",{value:!0});t0(vp(),Nt)});var _p=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ObjectAsTransactionSpecifyingMethod=void 0;var mp;(function(t){t.Id="Id"})(mp||(Tn.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 gp=o(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var wp=o(ht=>{"use strict";var r0=ht&&ht.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),wc=ht&&ht.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&r0(e,t,r)};Object.defineProperty(ht,"__esModule",{value:!0});wc(Cp(),ht);wc(gp(),ht);wc(Pp(),ht)});var Mp=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.ActionStatusType=void 0;var Rp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Rp||(En.ActionStatusType=Rp={}))});var qp=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ActionType=void 0;var Ip;(function(t){t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.AddAction="AddAction",t.DeleteAction="DeleteAction",t.ReplaceAction="ReplaceAction",t.UpdateAction="UpdateAction",t.InformAction="InformAction",t.UseAction="UseAction"})(Ip||(Cn.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 Fp=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.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.AggregateScheduledTask="AggregateScheduledTask",t.AggregateUseAction="AggregateUseAction"})(Dp||(bn.AggregationType=Dp={}))});var kp=o(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0})});var Gp=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.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||(gn.CategorySetIdentifier=Bp={}))});var Rc=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.CertificationStatusEnumeration=void 0;var $p;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})($p||(An.CertificationStatusEnumeration=$p={}))});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(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.AboutIdentifier=void 0;var Jp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Jp||(Pn.AboutIdentifier=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var iv=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(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var Mc=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.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||(wn.CreativeWorkType=uv={}))});var lv=o(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var Ev=o(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.Video=ue.Text=ue.Multipart=ue.Model=ue.Message=ue.Image=ue.Example=ue.Font=ue.Audio=ue.Application=void 0;var fv;(function(t){t.pdf="application/pdf",t.json="application/json"})(fv||(ue.Application=fv={}));var hv;hv||(ue.Audio=hv={});var yv;yv||(ue.Font=yv={});var pv;pv||(ue.Example=pv={});var vv;vv||(ue.Image=vv={});var Sv;Sv||(ue.Message=Sv={});var mv;mv||(ue.Model=mv={});var _v;_v||(ue.Multipart=_v={});var Ov;(function(t){t.csv="text/csv"})(Ov||(ue.Text=Ov={}));var Tv;Tv||(ue.Video=Tv={})});var bv=o(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var Av=o(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Ic=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.EventStatusType=void 0;var Rv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Rv||(Rn.EventStatusType=Rv={}))});var qc=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.EventType=void 0;var Mv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Mv||(Mn.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 Fv=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.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||(In.ItemAvailability=Dv={}))});var kv=o(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Nc=o(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.MerchantReturnEnumeration=Tt.ReturnFeesEnumeration=Tt.RefundTypeEnumeration=void 0;var Bv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Bv||(Tt.RefundTypeEnumeration=Bv={}));var Gv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Gv||(Tt.ReturnFeesEnumeration=Gv={}));var $v;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})($v||(Tt.MerchantReturnEnumeration=$v={}))});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CategorySetIdentifier=void 0;var Hv;(function(t){t.MovieTicketType="MovieTicketType"})(Hv||(qn.CategorySetIdentifier=Hv={}))});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(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.OfferItemCondition=void 0;var rS;(function(t){t.NewCondition="NewCondition"})(rS||(Nn.OfferItemCondition=rS={}))});var jc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.OfferType=void 0;var iS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(iS||(jn.OfferType=iS={}))});var oS=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.OrderType=void 0;var sS;(function(t){t.Order="Order"})(sS||(xn.OrderType=sS={}))});var xc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.OrderType=void 0;var n0=oS();Object.defineProperty(Un,"OrderType",{enumerable:!0,get:function(){return n0.OrderType}})});var Uc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.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||(Dn.OrderStatus=aS={}))});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var Dc=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OrganizationType=void 0;var dS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(dS||(Fn.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 Fc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.PaymentStatusType=void 0;var SS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(SS||(Ln.PaymentStatusType=SS={}))});var _S=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.PermitType=void 0;var mS;(function(t){t.Permit="Permit"})(mS||(kn.PermitType=mS={}))});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var Lc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.PersonType=void 0;var ES;(function(t){t.Person="Person"})(ES||(Bn.PersonType=ES={}))});var bS=o(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0})});var AS=o(gS=>{"use strict";Object.defineProperty(gS,"__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(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.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||(Gn.PlaceType=NS={}))});var xS=o(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0})});var Bc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.PriceCurrency=void 0;var US;(function(t){t.JPY="JPY"})(US||($n.PriceCurrency=US={}))});var FS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var Gc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.PriceSpecificationType=void 0;var LS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(LS||(Kn.PriceSpecificationType=LS={}))});var $c=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.ProductType=void 0;var kS;(function(t){t.EventService="EventService",t.Product="Product"})(kS||(Wn.ProductType=kS={}))});var GS=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ProgramMembershipType=void 0;var BS;(function(t){t.ProgramMembership="ProgramMembership"})(BS||(Hn.ProgramMembershipType=BS={}))});var KS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var HS=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PropertyValueType=void 0;var WS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(WS||(Vn.PropertyValueType=WS={}))});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(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.StringValue=void 0;var ZS;(function(t){t.Infinity="Infinity"})(ZS||(zn.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(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.ReservationStatusType=void 0;var nm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(nm||(Yn.ReservationStatusType=nm={}))});var Wc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ReservationType=void 0;var im;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(im||(Qn.ReservationType=im={}))});var Hc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AssetTransactionType=void 0;var sm;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(sm||(Zn.AssetTransactionType=sm={}))});var Vc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.SortType=void 0;var om;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(om||(Jn.SortType=om={}))});var zc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.TaskStatus=void 0;var am;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(am||(Xn.TaskStatus=am={}))});var Yc=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.TransactionStatusType=void 0;var cm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(cm||(ei.TransactionStatusType=cm={}))});var Qc=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.TransactionType=void 0;var um;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(um||(ti.TransactionType=um={}))});var Zc=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.UnitCode=void 0;var dm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(dm||(ri.UnitCode=dm={}))});var mm=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.RESERVED_CODE_VALUES=void 0;var ni=Hc(),lm=Rc(),jt=Mc(),ii=Ic(),fm=qc(),ot=Nc(),hm=jc(),i0=xc(),Jt=Uc(),Jc=Dc(),Ir=Fc(),s0=Lc(),Xt=kc(),o0=Bc(),qr=Gc(),ym=$c(),si=Kc(),pm=Wc(),vm=Vc(),oi=zc(),ai=Yc(),Sm=Qc(),ci=Zc();ui.RESERVED_CODE_VALUES=["AccountTitle",ni.AssetTransactionType.CancelReservation,"MoneyTransfer",ni.AssetTransactionType.Pay,ni.AssetTransactionType.Refund,ni.AssetTransactionType.Reserve,"Authorization",lm.CertificationStatusEnumeration.CertificationActive,lm.CertificationStatusEnumeration.CertificationInactive,jt.CreativeWorkType.Certification,"Comment",jt.CreativeWorkType.EmailMessage,jt.CreativeWorkType.Movie,jt.CreativeWorkType.NoteDigitalDocument,jt.CreativeWorkType.SoftwareApplication,jt.CreativeWorkType.WebApplication,jt.CreativeWorkType.WebSite,"Event",ii.EventStatusType.EventCancelled,ii.EventStatusType.EventPostponed,ii.EventStatusType.EventRescheduled,ii.EventStatusType.EventScheduled,fm.EventType.ScreeningEvent,fm.EventType.ScreeningEventSeries,ot.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ot.MerchantReturnEnumeration.MerchantReturnNotPermitted,ot.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ot.MerchantReturnEnumeration.MerchantReturnUnspecified,ot.RefundTypeEnumeration.ExchangeRefund,ot.RefundTypeEnumeration.FullRefund,ot.RefundTypeEnumeration.StoreCreditRefund,ot.ReturnFeesEnumeration.FreeReturn,ot.ReturnFeesEnumeration.RestockingFees,ot.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",hm.OfferType.AggregateOffer,hm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",i0.OrderType.Order,Jt.OrderStatus.OrderCancelled,Jt.OrderStatus.OrderDelivered,Jt.OrderStatus.OrderInTransit,Jt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Jt.OrderStatus.OrderProcessing,Jt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",Ir.PaymentStatusType.PaymentAutomaticallyApplied,Ir.PaymentStatusType.PaymentComplete,Ir.PaymentStatusType.PaymentDeclined,Ir.PaymentStatusType.PaymentDue,Ir.PaymentStatusType.PaymentPastDue,s0.PersonType.Person,Xt.PlaceType.AggregatePlace,Xt.PlaceType.MovieTheater,Xt.PlaceType.Place,Xt.PlaceType.ScreeningRoom,Xt.PlaceType.ScreeningRoomSection,Xt.PlaceType.Seat,o0.PriceCurrency.JPY,qr.PriceSpecificationType.CategoryCodeChargeSpecification,qr.PriceSpecificationType.CompoundPriceSpecification,qr.PriceSpecificationType.MovieTicketTypeChargeSpecification,qr.PriceSpecificationType.PriceSpecification,qr.PriceSpecificationType.UnitPriceSpecification,ym.ProductType.EventService,ym.ProductType.Product,si.ReservationStatusType.ReservationCancelled,si.ReservationStatusType.ReservationConfirmed,si.ReservationStatusType.ReservationPending,"ReservationHold",si.ReservationStatusType.ReservationPending,"BusReservation",pm.ReservationType.EventReservation,pm.ReservationType.ReservationPackage,vm.SortType.Ascending,vm.SortType.Descending,oi.TaskStatus.Aborted,oi.TaskStatus.Executed,oi.TaskStatus.Ready,oi.TaskStatus.Running,ai.TransactionStatusType.Canceled,ai.TransactionStatusType.Confirmed,ai.TransactionStatusType.Expired,ai.TransactionStatusType.InProgress,Sm.TransactionType.PlaceOrder,Sm.TransactionType.ReturnOrder,ci.UnitCode.Ann,ci.UnitCode.C62,ci.UnitCode.Day,ci.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Om=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.RoleType=void 0;var _m;(function(t){t.OrganizationRole="OrganizationRole"})(_m||(di.RoleType=_m={}))});var Em=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.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||(li.RoleName=Tm={}))});var bm=o(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0})});var Am=o(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0})});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PaymentServiceType=void 0;var Rm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Rm||(fi.PaymentServiceType=Rm={}))});var qm=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Identifier=void 0;var Im;(function(t){t.COA="COA",t.Chevre="Chevre"})(Im||(hi.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 Fm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var 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 i_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(s_=>{"use strict";Object.defineProperty(s_,"__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 b_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var A_=o(g_=>{"use strict";Object.defineProperty(g_,"__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 F_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var 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 iO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(sO=>{"use strict";Object.defineProperty(sO,"__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 bO=o(CO=>{"use strict";Object.defineProperty(CO,"__esModule",{value:!0})});var AO=o(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0})});var wO=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.TaskName=void 0;var PO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.ConfirmReturnOrder="confirmReturnOrder",t.CreateAccountingReport="createAccountingReport",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(PO||(yi.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 FO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.Reason=void 0;var LO;(function(t){t.Customer="Customer",t.Seller="Seller"})(LO||(pi.Reason=LO={}))});var Re=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.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||(vi.ErrorCode=BO={}))});var Me=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Si.ChevreError=Xc});var GO=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.AlreadyInUseError=void 0;var a0=Re(),c0=Me(),eu=class extends c0.ChevreError{entityName;fieldNames;constructor(e,r,n){let i=n;(n===void 0||n.length===0)&&(i=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(a0.ErrorCode.AlreadyInUse,i),this.entityName=e,this.fieldNames=r}};mi.AlreadyInUseError=eu});var $O=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ArgumentError=void 0;var u0=Re(),d0=Me(),tu=class extends d0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(u0.ErrorCode.Argument,n),this.argumentName=e}};_i.ArgumentError=tu});var KO=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ArgumentNullError=void 0;var l0=Re(),f0=Me(),ru=class extends f0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(l0.ErrorCode.ArgumentNull,n),this.argumentName=e}};Oi.ArgumentNullError=ru});var WO=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ForbiddenError=void 0;var h0=Re(),y0=Me(),nu=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(h0.ErrorCode.Forbidden,r)}};Ti.ForbiddenError=nu});var HO=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.GatewayTimeoutError=void 0;var p0=Re(),v0=Me(),iu=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(p0.ErrorCode.GatewayTimeout,r)}};Ei.GatewayTimeoutError=iu});var VO=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.InternalError=void 0;var S0=Re(),m0=Me(),su=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(S0.ErrorCode.Internal,r)}};Ci.InternalError=su});var zO=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.NotFoundError=void 0;var _0=Re(),O0=Me(),ou=class extends O0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(_0.ErrorCode.NotFound,n),this.entityName=e}};bi.NotFoundError=ou});var YO=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.NotImplementedError=void 0;var T0=Re(),E0=Me(),au=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(T0.ErrorCode.NotImplemented,r)}};gi.NotImplementedError=au});var QO=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.RateLimitExceededError=void 0;var C0=Re(),b0=Me(),cu=class extends b0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(C0.ErrorCode.RateLimitExceeded,r)}};Ai.RateLimitExceededError=cu});var ZO=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.ServiceUnavailableError=void 0;var g0=Re(),A0=Me(),uu=class extends A0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(g0.ErrorCode.ServiceUnavailable,r)}};Pi.ServiceUnavailableError=uu});var JO=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.UnauthorizedError=void 0;var P0=Re(),w0=Me(),du=class extends w0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(P0.ErrorCode.Unauthorized,r)}};wi.UnauthorizedError=du});var XO=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.UnknownError=void 0;var R0=Re(),M0=Me(),lu=class extends M0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(R0.ErrorCode.Unknown,r)}};Ri.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 I0=GO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return I0.AlreadyInUseError}});var q0=$O();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return q0.ArgumentError}});var N0=KO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return N0.ArgumentNullError}});var j0=Me();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return j0.ChevreError}});var x0=WO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return x0.ForbiddenError}});var U0=HO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return U0.GatewayTimeoutError}});var D0=VO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return D0.InternalError}});var F0=zO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return F0.NotFoundError}});var L0=YO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return L0.NotImplementedError}});var k0=QO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return k0.RateLimitExceededError}});var B0=ZO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return B0.ServiceUnavailableError}});var G0=JO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return G0.UnauthorizedError}});var $0=XO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return $0.UnknownError}})});var nT=o(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.StepIdentifier=er.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||(er.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||(er.StepIdentifier=rT={}))});var _T=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});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.acceptedOffer=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=O.person=void 0;O.waiter=vy();O.cognito=my();var K0=Oy(),W0=Ey(),H0=by(),V0=Ay(),z0=Ry(),Y0=qy(),Q0=jy(),Z0=Uy(),J0=Fy(),X0=ky(),eR=Gy(),tR=Ky(),rR=Hy(),nR=zy(),iR=Qy(),sR=Jy(),oR=ep(),aR=rp(),cR=ip(),uR=op(),dR=cp(),lR=dp(),fR=fp(),hR=yp(),yR=Sp(),pR=_p(),vR=Tp(),SR=wp(),mR=Mp(),_R=qp(),OR=jp(),TR=Up(),ER=Fp(),CR=kp(),bR=Gp(),gR=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return gR.CertificationStatusEnumeration}});var AR=Wp(),PR=Vp(),wR=Yp(),RR=Zp(),MR=Xp(),IR=tv(),qR=iv(),NR=ov(),jR=cv(),xR=Mc(),UR=lv(),DR=Ev(),FR=bv();O.entryPoint=FR;var LR=Av();O.eventSeries=wv();var kR=Ic(),BR=qc(),GR=qv(),$R=jv(),KR=Uv(),WR=Fv(),HR=kv(),VR=Nc(),zR=Wv(),YR=Vv();O.offer=Yv();O.aggregateOffer=Zv();O.eventOffer=Xv();var QR=tS(),ZR=nS(),JR=jc();O.order=xc();var XR=Uc(),eM=uS(),tM=Dc(),rM=fS(),nM=yS(),iM=vS(),sM=Fc(),oM=_S(),aM=TS(),cM=Lc(),uM=bS(),dM=AS(),lM=wS(),fM=MS(),hM=qS(),yM=kc(),pM=xS();O.potentialAction=pM;var vM=Bc(),SM=FS(),mM=Gc(),_M=$c(),OM=GS();O.project=KS();var TM=HS(),EM=zS(),CM=QS(),bM=JS(),gM=em(),AM=rm(),PM=Kc(),wM=Wc(),RM=mm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return RM.RESERVED_CODE_VALUES}});var MM=Om(),IM=Em(),qM=bm(),NM=Am(),jM=wm(),xM=Mm(),UM=qm(),DM=jm(),FM=Vc(),LM=Um(),kM=Zc();O.unitPriceOffer=Fm();var BM=km(),GM=Gm(),$M=Km(),KM=Hm(),WM=zm(),HM=Qm(),VM=Jm(),zM=e_(),YM=r_(),QM=i_(),ZM=o_(),JM=c_(),XM=d_(),eI=f_(),tI=y_(),rI=v_(),nI=m_(),iI=O_(),sI=E_(),oI=b_(),aI=A_(),cI=w_(),uI=M_(),dI=q_(),lI=j_(),fI=U_(),hI=F_(),yI=k_(),pI=G_(),vI=K_(),SI=H_(),mI=z_(),_I=Q_(),OI=J_(),TI=eO(),EI=rO(),CI=iO(),bI=oO(),gI=cO(),AI=dO(),PI=fO(),wI=yO(),RI=vO(),MI=mO(),II=OO(),qI=EO(),NI=bO(),jI=AO(),xI=wO(),UI=zc(),DI=MO(),FI=qO(),LI=jO(),kI=UO(),BI=Hc(),GI=Yc(),$I=FO(),KI=kO(),WI=Qc(),HI=Re();O.errors=eT();O.recipe=nT();O.errorCode=HI.ErrorCode;O.acceptedOffer=K0;O.actionStatusType=mR.ActionStatusType;O.actionType=_R.ActionType;var iT;(function(t){let e;(function(y){y.coaOffer=W0,y.pay=H0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=Y0})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(g){g.eventService=z0})(_=y.offer||(y.offer={})),y.invoice=V0,y.ticketedObject=Q0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=Z0,y.reservation=J0})(n=t.cancel||(t.cancel={}));let i;(function(y){let S;(function(_){_.movieTicket=X0})(S=y.paymentMethod||(y.paymentMethod={}))})(i=t.check||(t.check={})),t.create=tR;let s;(function(y){let S;(function(_){_.pay=rR,_.reservation=nR})(S=y.confirm||(y.confirm={})),y.inform=iR})(s=t.interact||(t.interact={}));let c;(function(y){y.order=oR,y.pay=aR,y.refund=cR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=uR,g.order=dR,g.reserveTransaction=lR})(S=y.returnAction||(y.returnAction={}));let _;(function(g){let M;(function(w){w.email=fR})(M=g.message||(g.message={})),g.order=hR})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=yR,y.deleteAction=pR,y.replace=vR,y.update=SR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=eR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=sR})(iT||(O.action=iT={}));O.accountTitle=OR;O.additionalProperty=TR;O.aggregation=ER;O.authorization=CR;O.categoryCode=bR;O.clientUser=AR;var sT;(function(t){let e;(function(i){i.softwareApplication=PR,i.webApplication=wR,i.webSite=RR})(e=t.certification||(t.certification={}));let r;(function(i){i.email=MR})(r=t.message||(t.message={})),t.movie=IR,t.noteDigitalDocument=qR;let n;(function(i){i.softwareApplication=NR,i.webApplication=jR})(n=t.softwareApplication||(t.softwareApplication={}))})(sT||(O.creativeWork=sT={}));O.creativeWorkType=xR.CreativeWorkType;O.customer=UR;var oT;(function(t){t.screeningEvent=LR})(oT||(O.event=oT={}));O.encodingFormat=DR;O.eventStatusType=kR.EventStatusType;O.eventType=BR.EventType;O.iam=GR;O.identityProvider=$R;O.invoice=KR;O.itemAvailability=WR.ItemAvailability;O.language=HR;O.merchantReturnPolicy=VR;O.monetaryAmount=zR;O.movieTicketType=YR;var aT;(function(t){t.event=KM,t.eventSeries=WM,t.order=zM,t.reservation=eI,t.payAction=YM,t.refundAction=XM,t.accountTitle=BM,t.categoryCode=GM,t.creativeWork=$M,t.offer=HM,t.offerCatalog=VM,t.person=QM,t.place=ZM,t.product=JM,t.task=tI})(aT||(O.notification=aT={}));O.offerCatalog=QR;O.offerItemCondition=ZR;O.offerType=JR.OfferType;O.orderStatus=XR.OrderStatus;O.organization=eM;O.organizationType=tM.OrganizationType;O.ownershipInfo=rM;var cT;(function(t){let e;(function(r){r.creditCard=nM,r.movieTicket=iM})(e=t.paymentCard||(t.paymentCard={}))})(cT||(O.paymentMethod=cT={}));O.paymentStatusType=sM.PaymentStatusType;O.permit=oM;O.person=aM;O.personType=cM.PersonType;O.priceCurrency=vM.PriceCurrency;var uT;(function(t){t.entranceGate=uM,t.movieTheater=dM,t.screeningRoom=lM,t.screeningRoomSection=fM,t.seat=hM})(uT||(O.place=uT={}));O.placeType=yM.PlaceType;var dT;(function(t){t.unitPrice=SM})(dT||(O.priceSpecification=dT={}));O.priceSpecificationType=mM.PriceSpecificationType;O.programMembership=OM;O.product=_M;var lT;(function(t){t.PropertyValueType=TM.PropertyValueType,t.locationFeatureSpecification=EM})(lT||(O.propertyValue=lT={}));O.qualitativeValue=CM;O.quantitativeValue=bM;var fT;(function(t){t.accountingReport=gM})(fT||(O.report=fT={}));var hT;(function(t){t.eventReservation=AM})(hT||(O.reservation=hT={}));O.reservationStatusType=PM.ReservationStatusType;O.reservationType=wM.ReservationType;var yT;(function(t){t.RoleType=MM.RoleType,t.organizationRole=IM})(yT||(O.role=yT={}));O.schedule=qM;O.seller=NM;O.sellerReturnPolicy=jM;var pT;(function(t){t.acceptCOAOffer=rI,t.aggregateOffers=nI,t.aggregateOnSystem=iI,t.aggregateScreeningEvent=sI,t.authorizePayment=oI,t.cancelPendingReservation=aI,t.cancelReservation=cI,t.checkMovieTicket=uI,t.checkResource=dI,t.createAccountingReport=hI,t.confirmReserveTransaction=lI,t.confirmReturnOrder=fI,t.deleteTransaction=yI,t.handleNotification=pI,t.importEventCapacitiesFromCOA=vI,t.importEventsFromCOA=SI,t.importOffersFromCOA=mI,t.invalidatePaymentUrl=_I,t.onAssetTransactionStatusChanged=OI,t.pay=gI,t.publishPaymentUrl=AI,t.refund=PI,t.reserve=wI,t.sendEmailMessage=RI,t.syncResourcesFromCOA=MI,t.triggerWebhook=II,t.useReservation=qI,t.voidPayment=NI,t.onAuthorizationCreated=TI,t.onEventChanged=EI,t.onResourceDeleted=CI,t.onResourceUpdated=bI,t.voidReserveTransaction=jI})(pT||(O.task=pT={}));var vT;(function(t){t.paymentService=xM,t.webAPI=UM})(vT||(O.service=vT={}));O.serviceChannel=DM;O.sortType=FM.SortType;O.taskName=xI.TaskName;O.taskStatus=UI.TaskStatus;O.thing=LM;var ST;(function(t){t.cancelReservation=DI,t.pay=FI,t.refund=LI,t.reserve=kI})(ST||(O.assetTransaction=ST={}));var mT;(function(t){t.placeOrder=$I,t.returnOrder=KI})(mT||(O.transaction=mT={}));O.transactionType=WI.TransactionType;O.transactionStatusType=GI.TransactionStatusType;O.assetTransactionType=BI.AssetTransactionType;O.unitCode=kM.UnitCode});var OT=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ChevreFactory=void 0;Mi.ChevreFactory=_T()});var Y=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.factory=void 0;var VI=OT();Object.defineProperty(Ii,"factory",{enumerable:!0,get:function(){return VI.ChevreFactory}})});var ET=o((T2,TT)=>{var tr=1e3,rr=tr*60,nr=rr*60,xt=nr*24,zI=xt*7,YI=xt*365.25;TT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return QI(t);if(r==="number"&&isFinite(t))return e.long?JI(t):ZI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function QI(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*YI;case"weeks":case"week":case"w":return r*zI;case"days":case"day":case"d":return r*xt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*rr;case"seconds":case"second":case"secs":case"sec":case"s":return r*tr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ZI(t){var e=Math.abs(t);return e>=xt?Math.round(t/xt)+"d":e>=nr?Math.round(t/nr)+"h":e>=rr?Math.round(t/rr)+"m":e>=tr?Math.round(t/tr)+"s":t+"ms"}function JI(t){var e=Math.abs(t);return e>=xt?qi(t,e,xt,"day"):e>=nr?qi(t,e,nr,"hour"):e>=rr?qi(t,e,rr,"minute"):e>=tr?qi(t,e,tr,"second"):t+" ms"}function qi(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var bT=o((E2,CT)=>{function XI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=i,r.enabled=d,r.humanize=ET(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let _=0;_<y.length;_++)S=(S<<5)-S+y.charCodeAt(_),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,_=null,g,M;function w(...q){if(!w.enabled)return;let N=w,C=Number(new Date),R=C-(S||C);N.diff=R,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,W)=>{if(K==="%%")return"%";D++;let j=r.formatters[W];if(typeof j=="function"){let $=q[D];K=j.call(N,$),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return w.namespace=y,w.useColors=r.useColors(),w.color=r.selectColor(y),w.extend=n,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(g!==r.namespaces&&(g=r.namespaces,M=r.enabled(y)),M),set:q=>{_=q}}),typeof r.init=="function"&&r.init(w),w}function n(y,S){let _=r(this.namespace+(typeof S>"u"?":":S)+y);return _.log=this.log,_}function i(y){r.save(y),r.namespaces=y,r.names=[],r.skips=[];let S=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let _ of S)_[0]==="-"?r.skips.push(_.slice(1)):r.names.push(_)}function s(y,S){let _=0,g=0,M=-1,w=0;for(;_<y.length;)if(g<S.length&&(S[g]===y[_]||S[g]==="*"))S[g]==="*"?(M=g,w=_,g++):(_++,g++);else if(M!==-1)g=M+1,w++,_=w;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(s(y,S))return!1;for(let S of r.names)if(s(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}CT.exports=XI});var ir=o((Ie,Ni)=>{Ie.formatArgs=tq;Ie.save=rq;Ie.load=nq;Ie.useColors=eq;Ie.storage=iq();Ie.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`."))}})();Ie.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 eq(){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 tq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ni.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Ie.log=console.debug||console.log||(()=>{});function rq(t){try{t?Ie.storage.setItem("debug",t):Ie.storage.removeItem("debug")}catch{}}function nq(){let t;try{t=Ie.storage.getItem("debug")||Ie.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function iq(){try{return localStorage}catch{}}Ni.exports=bT()(Ie);var{formatters:sq}=Ni.exports;sq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var gT=o((C2,oq)=>{oq.exports={name:"@cinerino/sdk",version:"18.3.0-alpha.7",description:"Cinerino SDK",main:"./lib/index.js",browser:{"./lib/index.js":"./lib/browser.js",crypto:!1},types:"./lib/index.d.ts",files:["lib"],scripts:{build:"npm run build:node && npm run build:browser","build:node":"tsc","build:browser:browserify":"browserify ./bundle.js -o ./lib/bundle.js","build:browser":"esbuild ./bundle.js --bundle --minify --sourcemap --outfile=./lib/bundle.js --platform=browser","build:watch":'tsc && concurrently "tsc -w" "npm run esbuild:watch"',watchify:"watchify ./bundle.js -o ./lib/bundle.js","esbuild:watch":"esbuild ./bundle.js --bundle --outfile=./lib/bundle.js --platform=browser --watch","build:example":"tsc --watch --project tsconfig.example.json --declaration false",clean:'rimraf ./lib "npm-debug.log*" ./docs ./coverage ./.nyc_output ./example/dst',example:"copyfiles ./lib/bundle.js ./example/browser && http-server ./example/browser",playground:"copyfiles ./lib/bundle.js ./example/playground/public && node ./example/playground/app.js","check:all":"npm run clean && npm run build && npm test",coverage:"vitest run --coverage",test:"npm run eslint && npm run coverage",eslint:"eslint src/**/*.ts example/src/**/*.ts",vitest:"vitest",preversion:"npm run check:all",version:"git add -A",postversion:"git push origin --tags",prepublishOnly:"npm run clean && npm run build"},repository:{type:"git",url:"https://github.com/cinerino/sdk.git"},keywords:[],author:{name:"Motionpicture co.,ltd."},contributors:[{email:"yamazaki@motionpicture.jp",name:"Tetsu Yamazaki"}],license:"UNLICENSED",devDependencies:{"@eslint/js":"9.39.4","@types/debug":"4.1.13","@types/node":"22.19.15","@types/open":"^6.2.1","@types/qs":"6.9.18","@vitest/coverage-v8":"4.1.4","@vitest/ui":"4.1.4",browserify:"16.5.2",concurrently:"9.2.1",copyfiles:"^2.3.0",esbuild:"0.28.0",eslint:"9.39.4","http-server":"^0.11.1",moment:"2.30.1","moment-timezone":"0.6.0",open:"^8.2.1",rimraf:"^2.7.1",typescript:"5.9.3","typescript-eslint":"8.57.2",undici:"7.24.6",vitest:"4.1.4",watchify:"3.11.1"},dependencies:{"@chevre/factory":"11.1.0-alpha.6",debug:"4.4.3","http-status":"2.1.0","idtoken-verifier":"2.2.4",qs:"6.12.1"}}});var ji=o(Ue=>{"use strict";var aq=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.StubTransporter=Ue.DefaultTransporter=Ue.RequestError=Ue.Transporter=void 0;var cq=aq(ir()),AT=(0,cq.default)("cinerino-sdk:transporters"),fu={name:"unknown",version:"unknown"};try{fu=gT()}catch{}var uq=[typeof process<"u"?process.env.GAE_APPLICATION:void 0,typeof process<"u"?process.env.GAE_SERVICE:void 0,typeof process<"u"?process.env.GAE_VERSION:void 0].filter(t=>typeof t=="string"&&t.trim().length>0),dq=[...uq,`${fu.name}/${fu.version}`].join(" "),hu=class{};Ue.Transporter=hu;var sr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};Ue.RequestError=sr;var yu=class t{static USER_AGENT=dq;expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){if(typeof window>"u"&&typeof process<"u"){let n=new Headers(e.headers),i=n.get("user-agent");i?i.includes(t.USER_AGENT)||n.set("user-agent",`${i} ${t.USER_AGENT}`):n.set("user-agent",t.USER_AGENT),e.headers=n}return e}async fetch(e,r){let n=t.CONFIGURE(r);return AT("fetching...",e,n),fetch(e,n).then(async i=>this.wrapCallback(i))}async wrapCallback(e){let r=new sr("An unexpected error occurred");if(AT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new sr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new sr(n),r.code=e.status,r.errors=[])}else return e;throw r}};Ue.DefaultTransporter=yu;var pu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};Ue.StubTransporter=pu});var wT=o(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});var I={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},PT=or.a={classes:I,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":I.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":I.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":I.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":I.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":I.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":I.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":I.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":I.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":I.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":I.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":I.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":I.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":I.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":I.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":I.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":I.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":I.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":I.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":I.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":I.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":I.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":I.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":I.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":I.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":I.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":I.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":I.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":I.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":I.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":I.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":I.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":I.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":I.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":I.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":I.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":I.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":I.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":I.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":I.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":I.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":I.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":I.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":I.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":I.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":I.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":I.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":I.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":I.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":I.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":I.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":I.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":I.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":I.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":I.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":I.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":I.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":I.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":I.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":I.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":I.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":I.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":I.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":I.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":I.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":I.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":I.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":I.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":I.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":I.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":I.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":I.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":I.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":I.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":I.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":I.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":I.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":I.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":I.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":I.SERVER_ERROR,RAILGUN_ERROR:527}}},lq=or.b=PT;or.a=PT;or.b=lq});var b=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var RT=wT();xi.default=RT.b;xi.status=RT.a});var Ut=o((P2,MT)=>{"use strict";MT.exports=TypeError});var IT=o(()=>{});var Dr=o((M2,ZT)=>{var gu=typeof Map=="function"&&Map.prototype,vu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Di=gu&&vu&&typeof vu.get=="function"?vu.get:null,qT=gu&&Map.prototype.forEach,Au=typeof Set=="function"&&Set.prototype,Su=Object.getOwnPropertyDescriptor&&Au?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Fi=Au&&Su&&typeof Su.get=="function"?Su.get:null,NT=Au&&Set.prototype.forEach,fq=typeof WeakMap=="function"&&WeakMap.prototype,jr=fq?WeakMap.prototype.has:null,hq=typeof WeakSet=="function"&&WeakSet.prototype,xr=hq?WeakSet.prototype.has:null,yq=typeof WeakRef=="function"&&WeakRef.prototype,jT=yq?WeakRef.prototype.deref:null,pq=Boolean.prototype.valueOf,vq=Object.prototype.toString,Sq=Function.prototype.toString,mq=String.prototype.match,Pu=String.prototype.slice,Et=String.prototype.replace,_q=String.prototype.toUpperCase,xT=String.prototype.toLowerCase,KT=RegExp.prototype.test,UT=Array.prototype.concat,at=Array.prototype.join,Oq=Array.prototype.slice,DT=Math.floor,Ou=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mu=Object.getOwnPropertySymbols,Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ar||!0)?Symbol.toStringTag:null,WT=Object.prototype.propertyIsEnumerable,FT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function LT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||KT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-DT(-t):DT(t);if(n!==t){var i=String(n),s=Pu.call(e,i.length+1);return Et.call(i,r,"$&_")+"."+Et.call(Et.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Et.call(e,r,"$&_")}var Eu=IT(),kT=Eu.custom,BT=zT(kT)?kT:null,HT={__proto__:null,double:'"',single:"'"},Tq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ZT.exports=function t(e,r,n,i){var s=r||{};if(yt(s,"quoteStyle")&&!yt(HT,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=yt(s,"customInspect")?s.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return QT(e,s);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 s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Cu(e)?"[Array]":"[Object]";var S=Lq(s,n);if(typeof i>"u")i=[];else if(YT(i,e)>=0)return"[Circular]";function _(ce,ie,se){if(ie&&(i=Oq.call(i),i.push(ie)),se){var ee={depth:s.depth};return yt(s,"quoteStyle")&&(ee.quoteStyle=s.quoteStyle),t(ce,ee,n+1,i)}return t(ce,s,n+1,i)}if(typeof e=="function"&&!GT(e)){var g=Mq(e),M=Ui(e,_);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(M.length>0?" { "+at.call(M,", ")+" }":"")}if(zT(e)){var w=ar?Et.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tu.call(e);return typeof e=="object"&&!ar?Nr(w):w}if(Uq(e)){for(var q="<"+xT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+VT(Eq(N[C].value),"double",s);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+xT.call(String(e.nodeName))+">",q}if(Cu(e)){if(e.length===0)return"[]";var R=Ui(e,_);return S&&!Fq(R)?"["+bu(R,S)+"]":"[ "+at.call(R,", ")+" ]"}if(bq(e)){var D=Ui(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!WT.call(e,"cause")?"{ ["+String(e)+"] "+at.call(UT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+at.call(D,", ")+" }"}if(typeof e=="object"&&c){if(BT&&typeof e[BT]=="function"&&Eu)return Eu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Iq(e)){var k=[];return qT&&qT.call(e,function(ce,ie){k.push(_(ie,e,!0)+" => "+_(ce,e))}),$T("Map",Di.call(e),k,S)}if(jq(e)){var K=[];return NT&&NT.call(e,function(ce){K.push(_(ce,e))}),$T("Set",Fi.call(e),K,S)}if(qq(e))return _u("WeakMap");if(xq(e))return _u("WeakSet");if(Nq(e))return _u("WeakRef");if(Aq(e))return Nr(_(Number(e)));if(wq(e))return Nr(_(Ou.call(e)));if(Pq(e))return Nr(pq.call(e));if(gq(e))return Nr(_(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Cq(e)&&!GT(e)){var W=Ui(e,_),j=FT?FT(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",G=!j&&Ur&&Object(e)===e&&Ur in e?Pu.call(Ct(e),8,-1):$?"Object":"",z=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=z+(G||$?"["+at.call(UT.call([],G||[],$||[]),": ")+"] ":"");return W.length===0?Te+"{}":S?Te+"{"+bu(W,S)+"}":Te+"{ "+at.call(W,", ")+" }"}return String(e)};function VT(t,e,r){var n=r.quoteStyle||e,i=HT[n];return i+t+i}function Eq(t){return Et.call(String(t),/"/g,""")}function Dt(t){return!Ur||!(typeof t=="object"&&(Ur in t||typeof t[Ur]<"u"))}function Cu(t){return Ct(t)==="[object Array]"&&Dt(t)}function Cq(t){return Ct(t)==="[object Date]"&&Dt(t)}function GT(t){return Ct(t)==="[object RegExp]"&&Dt(t)}function bq(t){return Ct(t)==="[object Error]"&&Dt(t)}function gq(t){return Ct(t)==="[object String]"&&Dt(t)}function Aq(t){return Ct(t)==="[object Number]"&&Dt(t)}function Pq(t){return Ct(t)==="[object Boolean]"&&Dt(t)}function zT(t){if(ar)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Tu)return!1;try{return Tu.call(t),!0}catch{}return!1}function wq(t){if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}var Rq=Object.prototype.hasOwnProperty||function(t){return t in this};function yt(t,e){return Rq.call(t,e)}function Ct(t){return vq.call(t)}function Mq(t){if(t.name)return t.name;var e=mq.call(Sq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function YT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Iq(t){if(!Di||!t||typeof t!="object")return!1;try{Di.call(t);try{Fi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function qq(t){if(!jr||!t||typeof t!="object")return!1;try{jr.call(t,jr);try{xr.call(t,xr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Nq(t){if(!jT||!t||typeof t!="object")return!1;try{return jT.call(t),!0}catch{}return!1}function jq(t){if(!Fi||!t||typeof t!="object")return!1;try{Fi.call(t);try{Di.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function xq(t){if(!xr||!t||typeof t!="object")return!1;try{xr.call(t,xr);try{jr.call(t,jr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Uq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function QT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return QT(Pu.call(t,0,e.maxStringLength),e)+n}var i=Tq[e.quoteStyle||"single"];i.lastIndex=0;var s=Et.call(Et.call(t,i,"\\$1"),/[\x00-\x1f]/g,Dq);return VT(s,"single",e)}function Dq(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":"")+_q.call(e.toString(16))}function Nr(t){return"Object("+t+")"}function _u(t){return t+" { ? }"}function $T(t,e,r,n){var i=n?bu(r,n):at.call(r,", ");return t+" ("+e+") {"+i+"}"}function Fq(t){for(var e=0;e<t.length;e++)if(YT(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function Lq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=at.call(Array(t.indent+1)," ");else return null;return{base:r,prev:at.call(Array(e+1),r)}}function
|
|
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 dt=o(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var JP;(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"})(JP=pn.ErrorCode||(pn.ErrorCode={}))});var Ot=o((bL,Xh)=>{"use strict";Xh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?XP:ew);function XP(t,e){return t.__proto__=e,t}function ew(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var lt=o(Cr=>{"use strict";var tw=Cr&&Cr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Cr,"__esModule",{value:!0});var rw=(function(t){tw(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name="WaiterError",i.reason=r,i}return e})(Error);Cr.WaiterError=rw});var ey=o(gr=>{"use strict";var nw=gr&&gr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(gr,"__esModule",{value:!0});var iw=Ot(),sw=dt(),ow=lt(),aw=(function(t){nw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Invalid or missing argument supplied: "+r),i=t.call(this,sw.ErrorCode.Argument,s)||this,i.argumentName=r,iw(i,e.prototype),i}return e})(ow.WaiterError);gr.ArgumentError=aw});var ty=o(br=>{"use strict";var cw=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(br,"__esModule",{value:!0});var uw=Ot(),dw=dt(),lw=lt(),fw=(function(t){cw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Missing argument: "+r),i=t.call(this,dw.ErrorCode.Argument,s)||this,i.argumentName=r,uw(i,e.prototype),i}return e})(lw.WaiterError);br.ArgumentNullError=fw});var ry=o(Ar=>{"use strict";var hw=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ar,"__esModule",{value:!0});var yw=Ot(),pw=dt(),vw=lt(),Sw=(function(t){hw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Forbidden"),n=t.call(this,pw.ErrorCode.Forbidden,i)||this,yw(n,e.prototype),n}return e})(vw.WaiterError);Ar.ForbiddenError=Sw});var ny=o(Pr=>{"use strict";var mw=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pr,"__esModule",{value:!0});var _w=Ot(),Ow=dt(),Tw=lt(),Ew=(function(t){mw(e,t);function e(r,n){var i=this,s=n;return(n===void 0||n.length===0)&&(s="Not Found: "+r),i=t.call(this,Ow.ErrorCode.NotFound,s)||this,i.entityName=r,_w(i,e.prototype),i}return e})(Tw.WaiterError);Pr.NotFoundError=Ew});var iy=o(wr=>{"use strict";var Cw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var gw=Ot(),bw=dt(),Aw=lt(),Pw=(function(t){Cw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Rate limit exceeded."),n=t.call(this,bw.ErrorCode.RateLimitExceeded,i)||this,gw(n,e.prototype),n}return e})(Aw.WaiterError);wr.RateLimitExceededError=Pw});var sy=o(Rr=>{"use strict";var ww=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var Rw=Ot(),Mw=dt(),Iw=lt(),qw=(function(t){ww(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Service unavailable temporarily."),n=t.call(this,Mw.ErrorCode.ServiceUnavailable,i)||this,Rw(n,e.prototype),n}return e})(Iw.WaiterError);Rr.ServiceUnavailableError=qw});var oy=o(Mr=>{"use strict";var Nw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var jw=Ot(),xw=dt(),Uw=lt(),Dw=(function(t){Nw(e,t);function e(r){var n=this,i=r;return(r===void 0||r.length===0)&&(i="Unauthorized."),n=t.call(this,xw.ErrorCode.Unauthorized,i)||this,jw(n,e.prototype),n}return e})(Uw.WaiterError);Mr.UnauthorizedError=Dw});var ay=o(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});var Fw=ey();st.Argument=Fw.ArgumentError;var Lw=ty();st.ArgumentNull=Lw.ArgumentNullError;var kw=ry();st.Forbidden=kw.ForbiddenError;var Bw=ny();st.NotFound=Bw.NotFoundError;var Gw=iy();st.RateLimitExceeded=Gw.RateLimitExceededError;var $w=sy();st.ServiceUnavailable=$w.ServiceUnavailableError;var Kw=oy();st.Unauthorized=Kw.UnauthorizedError;var Ww=lt();st.Waiter=Ww.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(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});var Hw=Jh();ft.client=Hw;var zw=dt();ft.errorCode=zw.ErrorCode;var Vw=ay();ft.errors=Vw;var Yw=uy();ft.passport=Yw;var Qw=ly();ft.project=Qw;var Zw=hy();ft.rule=Zw;var Jw=py();ft.ruleSet=Jw});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(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.FlgMember=void 0;var Ty;(function(t){t.NonMember="0",t.Member="1"})(Ty||(vn.FlgMember=Ty={}))});var gy=o(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ay=o(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0})});var wy=o(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.ObjectType=void 0;var Py;(function(t){t.SeatReservation="SeatReservation"})(Py||(Sn.ObjectType=Py={}))});var Ry=o(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.ObjectType=void 0;var Xw=wy();Object.defineProperty(mn,"ObjectType",{enumerable:!0,get:function(){return Xw.ObjectType}})});var qy=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ServiceIdentifier=Qt.ResultType=void 0;var My;(function(t){t.Payment="Payment"})(My||(Qt.ResultType=My={}));var Iy;(function(t){t.Chevre="Chevre"})(Iy||(Qt.ServiceIdentifier=Iy={}))});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 Fy=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0})});var Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Hy=o(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var Vy=o(zy=>{"use strict";Object.defineProperty(zy,"__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 ip=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(sp=>{"use strict";Object.defineProperty(sp,"__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(Nt=>{"use strict";var e0=Nt&&Nt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),t0=Nt&&Nt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&e0(e,t,r)};Object.defineProperty(Nt,"__esModule",{value:!0});t0(vp(),Nt)});var _p=o(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.ObjectAsTransactionSpecifyingMethod=void 0;var mp;(function(t){t.Id="Id"})(mp||(_n.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(ht=>{"use strict";var r0=ht&&ht.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),wc=ht&&ht.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&r0(e,t,r)};Object.defineProperty(ht,"__esModule",{value:!0});wc(Cp(),ht);wc(bp(),ht);wc(Pp(),ht)});var Mp=o(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.ActionStatusType=void 0;var Rp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Rp||(On.ActionStatusType=Rp={}))});var qp=o(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ActionType=void 0;var Ip;(function(t){t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.AddAction="AddAction",t.DeleteAction="DeleteAction",t.ReplaceAction="ReplaceAction",t.UpdateAction="UpdateAction",t.InformAction="InformAction",t.UseAction="UseAction"})(Ip||(Tn.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 Fp=o(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.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.AggregateScheduledTask="AggregateScheduledTask",t.AggregateUseAction="AggregateUseAction"})(Dp||(En.AggregationType=Dp={}))});var kp=o(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0})});var Gp=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.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||(Cn.CategorySetIdentifier=Bp={}))});var Rc=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.CertificationStatusEnumeration=void 0;var $p;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})($p||(gn.CertificationStatusEnumeration=$p={}))});var Wp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var zp=o(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0})});var Yp=o(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.AboutIdentifier=void 0;var Jp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Jp||(bn.AboutIdentifier=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var iv=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(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var Mc=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.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||(An.CreativeWorkType=uv={}))});var lv=o(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var Ev=o(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.Video=ue.Text=ue.Multipart=ue.Model=ue.Message=ue.Image=ue.Example=ue.Font=ue.Audio=ue.Application=void 0;var fv;(function(t){t.pdf="application/pdf",t.json="application/json"})(fv||(ue.Application=fv={}));var hv;hv||(ue.Audio=hv={});var yv;yv||(ue.Font=yv={});var pv;pv||(ue.Example=pv={});var vv;vv||(ue.Image=vv={});var Sv;Sv||(ue.Message=Sv={});var mv;mv||(ue.Model=mv={});var _v;_v||(ue.Multipart=_v={});var Ov;(function(t){t.csv="text/csv"})(Ov||(ue.Text=Ov={}));var Tv;Tv||(ue.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(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.EventStatusType=void 0;var Rv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Rv||(Pn.EventStatusType=Rv={}))});var qc=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.EventType=void 0;var Mv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Mv||(wn.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 Fv=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.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||(Rn.ItemAvailability=Dv={}))});var kv=o(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Nc=o(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.MerchantReturnEnumeration=Tt.ReturnFeesEnumeration=Tt.RefundTypeEnumeration=void 0;var Bv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Bv||(Tt.RefundTypeEnumeration=Bv={}));var Gv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Gv||(Tt.ReturnFeesEnumeration=Gv={}));var $v;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})($v||(Tt.MerchantReturnEnumeration=$v={}))});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var zv=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.CategorySetIdentifier=void 0;var Hv;(function(t){t.MovieTicketType="MovieTicketType"})(Hv||(Mn.CategorySetIdentifier=Hv={}))});var Yv=o(Vv=>{"use strict";Object.defineProperty(Vv,"__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(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.OfferItemCondition=void 0;var rS;(function(t){t.NewCondition="NewCondition"})(rS||(In.OfferItemCondition=rS={}))});var jc=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.OfferType=void 0;var iS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(iS||(qn.OfferType=iS={}))});var oS=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.OrderType=void 0;var sS;(function(t){t.Order="Order"})(sS||(Nn.OrderType=sS={}))});var xc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.OrderType=void 0;var n0=oS();Object.defineProperty(jn,"OrderType",{enumerable:!0,get:function(){return n0.OrderType}})});var Uc=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.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||(xn.OrderStatus=aS={}))});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var Dc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.OrganizationType=void 0;var dS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(dS||(Un.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 Fc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.PaymentStatusType=void 0;var SS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(SS||(Dn.PaymentStatusType=SS={}))});var _S=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.PermitType=void 0;var mS;(function(t){t.Permit="Permit"})(mS||(Fn.PermitType=mS={}))});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var Lc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.PersonType=void 0;var ES;(function(t){t.Person="Person"})(ES||(Ln.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(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.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||(kn.PlaceType=NS={}))});var xS=o(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0})});var Bc=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.PriceCurrency=void 0;var US;(function(t){t.JPY="JPY"})(US||(Bn.PriceCurrency=US={}))});var FS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var Gc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.PriceSpecificationType=void 0;var LS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(LS||(Gn.PriceSpecificationType=LS={}))});var $c=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.ProductType=void 0;var kS;(function(t){t.EventService="EventService",t.Product="Product"})(kS||($n.ProductType=kS={}))});var GS=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.ProgramMembershipType=void 0;var BS;(function(t){t.ProgramMembership="ProgramMembership"})(BS||(Kn.ProgramMembershipType=BS={}))});var KS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var HS=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PropertyValueType=void 0;var WS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(WS||(Wn.PropertyValueType=WS={}))});var VS=o(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0})});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.StringValue=void 0;var ZS;(function(t){t.Infinity="Infinity"})(ZS||(Hn.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(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.ReservationStatusType=void 0;var nm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(nm||(zn.ReservationStatusType=nm={}))});var Wc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.ReservationType=void 0;var im;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(im||(Vn.ReservationType=im={}))});var Hc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.AssetTransactionType=void 0;var sm;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(sm||(Yn.AssetTransactionType=sm={}))});var zc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SortType=void 0;var om;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(om||(Qn.SortType=om={}))});var Vc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.TaskStatus=void 0;var am;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted"})(am||(Zn.TaskStatus=am={}))});var Yc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.TransactionStatusType=void 0;var cm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(cm||(Jn.TransactionStatusType=cm={}))});var Qc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.TransactionType=void 0;var um;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(um||(Xn.TransactionType=um={}))});var Zc=o(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.UnitCode=void 0;var dm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(dm||(ei.UnitCode=dm={}))});var mm=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.RESERVED_CODE_VALUES=void 0;var ti=Hc(),lm=Rc(),jt=Mc(),ri=Ic(),fm=qc(),ot=Nc(),hm=jc(),i0=xc(),Jt=Uc(),Jc=Dc(),Ir=Fc(),s0=Lc(),Xt=kc(),o0=Bc(),qr=Gc(),ym=$c(),ni=Kc(),pm=Wc(),vm=zc(),ii=Vc(),si=Yc(),Sm=Qc(),oi=Zc();ai.RESERVED_CODE_VALUES=["AccountTitle",ti.AssetTransactionType.CancelReservation,"MoneyTransfer",ti.AssetTransactionType.Pay,ti.AssetTransactionType.Refund,ti.AssetTransactionType.Reserve,"Authorization",lm.CertificationStatusEnumeration.CertificationActive,lm.CertificationStatusEnumeration.CertificationInactive,jt.CreativeWorkType.Certification,"Comment",jt.CreativeWorkType.EmailMessage,jt.CreativeWorkType.Movie,jt.CreativeWorkType.NoteDigitalDocument,jt.CreativeWorkType.SoftwareApplication,jt.CreativeWorkType.WebApplication,jt.CreativeWorkType.WebSite,"Event",ri.EventStatusType.EventCancelled,ri.EventStatusType.EventPostponed,ri.EventStatusType.EventRescheduled,ri.EventStatusType.EventScheduled,fm.EventType.ScreeningEvent,fm.EventType.ScreeningEventSeries,ot.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ot.MerchantReturnEnumeration.MerchantReturnNotPermitted,ot.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ot.MerchantReturnEnumeration.MerchantReturnUnspecified,ot.RefundTypeEnumeration.ExchangeRefund,ot.RefundTypeEnumeration.FullRefund,ot.RefundTypeEnumeration.StoreCreditRefund,ot.ReturnFeesEnumeration.FreeReturn,ot.ReturnFeesEnumeration.RestockingFees,ot.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",hm.OfferType.AggregateOffer,hm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",i0.OrderType.Order,Jt.OrderStatus.OrderCancelled,Jt.OrderStatus.OrderDelivered,Jt.OrderStatus.OrderInTransit,Jt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Jt.OrderStatus.OrderProcessing,Jt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",Ir.PaymentStatusType.PaymentAutomaticallyApplied,Ir.PaymentStatusType.PaymentComplete,Ir.PaymentStatusType.PaymentDeclined,Ir.PaymentStatusType.PaymentDue,Ir.PaymentStatusType.PaymentPastDue,s0.PersonType.Person,Xt.PlaceType.AggregatePlace,Xt.PlaceType.MovieTheater,Xt.PlaceType.Place,Xt.PlaceType.ScreeningRoom,Xt.PlaceType.ScreeningRoomSection,Xt.PlaceType.Seat,o0.PriceCurrency.JPY,qr.PriceSpecificationType.CategoryCodeChargeSpecification,qr.PriceSpecificationType.CompoundPriceSpecification,qr.PriceSpecificationType.MovieTicketTypeChargeSpecification,qr.PriceSpecificationType.PriceSpecification,qr.PriceSpecificationType.UnitPriceSpecification,ym.ProductType.EventService,ym.ProductType.Product,ni.ReservationStatusType.ReservationCancelled,ni.ReservationStatusType.ReservationConfirmed,ni.ReservationStatusType.ReservationPending,"ReservationHold",ni.ReservationStatusType.ReservationPending,"BusReservation",pm.ReservationType.EventReservation,pm.ReservationType.ReservationPackage,vm.SortType.Ascending,vm.SortType.Descending,ii.TaskStatus.Aborted,ii.TaskStatus.Executed,ii.TaskStatus.Ready,ii.TaskStatus.Running,si.TransactionStatusType.Canceled,si.TransactionStatusType.Confirmed,si.TransactionStatusType.Expired,si.TransactionStatusType.InProgress,Sm.TransactionType.PlaceOrder,Sm.TransactionType.ReturnOrder,oi.UnitCode.Ann,oi.UnitCode.C62,oi.UnitCode.Day,oi.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Om=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.RoleType=void 0;var _m;(function(t){t.OrganizationRole="OrganizationRole"})(_m||(ci.RoleType=_m={}))});var Em=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.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",t.AdminInventoryManagerPreview="admin.inventoryManagerPreview"})(Tm||(ui.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(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PaymentServiceType=void 0;var Rm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Rm||(di.PaymentServiceType=Rm={}))});var qm=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Identifier=void 0;var Im;(function(t){t.COA="COA",t.Chevre="Chevre"})(Im||(li.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 Fm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Hm=o(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0})});var Vm=o(zm=>{"use strict";Object.defineProperty(zm,"__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 i_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(s_=>{"use strict";Object.defineProperty(s_,"__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 F_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var H_=o(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var V_=o(z_=>{"use strict";Object.defineProperty(z_,"__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 iO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(sO=>{"use strict";Object.defineProperty(sO,"__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(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.TaskName=void 0;var PO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.ConfirmReturnOrder="confirmReturnOrder",t.CreateAccountingReport="createAccountingReport",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(PO||(fi.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 FO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Reason=void 0;var LO;(function(t){t.Customer="Customer",t.Seller="Seller"})(LO||(hi.Reason=LO={}))});var Re=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.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||(yi.ErrorCode=BO={}))});var Me=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};pi.ChevreError=Xc});var GO=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.AlreadyInUseError=void 0;var a0=Re(),c0=Me(),eu=class extends c0.ChevreError{entityName;fieldNames;constructor(e,r,n){let i=n;(n===void 0||n.length===0)&&(i=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(a0.ErrorCode.AlreadyInUse,i),this.entityName=e,this.fieldNames=r}};vi.AlreadyInUseError=eu});var $O=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ArgumentError=void 0;var u0=Re(),d0=Me(),tu=class extends d0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(u0.ErrorCode.Argument,n),this.argumentName=e}};Si.ArgumentError=tu});var KO=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.ArgumentNullError=void 0;var l0=Re(),f0=Me(),ru=class extends f0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(l0.ErrorCode.ArgumentNull,n),this.argumentName=e}};mi.ArgumentNullError=ru});var WO=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ForbiddenError=void 0;var h0=Re(),y0=Me(),nu=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(h0.ErrorCode.Forbidden,r)}};_i.ForbiddenError=nu});var HO=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.GatewayTimeoutError=void 0;var p0=Re(),v0=Me(),iu=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(p0.ErrorCode.GatewayTimeout,r)}};Oi.GatewayTimeoutError=iu});var zO=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.InternalError=void 0;var S0=Re(),m0=Me(),su=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(S0.ErrorCode.Internal,r)}};Ti.InternalError=su});var VO=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.NotFoundError=void 0;var _0=Re(),O0=Me(),ou=class extends O0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(_0.ErrorCode.NotFound,n),this.entityName=e}};Ei.NotFoundError=ou});var YO=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.NotImplementedError=void 0;var T0=Re(),E0=Me(),au=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(T0.ErrorCode.NotImplemented,r)}};Ci.NotImplementedError=au});var QO=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.RateLimitExceededError=void 0;var C0=Re(),g0=Me(),cu=class extends g0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(C0.ErrorCode.RateLimitExceeded,r)}};gi.RateLimitExceededError=cu});var ZO=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.ServiceUnavailableError=void 0;var b0=Re(),A0=Me(),uu=class extends A0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(b0.ErrorCode.ServiceUnavailable,r)}};bi.ServiceUnavailableError=uu});var JO=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.UnauthorizedError=void 0;var P0=Re(),w0=Me(),du=class extends w0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(P0.ErrorCode.Unauthorized,r)}};Ai.UnauthorizedError=du});var XO=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.UnknownError=void 0;var R0=Re(),M0=Me(),lu=class extends M0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(R0.ErrorCode.Unknown,r)}};Pi.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 I0=GO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return I0.AlreadyInUseError}});var q0=$O();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return q0.ArgumentError}});var N0=KO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return N0.ArgumentNullError}});var j0=Me();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return j0.ChevreError}});var x0=WO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return x0.ForbiddenError}});var U0=HO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return U0.GatewayTimeoutError}});var D0=zO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return D0.InternalError}});var F0=VO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return F0.NotFoundError}});var L0=YO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return L0.NotImplementedError}});var k0=QO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return k0.RateLimitExceededError}});var B0=ZO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return B0.ServiceUnavailableError}});var G0=JO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return G0.UnauthorizedError}});var $0=XO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return $0.UnknownError}})});var nT=o(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.StepIdentifier=er.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||(er.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||(er.StepIdentifier=rT={}))});var _T=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});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.acceptedOffer=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=O.person=void 0;O.waiter=vy();O.cognito=my();var K0=Oy(),W0=Ey(),H0=gy(),z0=Ay(),V0=Ry(),Y0=qy(),Q0=jy(),Z0=Uy(),J0=Fy(),X0=ky(),eR=Gy(),tR=Ky(),rR=Hy(),nR=Vy(),iR=Qy(),sR=Jy(),oR=ep(),aR=rp(),cR=ip(),uR=op(),dR=cp(),lR=dp(),fR=fp(),hR=yp(),yR=Sp(),pR=_p(),vR=Tp(),SR=wp(),mR=Mp(),_R=qp(),OR=jp(),TR=Up(),ER=Fp(),CR=kp(),gR=Gp(),bR=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return bR.CertificationStatusEnumeration}});var AR=Wp(),PR=zp(),wR=Yp(),RR=Zp(),MR=Xp(),IR=tv(),qR=iv(),NR=ov(),jR=cv(),xR=Mc(),UR=lv(),DR=Ev(),FR=gv();O.entryPoint=FR;var LR=Av();O.eventSeries=wv();var kR=Ic(),BR=qc(),GR=qv(),$R=jv(),KR=Uv(),WR=Fv(),HR=kv(),zR=Nc(),VR=Wv(),YR=zv();O.offer=Yv();O.aggregateOffer=Zv();O.eventOffer=Xv();var QR=tS(),ZR=nS(),JR=jc();O.order=xc();var XR=Uc(),eM=uS(),tM=Dc(),rM=fS(),nM=yS(),iM=vS(),sM=Fc(),oM=_S(),aM=TS(),cM=Lc(),uM=gS(),dM=AS(),lM=wS(),fM=MS(),hM=qS(),yM=kc(),pM=xS();O.potentialAction=pM;var vM=Bc(),SM=FS(),mM=Gc(),_M=$c(),OM=GS();O.project=KS();var TM=HS(),EM=VS(),CM=QS(),gM=JS(),bM=em(),AM=rm(),PM=Kc(),wM=Wc(),RM=mm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return RM.RESERVED_CODE_VALUES}});var MM=Om(),IM=Em(),qM=gm(),NM=Am(),jM=wm(),xM=Mm(),UM=qm(),DM=jm(),FM=zc(),LM=Um(),kM=Zc();O.unitPriceOffer=Fm();var BM=km(),GM=Gm(),$M=Km(),KM=Hm(),WM=Vm(),HM=Qm(),zM=Jm(),VM=e_(),YM=r_(),QM=i_(),ZM=o_(),JM=c_(),XM=d_(),eI=f_(),tI=y_(),rI=v_(),nI=m_(),iI=O_(),sI=E_(),oI=g_(),aI=A_(),cI=w_(),uI=M_(),dI=q_(),lI=j_(),fI=U_(),hI=F_(),yI=k_(),pI=G_(),vI=K_(),SI=H_(),mI=V_(),_I=Q_(),OI=J_(),TI=eO(),EI=rO(),CI=iO(),gI=oO(),bI=cO(),AI=dO(),PI=fO(),wI=yO(),RI=vO(),MI=mO(),II=OO(),qI=EO(),NI=gO(),jI=AO(),xI=wO(),UI=Vc(),DI=MO(),FI=qO(),LI=jO(),kI=UO(),BI=Hc(),GI=Yc(),$I=FO(),KI=kO(),WI=Qc(),HI=Re();O.errors=eT();O.recipe=nT();O.errorCode=HI.ErrorCode;O.acceptedOffer=K0;O.actionStatusType=mR.ActionStatusType;O.actionType=_R.ActionType;var iT;(function(t){let e;(function(y){y.coaOffer=W0,y.pay=H0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(b){b.any=Y0})(S=y.paymentMethod||(y.paymentMethod={}));let _;(function(b){b.eventService=V0})(_=y.offer||(y.offer={})),y.invoice=z0,y.ticketedObject=Q0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=Z0,y.reservation=J0})(n=t.cancel||(t.cancel={}));let i;(function(y){let S;(function(_){_.movieTicket=X0})(S=y.paymentMethod||(y.paymentMethod={}))})(i=t.check||(t.check={})),t.create=tR;let s;(function(y){let S;(function(_){_.pay=rR,_.reservation=nR})(S=y.confirm||(y.confirm={})),y.inform=iR})(s=t.interact||(t.interact={}));let c;(function(y){y.order=oR,y.pay=aR,y.refund=cR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(b){b.invoice=uR,b.order=dR,b.reserveTransaction=lR})(S=y.returnAction||(y.returnAction={}));let _;(function(b){let M;(function(w){w.email=fR})(M=b.message||(b.message={})),b.order=hR})(_=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=yR,y.deleteAction=pR,y.replace=vR,y.update=SR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(_){_.reservation=eR})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=sR})(iT||(O.action=iT={}));O.accountTitle=OR;O.additionalProperty=TR;O.aggregation=ER;O.authorization=CR;O.categoryCode=gR;O.clientUser=AR;var sT;(function(t){let e;(function(i){i.softwareApplication=PR,i.webApplication=wR,i.webSite=RR})(e=t.certification||(t.certification={}));let r;(function(i){i.email=MR})(r=t.message||(t.message={})),t.movie=IR,t.noteDigitalDocument=qR;let n;(function(i){i.softwareApplication=NR,i.webApplication=jR})(n=t.softwareApplication||(t.softwareApplication={}))})(sT||(O.creativeWork=sT={}));O.creativeWorkType=xR.CreativeWorkType;O.customer=UR;var oT;(function(t){t.screeningEvent=LR})(oT||(O.event=oT={}));O.encodingFormat=DR;O.eventStatusType=kR.EventStatusType;O.eventType=BR.EventType;O.iam=GR;O.identityProvider=$R;O.invoice=KR;O.itemAvailability=WR.ItemAvailability;O.language=HR;O.merchantReturnPolicy=zR;O.monetaryAmount=VR;O.movieTicketType=YR;var aT;(function(t){t.event=KM,t.eventSeries=WM,t.order=VM,t.reservation=eI,t.payAction=YM,t.refundAction=XM,t.accountTitle=BM,t.categoryCode=GM,t.creativeWork=$M,t.offer=HM,t.offerCatalog=zM,t.person=QM,t.place=ZM,t.product=JM,t.task=tI})(aT||(O.notification=aT={}));O.offerCatalog=QR;O.offerItemCondition=ZR;O.offerType=JR.OfferType;O.orderStatus=XR.OrderStatus;O.organization=eM;O.organizationType=tM.OrganizationType;O.ownershipInfo=rM;var cT;(function(t){let e;(function(r){r.creditCard=nM,r.movieTicket=iM})(e=t.paymentCard||(t.paymentCard={}))})(cT||(O.paymentMethod=cT={}));O.paymentStatusType=sM.PaymentStatusType;O.permit=oM;O.person=aM;O.personType=cM.PersonType;O.priceCurrency=vM.PriceCurrency;var uT;(function(t){t.entranceGate=uM,t.movieTheater=dM,t.screeningRoom=lM,t.screeningRoomSection=fM,t.seat=hM})(uT||(O.place=uT={}));O.placeType=yM.PlaceType;var dT;(function(t){t.unitPrice=SM})(dT||(O.priceSpecification=dT={}));O.priceSpecificationType=mM.PriceSpecificationType;O.programMembership=OM;O.product=_M;var lT;(function(t){t.PropertyValueType=TM.PropertyValueType,t.locationFeatureSpecification=EM})(lT||(O.propertyValue=lT={}));O.qualitativeValue=CM;O.quantitativeValue=gM;var fT;(function(t){t.accountingReport=bM})(fT||(O.report=fT={}));var hT;(function(t){t.eventReservation=AM})(hT||(O.reservation=hT={}));O.reservationStatusType=PM.ReservationStatusType;O.reservationType=wM.ReservationType;var yT;(function(t){t.RoleType=MM.RoleType,t.organizationRole=IM})(yT||(O.role=yT={}));O.schedule=qM;O.seller=NM;O.sellerReturnPolicy=jM;var pT;(function(t){t.acceptCOAOffer=rI,t.aggregateOffers=nI,t.aggregateOnSystem=iI,t.aggregateScreeningEvent=sI,t.authorizePayment=oI,t.cancelPendingReservation=aI,t.cancelReservation=cI,t.checkMovieTicket=uI,t.checkResource=dI,t.createAccountingReport=hI,t.confirmReserveTransaction=lI,t.confirmReturnOrder=fI,t.deleteTransaction=yI,t.handleNotification=pI,t.importEventCapacitiesFromCOA=vI,t.importEventsFromCOA=SI,t.importOffersFromCOA=mI,t.invalidatePaymentUrl=_I,t.onAssetTransactionStatusChanged=OI,t.pay=bI,t.publishPaymentUrl=AI,t.refund=PI,t.reserve=wI,t.sendEmailMessage=RI,t.syncResourcesFromCOA=MI,t.triggerWebhook=II,t.useReservation=qI,t.voidPayment=NI,t.onAuthorizationCreated=TI,t.onEventChanged=EI,t.onResourceDeleted=CI,t.onResourceUpdated=gI,t.voidReserveTransaction=jI})(pT||(O.task=pT={}));var vT;(function(t){t.paymentService=xM,t.webAPI=UM})(vT||(O.service=vT={}));O.serviceChannel=DM;O.sortType=FM.SortType;O.taskName=xI.TaskName;O.taskStatus=UI.TaskStatus;O.thing=LM;var ST;(function(t){t.cancelReservation=DI,t.pay=FI,t.refund=LI,t.reserve=kI})(ST||(O.assetTransaction=ST={}));var mT;(function(t){t.placeOrder=$I,t.returnOrder=KI})(mT||(O.transaction=mT={}));O.transactionType=WI.TransactionType;O.transactionStatusType=GI.TransactionStatusType;O.assetTransactionType=BI.AssetTransactionType;O.unitCode=kM.UnitCode});var OT=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.ChevreFactory=void 0;wi.ChevreFactory=_T()});var Y=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.factory=void 0;var zI=OT();Object.defineProperty(Ri,"factory",{enumerable:!0,get:function(){return zI.ChevreFactory}})});var ET=o((T2,TT)=>{var tr=1e3,rr=tr*60,nr=rr*60,xt=nr*24,VI=xt*7,YI=xt*365.25;TT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return QI(t);if(r==="number"&&isFinite(t))return e.long?JI(t):ZI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function QI(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*YI;case"weeks":case"week":case"w":return r*VI;case"days":case"day":case"d":return r*xt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*rr;case"seconds":case"second":case"secs":case"sec":case"s":return r*tr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ZI(t){var e=Math.abs(t);return e>=xt?Math.round(t/xt)+"d":e>=nr?Math.round(t/nr)+"h":e>=rr?Math.round(t/rr)+"m":e>=tr?Math.round(t/tr)+"s":t+"ms"}function JI(t){var e=Math.abs(t);return e>=xt?Mi(t,e,xt,"day"):e>=nr?Mi(t,e,nr,"hour"):e>=rr?Mi(t,e,rr,"minute"):e>=tr?Mi(t,e,tr,"second"):t+" ms"}function Mi(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var gT=o((E2,CT)=>{function XI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=i,r.enabled=d,r.humanize=ET(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let _=0;_<y.length;_++)S=(S<<5)-S+y.charCodeAt(_),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,_=null,b,M;function w(...q){if(!w.enabled)return;let N=w,C=Number(new Date),R=C-(S||C);N.diff=R,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,W)=>{if(K==="%%")return"%";D++;let j=r.formatters[W];if(typeof j=="function"){let $=q[D];K=j.call(N,$),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}return w.namespace=y,w.useColors=r.useColors(),w.color=r.selectColor(y),w.extend=n,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(b!==r.namespaces&&(b=r.namespaces,M=r.enabled(y)),M),set:q=>{_=q}}),typeof r.init=="function"&&r.init(w),w}function n(y,S){let _=r(this.namespace+(typeof S>"u"?":":S)+y);return _.log=this.log,_}function i(y){r.save(y),r.namespaces=y,r.names=[],r.skips=[];let S=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let _ of S)_[0]==="-"?r.skips.push(_.slice(1)):r.names.push(_)}function s(y,S){let _=0,b=0,M=-1,w=0;for(;_<y.length;)if(b<S.length&&(S[b]===y[_]||S[b]==="*"))S[b]==="*"?(M=b,w=_,b++):(_++,b++);else if(M!==-1)b=M+1,w++,_=w;else return!1;for(;b<S.length&&S[b]==="*";)b++;return b===S.length}function c(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(s(y,S))return!1;for(let S of r.names)if(s(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}CT.exports=XI});var ir=o((Ie,Ii)=>{Ie.formatArgs=tq;Ie.save=rq;Ie.load=nq;Ie.useColors=eq;Ie.storage=iq();Ie.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`."))}})();Ie.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 eq(){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 tq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ii.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Ie.log=console.debug||console.log||(()=>{});function rq(t){try{t?Ie.storage.setItem("debug",t):Ie.storage.removeItem("debug")}catch{}}function nq(){let t;try{t=Ie.storage.getItem("debug")||Ie.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function iq(){try{return localStorage}catch{}}Ii.exports=gT()(Ie);var{formatters:sq}=Ii.exports;sq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var bT=o((C2,oq)=>{oq.exports={name:"@cinerino/sdk",version:"18.3.0-alpha.9",description:"Cinerino SDK",main:"./lib/index.js",browser:{"./lib/index.js":"./lib/browser.js",crypto:!1},types:"./lib/index.d.ts",files:["lib"],scripts:{build:"npm run build:node && npm run build:browser","build:node":"tsc","build:browser:browserify":"browserify ./bundle.js -o ./lib/bundle.js","build:browser":"esbuild ./bundle.js --bundle --minify --sourcemap --outfile=./lib/bundle.js --platform=browser","build:watch":'tsc && concurrently "tsc -w" "npm run esbuild:watch"',watchify:"watchify ./bundle.js -o ./lib/bundle.js","esbuild:watch":"esbuild ./bundle.js --bundle --outfile=./lib/bundle.js --platform=browser --watch","build:example":"tsc --watch --project tsconfig.example.json --declaration false",clean:'rimraf ./lib "npm-debug.log*" ./docs ./coverage ./.nyc_output ./example/dst',example:"copyfiles ./lib/bundle.js ./example/browser && http-server ./example/browser",playground:"copyfiles ./lib/bundle.js ./example/playground/public && node ./example/playground/app.js","check:all":"npm run clean && npm run build && npm test",coverage:"vitest run --coverage",test:"npm run eslint && npm run coverage",eslint:"eslint src/**/*.ts example/src/**/*.ts",vitest:"vitest",preversion:"npm run check:all",version:"git add -A",postversion:"git push origin --tags",prepublishOnly:"npm run clean && npm run build"},repository:{type:"git",url:"https://github.com/cinerino/sdk.git"},keywords:[],author:{name:"Motionpicture co.,ltd."},contributors:[{email:"yamazaki@motionpicture.jp",name:"Tetsu Yamazaki"}],license:"UNLICENSED",devDependencies:{"@eslint/js":"9.39.4","@types/debug":"4.1.13","@types/node":"22.19.15","@types/open":"^6.2.1","@types/qs":"6.9.18","@vitest/coverage-v8":"4.1.4","@vitest/ui":"4.1.4",browserify:"16.5.2",concurrently:"9.2.1",copyfiles:"^2.3.0",esbuild:"0.28.0",eslint:"9.39.4","http-server":"^0.11.1",moment:"2.30.1","moment-timezone":"0.6.0",open:"^8.2.1",rimraf:"^2.7.1",typescript:"5.9.3","typescript-eslint":"8.57.2",undici:"7.24.6",vitest:"4.1.4",watchify:"3.11.1"},dependencies:{"@chevre/factory":"11.1.0-alpha.11",debug:"4.4.3","http-status":"2.1.0","idtoken-verifier":"2.2.4",qs:"6.12.1"}}});var qi=o(Ue=>{"use strict";var aq=Ue&&Ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.StubTransporter=Ue.DefaultTransporter=Ue.RequestError=Ue.Transporter=void 0;var cq=aq(ir()),AT=(0,cq.default)("cinerino-sdk:transporters"),fu={name:"unknown",version:"unknown"};try{fu=bT()}catch{}var uq=[typeof process<"u"?process.env.GAE_APPLICATION:void 0,typeof process<"u"?process.env.GAE_SERVICE:void 0,typeof process<"u"?process.env.GAE_VERSION:void 0].filter(t=>typeof t=="string"&&t.trim().length>0),dq=[...uq,`${fu.name}/${fu.version}`].join(" "),hu=class{};Ue.Transporter=hu;var sr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};Ue.RequestError=sr;var yu=class t{static USER_AGENT=dq;expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){if(typeof window>"u"&&typeof process<"u"){let n=new Headers(e.headers),i=n.get("user-agent");i?i.includes(t.USER_AGENT)||n.set("user-agent",`${i} ${t.USER_AGENT}`):n.set("user-agent",t.USER_AGENT),e.headers=n}return e}async fetch(e,r){let n=t.CONFIGURE(r);return AT("fetching...",e,n),fetch(e,n).then(async i=>this.wrapCallback(i))}async wrapCallback(e){let r=new sr("An unexpected error occurred");if(AT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new sr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new sr(n),r.code=e.status,r.errors=[])}else return e;throw r}};Ue.DefaultTransporter=yu;var pu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};Ue.StubTransporter=pu});var wT=o(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});var I={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},PT=or.a={classes:I,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":I.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":I.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":I.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":I.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":I.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":I.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":I.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":I.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":I.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":I.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":I.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":I.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":I.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":I.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":I.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":I.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":I.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":I.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":I.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":I.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":I.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":I.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":I.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":I.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":I.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":I.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":I.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":I.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":I.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":I.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":I.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":I.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":I.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":I.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":I.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":I.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":I.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":I.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":I.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":I.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":I.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":I.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":I.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":I.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":I.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":I.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":I.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":I.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":I.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":I.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":I.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":I.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":I.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":I.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":I.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":I.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":I.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":I.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":I.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":I.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":I.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":I.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":I.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":I.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":I.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":I.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":I.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":I.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":I.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":I.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":I.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":I.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":I.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":I.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":I.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":I.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":I.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":I.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":I.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":I.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":I.SERVER_ERROR,RAILGUN_ERROR:527}}},lq=or.b=PT;or.a=PT;or.b=lq});var g=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var RT=wT();Ni.default=RT.b;Ni.status=RT.a});var Ut=o((P2,MT)=>{"use strict";MT.exports=TypeError});var IT=o(()=>{});var Dr=o((M2,ZT)=>{var bu=typeof Map=="function"&&Map.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,xi=bu&&vu&&typeof vu.get=="function"?vu.get:null,qT=bu&&Map.prototype.forEach,Au=typeof Set=="function"&&Set.prototype,Su=Object.getOwnPropertyDescriptor&&Au?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ui=Au&&Su&&typeof Su.get=="function"?Su.get:null,NT=Au&&Set.prototype.forEach,fq=typeof WeakMap=="function"&&WeakMap.prototype,jr=fq?WeakMap.prototype.has:null,hq=typeof WeakSet=="function"&&WeakSet.prototype,xr=hq?WeakSet.prototype.has:null,yq=typeof WeakRef=="function"&&WeakRef.prototype,jT=yq?WeakRef.prototype.deref:null,pq=Boolean.prototype.valueOf,vq=Object.prototype.toString,Sq=Function.prototype.toString,mq=String.prototype.match,Pu=String.prototype.slice,Et=String.prototype.replace,_q=String.prototype.toUpperCase,xT=String.prototype.toLowerCase,KT=RegExp.prototype.test,UT=Array.prototype.concat,at=Array.prototype.join,Oq=Array.prototype.slice,DT=Math.floor,Ou=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mu=Object.getOwnPropertySymbols,Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ur=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ar||!0)?Symbol.toStringTag:null,WT=Object.prototype.propertyIsEnumerable,FT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function LT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||KT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-DT(-t):DT(t);if(n!==t){var i=String(n),s=Pu.call(e,i.length+1);return Et.call(i,r,"$&_")+"."+Et.call(Et.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Et.call(e,r,"$&_")}var Eu=IT(),kT=Eu.custom,BT=VT(kT)?kT:null,HT={__proto__:null,double:'"',single:"'"},Tq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ZT.exports=function t(e,r,n,i){var s=r||{};if(yt(s,"quoteStyle")&&!yt(HT,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=yt(s,"customInspect")?s.customInspect:!0;if(typeof c!="boolean"&&c!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return QT(e,s);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 s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Cu(e)?"[Array]":"[Object]";var S=Lq(s,n);if(typeof i>"u")i=[];else if(YT(i,e)>=0)return"[Circular]";function _(ce,ie,se){if(ie&&(i=Oq.call(i),i.push(ie)),se){var ee={depth:s.depth};return yt(s,"quoteStyle")&&(ee.quoteStyle=s.quoteStyle),t(ce,ee,n+1,i)}return t(ce,s,n+1,i)}if(typeof e=="function"&&!GT(e)){var b=Mq(e),M=ji(e,_);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(M.length>0?" { "+at.call(M,", ")+" }":"")}if(VT(e)){var w=ar?Et.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tu.call(e);return typeof e=="object"&&!ar?Nr(w):w}if(Uq(e)){for(var q="<"+xT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+zT(Eq(N[C].value),"double",s);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+xT.call(String(e.nodeName))+">",q}if(Cu(e)){if(e.length===0)return"[]";var R=ji(e,_);return S&&!Fq(R)?"["+gu(R,S)+"]":"[ "+at.call(R,", ")+" ]"}if(gq(e)){var D=ji(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!WT.call(e,"cause")?"{ ["+String(e)+"] "+at.call(UT.call("[cause]: "+_(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+at.call(D,", ")+" }"}if(typeof e=="object"&&c){if(BT&&typeof e[BT]=="function"&&Eu)return Eu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Iq(e)){var k=[];return qT&&qT.call(e,function(ce,ie){k.push(_(ie,e,!0)+" => "+_(ce,e))}),$T("Map",xi.call(e),k,S)}if(jq(e)){var K=[];return NT&&NT.call(e,function(ce){K.push(_(ce,e))}),$T("Set",Ui.call(e),K,S)}if(qq(e))return _u("WeakMap");if(xq(e))return _u("WeakSet");if(Nq(e))return _u("WeakRef");if(Aq(e))return Nr(_(Number(e)));if(wq(e))return Nr(_(Ou.call(e)));if(Pq(e))return Nr(pq.call(e));if(bq(e))return Nr(_(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Cq(e)&&!GT(e)){var W=ji(e,_),j=FT?FT(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",G=!j&&Ur&&Object(e)===e&&Ur in e?Pu.call(Ct(e),8,-1):$?"Object":"",V=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=V+(G||$?"["+at.call(UT.call([],G||[],$||[]),": ")+"] ":"");return W.length===0?Te+"{}":S?Te+"{"+gu(W,S)+"}":Te+"{ "+at.call(W,", ")+" }"}return String(e)};function zT(t,e,r){var n=r.quoteStyle||e,i=HT[n];return i+t+i}function Eq(t){return Et.call(String(t),/"/g,""")}function Dt(t){return!Ur||!(typeof t=="object"&&(Ur in t||typeof t[Ur]<"u"))}function Cu(t){return Ct(t)==="[object Array]"&&Dt(t)}function Cq(t){return Ct(t)==="[object Date]"&&Dt(t)}function GT(t){return Ct(t)==="[object RegExp]"&&Dt(t)}function gq(t){return Ct(t)==="[object Error]"&&Dt(t)}function bq(t){return Ct(t)==="[object String]"&&Dt(t)}function Aq(t){return Ct(t)==="[object Number]"&&Dt(t)}function Pq(t){return Ct(t)==="[object Boolean]"&&Dt(t)}function VT(t){if(ar)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Tu)return!1;try{return Tu.call(t),!0}catch{}return!1}function wq(t){if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}var Rq=Object.prototype.hasOwnProperty||function(t){return t in this};function yt(t,e){return Rq.call(t,e)}function Ct(t){return vq.call(t)}function Mq(t){if(t.name)return t.name;var e=mq.call(Sq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function YT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Iq(t){if(!xi||!t||typeof t!="object")return!1;try{xi.call(t);try{Ui.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function qq(t){if(!jr||!t||typeof t!="object")return!1;try{jr.call(t,jr);try{xr.call(t,xr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Nq(t){if(!jT||!t||typeof t!="object")return!1;try{return jT.call(t),!0}catch{}return!1}function jq(t){if(!Ui||!t||typeof t!="object")return!1;try{Ui.call(t);try{xi.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function xq(t){if(!xr||!t||typeof t!="object")return!1;try{xr.call(t,xr);try{jr.call(t,jr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Uq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function QT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return QT(Pu.call(t,0,e.maxStringLength),e)+n}var i=Tq[e.quoteStyle||"single"];i.lastIndex=0;var s=Et.call(Et.call(t,i,"\\$1"),/[\x00-\x1f]/g,Dq);return zT(s,"single",e)}function Dq(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":"")+_q.call(e.toString(16))}function Nr(t){return"Object("+t+")"}function _u(t){return t+" { ? }"}function $T(t,e,r,n){var i=n?gu(r,n):at.call(r,", ");return t+" ("+e+") {"+i+"}"}function Fq(t){for(var e=0;e<t.length;e++)if(YT(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Lq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=at.call(Array(t.indent+1)," ");else return null;return{base:r,prev:at.call(Array(e+1),r)}}function gu(t,e){if(t.length===0)return"";var r=`
|
|
3
3
|
`+e.prev+e.base;return r+at.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function Ui(t,e){var r=Cu(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=yt(t,i)?e(t[i],t):""}var s=typeof mu=="function"?mu(t):[],c;if(ar){c={};for(var d=0;d<s.length;d++)c["$"+s[d]]=s[d]}for(var f in t)yt(t,f)&&(r&&String(Number(f))===f&&f<t.length||ar&&c["$"+f]instanceof Symbol||(KT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof mu=="function")for(var p=0;p<s.length;p++)WT.call(t,s[p])&&n.push("["+e(s[p])+"]: "+e(t[s[p]],t));return n}});var XT=o((I2,JT)=>{"use strict";var kq=Dr(),Bq=Ut(),Li=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},Gq=function(t,e){if(t){var r=Li(t,e);return r&&r.value}},$q=function(t,e,r){var n=Li(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Kq=function(t,e){return t?!!Li(t,e):!1},Wq=function(t,e){if(t)return Li(t,e,!0)};JT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Bq("Side channel does not contain "+kq(n))},delete:function(n){var i=Wq(e,n);return i&&e&&!e.next&&(e=void 0),!!i},get:function(n){return Gq(e,n)},has:function(n){return Kq(e,n)},set:function(n,i){e||(e={next:void 0}),$q(e,n,i)}};return r}});var wu=o((q2,eE)=>{"use strict";eE.exports=Object});var rE=o((N2,tE)=>{"use strict";tE.exports=Error});var iE=o((j2,nE)=>{"use strict";nE.exports=EvalError});var oE=o((x2,sE)=>{"use strict";sE.exports=RangeError});var cE=o((U2,aE)=>{"use strict";aE.exports=ReferenceError});var dE=o((D2,uE)=>{"use strict";uE.exports=SyntaxError});var fE=o((F2,lE)=>{"use strict";lE.exports=URIError});var yE=o((L2,hE)=>{"use strict";hE.exports=Math.abs});var vE=o((k2,pE)=>{"use strict";pE.exports=Math.floor});var mE=o((B2,SE)=>{"use strict";SE.exports=Math.max});var OE=o((G2,_E)=>{"use strict";_E.exports=Math.min});var EE=o(($2,TE)=>{"use strict";TE.exports=Math.pow});var bE=o((K2,CE)=>{"use strict";CE.exports=Math.round});var AE=o((W2,gE)=>{"use strict";gE.exports=Number.isNaN||function(e){return e!==e}});var wE=o((H2,PE)=>{"use strict";var Hq=AE();PE.exports=function(e){return Hq(e)||e===0?e:e<0?-1:1}});var ME=o((V2,RE)=>{"use strict";RE.exports=Object.getOwnPropertyDescriptor});var Ru=o((z2,IE)=>{"use strict";var ki=ME();if(ki)try{ki([],"length")}catch{ki=null}IE.exports=ki});var NE=o((Y2,qE)=>{"use strict";var Bi=Object.defineProperty||!1;if(Bi)try{Bi({},"a",{value:1})}catch{Bi=!1}qE.exports=Bi});var xE=o((Q2,jE)=>{"use strict";jE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==i||d.enumerable!==!0)return!1}return!0}});var FE=o((Z2,DE)=>{"use strict";var UE=typeof Symbol<"u"&&Symbol,Vq=xE();DE.exports=function(){return typeof UE!="function"||typeof Symbol!="function"||typeof UE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vq()}});var Mu=o((J2,LE)=>{"use strict";LE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Iu=o((X2,kE)=>{"use strict";var zq=wu();kE.exports=zq.getPrototypeOf||null});var $E=o((e3,GE)=>{"use strict";var Yq="Function.prototype.bind called on incompatible ",Qq=Object.prototype.toString,Zq=Math.max,Jq="[object Function]",BE=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<r.length;s+=1)n[s+e.length]=r[s];return n},Xq=function(e,r){for(var n=[],i=r||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},e1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};GE.exports=function(e){var r=this;if(typeof r!="function"||Qq.apply(r)!==Jq)throw new TypeError(Yq+r);for(var n=Xq(arguments,1),i,s=function(){if(this instanceof i){var y=r.apply(this,BE(n,arguments));return Object(y)===y?y:this}return r.apply(e,BE(n,arguments))},c=Zq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(i=Function("binder","return function ("+e1(d,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i}});var Fr=o((t3,KE)=>{"use strict";var t1=$E();KE.exports=Function.prototype.bind||t1});var Gi=o((r3,WE)=>{"use strict";WE.exports=Function.prototype.call});var qu=o((n3,HE)=>{"use strict";HE.exports=Function.prototype.apply});var zE=o((i3,VE)=>{"use strict";VE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var QE=o((s3,YE)=>{"use strict";var r1=Fr(),n1=qu(),i1=Gi(),s1=zE();YE.exports=s1||r1.call(i1,n1)});var Nu=o((o3,ZE)=>{"use strict";var o1=Fr(),a1=Ut(),c1=Gi(),u1=QE();ZE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new a1("a function is required");return u1(o1,c1,e)}});var nC=o((a3,rC)=>{"use strict";var d1=Nu(),JE=Ru(),eC;try{eC=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var ju=!!eC&&JE&&JE(Object.prototype,"__proto__"),tC=Object,XE=tC.getPrototypeOf;rC.exports=ju&&typeof ju.get=="function"?d1([ju.get]):typeof XE=="function"?function(e){return XE(e==null?e:tC(e))}:!1});var cC=o((c3,aC)=>{"use strict";var iC=Mu(),sC=Iu(),oC=nC();aC.exports=iC?function(e){return iC(e)}:sC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return sC(e)}:oC?function(e){return oC(e)}:null});var dC=o((u3,uC)=>{"use strict";var l1=Function.prototype.call,f1=Object.prototype.hasOwnProperty,h1=Fr();uC.exports=h1.call(l1,f1)});var Wi=o((d3,vC)=>{"use strict";var H,y1=wu(),p1=rE(),v1=iE(),S1=oE(),m1=cE(),lr=dE(),dr=Ut(),_1=fE(),O1=yE(),T1=vE(),E1=mE(),C1=OE(),b1=EE(),g1=bE(),A1=wE(),yC=Function,xu=function(t){try{return yC('"use strict"; return ('+t+").constructor;")()}catch{}},Lr=Ru(),P1=NE(),Uu=function(){throw new dr},w1=Lr?(function(){try{return arguments.callee,Uu}catch{try{return Lr(arguments,"callee").get}catch{return Uu}}})():Uu,cr=FE()(),Se=cC(),R1=Iu(),M1=Mu(),pC=qu(),kr=Gi(),ur={},I1=typeof Uint8Array>"u"||!Se?H:Se(Uint8Array),Ft={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?H:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?H:ArrayBuffer,"%ArrayIteratorPrototype%":cr&&Se?Se([][Symbol.iterator]()):H,"%AsyncFromSyncIteratorPrototype%":H,"%AsyncFunction%":ur,"%AsyncGenerator%":ur,"%AsyncGeneratorFunction%":ur,"%AsyncIteratorPrototype%":ur,"%Atomics%":typeof Atomics>"u"?H:Atomics,"%BigInt%":typeof BigInt>"u"?H:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?H:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?H:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?H:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p1,"%eval%":eval,"%EvalError%":v1,"%Float16Array%":typeof Float16Array>"u"?H:Float16Array,"%Float32Array%":typeof Float32Array>"u"?H:Float32Array,"%Float64Array%":typeof Float64Array>"u"?H:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?H:FinalizationRegistry,"%Function%":yC,"%GeneratorFunction%":ur,"%Int8Array%":typeof Int8Array>"u"?H:Int8Array,"%Int16Array%":typeof Int16Array>"u"?H:Int16Array,"%Int32Array%":typeof Int32Array>"u"?H:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cr&&Se?Se(Se([][Symbol.iterator]())):H,"%JSON%":typeof JSON=="object"?JSON:H,"%Map%":typeof Map>"u"?H:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cr||!Se?H:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":y1,"%Object.getOwnPropertyDescriptor%":Lr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?H:Promise,"%Proxy%":typeof Proxy>"u"?H:Proxy,"%RangeError%":S1,"%ReferenceError%":m1,"%Reflect%":typeof Reflect>"u"?H:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?H:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cr||!Se?H:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?H:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cr&&Se?Se(""[Symbol.iterator]()):H,"%Symbol%":cr?Symbol:H,"%SyntaxError%":lr,"%ThrowTypeError%":w1,"%TypedArray%":I1,"%TypeError%":dr,"%Uint8Array%":typeof Uint8Array>"u"?H:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?H:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?H:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?H:Uint32Array,"%URIError%":_1,"%WeakMap%":typeof WeakMap>"u"?H:WeakMap,"%WeakRef%":typeof WeakRef>"u"?H:WeakRef,"%WeakSet%":typeof WeakSet>"u"?H:WeakSet,"%Function.prototype.call%":kr,"%Function.prototype.apply%":pC,"%Object.defineProperty%":P1,"%Object.getPrototypeOf%":R1,"%Math.abs%":O1,"%Math.floor%":T1,"%Math.max%":E1,"%Math.min%":C1,"%Math.pow%":b1,"%Math.round%":g1,"%Math.sign%":A1,"%Reflect.getPrototypeOf%":M1};if(Se)try{null.error}catch(t){lC=Se(Se(t)),Ft["%Error.prototype%"]=lC}var lC,q1=function t(e){var r;if(e==="%AsyncFunction%")r=xu("async function () {}");else if(e==="%GeneratorFunction%")r=xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=xu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Se&&(r=Se(i.prototype))}return Ft[e]=r,r},fC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Br=Fr(),$i=dC(),N1=Br.call(kr,Array.prototype.concat),j1=Br.call(pC,Array.prototype.splice),hC=Br.call(kr,String.prototype.replace),Ki=Br.call(kr,String.prototype.slice),x1=Br.call(kr,RegExp.prototype.exec),U1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D1=/\\(\\)?/g,F1=function(e){var r=Ki(e,0,1),n=Ki(e,-1);if(r==="%"&&n!=="%")throw new lr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lr("invalid intrinsic syntax, expected opening `%`");var i=[];return hC(e,U1,function(s,c,d,f){i[i.length]=d?hC(f,D1,"$1"):c||s}),i},L1=function(e,r){var n=e,i;if($i(fC,n)&&(i=fC[n],n="%"+i[0]+"%"),$i(Ft,n)){var s=Ft[n];if(s===ur&&(s=q1(n)),typeof s>"u"&&!r)throw new dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new lr("intrinsic "+e+" does not exist!")};vC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dr('"allowMissing" argument must be a boolean');if(x1(/^%?[^%]*%?$/,e)===null)throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=F1(e),i=n.length>0?n[0]:"",s=L1("%"+i+"%",r),c=s.name,d=s.value,f=!1,p=s.alias;p&&(i=p[0],j1(n,N1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],g=Ki(_,0,1),M=Ki(_,-1);if((g==='"'||g==="'"||g==="`"||M==='"'||M==="'"||M==="`")&&g!==M)throw new lr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),i+="."+_,c="%"+i+"%",$i(Ft,c))d=Ft[c];else if(d!=null){if(!(_ in d)){if(!r)throw new dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(Lr&&y+1>=n.length){var w=Lr(d,_);S=!!w,S&&"get"in w&&!("originalValue"in w.get)?d=w.get:d=d[_]}else S=$i(d,_),d=d[_];S&&!f&&(Ft[c]=d)}}return d}});var Du=o((l3,_C)=>{"use strict";var SC=Wi(),mC=Nu(),k1=mC([SC("%String.prototype.indexOf%")]);_C.exports=function(e,r){var n=SC(e,!!r);return typeof n=="function"&&k1(e,".prototype.")>-1?mC([n]):n}});var Fu=o((f3,TC)=>{"use strict";var B1=Wi(),Gr=Du(),G1=Dr(),$1=Ut(),OC=B1("%Map%",!0),K1=Gr("Map.prototype.get",!0),W1=Gr("Map.prototype.set",!0),H1=Gr("Map.prototype.has",!0),V1=Gr("Map.prototype.delete",!0),z1=Gr("Map.prototype.size",!0);TC.exports=!!OC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new $1("Side channel does not contain "+G1(n))},delete:function(n){if(e){var i=V1(e,n);return z1(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return K1(e,n)},has:function(n){return e?H1(e,n):!1},set:function(n,i){e||(e=new OC),W1(e,n,i)}};return r}});var CC=o((h3,EC)=>{"use strict";var Y1=Wi(),Vi=Du(),Q1=Dr(),Hi=Fu(),Z1=Ut(),fr=Y1("%WeakMap%",!0),J1=Vi("WeakMap.prototype.get",!0),X1=Vi("WeakMap.prototype.set",!0),eN=Vi("WeakMap.prototype.has",!0),tN=Vi("WeakMap.prototype.delete",!0);EC.exports=fr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Z1("Side channel does not contain "+Q1(i))},delete:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return tN(e,i)}else if(Hi&&r)return r.delete(i);return!1},get:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?J1(e,i):r&&r.get(i)},has:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?eN(e,i):!!r&&r.has(i)},set:function(i,s){fr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new fr),X1(e,i,s)):Hi&&(r||(r=Hi()),r.set(i,s))}};return n}:Hi});var gC=o((y3,bC)=>{"use strict";var rN=Ut(),nN=Dr(),iN=XT(),sN=Fu(),oN=CC(),aN=oN||sN||iN;bC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new rN("Side channel does not contain "+nN(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=aN()),e.set(n,i)}};return r}});var zi=o((p3,AC)=>{"use strict";var cN=String.prototype.replace,uN=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};AC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return cN.call(t,uN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Gu=o((v3,wC)=>{"use strict";var dN=zi(),ku=Object.prototype.hasOwnProperty,Lt=Array.isArray,ct=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),lN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},PC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},fN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!ku.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return Lt(e)&&!Lt(r)&&(i=PC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(s,c){if(ku.call(e,c)){var d=e[c];d&&typeof d=="object"&&s&&typeof s=="object"?e[c]=t(d,s,n):e.push(s)}else e[c]=s}),e):Object.keys(r).reduce(function(s,c){var d=r[c];return ku.call(s,c)?s[c]=t(s[c],d,n):s[c]=d,s},i)},hN=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},yN=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bu=1024,pN=function(e,r,n,i,s){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=Bu){for(var p=c.length>=Bu?c.slice(f,f+Bu):c,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||s===dN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=ct[_];continue}if(_<2048){y[y.length]=ct[192|_>>6]+ct[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=ct[224|_>>12]+ct[128|_>>6&63]+ct[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=ct[240|_>>18]+ct[128|_>>12&63]+ct[128|_>>6&63]+ct[128|_&63]}d+=y.join("")}return d},vN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],c=s.obj[s.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return lN(r),e},SN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},mN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_N=function(e,r){return[].concat(e,r)},ON=function(e,r){if(Lt(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)};wC.exports={arrayToObject:PC,assign:hN,combine:_N,compact:vN,decode:yN,encode:pN,isBuffer:mN,isRegExp:SN,maybeMap:ON,merge:fN}});var jC=o((S3,NC)=>{"use strict";var MC=gC(),Yi=Gu(),$r=zi(),TN=Object.prototype.hasOwnProperty,IC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ut=Array.isArray,EN=Array.prototype.push,qC=function(t,e){EN.apply(t,ut(e)?e:[e])},CN=Date.prototype.toISOString,RC=$r.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Yi.encode,encodeValuesOnly:!1,format:RC,formatter:$r.formatters[RC],indices:!1,serializeDate:function(e){return CN.call(e)},skipNulls:!1,strictNullHandling:!1},bN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$u={},gN=function t(e,r,n,i,s,c,d,f,p,y,S,_,g,M,w,q,N,C){for(var R=e,D=C,k=0,K=!1;(D=D.get($u))!==void 0&&!K;){var W=D.get(e);if(k+=1,typeof W<"u"){if(W===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get($u)>"u"&&(k=0)}if(typeof y=="function"?R=y(r,R):R instanceof Date?R=g(R):n==="comma"&&ut(R)&&(R=Yi.maybeMap(R,function(xe){return xe instanceof Date?g(xe):xe})),R===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",M):r;R=""}if(bN(R)||Yi.isBuffer(R)){if(p){var j=q?r:p(r,pe.encoder,N,"key",M);return[w(j)+"="+w(p(R,pe.encoder,N,"value",M))]}return[w(r)+"="+w(String(R))]}var $=[];if(typeof R>"u")return $;var G;if(n==="comma"&&ut(R))q&&p&&(R=Yi.maybeMap(R,p)),G=[{value:R.length>0?R.join(",")||null:void 0}];else if(ut(y))G=y;else{var z=Object.keys(R);G=S?z.sort(S):z}var Te=f?r.replace(/\./g,"%2E"):r,ce=i&&ut(R)&&R.length===1?Te+"[]":Te;if(s&&ut(R)&&R.length===0)return ce+"[]";for(var ie=0;ie<G.length;++ie){var se=G[ie],ee=typeof se=="object"&&typeof se.value<"u"?se.value:R[se];if(!(d&&ee===null)){var Je=_&&f?se.replace(/\./g,"%2E"):se,nt=ut(R)?typeof n=="function"?n(ce,Je):ce:ce+(_?"."+Je:"["+Je+"]");C.set(e,k);var Xe=MC();Xe.set($u,C),qC($,t(ee,nt,n,i,s,c,d,f,n==="comma"&&q&&ut(R)?null:p,y,S,_,g,M,w,q,N,Xe))}}return $},AN=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=$r.default;if(typeof e.format<"u"){if(!TN.call($r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=$r.formatters[n],s=pe.filter;(typeof e.filter=="function"||ut(e.filter))&&(s=e.filter);var c;if(e.arrayFormat in IC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:c,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};NC.exports=function(t,e){var r=t,n=AN(e),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):ut(n.filter)&&(s=n.filter,i=s);var c=[];if(typeof r!="object"||r===null)return"";var d=IC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var p=MC(),y=0;y<i.length;++y){var S=i[y];n.skipNulls&&r[S]===null||qC(c,gN(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var _=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&"),_.length>0?g+_:""}});var DC=o((m3,UC)=>{"use strict";var hr=Gu(),Ku=Object.prototype.hasOwnProperty,PN=Array.isArray,le={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:hr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},xC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},RN="utf8=%26%2310003%3B",MN="utf8=%E2%9C%93",IN=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,c=i.split(r.delimiter,s),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===MN?p="utf-8":c[f]===RN&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,g,M;_===-1?(g=r.decoder(y,le.decoder,p,"key"),M=r.strictNullHandling?null:""):(g=r.decoder(y.slice(0,_),le.decoder,p,"key"),M=hr.maybeMap(xC(y.slice(_+1),r),function(q){return r.decoder(q,le.decoder,p,"value")})),M&&r.interpretNumericEntities&&p==="iso-8859-1"&&(M=wN(M)),y.indexOf("[]=")>-1&&(M=PN(M)?[M]:M);var w=Ku.call(n,g);w&&r.duplicates==="combine"?n[g]=hr.combine(n[g],M):(!w||r.duplicates==="last")&&(n[g]=M)}return n},qN=function(t,e,r,n){for(var i=n?e:xC(e,r),s=t.length-1;s>=0;--s){var c,d=t[s];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{c=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},NN=function(e,r,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(s),p=f?s.slice(0,f.index):s,y=[];if(p){if(!n.plainObjects&&Ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(s))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+s.slice(f.index)+"]"),qN(y,r,n,i)}},jN=function(e){if(!e)return le;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?le.charset:e.charset,n=typeof e.duplicates>"u"?le.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:le.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:le.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:le.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:le.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:le.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:le.decoder,delimiter:typeof e.delimiter=="string"||hr.isRegExp(e.delimiter)?e.delimiter:le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:le.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:le.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:le.strictNullHandling}};UC.exports=function(t,e){var r=jN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?IN(t,r):t,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),c=0;c<s.length;++c){var d=s[c],f=NN(d,n[d],r,typeof t=="string");i=hr.merge(i,f,r)}return r.allowSparse===!0?i:hr.compact(i)}});var Wu=o((_3,FC)=>{"use strict";var xN=jC(),UN=DC(),DN=zi();FC.exports={formats:DN,parse:UN,stringify:xN}});var E=o(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.Service=kt.RESOURCE_SELECTOR_SEPARATOR=void 0;var FN=Wu(),LN=ji();kt.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"},i=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(i)||(i+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?i=`${i}/projects/${this.options.project.id}${kt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:i=`${i}/projects/${this.options.project.id}`);let s=`${i}${n.uri}`,c=(0,FN.stringify)(n.qs,r!==void 0?r:void 0);s+=c.length>0?`?${c}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(s,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new LN.DefaultTransporter(n.expectedStatusCodes)).fetch(s,f)}};kt.Service=Hu});var LC=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.CategoryCodeService=void 0;var kN=b(),BN=E(),Vu=class extends BN.Service{async findCategoryCodes(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[kN.status.OK]}).then(async r=>r.json())}};Qi.CategoryCodeService=Vu});var kC=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.CreativeWorkService=void 0;var GN=b(),$N=E(),zu=class extends $N.Service{async findMovies(e){return this.fetch({uri:"/movies",method:"GET",qs:e,expectedStatusCodes:[GN.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Zi.CreativeWorkService=zu});var BC=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.EventService=void 0;var pt=b(),KN=E(),Yu=class extends KN.Service{async projectFieldsDeprecated(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK]}).then(async r=>r.json())}async findSubEvents(e){return this.fetch({uri:"/subEvents",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK]}).then(async r=>r.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async findSeatOffersDeprecated(e){let{id:r,limit:n,page:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/seats`,method:"GET",qs:{limit:n,page:i},expectedStatusCodes:[pt.status.OK]}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[pt.status.OK]}).then(async c=>c.json())}};Ji.EventService=Yu});var GC=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.EventOfferService=void 0;var WN=b(),HN=E(),VN="/eventOffers",Qu=class extends HN.Service{async findEventOffers(e){return this.fetch({uri:VN,method:"GET",qs:e,expectedStatusCodes:[WN.status.OK]}).then(async r=>r.json())}};Xi.EventOfferService=Qu});var $C=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.EventSeriesService=void 0;var zN=b(),YN=E(),Zu=class extends YN.Service{async findEventSeries(e){return this.fetch({uri:"/superEvents",method:"GET",qs:e,expectedStatusCodes:[zN.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};es.EventSeriesService=Zu});var KC=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.PlaceService=void 0;var Kr=b(),QN=E(),Ju=class extends QN.Service{async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[Kr.status.OK]}).then(async r=>r.json())}async findRooms(e){return this.fetch({uri:"/rooms",method:"GET",qs:e,expectedStatusCodes:[Kr.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Kr.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Kr.status.OK]}).then(async f=>f.json())}async adminFindPOS(e){let{movieTheaterId:r,limit:n,page:i}=e;return this.fetch({uri:"/pos",method:"GET",qs:{movieTheaterId:r,limit:n,page:i},expectedStatusCodes:[Kr.status.OK]}).then(async s=>s.json())}};ts.PlaceService=Ju});var WC=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ProductService=void 0;var Xu=b(),ZN=E(),ed=class extends ZN.Service{async findProducts(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Xu.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[Xu.status.OK]}).then(async i=>i.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[Xu.status.OK]}).then(async r=>r.json())}};rs.ProductService=ed});var HC=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.SeatOfferService=void 0;var JN=b(),XN=E(),ej="/seatOffers",td=class extends XN.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:ej,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[JN.status.OK]}).then(async c=>c.json())}};ns.SeatOfferService=td});var VC=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.SellerService=void 0;var is=b(),tj=E(),rd=class extends tj.Service{async findSellerById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[is.status.OK]}).then(async r=>r.json())}async findSellers(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[is.status.OK]}).then(async r=>r.json())}async findPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[is.status.OK]}).then(async i=>i.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[is.status.OK]}).then(async i=>i.json())}};ss.SellerService=rd});var zC=o(De=>{"use strict";var rj=De&&De.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nj=De&&De.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vt=De&&De.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&rj(r,e,n[i]);return nj(r,e),r}})();Object.defineProperty(De,"__esModule",{value:!0});De.Chevre=De.service=void 0;var Q;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Place||(t.Place={});let d;d=t.Product||(t.Product={});let f;f=t.SeatOffer||(t.SeatOffer={});let p;p=t.Seller||(t.Seller={})})(Q||(De.service=Q={}));var nd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return Q.CategoryCode.svc===void 0&&(Q.CategoryCode.svc=(await Promise.resolve().then(()=>vt(LC()))).CategoryCodeService),new Q.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return Q.CreativeWork.svc===void 0&&(Q.CreativeWork.svc=(await Promise.resolve().then(()=>vt(kC()))).CreativeWorkService),new Q.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return Q.Event.svc===void 0&&(Q.Event.svc=(await Promise.resolve().then(()=>vt(BC()))).EventService),new Q.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return Q.EventOffer.svc===void 0&&(Q.EventOffer.svc=(await Promise.resolve().then(()=>vt(GC()))).EventOfferService),new Q.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return Q.EventSeries.svc===void 0&&(Q.EventSeries.svc=(await Promise.resolve().then(()=>vt($C()))).EventSeriesService),new Q.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return Q.Place.svc===void 0&&(Q.Place.svc=(await Promise.resolve().then(()=>vt(KC()))).PlaceService),new Q.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return Q.Product.svc===void 0&&(Q.Product.svc=(await Promise.resolve().then(()=>vt(WC()))).ProductService),new Q.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return Q.SeatOffer.svc===void 0&&(Q.SeatOffer.svc=(await Promise.resolve().then(()=>vt(HC()))).SeatOfferService),new Q.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return Q.Seller.svc===void 0&&(Q.Seller.svc=(await Promise.resolve().then(()=>vt(VC()))).SellerService),new Q.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};De.Chevre=nd});var YC=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.OrderService=void 0;var bt=b(),ij=Y(),sj=E(),id=class extends sj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${ij.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findAcceptedOffersByConfirmationNumber(e,r){let{orderNumber:n,limit:i,page:s,confirmationNumber:c}=e,{minimizeReservationFor:d,onlyReservedTicket:f}=r;return this.fetch({uri:`/orders/${n}/acceptedOffersByConfirmationNumber`,method:"POST",body:{limit:i,page:s,confirmationNumber:c},qs:{minimizeReservationFor:d,onlyReservedTicket:f},expectedStatusCodes:[bt.status.OK]}).then(async p=>p.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())}};os.OrderService=id});var ZC=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.ReservationService=void 0;var QC=b(),oj=E(),sd=class extends oj.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())}};as.ReservationService=sd});var JC=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TokenService=void 0;var aj=E(),od=class extends aj.Service{};cs.TokenService=od});var XC=o(Fe=>{"use strict";var cj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ad=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&cj(r,e,n[i]);return uj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var et;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(et||(Fe.service=et={}));var cd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return et.Order.svc===void 0&&(et.Order.svc=(await Promise.resolve().then(()=>ad(YC()))).OrderService),new et.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return et.Reservation.svc===void 0&&(et.Reservation.svc=(await Promise.resolve().then(()=>ad(ZC()))).ReservationService),new et.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return et.Token.svc===void 0&&(et.Token.svc=(await Promise.resolve().then(()=>ad(JC()))).TokenService),new et.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=cd});var tb=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.SyncService=void 0;var eb=b(),dj=E(),ud=class extends dj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[eb.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[eb.status.ACCEPTED]}).then(async r=>r.json())}};us.SyncService=ud});var rb=o(Le=>{"use strict";var lj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hj=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&lj(r,e,n[i]);return fj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.ChevreAdmic=Le.service=void 0;var Wr;(function(t){let e;e=t.Sync||(t.Sync={})})(Wr||(Le.service=Wr={}));var dd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Wr.Sync.svc===void 0&&(Wr.Sync.svc=(await Promise.resolve().then(()=>hj(tb()))).SyncService),new Wr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.ChevreAdmic=dd});var nb=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.CustomerService=void 0;var yj=b(),pj=E(),ld=class extends pj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[yj.status.OK]}).then(async r=>r.json())}};ds.CustomerService=ld});var ib=o(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.EmailMessageService=void 0;var vj=b(),Sj=E(),fd=class extends Sj.Service{async findEmailMessages(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[vj.status.OK]}).then(async e=>e.json())}};ls.EmailMessageService=fd});var sb=o(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.EventService=void 0;var Hr=b(),mj=E(),hd=class extends mj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:i}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:i===!0},expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Hr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Hr.status.OK]}).then(async r=>r.json())}};fs.EventService=hd});var ob=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.EventOfferService=void 0;var hs=b(),_j=E(),ys="/eventOffers",yd=class extends _j.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:ys,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[hs.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:ys,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[hs.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:ys,method:"GET",qs:e,expectedStatusCodes:[hs.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${ys}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[hs.status.CREATED]}).then(async n=>n.json())}};ps.EventOfferService=yd});var ub=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.EventSeriesService=void 0;var ab=b(),Oj=E(),cb="/eventSeries",pd=class extends Oj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:i,upsert:s,useSync:c}=r;await this.fetch({uri:cb,method:"POST",body:e,qs:{locationId:n,offerType:i,upsert:s===!0,useSync:c===!0},expectedStatusCodes:[ab.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:cb,method:"GET",qs:e,expectedStatusCodes:[ab.status.OK]}).then(async r=>r.json())}};vs.EventSeriesService=pd});var lb=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.MeService=void 0;var db=b(),Tj=E(),vd=class extends Tj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[db.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:[db.status.OK]}).then(async i=>i.json())}};Ss.MeService=vd});var fb=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.MemberService=void 0;var Ej=b(),Cj=Y(),bj=E(),Sd=class extends bj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Cj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Ej.status.OK]}).then(async r=>r.json())}};ms.MemberService=Sd});var pb=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.MovieService=void 0;var hb=b(),gj=E(),yb="/movies",md=class extends gj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:yb,method:"PUT",body:e,expectedStatusCodes:[hb.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:yb,method:"GET",qs:e,expectedStatusCodes:[hb.status.OK]}).then(async r=>r.json())}};_s.MovieService=md});var Sb=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.MovieTheaterService=void 0;var Vr=b(),Aj=E(),vb="/movieTheaters",_d="/entranceGates",Od=class extends Aj.Service{async findMovieTheaters(e){return this.fetch({uri:vb,method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:vb,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:_d,method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:i})=>i)},expectedStatusCodes:[Vr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Os.MovieTheaterService=Od});var mb=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.NoteService=void 0;var Td=b(),Pj=E(),Ed="/creativeWorks/noteDigitalDocument",Cd=class extends Pj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ed,method:"GET",qs:e,expectedStatusCodes:[Td.status.OK]}).then(async r=>r.json())}};Ts.NoteService=Cd});var _b=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.NoteAboutOrderService=void 0;var bd=b(),wj=E(),gd="/orderNotes",Ad=class extends wj.Service{async upsertByIdentifier(e){await this.fetch({uri:gd,method:"PUT",body:e,expectedStatusCodes:[bd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:gd,method:"GET",qs:e,expectedStatusCodes:[bd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${gd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[bd.status.NO_CONTENT]})}};Es.NoteAboutOrderService=Ad});var Ob=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.OrderService=void 0;var zr=b(),Rj=E(),Pd=class extends Rj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[zr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async findOrderAcceptedOffers(e,r){let{minimizeReservationFor:n,onlyReservedTicket:i}=r;return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1",minimizeReservationFor:n,onlyReservedTicket:i},expectedStatusCodes:[zr.status.OK]}).then(async s=>s.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}async findAcceptedOffersByOrderNumber(e,r,n){let{minimizeReservationFor:i,onlyReservedTicket:s}=n;return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[zr.status.OK],qs:{...r,minimizeReservationFor:i,onlyReservedTicket:s}}).then(async c=>c.json())}};Cs.OrderService=Pd});var Tb=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.PaymentMethodService=void 0;var Mj=b(),Ij=E(),qj="/paymentMethods",wd=class extends Ij.Service{async findPaymentMethods(e){return this.fetch({uri:qj,method:"GET",qs:e,expectedStatusCodes:[Mj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};bs.PaymentMethodService=wd});var Cb=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ProductService=void 0;var Rd=b(),Nj=E(),Eb="/products",jj="/productHasOfferCatalog",Md=class extends Nj.Service{async upsertByProductId(e){await this.fetch({uri:Eb,method:"PUT",body:e,expectedStatusCodes:[Rd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Eb,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:jj,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}};gs.ProductService=Md});var bb=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ReservationService=void 0;var Id=b(),xj=E(),qd=class extends xj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:i}=e;await this.fetch({uri:`/reservations/${String(i?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[Id.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[Id.status.OK]}).then(async i=>i.json())}};As.ReservationService=qd});var Pb=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.RoomService=void 0;var gb=b(),Uj=E(),Ab="/rooms",Nd=class extends Uj.Service{async findRooms(e){return this.fetch({uri:Ab,method:"GET",qs:e,expectedStatusCodes:[gb.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Ab,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[gb.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ps.RoomService=Nd});var wb=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.SeatService=void 0;var jd=b(),Dj=E(),xd="/seats",Ud=class extends Dj.Service{async findSeats(e){return this.fetch({uri:xd,method:"GET",qs:e,expectedStatusCodes:[jd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:xd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:xd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ws.SeatService=Ud});var Ib=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.SeatSectionService=void 0;var Rb=b(),Fj=E(),Mb="/seatSections",Dd=class extends Fj.Service{async findSeatSections(e){return this.fetch({uri:Mb,method:"GET",qs:e,expectedStatusCodes:[Rb.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:i}=r;await this.fetch({uri:Mb,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:i},expectedStatusCodes:[Rb.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Rs.SeatSectionService=Dd});var qb=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.SellerService=void 0;var Lj=b(),kj=E(),Fd=class extends kj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Lj.status.OK]}).then(async r=>r.json())}};Ms.SellerService=Fd});var jb=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.OfferService=void 0;var Nb=b(),Bj=E(),Ld=class extends Bj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Nb.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:[Nb.status.NO_CONTENT]})}};Is.OfferService=Ld});var xb=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.OfferCatalogService=void 0;var Gj=b(),$j=E(),kd=class extends $j.Service{async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s,itemListElementType:c},expectedStatusCodes:[Gj.status.NO_CONTENT]})}};qs.OfferCatalogService=kd});var Db=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.OfferCatalogItemService=void 0;var Ub=b(),Kj=E(),Bd=class extends Kj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ub.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s},expectedStatusCodes:[Ub.status.NO_CONTENT]})}};Ns.OfferCatalogItemService=Bd});var Fb=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.CancelReservationAssetTransactionService=void 0;var Wj=b(),Hj=E(),Gd=class extends Hj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Wj.status.NO_CONTENT]})}};js.CancelReservationAssetTransactionService=Gd});var Lb=o(ke=>{"use strict";var Vj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oe=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&Vj(r,e,n[i]);return zj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmin=ke.service=void 0;var x;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.EmailMessage||(t.EmailMessage={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Me||(t.Me={});let d;d=t.Member||(t.Member={});let f;f=t.Movie||(t.Movie={});let p;p=t.MovieTheater||(t.MovieTheater={});let y;y=t.Note||(t.Note={});let S;S=t.NoteAboutOrder||(t.NoteAboutOrder={});let _;_=t.Order||(t.Order={});let g;g=t.PaymentMethod||(t.PaymentMethod={});let M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Room||(t.Room={});let N;N=t.Seat||(t.Seat={});let C;C=t.SeatSection||(t.SeatSection={});let R;R=t.Seller||(t.Seller={});let D;D=t.Offer||(t.Offer={});let k;k=t.OfferCatalog||(t.OfferCatalog={});let K;K=t.OfferCatalogItem||(t.OfferCatalogItem={});let W;(function(j){let $;$=j.CancelReservation||(j.CancelReservation={})})(W=t.assetTransaction||(t.assetTransaction={}))})(x||(ke.service=x={}));var $d=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return x.Customer.svc===void 0&&(x.Customer.svc=(await Promise.resolve().then(()=>oe(nb()))).CustomerService),new x.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return x.EmailMessage.svc===void 0&&(x.EmailMessage.svc=(await Promise.resolve().then(()=>oe(ib()))).EmailMessageService),new x.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return x.Event.svc===void 0&&(x.Event.svc=(await Promise.resolve().then(()=>oe(sb()))).EventService),new x.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return x.EventOffer.svc===void 0&&(x.EventOffer.svc=(await Promise.resolve().then(()=>oe(ob()))).EventOfferService),new x.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return x.EventSeries.svc===void 0&&(x.EventSeries.svc=(await Promise.resolve().then(()=>oe(ub()))).EventSeriesService),new x.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return x.Me.svc===void 0&&(x.Me.svc=(await Promise.resolve().then(()=>oe(lb()))).MeService),new x.Me.svc({...this.options})}async createMemberInstance(e){return x.Member.svc===void 0&&(x.Member.svc=(await Promise.resolve().then(()=>oe(fb()))).MemberService),new x.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return x.Movie.svc===void 0&&(x.Movie.svc=(await Promise.resolve().then(()=>oe(pb()))).MovieService),new x.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return x.MovieTheater.svc===void 0&&(x.MovieTheater.svc=(await Promise.resolve().then(()=>oe(Sb()))).MovieTheaterService),new x.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return x.Note.svc===void 0&&(x.Note.svc=(await Promise.resolve().then(()=>oe(mb()))).NoteService),new x.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return x.NoteAboutOrder.svc===void 0&&(x.NoteAboutOrder.svc=(await Promise.resolve().then(()=>oe(_b()))).NoteAboutOrderService),new x.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return x.Order.svc===void 0&&(x.Order.svc=(await Promise.resolve().then(()=>oe(Ob()))).OrderService),new x.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return x.PaymentMethod.svc===void 0&&(x.PaymentMethod.svc=(await Promise.resolve().then(()=>oe(Tb()))).PaymentMethodService),new x.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return x.Product.svc===void 0&&(x.Product.svc=(await Promise.resolve().then(()=>oe(Cb()))).ProductService),new x.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return x.Reservation.svc===void 0&&(x.Reservation.svc=(await Promise.resolve().then(()=>oe(bb()))).ReservationService),new x.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return x.Room.svc===void 0&&(x.Room.svc=(await Promise.resolve().then(()=>oe(Pb()))).RoomService),new x.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return x.Seat.svc===void 0&&(x.Seat.svc=(await Promise.resolve().then(()=>oe(wb()))).SeatService),new x.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return x.SeatSection.svc===void 0&&(x.SeatSection.svc=(await Promise.resolve().then(()=>oe(Ib()))).SeatSectionService),new x.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return x.Seller.svc===void 0&&(x.Seller.svc=(await Promise.resolve().then(()=>oe(qb()))).SellerService),new x.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return x.Offer.svc===void 0&&(x.Offer.svc=(await Promise.resolve().then(()=>oe(jb()))).OfferService),new x.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return x.OfferCatalog.svc===void 0&&(x.OfferCatalog.svc=(await Promise.resolve().then(()=>oe(xb()))).OfferCatalogService),new x.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return x.OfferCatalogItem.svc===void 0&&(x.OfferCatalogItem.svc=(await Promise.resolve().then(()=>oe(Db()))).OfferCatalogItemService),new x.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return x.assetTransaction.CancelReservation.svc===void 0&&(x.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>oe(Fb()))).CancelReservationAssetTransactionService),new x.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmin=$d});var kb=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.AccountingReportService=void 0;var Yj=b(),Qj=E(),Kd=class extends Qj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};xs.AccountingReportService=Kd});var Bb=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.AccountTitleService=void 0;var be=b(),Zj=E(),Us="/accountTitles/accountTitleCategory",Ds="/accountTitles/accountTitleSet",Fs="/accountTitles",Wd=class extends Zj.Service{async addAccounTitleCategory(e){await this.fetch({uri:Us,method:"POST",body:e,expectedStatusCodes:[be.status.CREATED,be.status.NO_CONTENT]})}async findAccountTitleCategories(e){return this.fetch({uri:Us,method:"GET",qs:e,expectedStatusCodes:[be.status.OK]}).then(async r=>r.json())}async updateAccounTitleCategory(e){await this.fetch({uri:`${Us}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`${Us}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}async addAccounTitleSet(e){await this.fetch({uri:Ds,method:"POST",body:e,expectedStatusCodes:[be.status.CREATED,be.status.NO_CONTENT]})}async findAccountTitleSets(e){return this.fetch({uri:Ds,method:"GET",qs:e,expectedStatusCodes:[be.status.OK]}).then(async r=>r.json())}async updateAccounTitleSet(e){await this.fetch({uri:`${Ds}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`${Ds}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}async addAccountTitle(e){await this.fetch({uri:Fs,method:"POST",body:e,expectedStatusCodes:[be.status.CREATED,be.status.NO_CONTENT]})}async updateAccountTitle(e){await this.fetch({uri:`${Fs}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}async findAccountTitles(e){return this.fetch({uri:Fs,method:"GET",qs:e,expectedStatusCodes:[be.status.OK]}).then(async r=>r.json())}async deleteAccountTitleByCodeValue(e){await this.fetch({uri:`${Fs}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[be.status.NO_CONTENT]})}};Ls.AccountTitleService=Wd});var $b=o(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.ActionService=void 0;var Gb=b(),Jj=E(),Hd=class extends Jj.Service{async adminFindAnyActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Gb.status.OK]}).then(async r=>r.json())}async findRecipesByActionId(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Gb.status.OK]}).then(async r=>r.json())}};ks.ActionService=Hd});var Kb=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.UpdateActionService=void 0;var Xj=b(),ex=E(),Vd=class extends ex.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[Xj.status.OK]}).then(async r=>r.json())}};Bs.UpdateActionService=Vd});var Wb=o(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.InformActionService=void 0;var tx=b(),rx=E(),zd=class extends rx.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[tx.status.OK]}).then(async r=>r.json())}};Gs.InformActionService=zd});var Hb=o($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.UseActionService=void 0;var nx=b(),ix=E(),Yd=class extends ix.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[nx.status.OK]}).then(async r=>r.json())}};$s.UseActionService=Yd});var Vb=o(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.CheckActionService=void 0;var sx=b(),ox=E(),Qd=class extends ox.Service{async findCheckActions(e){return this.fetch({uri:"/checkActions",method:"GET",qs:e,expectedStatusCodes:[sx.status.OK]}).then(async r=>r.json())}};Ks.CheckActionService=Qd});var zb=o(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.AdditionalPropertyService=void 0;var Yr=b(),ax=E(),Zd=class extends ax.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Yr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yr.status.NO_CONTENT]})}};Ws.AdditionalPropertyService=Zd});var Qb=o(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.AggregateOfferService=void 0;var Yb=b(),cx=E(),Jd=class extends cx.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Yb.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yb.status.NO_CONTENT]})}};Hs.AggregateOfferService=Jd});var Zb=o(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.AggregateReservationService=void 0;var ux=b(),dx=E(),Xd=class extends dx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[ux.status.OK]}).then(async r=>r.json())}};Vs.AggregateReservationService=Xd});var Jb=o(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.AggregationService=void 0;var lx=b(),fx=E(),el=class extends fx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[lx.status.OK]}).then(async r=>r.json())}};zs.AggregationService=el});var Xb=o(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.AuthorizationService=void 0;var hx=b(),yx=E(),tl=class extends yx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[hx.status.OK]}).then(async r=>r.json())}};Ys.AuthorizationService=tl});var eg=o(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.CreativeWorkService=void 0;var px=b(),vx=E(),rl=class extends vx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[px.status.NO_CONTENT]})}};Qs.CreativeWorkService=rl});var tg=o(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.CategoryCodeService=void 0;var Zs=b(),Sx=E(),Js="/categoryCodes",nl=class extends Sx.Service{async createCategoryCode(e){return this.fetch({uri:Js,method:"POST",body:e,expectedStatusCodes:[Zs.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:Js,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Zs.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${Js}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zs.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${Js}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zs.status.NO_CONTENT]})}};Xs.CategoryCodeService=nl});var rg=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.CustomerService=void 0;var il=b(),mx=E(),sl=class extends mx.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[il.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[il.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[il.status.NO_CONTENT]})}};eo.CustomerService=sl});var ng=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CustomerTypeService=void 0;var _x=b(),Ox=E(),ol=class extends Ox.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[_x.status.OK]}).then(async r=>r.json())}};to.CustomerTypeService=ol});var ig=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.EmailMessageService=void 0;var ro=b(),Tx=E(),al=class extends Tx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[ro.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[ro.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[ro.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[ro.status.NO_CONTENT]})}};no.EmailMessageService=al});var sg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EventService=void 0;var io=b(),Ex=Y(),Cx=E(),cl=class extends Cx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{typeOf:Ex.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:i,hasTicketedSeat:s},expectedStatusCodes:[io.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[io.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[io.status.OK]}).then(async n=>n.json())}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[io.status.NO_CONTENT]})}};so.EventService=cl});var og=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var bx=b(),gx=E(),Ax="/eventSeries",ul=class extends gx.Service{async deleteEventSeriesById(e){await this.fetch({uri:`${Ax}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[bx.status.NO_CONTENT]})}};oo.EventSeriesService=ul});var ag=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var Px=b(),wx=E(),dl=class extends wx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Px.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=dl});var cg=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var gt=b(),Rx=E(),ll=class extends Rx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[gt.status.CREATED,gt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[gt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[gt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[gt.status.OK]}).then(async e=>e.json())}};co.IAMService=ll});var ug=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),Mx=E(),fl=class extends Mx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[uo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[uo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[uo.status.NO_CONTENT]})}};lo.IdentityService=fl});var dg=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),Ix=E(),hl=class extends Ix.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 lg=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var Qr=b(),qx=E(),yl=class extends qx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Qr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qr.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:[Qr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qr.status.NO_CONTENT]})}};yo.IssuerService=yl});var hg=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var fg=b(),Nx=E(),pl=class extends Nx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[fg.status.OK]}).then(async r=>({data:await r.json()}))}async searchMemberHasRoleOnProject(e){return this.fetch({uri:`/members/me/projects/${e.project.id}/hasRole`,method:"GET",expectedStatusCodes:[fg.status.OK]}).then(async r=>r.json())}};po.MeService=pl});var yg=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var At=b(),Pt=Y(),jx=E(),vl=class extends jx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};vo.MemberService=vl});var pg=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MemberProgramService=void 0;var So=b(),xx=E(),Sl=class extends xx.Service{async findMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[So.status.OK]}).then(async r=>r.json())}async addMemberProgram(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[So.status.NO_CONTENT]})}async updateMemberProgramByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r},expectedStatusCodes:[So.status.NO_CONTENT]})}async deleteMemberProgramByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[So.status.NO_CONTENT]})}};mo.MemberProgramService=Sl});var vg=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MerchantReturnPolicyService=void 0;var Zr=b(),Ux=E(),ml=class extends Ux.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};_o.MerchantReturnPolicyService=ml});var Sg=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MessageService=void 0;var Dx=b(),Fx=E(),_l=class extends Fx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Dx.status.OK]}).then(async r=>r.json())}};Oo.MessageService=_l});var mg=o(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.MovieTicketTypeService=void 0;var To=b(),Lx=E(),Eo="/movieTicketTypes",Ol=class extends Lx.Service{async createMovieTicketType(e){return this.fetch({uri:Eo,method:"POST",body:e,expectedStatusCodes:[To.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Eo,method:"GET",qs:e,expectedStatusCodes:[To.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Eo}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[To.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Eo}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[To.status.NO_CONTENT]})}};Co.MovieTicketTypeService=Ol});var _g=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var bo=b(),kx=E(),Tl=class extends kx.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())}};go.OrderService=Tl});var Og=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var yr=b(),Bx=E(),El=class extends Bx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[yr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[yr.status.OK],qs:n}).then(async i=>i.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[yr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[yr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}};Ao.PaymentProductService=El});var Tg=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Po=b(),Gx=E(),Cl=class extends Gx.Service{async addPaymentServiceChannel(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Po.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceChannels(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Po.status.OK]}).then(async r=>r.json())}async updatePaymentServiceChannelById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[Po.status.NO_CONTENT]})}async deletePaymentServiceChannelById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Po.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=Cl});var Cg=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Eg=b(),$x=E(),bl=class extends $x.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Eg.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:[Eg.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=bl});var gg=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var bg=b(),Kx=E(),gl=class extends Kx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[bg.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:[bg.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=gl});var Pg=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var Ag=b(),Wx=E(),Al=class extends Wx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Ag.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:[Ag.status.OK],qs:{iss:n}}).then(async i=>i.json())}};Io.PersonService=Al});var wg=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var Jr=b(),Xr=Y(),Hx=E(),Pl=class extends Hx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${Xr.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[Jr.status.OK]}).then(async i=>i.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:i}=e;return this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:i},expectedStatusCodes:[Jr.status.OK]}).then(async s=>s.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:i}=r;await this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:i},body:e,expectedStatusCodes:[Jr.status.NO_CONTENT]})}};qo.PlaceService=Pl});var Rg=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.POSService=void 0;var No=b(),jo=Y(),Vx=E(),wl=class extends Vx.Service{async findPOS(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 addPOSByBranchCode(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 updatePOSByBranchCode(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 deletePOSByBranchCode(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.POSService=wl});var Mg=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),zx=E(),Rl=class extends zx.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=Rl});var Ig=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ProductService=void 0;var en=b(),Yx=E(),tn="/products",Ml=class extends Yx.Service{async createProduct(e){return this.fetch({uri:tn,method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:tn,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${tn}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[en.status.OK],qs:n}).then(async i=>i.json())}async updateProduct(e){await this.fetch({uri:`${tn}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${tn}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};Fo.ProductService=Ml});var qg=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Lo=b(),Qx=E(),Il=class extends Qx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Lo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Lo.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:[Lo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Lo.status.NO_CONTENT]})}};ko.ProjectService=Il});var Ng=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var Bo=b(),Zx=E(),ql=class extends Zx.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bo.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Bo.status.NO_CONTENT]})}};Go.ProjectMakesOfferService=ql});var jg=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ReservationService=void 0;var Jx=b(),Xx=E(),Nl=class extends Xx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Jx.status.NO_CONTENT]})}};$o.ReservationService=Nl});var xg=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var jl=b(),eU=E(),xl=class extends eU.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]})}};Ko.OfferService=xl});var Ug=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=b(),tU=E(),Ul=class extends tU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async i=>i.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Ho.OfferCatalogService=Ul});var Dg=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var Dl=b(),rU=E(),Fl=class extends rU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Dl.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Dl.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:[Dl.status.OK]}).then(async i=>i.json())}};Vo.OfferCatalogItemService=Fl});var Fg=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),nU=E(),Ll=class extends nU.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=Ll});var Lg=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),iU=E(),kl=class extends iU.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 findSellerPaymentAccepted(e){let{sellerId:r}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async n=>n.json())}async addSellerPaymentAccepted(e){let{sellerId:r,codeValue:n}=e;await this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"POST",body:{codeValue:n},expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteSellerPaymentAccepted(e){let{sellerId:r,codeValue:n}=e;await this.fetch({uri:`/sellers/${r}/paymentAccepted/${n}`,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=kl});var kg=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Bl=b(),sU=E(),Gl=class extends sU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=Gl});var Bg=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var rn=b(),oU=E(),$l=class extends oU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[rn.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:[rn.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:[rn.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=$l});var Gg=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.AsyncActionService=void 0;var aU=b(),cU=E(),Kl=class extends cU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[aU.status.OK]}).then(async r=>r.json())}};Xo.AsyncActionService=Kl});var $g=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.ScheduledTaskService=void 0;var uU=b(),dU=E(),Wl=class extends dU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[uU.status.OK]}).then(async r=>r.json())}};ea.ScheduledTaskService=Wl});var Kg=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TaskService=void 0;var Hl=b(),lU=E(),Vl=class extends lU.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 findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Hl.status.OK]}).then(async r=>r.json())}};ta.TaskService=Vl});var Wg=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TicketService=void 0;var fU=b(),hU=E(),zl=class extends hU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[fU.status.OK]}).then(async r=>r.json())}};ra.TicketService=zl});var Hg=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.AssetTransactionService=void 0;var yU=b(),pU=E(),Yl=class extends pU.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[yU.status.OK]}).then(async r=>r.json())}};na.AssetTransactionService=Yl});var Vg=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.PayAssetTransactionService=void 0;var ia=b(),pr=Y(),vU=E(),Ql=class extends vU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ia.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...i}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT],body:i})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ia.status.OK]}).then(async r=>r.json())}};sa.PayAssetTransactionService=Ql});var zg=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var SU=E(),Zl=class extends SU.Service{};oa.TokenService=Zl});var Qg=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Yg=b(),mU=Y(),_U=E(),Jl=class extends _U.Service{typeOf=mU.factory.transactionType.PlaceOrder;async findPlaceOrderTransactions(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Yg.status.OK]}).then(async r=>r.json())}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Yg.status.OK]}).then(async i=>i.json())}};aa.PlaceOrderTransactionService=Jl});var Zg=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.TransactionNumberService=void 0;var OU=b(),TU=E(),Xl=class extends TU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[OU.status.CREATED]}).then(async e=>e.json())}};ca.TransactionNumberService=Xl});var Jg=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.UserPoolService=void 0;var ef=b(),EU=E(),tf=class extends EU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[ef.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[ef.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:[ef.status.OK]}).then(async r=>r.json())}};ua.UserPoolService=tf});var Xg=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.WebSiteService=void 0;var da=b(),CU=E(),rf=class extends CU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[da.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[da.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[da.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[da.status.NO_CONTENT]})}};la.WebSiteService=rf});var eA=o(Be=>{"use strict";var bU=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gU=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&bU(r,e,n[i]);return gU(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreConsole=Be.service=void 0;var m;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let i;i=t.UpdateAction||(t.UpdateAction={});let s;s=t.InformAction||(t.InformAction={});let c;c=t.UseAction||(t.UseAction={});let d;d=t.CheckAction||(t.CheckAction={});let f;f=t.AdditionalProperty||(t.AdditionalProperty={});let p;p=t.AggregateOffer||(t.AggregateOffer={});let y;y=t.AggregateReservation||(t.AggregateReservation={});let S;S=t.Aggregation||(t.Aggregation={});let _;_=t.Authorization||(t.Authorization={});let g;g=t.CategoryCode||(t.CategoryCode={});let M;M=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let q;q=t.CustomerType||(t.CustomerType={});let N;N=t.EmailMessage||(t.EmailMessage={});let C;C=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let D;D=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let k;k=t.IAM||(t.IAM={});let K;K=t.Identity||(t.Identity={});let W;W=t.IdentityProvider||(t.IdentityProvider={});let j;j=t.Issuer||(t.Issuer={});let $;$=t.Me||(t.Me={});let G;G=t.Member||(t.Member={});let z;z=t.MemberProgram||(t.MemberProgram={});let Te;Te=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let ce;ce=t.Message||(t.Message={});let ie;ie=t.MovieTicketType||(t.MovieTicketType={});let se;se=t.Order||(t.Order={});let ee;ee=t.PaymentProduct||(t.PaymentProduct={});let Je;Je=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let nt;nt=t.PendingReservation||(t.PendingReservation={});let Xe;Xe=t.Permission||(t.Permission={});let xe;xe=t.Person||(t.Person={});let a;a=t.Place||(t.Place={});let u;u=t.POS||(t.POS={});let l;l=t.PriceSpecification||(t.PriceSpecification={});let h;h=t.Product||(t.Product={});let v;v=t.Project||(t.Project={});let T;T=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let A;A=t.Reservation||(t.Reservation={});let P;P=t.Offer||(t.Offer={});let L;L=t.OfferCatalog||(t.OfferCatalog={});let V;V=t.OfferCatalogItem||(t.OfferCatalogItem={});let Z;Z=t.OfferItemCondition||(t.OfferItemCondition={});let de;de=t.Seller||(t.Seller={});let Pe;Pe=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ee;Ee=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let qt;qt=t.AsyncAction||(t.AsyncAction={});let ye;ye=t.ScheduledTask||(t.ScheduledTask={});let we;we=t.Task||(t.Task={});let it;it=t.Ticket||(t.Ticket={});let Er;Er=t.AssetTransaction||(t.AssetTransaction={});let WP;(function(U){let Pc;Pc=U.Pay||(U.Pay={})})(WP=t.assetTransaction||(t.assetTransaction={}));let HP;HP=t.Token||(t.Token={});let VP;(function(U){let Pc;Pc=U.PlaceOrder||(U.PlaceOrder={})})(VP=t.transaction||(t.transaction={}));let zP;zP=t.TransactionNumber||(t.TransactionNumber={});let YP;YP=t.UserPool||(t.UserPool={});let QP;QP=t.WebSite||(t.WebSite={})})(m||(Be.service=m={}));var nf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>F(kb()))).AccountingReportService),new m.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return m.AccountTitle.svc===void 0&&(m.AccountTitle.svc=(await Promise.resolve().then(()=>F(Bb()))).AccountTitleService),new m.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return m.Action.svc===void 0&&(m.Action.svc=(await Promise.resolve().then(()=>F($b()))).ActionService),new m.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createUpdateActionInstance(e){return m.UpdateAction.svc===void 0&&(m.UpdateAction.svc=(await Promise.resolve().then(()=>F(Kb()))).UpdateActionService),new m.UpdateAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createInformActionInstance(e){return m.InformAction.svc===void 0&&(m.InformAction.svc=(await Promise.resolve().then(()=>F(Wb()))).InformActionService),new m.InformAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createUseActionInstance(e){return m.UseAction.svc===void 0&&(m.UseAction.svc=(await Promise.resolve().then(()=>F(Hb()))).UseActionService),new m.UseAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createCheckActionInstance(e){return m.CheckAction.svc===void 0&&(m.CheckAction.svc=(await Promise.resolve().then(()=>F(Vb()))).CheckActionService),new m.CheckAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(zb()))).AdditionalPropertyService),new m.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return m.AggregateOffer.svc===void 0&&(m.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Qb()))).AggregateOfferService),new m.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return m.AggregateReservation.svc===void 0&&(m.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Zb()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>F(Jb()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>F(Xb()))).AuthorizationService),new m.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return m.CreativeWork.svc===void 0&&(m.CreativeWork.svc=(await Promise.resolve().then(()=>F(eg()))).CreativeWorkService),new m.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return m.CategoryCode.svc===void 0&&(m.CategoryCode.svc=(await Promise.resolve().then(()=>F(tg()))).CategoryCodeService),new m.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return m.Customer.svc===void 0&&(m.Customer.svc=(await Promise.resolve().then(()=>F(rg()))).CustomerService),new m.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return m.CustomerType.svc===void 0&&(m.CustomerType.svc=(await Promise.resolve().then(()=>F(ng()))).CustomerTypeService),new m.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return m.EmailMessage.svc===void 0&&(m.EmailMessage.svc=(await Promise.resolve().then(()=>F(ig()))).EmailMessageService),new m.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return m.Event.svc===void 0&&(m.Event.svc=(await Promise.resolve().then(()=>F(sg()))).EventService),new m.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return m.EventSeries.svc===void 0&&(m.EventSeries.svc=(await Promise.resolve().then(()=>F(og()))).EventSeriesService),new m.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return m.HasMerchantReturnPolicy.svc===void 0&&(m.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(ag()))).HasMerchantReturnPolicyService),new m.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return m.IAM.svc===void 0&&(m.IAM.svc=(await Promise.resolve().then(()=>F(cg()))).IAMService),new m.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return m.Identity.svc===void 0&&(m.Identity.svc=(await Promise.resolve().then(()=>F(ug()))).IdentityService),new m.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return m.IdentityProvider.svc===void 0&&(m.IdentityProvider.svc=(await Promise.resolve().then(()=>F(dg()))).IdentityProviderService),new m.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return m.Issuer.svc===void 0&&(m.Issuer.svc=(await Promise.resolve().then(()=>F(lg()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>F(hg()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>F(yg()))).MemberService),new m.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return m.MemberProgram.svc===void 0&&(m.MemberProgram.svc=(await Promise.resolve().then(()=>F(pg()))).MemberProgramService),new m.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return m.MerchantReturnPolicy.svc===void 0&&(m.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(vg()))).MerchantReturnPolicyService),new m.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return m.Message.svc===void 0&&(m.Message.svc=(await Promise.resolve().then(()=>F(Sg()))).MessageService),new m.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return m.MovieTicketType.svc===void 0&&(m.MovieTicketType.svc=(await Promise.resolve().then(()=>F(mg()))).MovieTicketTypeService),new m.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return m.Order.svc===void 0&&(m.Order.svc=(await Promise.resolve().then(()=>F(_g()))).OrderService),new m.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return m.PaymentProduct.svc===void 0&&(m.PaymentProduct.svc=(await Promise.resolve().then(()=>F(Og()))).PaymentProductService),new m.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return m.PaymentServiceChannel.svc===void 0&&(m.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(Tg()))).PaymentServiceChannelService),new m.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return m.PendingReservation.svc===void 0&&(m.PendingReservation.svc=(await Promise.resolve().then(()=>F(Cg()))).PendingReservationService),new m.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return m.Permission.svc===void 0&&(m.Permission.svc=(await Promise.resolve().then(()=>F(gg()))).PermissionService),new m.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return m.Person.svc===void 0&&(m.Person.svc=(await Promise.resolve().then(()=>F(Pg()))).PersonService),new m.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return m.Place.svc===void 0&&(m.Place.svc=(await Promise.resolve().then(()=>F(wg()))).PlaceService),new m.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createPOSInstance(e){return m.POS.svc===void 0&&(m.POS.svc=(await Promise.resolve().then(()=>F(Rg()))).POSService),new m.POS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return m.PriceSpecification.svc===void 0&&(m.PriceSpecification.svc=(await Promise.resolve().then(()=>F(Mg()))).PriceSpecificationService),new m.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return m.Product.svc===void 0&&(m.Product.svc=(await Promise.resolve().then(()=>F(Ig()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>F(qg()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Ng()))).ProjectMakesOfferService),new m.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return m.Reservation.svc===void 0&&(m.Reservation.svc=(await Promise.resolve().then(()=>F(jg()))).ReservationService),new m.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return m.Offer.svc===void 0&&(m.Offer.svc=(await Promise.resolve().then(()=>F(xg()))).OfferService),new m.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return m.OfferCatalog.svc===void 0&&(m.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Ug()))).OfferCatalogService),new m.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return m.OfferCatalogItem.svc===void 0&&(m.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(Dg()))).OfferCatalogItemService),new m.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return m.OfferItemCondition.svc===void 0&&(m.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Fg()))).OfferItemConditionService),new m.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return m.Seller.svc===void 0&&(m.Seller.svc=(await Promise.resolve().then(()=>F(Lg()))).SellerService),new m.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return m.SellerMakesOffer.svc===void 0&&(m.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(kg()))).SellerMakesOfferService),new m.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return m.SellerReturnPolicy.svc===void 0&&(m.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Bg()))).SellerReturnPolicyService),new m.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createAsyncActionInstance(e){return m.AsyncAction.svc===void 0&&(m.AsyncAction.svc=(await Promise.resolve().then(()=>F(Gg()))).AsyncActionService),new m.AsyncAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createScheduledTaskInstance(e){return m.ScheduledTask.svc===void 0&&(m.ScheduledTask.svc=(await Promise.resolve().then(()=>F($g()))).ScheduledTaskService),new m.ScheduledTask.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return m.Task.svc===void 0&&(m.Task.svc=(await Promise.resolve().then(()=>F(Kg()))).TaskService),new m.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return m.Ticket.svc===void 0&&(m.Ticket.svc=(await Promise.resolve().then(()=>F(Wg()))).TicketService),new m.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return m.AssetTransaction.svc===void 0&&(m.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Hg()))).AssetTransactionService),new m.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return m.assetTransaction.Pay.svc===void 0&&(m.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F(Vg()))).PayAssetTransactionService),new m.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return m.Token.svc===void 0&&(m.Token.svc=(await Promise.resolve().then(()=>F(zg()))).TokenService),new m.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return m.transaction.PlaceOrder.svc===void 0&&(m.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(Qg()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Zg()))).TransactionNumberService),new m.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return m.UserPool.svc===void 0&&(m.UserPool.svc=(await Promise.resolve().then(()=>F(Jg()))).UserPoolService),new m.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return m.WebSite.svc===void 0&&(m.WebSite.svc=(await Promise.resolve().then(()=>F(Xg()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreConsole=nf});var tA=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.PaymentService=void 0;var me=b(),ve=Y(),AU=E(),PU=["awashimakisen-production","awashimakisen-test"],sf=class extends AU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async i=>i.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:i,issuedThrough:s,paymentMethod:c,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:i,issuedThrough:s,paymentMethod:c,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n}=e,{amount:i,issuedThrough:s,paymentMethod:c,creditCard:d,method:f,paymentMethodId:p,name:y,additionalProperty:S,ticketToken:_,eventIdsAsOrderedItem:g}=r;if((typeof p!="string"||p==="")&&(typeof _!="string"||_===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!PU.includes(this.options.project.id)&&(!Array.isArray(g)||g.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:i,issuedThrough:s,paymentMethod:c,...d!=null?{creditCard:d}:void 0,...typeof y=="string"?{name:y}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{paymentMethodId:p}:void 0,...typeof _=="string"?{ticketToken:_}:void 0,...Array.isArray(S)?{additionalProperty:S}:void 0,...Array.isArray(g)?{eventIdsAsOrderedItem:g}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async w=>w.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:i}=e,{issuedThrough:s,paymentMethod:c,movieTickets:d,name:f,additionalProperty:p,ticketToken:y}=n,{checkedActionId:S}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:s,paymentMethod:c,...Array.isArray(d)?{movieTickets:d}:void 0,...typeof f=="string"?{name:f}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(p)?{additionalProperty:p}:void 0},purpose:i},qs:{checkedActionId:S,async:!0,purpose:{id:i.id}}}).then(async _=>_.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n}=e,{amount:i,creditCard:s,issuedThrough:c,paymentMethod:d,method:f,ticketToken:p,eventIdsAsOrderedItem:y}=r;if(typeof p!="string"||p==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(y)||y.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:i,issuedThrough:c,paymentMethod:d,...s!=null?{creditCard:s}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(y)?{eventIdsAsOrderedItem:y}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async S=>S.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:i}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:i},qs:{purpose:{id:i.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:i===!0}}).then(async s=>s.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:i,page:s}}).then(async c=>c.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:i,page:s}}).then(async c=>c.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:i}=e,s=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:i},qs:{purpose:{id:r.id},serviceOutputType:s}}).then(async c=>c.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async i=>i.json())}};fa.PaymentService=sf});var rA=o(Ge=>{"use strict";var wU=Ge&&Ge.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MU=Ge&&Ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&wU(r,e,n[i]);return RU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevrePay=Ge.service=void 0;var nn;(function(t){let e;e=t.Payment||(t.Payment={})})(nn||(Ge.service=nn={}));var of=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return nn.Payment.svc===void 0&&(nn.Payment.svc=(await Promise.resolve().then(()=>MU(tA()))).PaymentService),new nn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ge.ChevrePay=of});var iA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.OfferService=void 0;var af=b(),nA=Y(),IU=E(),cf=class extends IU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:i,eventOfferId:s}=e;return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[af.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:i,...typeof s=="string"?{eventOfferId:s}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[af.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...i}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[af.status.NO_CONTENT],body:i,qs:{purpose:{id:e.purpose.id}}})}};ha.OfferService=cf});var sA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PlaceOrderTransactionService=void 0;var sn=b(),qU=Y(),NU=E(),uf=class extends NU.Service{typeOf=qU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[sn.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[sn.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[sn.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:[sn.status.OK],body:n}).then(async i=>i.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[sn.status.NO_CONTENT]})}};ya.PlaceOrderTransactionService=uf});var oA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var pa=b(),df=Y(),jU=E(),lf=class extends jU.Service{async start(e){return this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,expectedStatusCodes:[pa.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[pa.status.NO_CONTENT,pa.status.OK]})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[pa.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=lf});var aA=o($e=>{"use strict";var xU=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ff=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&xU(r,e,n[i]);return UU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreTxn=$e.service=void 0;var tt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(tt||($e.service=tt={}));var hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return tt.Offer.svc===void 0&&(tt.Offer.svc=(await Promise.resolve().then(()=>ff(iA()))).OfferService),new tt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return tt.transaction.PlaceOrder.svc===void 0&&(tt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>ff(sA()))).PlaceOrderTransactionService),new tt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return tt.transaction.ReturnOrder.svc===void 0&&(tt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>ff(oA()))).ReturnOrderTransactionService),new tt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};$e.ChevreTxn=hf});var cA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var on=b(),an=Y(),DU=E(),yf=class extends DU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:i}=e;return this.fetch({uri:`/offers/${an.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[on.status.ACCEPTED],body:{object:r,purpose:n,...typeof i?.id=="string"?{potentialActions:i}:void 0},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${an.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[on.status.OK],qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${an.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[on.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${an.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[on.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:i}=e;return this.fetch({uri:`/offers/${an.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[on.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}};Sa.OfferService=yf});var uA=o(Ke=>{"use strict";var FU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),LU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kU=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&FU(r,e,n[i]);return LU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevreTxc=Ke.service=void 0;var cn;(function(t){let e;e=t.Offer||(t.Offer={})})(cn||(Ke.service=cn={}));var pf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return cn.Offer.svc===void 0&&(cn.Offer.svc=(await Promise.resolve().then(()=>kU(cA()))).OfferService),new cn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevreTxc=pf});var dA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),BU=E(),vf=class extends BU.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 lA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),GU=E(),Sf=class extends GU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Oa.status.OK]}).then(async e=>({data:await e.json()}))}};Ta.EmailMessageService=Sf});var fA=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PlaceService=void 0;var Ea=b(),$U=Y(),KU=E(),mf=class extends KU.Service{constructor(e){super({...e,retryableStatusCodes:[Ea.status.BAD_GATEWAY,Ea.status.FORBIDDEN,Ea.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${$U.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ea.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.PlaceService=mf});var hA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.HasPOSService=void 0;var ba=b(),WU=Y(),HU=E(),_f=class extends HU.Service{constructor(e){super({...e,retryableStatusCodes:[ba.status.BAD_GATEWAY,ba.status.FORBIDDEN,ba.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${WU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ba.status.OK]}).then(async r=>r.json())}};ga.HasPOSService=_f});var yA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.SellerService=void 0;var Bt=b(),VU=E(),Of=class extends VU.Service{constructor(e){super({...e,retryableStatusCodes:[Bt.status.BAD_GATEWAY,Bt.status.FORBIDDEN,Bt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[Bt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Bt.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:[Bt.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:[Bt.status.OK]}).then(async r=>({data:await r.json()}))}};Aa.SellerService=Of});var vA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.service=void 0;var zU=dA(),YU=lA(),QU=fA(),ZU=hA(),JU=yA(),pA;(function(t){class e extends zU.CategoryCodeService{}t.CategoryCode=e;class r extends YU.EmailMessageService{}t.EmailMessage=r;class n extends QU.PlaceService{}t.Place=n;let i;(function(c){class d extends ZU.HasPOSService{}c.HasPOS=d})(i=t.place||(t.place={}));class s extends JU.SellerService{}t.Seller=s})(pA||(Pa.service=pA={}))});var SA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CreativeWorkService=void 0;var XU=te(),eD=E(),Tf=class extends eD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,XU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertMoviesByIdentifier(e)}};wa.CreativeWorkService=Tf});var mA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CustomerService=void 0;var tD=te(),rD=E(),Ef=class extends rD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,tD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findCustomers(e)}};Ra.CustomerService=Ef});var _A=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventService=void 0;var vr=Y(),Ma=te(),nD=E(),Cf=class extends nD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:i})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:i,disableAutoRetry:d})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c}=this.options;return(await(await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await c.createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ia.EventService=Cf});var OA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventOfferService=void 0;var iD=te(),sD=E(),bf=class extends sD.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:i}=this.options,s=await(0,iD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await s.createEventOfferInstance({project:n,seller:{id:typeof i?.id=="string"?i.id:""}})}return this.chevreAdminEventOffer}};qa.EventOfferService=bf});var TA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventSeriesService=void 0;var oD=te(),aD=E(),gf=class extends aD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,oD.loadChevreAdmin)({auth:n,endpoint:i})).createEventSeriesInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};Na.EventSeriesService=gf});var CA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.MeService=void 0;var EA=te(),cD=E(),Af=class extends cD.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)}};ja.MeService=Af});var AA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MovieTheaterService=void 0;var xa=Y(),bA=te(),uD=E(),gA=20,Pf=class extends uD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,bA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new xa.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new xa.factory.errors.Argument("page","must be number");if(d<1||d>gA)throw new xa.factory.errors.Argument("limit",`must be >=1 and <=${gA}`);if(f<1)throw new xa.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,bA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEntranceGates(e)}};Ua.MovieTheaterService=Pf});var PA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.NoteAboutOrderService=void 0;var wf=te(),dD=E(),Rf=class extends dD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,wf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,wf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:i,endpoint:s,project:c,seller:d}=this.options;await(await(await(0,wf.loadChevreAdmin)({auth:i,endpoint:s})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Da.NoteAboutOrderService=Rf});var RA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferService=void 0;var St=Y(),wA=te(),lD=E(),Mf=class extends lD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,wA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new St.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new St.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new St.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 St.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await c.createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options,d=await(0,wA.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==St.factory.product.ProductType.EventService&&y!==St.factory.product.ProductType.Product)throw new St.factory.errors.Argument("itemOffered.typeOf",`must be ${St.factory.product.ProductType.EventService} or ${St.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Fa.OfferService=Mf});var MA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogService=void 0;var un=Y(),fD=te(),hD=E(),If=class extends hD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options,d=await(0,fD.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==un.factory.product.ProductType.EventService&&y!==un.factory.product.ProductType.Product)throw new un.factory.errors.Argument("itemOffered.typeOf",`must be ${un.factory.product.ProductType.EventService} or ${un.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogService=If});var qA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogItemService=void 0;var IA=te(),yD=E(),qf=class extends yD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,d=await(await(0,IA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,IA.loadChevreAdmin)({auth:n,endpoint:i})).createOfferCatalogItemInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogItemService=qf});var NA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OrderService=void 0;var wt=Y(),dn=te(),pD=E(),Ba=20,Nf=class extends pD.Service{async findOrders(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,dn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,dn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f},{minimizeReservationFor:!0,onlyReservedTicket:!0})}async findReturner(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,dn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;return(await(await(0,dn.loadChevreAdmin)({auth:n,endpoint:i})).createOrderInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).findAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r,{minimizeReservationFor:!0,onlyReservedTicket:!0})}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,dn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ga.OrderService=Nf});var jA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PaymentMethodService=void 0;var vD=te(),SD=E(),jf=class extends SD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,vD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findPaymentMethods(e)}};$a.PaymentMethodService=jf});var xA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ProductService=void 0;var ln=Y(),mD=te(),_D=E(),xf=class extends _D.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,mD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==ln.factory.product.ProductType.EventService&&f!==ln.factory.product.ProductType.Product)throw new ln.factory.errors.Argument("typeOf",`must be ${ln.factory.product.ProductType.EventService} or ${ln.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByProductId(e)}};Ka.ProductService=xf});var DA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.ReservationService=void 0;var fn=Y(),Wa=te(),OD=E(),UA=20,Uf=class extends OD.Service{async findReservations(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new fn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new fn.factory.errors.Argument("page","must be number");if(d<1||d>UA)throw new fn.factory.errors.Argument("limit",`must be >=1 and <=${UA}`);if(f<1)throw new fn.factory.errors.Argument("page","must be >=1");return await(await c.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f}=this.options,p=await(0,Wa.loadChevreAdmin)({auth:s,endpoint:c}),y=String(i?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;if(typeof s?.id!="string"||s.id.length===0)throw new fn.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:i,seller:{id:s.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Ha.ReservationService=Uf});var FA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.SellerService=void 0;var TD=te(),ED=E(),Df=class extends ED.Service{async search(e){let{auth:r,endpoint:n,project:i}=this.options;return(await(await(0,TD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:i})).search(e)}};Va.SellerService=Df});var LA=o(We=>{"use strict";var CD=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bD=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&CD(r,e,n[i]);return bD(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.CloudAdmin=We.service=void 0;var B;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let _;_=t.Order||(t.Order={});let g;g=t.PaymentMethod||(t.PaymentMethod={});let M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(We.service=B={}));var 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(SA()))).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(mA()))).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(_A()))).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(OA()))).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(TA()))).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(CA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(AA()))).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(PA()))).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(RA()))).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(MA()))).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(qA()))).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(NA()))).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(jA()))).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(xA()))).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(DA()))).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(FA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};We.CloudAdmin=Ff});var kA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.OrderService=void 0;var Gt=te(),gD=E(),Lf=class extends gD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:g}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...y!==void 0?{customer:y}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,..._!==void 0?{orderDateThrough:_}:void 0,...typeof g=="string"?{orderNumber:g}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e.object,{object:y,result:S}=e,_=await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:g}=await _.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:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0},{minimizeReservationFor:!0,onlyReservedTicket:!0})}};za.OrderService=Lf});var BA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.DeliveryService=void 0;var AD=te(),PD=E(),kf=class extends PD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,AD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Ya.DeliveryService=kf});var $A=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.ReservationService=void 0;var GA=te(),wD=E(),Bf=class extends wD.Service{async findByCode(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,GA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,GA.loadChevreAsset)({auth:n,endpoint:i,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Qa.ReservationService=Bf});var KA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.TokenService=void 0;var RD=E(),Gf=class extends RD.Service{};Za.TokenService=Gf});var WA=o(He=>{"use strict";var MD=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ID=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ja=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&MD(r,e,n[i]);return ID(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.CloudAsset=He.service=void 0;var Xa=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 i;i=t.Token||(t.Token={})})(Ne||(He.service=Ne={}));var ec=[Xa.status.BAD_GATEWAY,Xa.status.SERVICE_UNAVAILABLE,Xa.status.FORBIDDEN,Xa.status.UNAUTHORIZED],$f=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(()=>Ja(kA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:ec})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>Ja(BA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:ec})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>Ja($A()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:ec})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>Ja(KA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:ec})}};He.CloudAsset=$f});var HA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.CreativeWorkService=void 0;var qD=b(),ND=E(),Kf=class extends ND.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[qD.status.OK]}).then(async r=>r.json())}};tc.CreativeWorkService=Kf});var VA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.ProductService=void 0;var Wf=b(),jD=E(),Hf=class extends jD.Service{async search(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:i,seller:s}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Wf.status.OK],qs:{limit:r,page:n,itemOffered:i,seller:s}}).then(async c=>c.json())}async searchProductModels(e){let{category:r,limit:n,page:i}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}};rc.ProductService=Hf});var zA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.EventService=void 0;var Rt=b(),xD=E(),Mt="/events",Vf=class extends xD.Service{async findEvents(e){return this.fetch({uri:Mt,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findAggregateReservations4ttts(e){return this.fetch({uri:`${Mt}/aggregations`,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:i}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:i},expectedStatusCodes:[Rt.status.OK]}).then(async s=>{let c=await s.json();return{data:c,...c.length>0?{sectionCode:c[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[Rt.status.OK]}).then(async c=>c.json())}};nc.EventService=Vf});var YA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventSeriesService=void 0;var UD=b(),DD=E(),FD="/eventSeries",zf=class extends DD.Service{async findEventSeries(e){return this.fetch({uri:FD,method:"GET",qs:e,expectedStatusCodes:[UD.status.OK]}).then(async r=>r.json())}};ic.EventSeriesService=zf});var QA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.EventOfferService=void 0;var LD=b(),kD=E(),BD="/eventOffers",Yf=class extends kD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c}=e;return this.fetch({uri:BD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c},expectedStatusCodes:[LD.status.OK]}).then(async d=>d.json())}};sc.EventOfferService=Yf});var ZA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=b(),GD=Y(),$D=E(),Zf=class extends $D.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${GD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var JA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var KD=b(),WD=E(),HD="/seatOffers",Jf=class extends WD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:HD,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[KD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var XA=o(Ve=>{"use strict";var VD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$t=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&VD(r,e,n[i]);return zD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudSearch=Ve.service=void 0;var Xf=b(),ae;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Event||(t.Event={});let n;n=t.EventSeries||(t.EventSeries={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.Place||(t.Place={});let c;c=t.Product||(t.Product={});let d;d=t.SeatOffer||(t.SeatOffer={})})(ae||(Ve.service=ae={}));var Kt=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return ae.CreativeWork.svc===void 0&&(ae.CreativeWork.svc=(await Promise.resolve().then(()=>$t(HA()))).CreativeWorkService),new ae.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Kt})}async createProductInstance(e){return ae.Product.svc===void 0&&(ae.Product.svc=(await Promise.resolve().then(()=>$t(VA()))).ProductService),new ae.Product.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventInstance(e){return ae.Event.svc===void 0&&(ae.Event.svc=(await Promise.resolve().then(()=>$t(zA()))).EventService),new ae.Event.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventSeriesInstance(e){return ae.EventSeries.svc===void 0&&(ae.EventSeries.svc=(await Promise.resolve().then(()=>$t(YA()))).EventSeriesService),new ae.EventSeries.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventOfferInstance(e){return ae.EventOffer.svc===void 0&&(ae.EventOffer.svc=(await Promise.resolve().then(()=>$t(QA()))).EventOfferService),new ae.EventOffer.svc({...this.options,...e,retryableStatusCodes:Kt})}async createPlaceInstance(e){return ae.Place.svc===void 0&&(ae.Place.svc=(await Promise.resolve().then(()=>$t(ZA()))).PlaceService),new ae.Place.svc({...this.options,...e,retryableStatusCodes:Kt})}async createSeatOfferInstance(e){return ae.SeatOffer.svc===void 0&&(ae.SeatOffer.svc=(await Promise.resolve().then(()=>$t(JA()))).SeatOfferService),new ae.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Kt})}};Ve.CloudSearch=eh});var rP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var fe=b(),ge=Y(),Ae=te(),YD=E(),eP=1e3,QD=5e3;async function tP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends YD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,g=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:s});return g.authorizeCreditCard({object:{...n,ticketToken:M},purpose:i})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:i}=e,{checkedActionId:s}=r,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y}),{ticketToken:g}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await _.createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:g},purpose:i},{checkedActionId:s})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,g=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:s});if(typeof M!="string"||M==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return g.publishCreditCardPaymentUrl({object:{...n,ticketToken:M},purpose:i})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),_=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},g=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(M=>({...M,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:_})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;await(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,Ae.loadChevrePay)({auth:s,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:i.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:s,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:i})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:i,purpose:s}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:i,purpose:s})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:i,purpose:s}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:i,purpose:s})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:i}=e,{giveUpInMS:s}=r;if(typeof s!="number"||s<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,M=setTimeout(()=>{g=!0},s),w,q=new ge.factory.errors.GatewayTimeout("given up");for(;w===void 0&&!g;){try{w=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:i}),clearTimeout(M);break}catch(N){q=N}await tP(QD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,g)}if(typeof w?.ticketToken=="string")return w;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:i}=e,{checkPaymentMethodId:s}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>eP?r.intervalAfterIssueTicketInMS:eP,f=!1,p=n.paymentMethodId;if(s?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:i});return await tP(d),y}};cc.PaymentService=th});var nP=o(ze=>{"use strict";var ZD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XD=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&ZD(r,e,n[i]);return JD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudPay=ze.service=void 0;var uc=b(),hn;(function(t){let e;e=t.Payment||(t.Payment={})})(hn||(ze.service=hn={}));var eF=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return hn.Payment.svc===void 0&&(hn.Payment.svc=(await Promise.resolve().then(()=>XD(rP()))).PaymentService),new hn.Payment.svc({...this.options,...e,retryableStatusCodes:eF})}};ze.CloudPay=rh});var aP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=rF;dc.voidAuthorizeOfferAsync=nF;var re=Y(),iP=2e4,sP=1e3;async function oP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function tF(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 rF(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},iP);let i,s;for(;i===void 0&&s===void 0;){if(await oP(sP),n){s=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){i={id:c.id};break}if(c.error!==void 0){s=tF(c.error);break}}if(typeof i?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:i.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw s}}function nF(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},iP);let i,s;for(;i===void 0&&s===void 0;){if(await oP(sP),n){s=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){i=c;break}}if(typeof i?.status!="string")throw s}}});var uP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var cP=Y(),nh=te(),iF=E(),ih=aP(),sh=class extends iF.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:i,acceptedOffer:s,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:g,retryableStatusCodes:M}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(M)?M:[]]}),N=await(0,ih.authorizeOfferAsync)({purpose:{id:n.id},event:{id:i.id},acceptedOffer:s,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:i,endpoint:s,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ih.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:i}=e,{event:s,acceptedOffer:c,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:_,seller:g,disableAutoRetry:M,retryableStatusCodes:w}=this.options,N=await(await(0,nh.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:M})).createOfferInstance({project:_,seller:{id:typeof g?.id=="string"?g.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),C=await(0,ih.authorizeOfferAsync)({purpose:{id:i.id},event:{id:s.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=sh});var dP=o(Ye=>{"use strict";var sF=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oF=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aF=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&sF(r,e,n[i]);return oF(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudTxc=Ye.service=void 0;var fc=b(),yn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(yn||(Ye.service=yn={}));var cF=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],oh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return yn.transaction.PlaceOrder.svc===void 0&&(yn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>aF(uP()))).PlaceOrderCOAService),new yn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:cF})}};Ye.CloudTxc=oh});var lP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var uF=Y(),ah=te(),dF=E(),ch=class extends dF.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:_,eventOfferId:g}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:_,eventOfferId:g})}async authorizeEventService(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:uF.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:i.itemOffered.typeOf}},purpose:n})}};hc.OfferService=ch});var fP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var Sr=b(),mr=te(),lF=E(),uh=class extends lF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:i})}async cancel(e){let{id:r}=e,{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var hP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),fF=E(),lh=class extends fF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:i,project:s,seller:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:i})).createReturnOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var yP=o(Qe=>{"use strict";var hF=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yF=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&hF(r,e,n[i]);return yF(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudTxn=Qe.service=void 0;var vc=b(),rt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(rt||(Qe.service=rt={}));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 rt.Offer.svc===void 0&&(rt.Offer.svc=(await Promise.resolve().then(()=>fh(lP()))).OfferService),new rt.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return rt.transaction.PlaceOrder.svc===void 0&&(rt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(fP()))).PlaceOrderTransactionService),new rt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return rt.transaction.ReturnOrder.svc===void 0&&(rt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(hP()))).ReturnOrderTransactionService),new rt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Qe.CloudTxn=yh});var pP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var pF=b(),vF=E(),ph=class extends vF.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[pF.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var SP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var vP=b(),SF=E(),vh=class extends SF.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[vP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[vP.status.NO_CONTENT]})}};mc.RuleSetService=vh});var _P=o(Ze=>{"use strict";var mF=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_F=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mP=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&mF(r,e,n[i]);return _F(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.WaiterAdmin=Ze.service=void 0;var It;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(It||(Ze.service=It={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return It.Rule.svc===void 0&&(It.Rule.svc=(await Promise.resolve().then(()=>mP(pP()))).RuleService),new It.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return It.RuleSet.svc===void 0&&(It.RuleSet.svc=(await Promise.resolve().then(()=>mP(SP()))).RuleSetService),new It.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Ze.WaiterAdmin=Sh});var te=o(X=>{"use strict";var OF=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),TF=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&OF(r,e,n[i]);return TF(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=bF;X.loadChevreAsset=gF;X.loadChevreAdmic=AF;X.loadChevreAdmin=PF;X.loadChevreConsole=wF;X.loadChevrePay=RF;X.loadChevreTxn=MF;X.loadChevreTxc=IF;X.loadService=qF;X.loadCloudAdmin=NF;X.loadCloudAsset=jF;X.loadCloudSearch=xF;X.loadCloudPay=UF;X.loadCloudTxc=DF;X.loadCloudTxn=FF;X.loadWaiterAdmin=LF;var EF=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return EF.factory}});var CF=Oe(ji());X.transporters=CF;var mh;async function bF(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(zC()))).Chevre),new mh(...t)}var _h;async function gF(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAsset),new _h(...t)}var Oh;async function AF(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(rb()))).ChevreAdmic),new Oh(...t)}var Th;async function PF(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(Lb()))).ChevreAdmin),new Th(...t)}var Eh;async function wF(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(eA()))).ChevreConsole),new Eh(...t)}var Ch;async function RF(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(rA()))).ChevrePay),new Ch(...t)}var bh;async function MF(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(aA()))).ChevreTxn),new bh(...t)}var gh;async function IF(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(uA()))).ChevreTxc),new gh(...t)}var Ah;async function qF(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(vA()))).service),Ah}var Ph;async function NF(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(LA()))).CloudAdmin),new Ph(...t)}var wh;async function jF(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(WA()))).CloudAsset),new wh(...t)}var Rh;async function xF(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(XA()))).CloudSearch),new Rh(...t)}var Mh;async function UF(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(nP()))).CloudPay),new Mh(...t)}var Ih;async function DF(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(dP()))).CloudTxc),new Ih(...t)}var qh;async function FF(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(yP()))).CloudTxn),new qh(...t)}var Nh;async function LF(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(_P()))).WaiterAdmin),new Nh(...t)}});var OP=o(Wt=>{"use strict";var kF=Wt&&Wt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BF=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kF(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});BF(te(),Wt)});var NP=o((_5,qP)=>{var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(t){var e={exports:{}};return t(e,e.exports),e.exports}var GF=zt(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},i=0,s=void 0,c=void 0,d=function(h,v){M[i]=h,M[i+1]=v,(i+=2)===2&&(c?c(w):D())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function g(){var h=setTimeout;return function(){return h(w,1)}}var M=new Array(1e3);function w(){for(var h=0;h<i;h+=2)(0,M[h])(M[h+1]),M[h]=void 0,M[h+1]=void 0;i=0}var q,N,C,R,D=void 0;function k(h,v){var T=this,A=new this.constructor(j);A[W]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return Xe(P,A,L,T._result)})}else Je(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(j);return ce(v,h),v}D=S?function(){return process.nextTick(w)}:y?(N=0,C=new y(w),R=document.createTextNode(""),C.observe(R,{characterData:!0}),function(){R.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=w,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(s=h.runOnLoop||h.runOnContext)!==void 0?function(){s(w)}:g()}catch{return g()}})():g();var W=Math.random().toString(36).substring(2);function j(){}var $=void 0,G=1,z=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===G?se(A,P._result):P._state===z?ee(A,P._result):Je(P,void 0,function(L){return ce(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?se(h,v):r(T)?(function(A,P,L){d(function(V){var Z=!1,de=(function(Pe,Ee,qt,ye){try{Pe.call(Ee,function(we){Z||(Z=!0,P!==we?ce(V,we):se(V,we))},function(we){Z||(Z=!0,ee(V,we))})}catch(we){return we}})(L,P);!Z&&de&&(Z=!0,ee(V,de))},A)})(h,v,T):se(h,v)}function ce(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")se(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 ie(h){h._onerror&&h._onerror(h._result),nt(h)}function se(h,v){h._state===$&&(h._result=v,h._state=G,h._subscribers.length!==0&&d(nt,h))}function ee(h,v){h._state===$&&(h._state=z,h._result=v,d(ie,h))}function Je(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+G]=T,P[L+z]=A,L===0&&h._state&&d(nt,h)}function nt(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,L=h._result,V=0;V<v.length;V+=3)P=v[V+T],(A=v[V])?Xe(T,A,P,L):P(L);h._subscribers.length=0}}function Xe(h,v,T,A){var P=r(T),L=void 0,V=void 0,Z=!0;if(P){try{L=T(A)}catch(de){Z=!1,V=de}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=A;v._state!==$||(P&&Z?ce(v,L):Z===!1?ee(v,V):h===G?se(v,L):h===z&&ee(v,L))}var xe=0;function a(h){h[W]=xe++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(j),this.promise[W]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?se(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&se(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===$&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var A=this._instanceConstructor,P=A.resolve;if(P===K){var L=void 0,V=void 0,Z=!1;try{L=v.then}catch(Pe){Z=!0,V=Pe}if(L===k&&v._state!==$)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(A===l){var de=new A(j);Z?ee(de,V):Te(de,v,L),this._willSettleAt(de,T)}else this._willSettleAt(new A(function(Pe){return Pe(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===$&&(this._remaining--,v===z?ee(P,A):this._result[T]=A),this._remaining===0&&se(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;Je(v,void 0,function(P){return A._settledAt(G,T,P)},function(P){return A._settledAt(z,T,P)})},h})(),l=(function(){function h(v){this[W]=xe++,this._result=this._state=void 0,this._subscribers=[],j!==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){ce(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(j);return ee(v,h),v},l._setScheduler=function(h){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Vt!==void 0)h=Vt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),$F={__proto__:null,default:{}},Fh=zt(function(t,e){var r;t.exports=(r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&Vt!==void 0&&Vt.crypto&&(s=Vt.crypto),!s)try{s=$F}catch{}var c=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(R){var D;return C.prototype=R,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var R=d(this);return C&&R.mixIn(C),R.hasOwnProperty("init")&&this.init!==R.init||(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var R in C)C.hasOwnProperty(R)&&(this[R]=C[R]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,R){C=this.words=C||[],this.sigBytes=R??4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var R=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var W=0;W<K;W++)R[k+W>>>2]|=(D[W>>>2]>>>24-W%4*8&255)<<24-(k+W)%4*8;else for(var j=0;j<K;j+=4)R[k+j>>>2]=D[j>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,R=this.sigBytes;C[R>>>2]&=4294967295<<32-R%4*8,C.length=n.ceil(R/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var R=[],D=0;D<C;D+=4)R.push(c());return new S.init(R,C)}}),_=f.enc={},g=_.Hex={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var W=R[K>>>2]>>>24-K%4*8&255;k.push((W>>>4).toString(16)),k.push((15&W).toString(16))}return k.join("")},parse:function(C){for(var R=C.length,D=[],k=0;k<R;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,R/2)}},M=_.Latin1={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(R[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var R=C.length,D=[],k=0;k<R;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,R)}},w=_.Utf8={stringify:function(C){try{return decodeURIComponent(escape(M.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return M.parse(unescape(encodeURIComponent(C)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=w.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var R,D=this._data,k=D.words,K=D.sigBytes,W=this.blockSize,j=K/(4*W),$=(j=C?n.ceil(j):n.max((0|j)-this._minBufferSize,0))*W,G=n.min(4*$,K);if($){for(var z=0;z<$;z+=W)this._doProcessBlock(k,z);R=k.splice(0,$),D.sigBytes-=G}return new S.init(R,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(R,D){return new C.init(D).finalize(R)}},_createHmacHelper:function(C){return function(R,D){return new N.HMAC.init(C,D).finalize(R)}}});var N=f.algo={};return f})(Math),r)}),AP=zt(function(t,e){var r;t.exports=(r=Fh,(function(n){var i=r,s=i.lib,c=s.WordArray,d=s.Hasher,f=i.algo,p=[],y=[];(function(){function g(N){for(var C=n.sqrt(N),R=2;R<=C;R++)if(!(N%R))return!1;return!0}function M(N){return 4294967296*(N-(0|N))|0}for(var w=2,q=0;q<64;)g(w)&&(q<8&&(p[q]=M(n.pow(w,.5))),y[q]=M(n.pow(w,1/3)),q++),w++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(g,M){for(var w=this._hash.words,q=w[0],N=w[1],C=w[2],R=w[3],D=w[4],k=w[5],K=w[6],W=w[7],j=0;j<64;j++){if(j<16)S[j]=0|g[M+j];else{var $=S[j-15],G=S[j-2];S[j]=(($<<25|$>>>7)^($<<14|$>>>18)^$>>>3)+S[j-7]+((G<<15|G>>>17)^(G<<13|G>>>19)^G>>>10)+S[j-16]}var z=q&N^q&C^N&C,Te=W+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[j]+S[j];W=K,K=k,k=D,D=R+Te|0,R=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+z)|0}w[0]=w[0]+q|0,w[1]=w[1]+N|0,w[2]=w[2]+C|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+k|0,w[6]=w[6]+K|0,w[7]=w[7]+W|0},_doFinalize:function(){var g=this._data,M=g.words,w=8*this._nDataBytes,q=8*g.sigBytes;return M[q>>>5]|=128<<24-q%32,M[14+(q+64>>>9<<4)]=n.floor(w/4294967296),M[15+(q+64>>>9<<4)]=w,g.sigBytes=4*M.length,this._process(),this._hash},clone:function(){var g=d.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA256=d._createHelper(_),i.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),KF=zt(function(t,e){var r,n;t.exports=(n=(r=Fh).lib.WordArray,r.enc.Base64={stringify:function(i){var s=i.words,c=i.sigBytes,d=this._map;i.clamp();for(var f=[],p=0;p<c;p+=3)for(var y=(s[p>>>2]>>>24-p%4*8&255)<<16|(s[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|s[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<c;S++)f.push(d.charAt(y>>>6*(3-S)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(i){var s=i.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=i.indexOf(p);y!==-1&&(s=y)}return(function(S,_,g){for(var M=[],w=0,q=0;q<_;q++)if(q%4){var N=g[S.charCodeAt(q-1)]<<q%4*2,C=g[S.charCodeAt(q)]>>>6-q%4*2;M[w>>>2]|=(N|C)<<24-w%4*8,w++}return n.create(M,w)})(i,s,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),TP=zt(function(t,e){t.exports=Fh.enc.Hex}),PP=zt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function i(){return new n(null)}var s=typeof navigator<"u";s&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],V=this[a++]>>15,Z=P*L+V*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*V+(v>>>30),l[h++]=1073741823&L}return v},r=30):s&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],V=this[a++]>>14,Z=P*L+V*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*V,l[h++]=268435455&L}return v},r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52;var c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=i();return u.fromInt(a),u}function _(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,l+=1),l}function g(a){this.m=a}function M(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function w(a,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function R(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function W(a){this.r2=i(),this.q3=i(),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)},M.prototype.convert=function(a){var u=i();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},M.prototype.revert=function(a){var u=i();return a.copyTo(u),this.reduce(u),u},M.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},M.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},M.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=i());var T=i(),A=this.s,P=a.s,L=this.DB-_(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var V=T.t,Z=T[V-1];if(Z!=0){var de=Z*(1<<this.F1)+(V>1?T[V-2]>>this.F2:0),Pe=this.FV/de,Ee=(1<<this.F1)/de,qt=1<<this.F2,ye=l.t,we=ye-V,it=u??i();for(T.dlShiftTo(we,it),l.compareTo(it)>=0&&(l[l.t++]=1,l.subTo(it,l)),n.ONE.dlShiftTo(V,it),it.subTo(T,T);T.t<V;)T[T.t++]=0;for(;--we>=0;){var Er=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+qt)*Ee);if((l[ye]+=T.am(0,Er,l,we,0,V))<Er)for(T.dlShiftTo(we,it),l.subTo(it,l);l[ye]<--Er;)l.subTo(it,l)}u!=null&&(l.drShiftTo(V,u),A!=P&&n.ZERO.subTo(u,u)),l.t=V,l.clamp(),L>0&&l.rShiftTo(L,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=i(),h=i(),v=u.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=i();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var u=i();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new g(u):new M(u),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},W.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var u=i();return a.copyTo(u),this.reduce(u),u},W.prototype.revert=function(a){return a},W.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)},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)};var j,$,G,z=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/z[z.length-1];function ce(){var a;a=new Date().getTime(),$[G++]^=255&a,$[G++]^=a>>8&255,$[G++]^=a>>16&255,$[G++]^=a>>24&255,G>=xe&&(G-=xe)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=i(),T=i(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>z.length&&(a=z.length);for(var v=i(),T=0;T<a;++T){v.fromInt(z[Math.floor(Math.random()*z.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=0)return!1}}return!0},n.prototype.clone=function(){var a=i();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,u=new Array;u[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(u[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(u[v++]=l);return u},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var u=i();return this.bitwiseTo(a,w,u),u},n.prototype.or=function(a){var u=i();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=i();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=i();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=i(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=i();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=i();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+R(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=i();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=i();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=i();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=i();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=i();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=i(),l=i();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new g(u):u.isEven()?new W(u):new M(u);var A=new Array,P=3,L=l-1,V=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=i();for(h.sqrTo(A[1],Z);P<=V;)A[P]=i(),h.mulTo(Z,A[P-2],A[P]),P+=2}var de,Pe,Ee=a.t-1,qt=!0,ye=i();for(v=_(a[Ee])-1;Ee>=0;){for(v>=L?de=a[Ee]>>v-L&V:(de=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(de|=a[Ee-1]>>this.DB+v-L)),P=l;(1&de)==0;)de>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),qt)A[de].copyTo(T),qt=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),h.mulTo(ye,A[de],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var u=a.isEven();if(this.isEven()&&u||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),u?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),u?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=z[z.length-1]){for(u=0;u<z.length;++u)if(l[0]==z[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<z.length;){for(var h=z[u],v=u+1;v<z.length&&h<Te;)h*=z[v++];for(h=l.modInt(h);u<v;)if(h%z[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=i();return this.squareTo(a),a},n.prototype.Barrett=W,$==null){var ie;if($=new Array,G=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var se=new Uint8Array(32);for(window.crypto.getRandomValues(se),ie=0;ie<32;++ie)$[G++]=se[ie]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(ie=0;ie<ee.length;++ie)$[G++]=255&ee.charCodeAt(ie)}}for(;G<xe;)ie=Math.floor(65536*Math.random()),$[G++]=ie>>>8,$[G++]=255&ie;G=0,ce()}function Je(){if(j==null){for(ce(),(j=new Xe).init($),G=0;G<$.length;++G)$[G]=0;G=0}return j.next()}function nt(){}function Xe(){this.i=0,this.j=0,this.S=new Array}nt.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=Je()},Xe.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%a.length]&255],this.S[l]=h;this.i=0,this.j=0},Xe.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var xe=256;t.exports={default:n,BigInteger:n,SecureRandom:nt}}).call(Vt)}),EP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},CP={sha256:AP};function wP(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 PP.BigInteger(t,16),this.e=parseInt(e,16)}wP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new PP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(s){for(var c in EP){var d=EP[c],f=d.length;if(s.substring(0,f)===d)return{alg:c,hash:s.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!CP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var i=CP[n.alg](t).toString();return n.hash===i};for(bP=[],je=[],RP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ht=0;Ht<64;++Ht)bP[Ht]=jh[Ht],je[jh.charCodeAt(Ht)]=Ht;var bP,je,RP,jh,Ht;je[45]=62,je[95]=63;var MP=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),i=n[0],s=n[1],c=new RP((function(p,y,S){return 3*(y+S)/4-S})(0,i,s)),d=0,f=s>0?i-4:i;for(r=0;r<f;r+=4)e=je[t.charCodeAt(r)]<<18|je[t.charCodeAt(r+1)]<<12|je[t.charCodeAt(r+2)]<<6|je[t.charCodeAt(r+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return s===2&&(e=je[t.charCodeAt(r)]<<2|je[t.charCodeAt(r+1)]>>4,c[d++]=255&e),s===1&&(e=je[t.charCodeAt(r)]<<10|je[t.charCodeAt(r+1)]<<4|je[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function IP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function gP(t){return t=IP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(MP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var i=e[n].toString(16);r+=i.length===2?i:"0"+i}return r})(MP(IP(t)))}var WF=zt(function(t){var e,r;e=Vt,r=function(){return function(){return(function(n){var i=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var s=n.shift();n[0]=s+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<n.length-1?"":"/"),i.push(d))}var f=i.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function HF(t,e){return e=e||{},new Promise(function(r,n){var i=new XMLHttpRequest,s=[],c=[],d={},f=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:f,headers:{keys:function(){return s},entries:function(){return c},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,_){s.push(S=S.toLowerCase()),c.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},i.onerror=n,i.withCredentials=e.credentials=="include",e.headers)i.setRequestHeader(p,e.headers[p]);i.send(e.body||null)})}function VF(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Uh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Uh.prototype=Error.prototype,ne.prototype=Error.prototype;var zF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();GF.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},YF=function(){return new Date};function pn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new zF,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:YF,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}pn.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 i=n.encoded.header+"."+n.encoded.payload,s=xh(n.encoded.signature),c=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,_=n.payload.nbf,g=n.payload.iat,M=n.payload.azp,w=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ne('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(R,D){if(R)return r(R,null);if(!D.verify(i,s))return r(new 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(!M||typeof M!="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(M!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+M+'"'),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(_&&_c(_)){var W=_-C.leeway,j=new Date(0);if(j.setUTCSeconds(W),N<j)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+j+'"'),null)}if(C.maxAge){if(!w||!_c(w))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+C.maxAge+C.leeway,G=new Date(0);if(G.setUTCSeconds($),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)})},pn.prototype.getRsaVerifier=function(t,e,r){var n=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then(function(s){return s?n.jwksCache.get(i):(d=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||WF(c.iss,".well-known","jwks.json"),(fetch=="undefined"?HF:fetch)(d).then(VF).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===c.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=_).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,d}).then(function(s){if(!s||!s.modulus||!s.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(i,s)).then(function(){r&&r(null,new wP(s.modulus,s.exp))})}).catch(function(s){r&&r(s)})},pn.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(gP(n[0])),r=JSON.parse(gP(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]}}},pn.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 i,s=AP(t),c=TP.stringify(s),d=c.substring(0,c.length/2),f=TP.parse(d),p=KF.stringify(f);return n((i={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return i[y]})!==r?new ne("Invalid access_token"):null))},qP.exports=pn});var vn=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Lh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Lh});var jP=o(_r=>{"use strict";var QF=_r&&_r.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_r,"__esModule",{value:!0});_r.PopupHandler=void 0;var ZF=QF(ir()),kh=(0,ZF.default)("cinerino-sdk:auth:popupHandler"),Bh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(kh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){kh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};_r.PopupHandler=Bh});var xP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var JF=vn(),XF=jP(),Gh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.location.hash}catch(s){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new XF.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new JF.AuthorizeError("Timeout during authentication");i.error="timeout",i.errorDescription="Timeout during authentication",n(i)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=Gh});var Kh=o(Or=>{"use strict";var eL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.IframeHandler=void 0;var tL=eL(ir()),rL=(0,tL.default)("cinerino-sdk:auth:iframeHandler"),$h=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(rL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Or.IframeHandler=$h});var UP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var nL=vn(),iL=Kh(),Wh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new iL.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new nL.AuthorizeError("Timeout during authentication renew");i.error="timeout",i.errorDescription="Timeout during authentication renew",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Wh});var DP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var sL=vn(),oL=Kh(),Hh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new oL.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new sL.AuthorizeError("Timeout during logout");i.error="timeout",i.errorDescription="Timeout during logout",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentLogoutHandler=Hh});var FP=o(()=>{});var LP=o(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.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"]}};bc.LoginTicket=Vh});var kP=o(mt=>{"use strict";var aL=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mt,"__esModule",{value:!0});mt.OAuth2client=mt.MAX_RETRY_NUM=void 0;var cL=FP(),uL=aL(ir()),gc=b(),dL=ji(),lL=LP(),Yt=(0,uL.default)("cinerino-sdk:auth:oAuth2client"),fL=1e3;mt.MAX_RETRY_NUM=2;async function hL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var zh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,cL.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},i=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(i),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Yt("response:",d.status),d.status!==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=>(Yt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,i){let s=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let c,d=0;for(;c===void 0;)try{d+=1,d>mt.MAX_RETRY_NUM&&(s=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Yt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",s,"retryableStatusCodes: ",i),s&&typeof p=="number"&&i.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await hL(fL*d);continue}}throw f}return c}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let i=new dL.DefaultTransporter(n),s;return typeof this.events.preFetch=="function"?s=(await this.events.preFetch({url:e,options:r})).options:s=r,i.fetch(e,s)}async refreshToken(e){Yt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(n),s={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",s),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,s).then(async c=>{if(Yt("response:",c.status),c.status!==gc.status.OK)if(c.status===gc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:_}=f;d={access_token:p,id_token:y,token_type:_,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let i,s;try{i=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{s=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(s.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(s)}`);if(s.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(s)}`);if(isNaN(s.iat))throw new Error("iat field using invalid format");if(isNaN(s.exp))throw new Error("exp field using invalid format");if(r!==void 0){let c=s.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new lL.LoginTicket({envelope:i,payload:s})}};mt.OAuth2client=zh});var $P=o(Tr=>{"use strict";var GP=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ImplicitGrantClient=void 0;var yL=GP(ir()),BP=GP(NP()),Yh=Wu(),pL=vn(),vL=xP(),SL=UP(),mL=DP(),_L=kP(),Ac=(0,yL.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends _L.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Ac("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},i=await SL.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(i)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},i=await vL.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(i)}async signOut(){await mL.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let i=new pL.AuthorizeError(n.error_description);throw i.error=n.error,i.errorDescription=n.error_description,i.state=n.state,i}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let i=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i)}if(typeof n.id_token=="string"){let s=new BP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,i)=>{new BP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){i(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Tr.ImplicitGrantClient=Qh});var KP=o(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.transporters=he.factory=he.loadService=he.loadCloudTxn=he.loadCloudTxc=he.loadCloudSearch=he.loadCloudPay=he.loadCloudAsset=he.loadCloudAdmin=void 0;he.createAuthInstance=TL;var _t=OP();Object.defineProperty(he,"factory",{enumerable:!0,get:function(){return _t.factory}});Object.defineProperty(he,"loadCloudAdmin",{enumerable:!0,get:function(){return _t.loadCloudAdmin}});Object.defineProperty(he,"loadCloudAsset",{enumerable:!0,get:function(){return _t.loadCloudAsset}});Object.defineProperty(he,"loadCloudPay",{enumerable:!0,get:function(){return _t.loadCloudPay}});Object.defineProperty(he,"loadCloudSearch",{enumerable:!0,get:function(){return _t.loadCloudSearch}});Object.defineProperty(he,"loadCloudTxc",{enumerable:!0,get:function(){return _t.loadCloudTxc}});Object.defineProperty(he,"loadCloudTxn",{enumerable:!0,get:function(){return _t.loadCloudTxn}});Object.defineProperty(he,"loadService",{enumerable:!0,get:function(){return _t.loadService}});Object.defineProperty(he,"transporters",{enumerable:!0,get:function(){return _t.transporters}});var OL=$P();function TL(t){return new OL.ImplicitGrantClient(t)}});var q5=window.cinerino=KP();})();
|
|
4
|
+
`+e.prev}function ji(t,e){var r=Cu(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=yt(t,i)?e(t[i],t):""}var s=typeof mu=="function"?mu(t):[],c;if(ar){c={};for(var d=0;d<s.length;d++)c["$"+s[d]]=s[d]}for(var f in t)yt(t,f)&&(r&&String(Number(f))===f&&f<t.length||ar&&c["$"+f]instanceof Symbol||(KT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof mu=="function")for(var p=0;p<s.length;p++)WT.call(t,s[p])&&n.push("["+e(s[p])+"]: "+e(t[s[p]],t));return n}});var XT=o((I2,JT)=>{"use strict";var kq=Dr(),Bq=Ut(),Di=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},Gq=function(t,e){if(t){var r=Di(t,e);return r&&r.value}},$q=function(t,e,r){var n=Di(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Kq=function(t,e){return t?!!Di(t,e):!1},Wq=function(t,e){if(t)return Di(t,e,!0)};JT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Bq("Side channel does not contain "+kq(n))},delete:function(n){var i=Wq(e,n);return i&&e&&!e.next&&(e=void 0),!!i},get:function(n){return Gq(e,n)},has:function(n){return Kq(e,n)},set:function(n,i){e||(e={next:void 0}),$q(e,n,i)}};return r}});var wu=o((q2,eE)=>{"use strict";eE.exports=Object});var rE=o((N2,tE)=>{"use strict";tE.exports=Error});var iE=o((j2,nE)=>{"use strict";nE.exports=EvalError});var oE=o((x2,sE)=>{"use strict";sE.exports=RangeError});var cE=o((U2,aE)=>{"use strict";aE.exports=ReferenceError});var dE=o((D2,uE)=>{"use strict";uE.exports=SyntaxError});var fE=o((F2,lE)=>{"use strict";lE.exports=URIError});var yE=o((L2,hE)=>{"use strict";hE.exports=Math.abs});var vE=o((k2,pE)=>{"use strict";pE.exports=Math.floor});var mE=o((B2,SE)=>{"use strict";SE.exports=Math.max});var OE=o((G2,_E)=>{"use strict";_E.exports=Math.min});var EE=o(($2,TE)=>{"use strict";TE.exports=Math.pow});var gE=o((K2,CE)=>{"use strict";CE.exports=Math.round});var AE=o((W2,bE)=>{"use strict";bE.exports=Number.isNaN||function(e){return e!==e}});var wE=o((H2,PE)=>{"use strict";var Hq=AE();PE.exports=function(e){return Hq(e)||e===0?e:e<0?-1:1}});var ME=o((z2,RE)=>{"use strict";RE.exports=Object.getOwnPropertyDescriptor});var Ru=o((V2,IE)=>{"use strict";var Fi=ME();if(Fi)try{Fi([],"length")}catch{Fi=null}IE.exports=Fi});var NE=o((Y2,qE)=>{"use strict";var Li=Object.defineProperty||!1;if(Li)try{Li({},"a",{value:1})}catch{Li=!1}qE.exports=Li});var xE=o((Q2,jE)=>{"use strict";jE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==i||d.enumerable!==!0)return!1}return!0}});var FE=o((Z2,DE)=>{"use strict";var UE=typeof Symbol<"u"&&Symbol,zq=xE();DE.exports=function(){return typeof UE!="function"||typeof Symbol!="function"||typeof UE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zq()}});var Mu=o((J2,LE)=>{"use strict";LE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Iu=o((X2,kE)=>{"use strict";var Vq=wu();kE.exports=Vq.getPrototypeOf||null});var $E=o((e3,GE)=>{"use strict";var Yq="Function.prototype.bind called on incompatible ",Qq=Object.prototype.toString,Zq=Math.max,Jq="[object Function]",BE=function(e,r){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<r.length;s+=1)n[s+e.length]=r[s];return n},Xq=function(e,r){for(var n=[],i=r||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},e1=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};GE.exports=function(e){var r=this;if(typeof r!="function"||Qq.apply(r)!==Jq)throw new TypeError(Yq+r);for(var n=Xq(arguments,1),i,s=function(){if(this instanceof i){var y=r.apply(this,BE(n,arguments));return Object(y)===y?y:this}return r.apply(e,BE(n,arguments))},c=Zq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(i=Function("binder","return function ("+e1(d,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i}});var Fr=o((t3,KE)=>{"use strict";var t1=$E();KE.exports=Function.prototype.bind||t1});var ki=o((r3,WE)=>{"use strict";WE.exports=Function.prototype.call});var qu=o((n3,HE)=>{"use strict";HE.exports=Function.prototype.apply});var VE=o((i3,zE)=>{"use strict";zE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var QE=o((s3,YE)=>{"use strict";var r1=Fr(),n1=qu(),i1=ki(),s1=VE();YE.exports=s1||r1.call(i1,n1)});var Nu=o((o3,ZE)=>{"use strict";var o1=Fr(),a1=Ut(),c1=ki(),u1=QE();ZE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new a1("a function is required");return u1(o1,c1,e)}});var nC=o((a3,rC)=>{"use strict";var d1=Nu(),JE=Ru(),eC;try{eC=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var ju=!!eC&&JE&&JE(Object.prototype,"__proto__"),tC=Object,XE=tC.getPrototypeOf;rC.exports=ju&&typeof ju.get=="function"?d1([ju.get]):typeof XE=="function"?function(e){return XE(e==null?e:tC(e))}:!1});var cC=o((c3,aC)=>{"use strict";var iC=Mu(),sC=Iu(),oC=nC();aC.exports=iC?function(e){return iC(e)}:sC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return sC(e)}:oC?function(e){return oC(e)}:null});var dC=o((u3,uC)=>{"use strict";var l1=Function.prototype.call,f1=Object.prototype.hasOwnProperty,h1=Fr();uC.exports=h1.call(l1,f1)});var $i=o((d3,vC)=>{"use strict";var H,y1=wu(),p1=rE(),v1=iE(),S1=oE(),m1=cE(),lr=dE(),dr=Ut(),_1=fE(),O1=yE(),T1=vE(),E1=mE(),C1=OE(),g1=EE(),b1=gE(),A1=wE(),yC=Function,xu=function(t){try{return yC('"use strict"; return ('+t+").constructor;")()}catch{}},Lr=Ru(),P1=NE(),Uu=function(){throw new dr},w1=Lr?(function(){try{return arguments.callee,Uu}catch{try{return Lr(arguments,"callee").get}catch{return Uu}}})():Uu,cr=FE()(),Se=cC(),R1=Iu(),M1=Mu(),pC=qu(),kr=ki(),ur={},I1=typeof Uint8Array>"u"||!Se?H:Se(Uint8Array),Ft={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?H:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?H:ArrayBuffer,"%ArrayIteratorPrototype%":cr&&Se?Se([][Symbol.iterator]()):H,"%AsyncFromSyncIteratorPrototype%":H,"%AsyncFunction%":ur,"%AsyncGenerator%":ur,"%AsyncGeneratorFunction%":ur,"%AsyncIteratorPrototype%":ur,"%Atomics%":typeof Atomics>"u"?H:Atomics,"%BigInt%":typeof BigInt>"u"?H:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?H:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?H:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?H:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p1,"%eval%":eval,"%EvalError%":v1,"%Float16Array%":typeof Float16Array>"u"?H:Float16Array,"%Float32Array%":typeof Float32Array>"u"?H:Float32Array,"%Float64Array%":typeof Float64Array>"u"?H:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?H:FinalizationRegistry,"%Function%":yC,"%GeneratorFunction%":ur,"%Int8Array%":typeof Int8Array>"u"?H:Int8Array,"%Int16Array%":typeof Int16Array>"u"?H:Int16Array,"%Int32Array%":typeof Int32Array>"u"?H:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cr&&Se?Se(Se([][Symbol.iterator]())):H,"%JSON%":typeof JSON=="object"?JSON:H,"%Map%":typeof Map>"u"?H:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cr||!Se?H:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":y1,"%Object.getOwnPropertyDescriptor%":Lr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?H:Promise,"%Proxy%":typeof Proxy>"u"?H:Proxy,"%RangeError%":S1,"%ReferenceError%":m1,"%Reflect%":typeof Reflect>"u"?H:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?H:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cr||!Se?H:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?H:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cr&&Se?Se(""[Symbol.iterator]()):H,"%Symbol%":cr?Symbol:H,"%SyntaxError%":lr,"%ThrowTypeError%":w1,"%TypedArray%":I1,"%TypeError%":dr,"%Uint8Array%":typeof Uint8Array>"u"?H:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?H:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?H:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?H:Uint32Array,"%URIError%":_1,"%WeakMap%":typeof WeakMap>"u"?H:WeakMap,"%WeakRef%":typeof WeakRef>"u"?H:WeakRef,"%WeakSet%":typeof WeakSet>"u"?H:WeakSet,"%Function.prototype.call%":kr,"%Function.prototype.apply%":pC,"%Object.defineProperty%":P1,"%Object.getPrototypeOf%":R1,"%Math.abs%":O1,"%Math.floor%":T1,"%Math.max%":E1,"%Math.min%":C1,"%Math.pow%":g1,"%Math.round%":b1,"%Math.sign%":A1,"%Reflect.getPrototypeOf%":M1};if(Se)try{null.error}catch(t){lC=Se(Se(t)),Ft["%Error.prototype%"]=lC}var lC,q1=function t(e){var r;if(e==="%AsyncFunction%")r=xu("async function () {}");else if(e==="%GeneratorFunction%")r=xu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=xu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Se&&(r=Se(i.prototype))}return Ft[e]=r,r},fC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Br=Fr(),Bi=dC(),N1=Br.call(kr,Array.prototype.concat),j1=Br.call(pC,Array.prototype.splice),hC=Br.call(kr,String.prototype.replace),Gi=Br.call(kr,String.prototype.slice),x1=Br.call(kr,RegExp.prototype.exec),U1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D1=/\\(\\)?/g,F1=function(e){var r=Gi(e,0,1),n=Gi(e,-1);if(r==="%"&&n!=="%")throw new lr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lr("invalid intrinsic syntax, expected opening `%`");var i=[];return hC(e,U1,function(s,c,d,f){i[i.length]=d?hC(f,D1,"$1"):c||s}),i},L1=function(e,r){var n=e,i;if(Bi(fC,n)&&(i=fC[n],n="%"+i[0]+"%"),Bi(Ft,n)){var s=Ft[n];if(s===ur&&(s=q1(n)),typeof s>"u"&&!r)throw new dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new lr("intrinsic "+e+" does not exist!")};vC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dr('"allowMissing" argument must be a boolean');if(x1(/^%?[^%]*%?$/,e)===null)throw new lr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=F1(e),i=n.length>0?n[0]:"",s=L1("%"+i+"%",r),c=s.name,d=s.value,f=!1,p=s.alias;p&&(i=p[0],j1(n,N1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var _=n[y],b=Gi(_,0,1),M=Gi(_,-1);if((b==='"'||b==="'"||b==="`"||M==='"'||M==="'"||M==="`")&&b!==M)throw new lr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),i+="."+_,c="%"+i+"%",Bi(Ft,c))d=Ft[c];else if(d!=null){if(!(_ in d)){if(!r)throw new dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(Lr&&y+1>=n.length){var w=Lr(d,_);S=!!w,S&&"get"in w&&!("originalValue"in w.get)?d=w.get:d=d[_]}else S=Bi(d,_),d=d[_];S&&!f&&(Ft[c]=d)}}return d}});var Du=o((l3,_C)=>{"use strict";var SC=$i(),mC=Nu(),k1=mC([SC("%String.prototype.indexOf%")]);_C.exports=function(e,r){var n=SC(e,!!r);return typeof n=="function"&&k1(e,".prototype.")>-1?mC([n]):n}});var Fu=o((f3,TC)=>{"use strict";var B1=$i(),Gr=Du(),G1=Dr(),$1=Ut(),OC=B1("%Map%",!0),K1=Gr("Map.prototype.get",!0),W1=Gr("Map.prototype.set",!0),H1=Gr("Map.prototype.has",!0),z1=Gr("Map.prototype.delete",!0),V1=Gr("Map.prototype.size",!0);TC.exports=!!OC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new $1("Side channel does not contain "+G1(n))},delete:function(n){if(e){var i=z1(e,n);return V1(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return K1(e,n)},has:function(n){return e?H1(e,n):!1},set:function(n,i){e||(e=new OC),W1(e,n,i)}};return r}});var CC=o((h3,EC)=>{"use strict";var Y1=$i(),Wi=Du(),Q1=Dr(),Ki=Fu(),Z1=Ut(),fr=Y1("%WeakMap%",!0),J1=Wi("WeakMap.prototype.get",!0),X1=Wi("WeakMap.prototype.set",!0),eN=Wi("WeakMap.prototype.has",!0),tN=Wi("WeakMap.prototype.delete",!0);EC.exports=fr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Z1("Side channel does not contain "+Q1(i))},delete:function(i){if(fr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return tN(e,i)}else if(Ki&&r)return r.delete(i);return!1},get:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?J1(e,i):r&&r.get(i)},has:function(i){return fr&&i&&(typeof i=="object"||typeof i=="function")&&e?eN(e,i):!!r&&r.has(i)},set:function(i,s){fr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new fr),X1(e,i,s)):Ki&&(r||(r=Ki()),r.set(i,s))}};return n}:Ki});var bC=o((y3,gC)=>{"use strict";var rN=Ut(),nN=Dr(),iN=XT(),sN=Fu(),oN=CC(),aN=oN||sN||iN;gC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new rN("Side channel does not contain "+nN(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=aN()),e.set(n,i)}};return r}});var Hi=o((p3,AC)=>{"use strict";var cN=String.prototype.replace,uN=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};AC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return cN.call(t,uN,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Gu=o((v3,wC)=>{"use strict";var dN=Hi(),ku=Object.prototype.hasOwnProperty,Lt=Array.isArray,ct=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),lN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},PC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},fN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!ku.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return Lt(e)&&!Lt(r)&&(i=PC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(s,c){if(ku.call(e,c)){var d=e[c];d&&typeof d=="object"&&s&&typeof s=="object"?e[c]=t(d,s,n):e.push(s)}else e[c]=s}),e):Object.keys(r).reduce(function(s,c){var d=r[c];return ku.call(s,c)?s[c]=t(s[c],d,n):s[c]=d,s},i)},hN=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},yN=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bu=1024,pN=function(e,r,n,i,s){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=Bu){for(var p=c.length>=Bu?c.slice(f,f+Bu):c,y=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||s===dN.RFC1738&&(_===40||_===41)){y[y.length]=p.charAt(S);continue}if(_<128){y[y.length]=ct[_];continue}if(_<2048){y[y.length]=ct[192|_>>6]+ct[128|_&63];continue}if(_<55296||_>=57344){y[y.length]=ct[224|_>>12]+ct[128|_>>6&63]+ct[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=ct[240|_>>18]+ct[128|_>>12&63]+ct[128|_>>6&63]+ct[128|_&63]}d+=y.join("")}return d},vN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],c=s.obj[s.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return lN(r),e},SN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},mN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_N=function(e,r){return[].concat(e,r)},ON=function(e,r){if(Lt(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)};wC.exports={arrayToObject:PC,assign:hN,combine:_N,compact:vN,decode:yN,encode:pN,isBuffer:mN,isRegExp:SN,maybeMap:ON,merge:fN}});var jC=o((S3,NC)=>{"use strict";var MC=bC(),zi=Gu(),$r=Hi(),TN=Object.prototype.hasOwnProperty,IC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ut=Array.isArray,EN=Array.prototype.push,qC=function(t,e){EN.apply(t,ut(e)?e:[e])},CN=Date.prototype.toISOString,RC=$r.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:zi.encode,encodeValuesOnly:!1,format:RC,formatter:$r.formatters[RC],indices:!1,serializeDate:function(e){return CN.call(e)},skipNulls:!1,strictNullHandling:!1},gN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$u={},bN=function t(e,r,n,i,s,c,d,f,p,y,S,_,b,M,w,q,N,C){for(var R=e,D=C,k=0,K=!1;(D=D.get($u))!==void 0&&!K;){var W=D.get(e);if(k+=1,typeof W<"u"){if(W===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get($u)>"u"&&(k=0)}if(typeof y=="function"?R=y(r,R):R instanceof Date?R=b(R):n==="comma"&&ut(R)&&(R=zi.maybeMap(R,function(xe){return xe instanceof Date?b(xe):xe})),R===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",M):r;R=""}if(gN(R)||zi.isBuffer(R)){if(p){var j=q?r:p(r,pe.encoder,N,"key",M);return[w(j)+"="+w(p(R,pe.encoder,N,"value",M))]}return[w(r)+"="+w(String(R))]}var $=[];if(typeof R>"u")return $;var G;if(n==="comma"&&ut(R))q&&p&&(R=zi.maybeMap(R,p)),G=[{value:R.length>0?R.join(",")||null:void 0}];else if(ut(y))G=y;else{var V=Object.keys(R);G=S?V.sort(S):V}var Te=f?r.replace(/\./g,"%2E"):r,ce=i&&ut(R)&&R.length===1?Te+"[]":Te;if(s&&ut(R)&&R.length===0)return ce+"[]";for(var ie=0;ie<G.length;++ie){var se=G[ie],ee=typeof se=="object"&&typeof se.value<"u"?se.value:R[se];if(!(d&&ee===null)){var Je=_&&f?se.replace(/\./g,"%2E"):se,nt=ut(R)?typeof n=="function"?n(ce,Je):ce:ce+(_?"."+Je:"["+Je+"]");C.set(e,k);var Xe=MC();Xe.set($u,C),qC($,t(ee,nt,n,i,s,c,d,f,n==="comma"&&q&&ut(R)?null:p,y,S,_,b,M,w,q,N,Xe))}}return $},AN=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=$r.default;if(typeof e.format<"u"){if(!TN.call($r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=$r.formatters[n],s=pe.filter;(typeof e.filter=="function"||ut(e.filter))&&(s=e.filter);var c;if(e.arrayFormat in IC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:c,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};NC.exports=function(t,e){var r=t,n=AN(e),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):ut(n.filter)&&(s=n.filter,i=s);var c=[];if(typeof r!="object"||r===null)return"";var d=IC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var p=MC(),y=0;y<i.length;++y){var S=i[y];n.skipNulls&&r[S]===null||qC(c,bN(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var _=c.join(n.delimiter),b=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}});var DC=o((m3,UC)=>{"use strict";var hr=Gu(),Ku=Object.prototype.hasOwnProperty,PN=Array.isArray,le={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:hr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},xC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},RN="utf8=%26%2310003%3B",MN="utf8=%E2%9C%93",IN=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=r.parameterLimit===1/0?void 0:r.parameterLimit,c=i.split(r.delimiter,s),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===MN?p="utf-8":c[f]===RN&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[f],S=y.indexOf("]="),_=S===-1?y.indexOf("="):S+1,b,M;_===-1?(b=r.decoder(y,le.decoder,p,"key"),M=r.strictNullHandling?null:""):(b=r.decoder(y.slice(0,_),le.decoder,p,"key"),M=hr.maybeMap(xC(y.slice(_+1),r),function(q){return r.decoder(q,le.decoder,p,"value")})),M&&r.interpretNumericEntities&&p==="iso-8859-1"&&(M=wN(M)),y.indexOf("[]=")>-1&&(M=PN(M)?[M]:M);var w=Ku.call(n,b);w&&r.duplicates==="combine"?n[b]=hr.combine(n[b],M):(!w||r.duplicates==="last")&&(n[b]=M)}return n},qN=function(t,e,r,n){for(var i=n?e:xC(e,r),s=t.length-1;s>=0;--s){var c,d=t[s];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&i===""?[]:[].concat(i);else{c=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?c={0:i}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=i):p!=="__proto__"&&(c[p]=i)}i=c}return i},NN=function(e,r,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(s),p=f?s.slice(0,f.index):s,y=[];if(p){if(!n.plainObjects&&Ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(s))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+s.slice(f.index)+"]"),qN(y,r,n,i)}},jN=function(e){if(!e)return le;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?le.charset:e.charset,n=typeof e.duplicates>"u"?le.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:le.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:le.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:le.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:le.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:le.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:le.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:le.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:le.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:le.decoder,delimiter:typeof e.delimiter=="string"||hr.isRegExp(e.delimiter)?e.delimiter:le.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:le.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:le.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:le.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:le.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:le.strictNullHandling}};UC.exports=function(t,e){var r=jN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?IN(t,r):t,i=r.plainObjects?Object.create(null):{},s=Object.keys(n),c=0;c<s.length;++c){var d=s[c],f=NN(d,n[d],r,typeof t=="string");i=hr.merge(i,f,r)}return r.allowSparse===!0?i:hr.compact(i)}});var Wu=o((_3,FC)=>{"use strict";var xN=jC(),UN=DC(),DN=Hi();FC.exports={formats:DN,parse:UN,stringify:xN}});var E=o(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.Service=kt.RESOURCE_SELECTOR_SEPARATOR=void 0;var FN=Wu(),LN=qi();kt.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"},i=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(i)||(i+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?i=`${i}/projects/${this.options.project.id}${kt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:i=`${i}/projects/${this.options.project.id}`);let s=`${i}${n.uri}`,c=(0,FN.stringify)(n.qs,r!==void 0?r:void 0);s+=c.length>0?`?${c}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(s,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new LN.DefaultTransporter(n.expectedStatusCodes)).fetch(s,f)}};kt.Service=Hu});var LC=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.CategoryCodeService=void 0;var kN=g(),BN=E(),zu=class extends BN.Service{async findCategoryCodes(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[kN.status.OK]}).then(async r=>r.json())}};Vi.CategoryCodeService=zu});var kC=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.CreativeWorkService=void 0;var GN=g(),$N=E(),Vu=class extends $N.Service{async findMovies(e){return this.fetch({uri:"/movies",method:"GET",qs:e,expectedStatusCodes:[GN.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Yi.CreativeWorkService=Vu});var BC=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.EventService=void 0;var pt=g(),KN=E(),Yu=class extends KN.Service{async projectFieldsDeprecated(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK]}).then(async r=>r.json())}async findSubEvents(e){return this.fetch({uri:"/subEvents",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[pt.status.OK]}).then(async r=>r.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async findSeatOffersDeprecated(e){let{id:r,limit:n,page:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/seats`,method:"GET",qs:{limit:n,page:i},expectedStatusCodes:[pt.status.OK]}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[pt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[pt.status.OK]}).then(async c=>c.json())}};Qi.EventService=Yu});var GC=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.EventOfferService=void 0;var WN=g(),HN=E(),zN="/eventOffers",Qu=class extends HN.Service{async findEventOffers(e){return this.fetch({uri:zN,method:"GET",qs:e,expectedStatusCodes:[WN.status.OK]}).then(async r=>r.json())}};Zi.EventOfferService=Qu});var $C=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.EventSeriesService=void 0;var VN=g(),YN=E(),Zu=class extends YN.Service{async findEventSeries(e){return this.fetch({uri:"/superEvents",method:"GET",qs:e,expectedStatusCodes:[VN.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ji.EventSeriesService=Zu});var KC=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.PlaceService=void 0;var Kr=g(),QN=E(),Ju=class extends QN.Service{async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[Kr.status.OK]}).then(async r=>r.json())}async findRooms(e){return this.fetch({uri:"/rooms",method:"GET",qs:e,expectedStatusCodes:[Kr.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Kr.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Kr.status.OK]}).then(async f=>f.json())}async adminFindPOS(e){let{movieTheaterId:r,limit:n,page:i}=e;return this.fetch({uri:"/pos",method:"GET",qs:{movieTheaterId:r,limit:n,page:i},expectedStatusCodes:[Kr.status.OK]}).then(async s=>s.json())}};Xi.PlaceService=Ju});var WC=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ProductService=void 0;var Xu=g(),ZN=E(),ed=class extends ZN.Service{async findProducts(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Xu.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[Xu.status.OK]}).then(async i=>i.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[Xu.status.OK]}).then(async r=>r.json())}};es.ProductService=ed});var HC=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.SeatOfferService=void 0;var JN=g(),XN=E(),ej="/seatOffers",td=class extends XN.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:ej,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[JN.status.OK]}).then(async c=>c.json())}};ts.SeatOfferService=td});var zC=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.SellerService=void 0;var rs=g(),tj=E(),rd=class extends tj.Service{async findSellerById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[rs.status.OK]}).then(async r=>r.json())}async findSellers(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[rs.status.OK]}).then(async r=>r.json())}async findPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[rs.status.OK]}).then(async i=>i.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[rs.status.OK]}).then(async i=>i.json())}};ns.SellerService=rd});var VC=o(De=>{"use strict";var rj=De&&De.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nj=De&&De.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vt=De&&De.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&rj(r,e,n[i]);return nj(r,e),r}})();Object.defineProperty(De,"__esModule",{value:!0});De.Chevre=De.service=void 0;var Q;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Place||(t.Place={});let d;d=t.Product||(t.Product={});let f;f=t.SeatOffer||(t.SeatOffer={});let p;p=t.Seller||(t.Seller={})})(Q||(De.service=Q={}));var nd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return Q.CategoryCode.svc===void 0&&(Q.CategoryCode.svc=(await Promise.resolve().then(()=>vt(LC()))).CategoryCodeService),new Q.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return Q.CreativeWork.svc===void 0&&(Q.CreativeWork.svc=(await Promise.resolve().then(()=>vt(kC()))).CreativeWorkService),new Q.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return Q.Event.svc===void 0&&(Q.Event.svc=(await Promise.resolve().then(()=>vt(BC()))).EventService),new Q.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return Q.EventOffer.svc===void 0&&(Q.EventOffer.svc=(await Promise.resolve().then(()=>vt(GC()))).EventOfferService),new Q.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return Q.EventSeries.svc===void 0&&(Q.EventSeries.svc=(await Promise.resolve().then(()=>vt($C()))).EventSeriesService),new Q.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return Q.Place.svc===void 0&&(Q.Place.svc=(await Promise.resolve().then(()=>vt(KC()))).PlaceService),new Q.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return Q.Product.svc===void 0&&(Q.Product.svc=(await Promise.resolve().then(()=>vt(WC()))).ProductService),new Q.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return Q.SeatOffer.svc===void 0&&(Q.SeatOffer.svc=(await Promise.resolve().then(()=>vt(HC()))).SeatOfferService),new Q.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return Q.Seller.svc===void 0&&(Q.Seller.svc=(await Promise.resolve().then(()=>vt(zC()))).SellerService),new Q.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};De.Chevre=nd});var YC=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.OrderService=void 0;var gt=g(),ij=Y(),sj=E(),id=class extends sj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[gt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${ij.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[gt.status.NO_CONTENT]})}async findAcceptedOffersByConfirmationNumber(e,r){let{orderNumber:n,limit:i,page:s,confirmationNumber:c}=e,{minimizeReservationFor:d,onlyReservedTicket:f,minimizeReservedTicket:p}=r;return this.fetch({uri:`/orders/${n}/acceptedOffersByConfirmationNumber`,method:"POST",body:{limit:i,page:s,confirmationNumber:c},qs:{minimizeReservationFor:d,onlyReservedTicket:f,minimizeReservedTicket:p},expectedStatusCodes:[gt.status.OK]}).then(async y=>y.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[gt.status.OK]}).then(async r=>r.json())}};is.OrderService=id});var ZC=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ReservationService=void 0;var QC=g(),oj=E(),sd=class extends oj.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())}};ss.ReservationService=sd});var JC=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TokenService=void 0;var aj=E(),od=class extends aj.Service{};os.TokenService=od});var XC=o(Fe=>{"use strict";var cj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ad=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&cj(r,e,n[i]);return uj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var et;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(et||(Fe.service=et={}));var cd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return et.Order.svc===void 0&&(et.Order.svc=(await Promise.resolve().then(()=>ad(YC()))).OrderService),new et.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return et.Reservation.svc===void 0&&(et.Reservation.svc=(await Promise.resolve().then(()=>ad(ZC()))).ReservationService),new et.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return et.Token.svc===void 0&&(et.Token.svc=(await Promise.resolve().then(()=>ad(JC()))).TokenService),new et.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=cd});var tg=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.SyncService=void 0;var eg=g(),dj=E(),ud=class extends dj.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())}};as.SyncService=ud});var rg=o(Le=>{"use strict";var lj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hj=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&lj(r,e,n[i]);return fj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.ChevreAdmic=Le.service=void 0;var Wr;(function(t){let e;e=t.Sync||(t.Sync={})})(Wr||(Le.service=Wr={}));var dd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Wr.Sync.svc===void 0&&(Wr.Sync.svc=(await Promise.resolve().then(()=>hj(tg()))).SyncService),new Wr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.ChevreAdmic=dd});var ng=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.CustomerService=void 0;var yj=g(),pj=E(),ld=class extends pj.Service{async findCustomers(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[yj.status.OK]}).then(async r=>r.json())}};cs.CustomerService=ld});var ig=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.EmailMessageService=void 0;var vj=g(),Sj=E(),fd=class extends Sj.Service{async findEmailMessages(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[vj.status.OK]}).then(async e=>e.json())}};us.EmailMessageService=fd});var sg=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.EventService=void 0;var Hr=g(),mj=E(),hd=class extends mj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:i,hasTicketedSeat:s,typeOf:c,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:i}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:i===!0},expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Hr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Hr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Hr.status.OK]}).then(async r=>r.json())}};ds.EventService=hd});var og=o(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.EventOfferService=void 0;var ls=g(),_j=E(),fs="/eventOffers",yd=class extends _j.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:fs,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[ls.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:fs,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[ls.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:fs,method:"GET",qs:e,expectedStatusCodes:[ls.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${fs}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[ls.status.CREATED]}).then(async n=>n.json())}};hs.EventOfferService=yd});var ug=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.EventSeriesService=void 0;var ag=g(),Oj=E(),cg="/eventSeries",pd=class extends Oj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:i,upsert:s,useSync:c}=r;await this.fetch({uri:cg,method:"POST",body:e,qs:{locationId:n,offerType:i,upsert:s===!0,useSync:c===!0},expectedStatusCodes:[ag.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:cg,method:"GET",qs:e,expectedStatusCodes:[ag.status.OK]}).then(async r=>r.json())}};ys.EventSeriesService=pd});var lg=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.MeService=void 0;var dg=g(),Tj=E(),vd=class extends Tj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[dg.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:[dg.status.OK]}).then(async i=>i.json())}};ps.MeService=vd});var fg=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.MemberService=void 0;var Ej=g(),Cj=Y(),gj=E(),Sd=class extends gj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Cj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Ej.status.OK]}).then(async r=>r.json())}};vs.MemberService=Sd});var pg=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.MovieService=void 0;var hg=g(),bj=E(),yg="/movies",md=class extends bj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:yg,method:"PUT",body:e,expectedStatusCodes:[hg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:yg,method:"GET",qs:e,expectedStatusCodes:[hg.status.OK]}).then(async r=>r.json())}};Ss.MovieService=md});var Sg=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.MovieTheaterService=void 0;var zr=g(),Aj=E(),vg="/movieTheaters",_d="/entranceGates",Od=class extends Aj.Service{async findMovieTheaters(e){return this.fetch({uri:vg,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:vg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:_d,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:_d,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:_d,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:i})=>i)},expectedStatusCodes:[zr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ms.MovieTheaterService=Od});var mg=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.NoteService=void 0;var Td=g(),Pj=E(),Ed="/creativeWorks/noteDigitalDocument",Cd=class extends Pj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ed,method:"GET",qs:e,expectedStatusCodes:[Td.status.OK]}).then(async r=>r.json())}};_s.NoteService=Cd});var _g=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.NoteAboutOrderService=void 0;var gd=g(),wj=E(),bd="/orderNotes",Ad=class extends wj.Service{async upsertByIdentifier(e){await this.fetch({uri:bd,method:"PUT",body:e,expectedStatusCodes:[gd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${bd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}};Os.NoteAboutOrderService=Ad});var Og=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.OrderService=void 0;var Vr=g(),Rj=E(),Pd=class extends Rj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Vr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async findOrderAcceptedOffers(e,r){let{minimizeReservationFor:n,onlyReservedTicket:i,minimizeReservedTicket:s}=r;return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1",minimizeReservationFor:n,onlyReservedTicket:i,minimizeReservedTicket:s},expectedStatusCodes:[Vr.status.OK]}).then(async c=>c.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Vr.status.OK]}).then(async r=>r.json())}async findAcceptedOffersByOrderNumber(e,r,n){let{minimizeReservationFor:i,onlyReservedTicket:s,minimizeReservedTicket:c}=n;return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Vr.status.OK],qs:{...r,minimizeReservationFor:i,onlyReservedTicket:s,minimizeReservedTicket:c}}).then(async d=>d.json())}};Ts.OrderService=Pd});var Tg=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.PaymentMethodService=void 0;var Mj=g(),Ij=E(),qj="/paymentMethods",wd=class extends Ij.Service{async findPaymentMethods(e){return this.fetch({uri:qj,method:"GET",qs:e,expectedStatusCodes:[Mj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Es.PaymentMethodService=wd});var Cg=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ProductService=void 0;var Rd=g(),Nj=E(),Eg="/products",jj="/productHasOfferCatalog",Md=class extends Nj.Service{async upsertByProductId(e){await this.fetch({uri:Eg,method:"PUT",body:e,expectedStatusCodes:[Rd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Eg,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:jj,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}};Cs.ProductService=Md});var gg=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ReservationService=void 0;var Id=g(),xj=E(),qd=class extends xj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:i}=e;await this.fetch({uri:`/reservations/${String(i?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[Id.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[Id.status.OK]}).then(async i=>i.json())}};gs.ReservationService=qd});var Pg=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.RoomService=void 0;var bg=g(),Uj=E(),Ag="/rooms",Nd=class extends Uj.Service{async findRooms(e){return this.fetch({uri:Ag,method:"GET",qs:e,expectedStatusCodes:[bg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Ag,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[bg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};bs.RoomService=Nd});var wg=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.SeatService=void 0;var jd=g(),Dj=E(),xd="/seats",Ud=class extends Dj.Service{async findSeats(e){return this.fetch({uri:xd,method:"GET",qs:e,expectedStatusCodes:[jd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:xd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c}=r;await this.fetch({uri:xd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:i,roomCode:s,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};As.SeatService=Ud});var Ig=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.SeatSectionService=void 0;var Rg=g(),Fj=E(),Mg="/seatSections",Dd=class extends Fj.Service{async findSeatSections(e){return this.fetch({uri:Mg,method:"GET",qs:e,expectedStatusCodes:[Rg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:i}=r;await this.fetch({uri:Mg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:i},expectedStatusCodes:[Rg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ps.SeatSectionService=Dd});var qg=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.SellerService=void 0;var Lj=g(),kj=E(),Fd=class extends kj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Lj.status.OK]}).then(async r=>r.json())}};ws.SellerService=Fd});var jg=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.OfferService=void 0;var Ng=g(),Bj=E(),Ld=class extends Bj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Ng.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:[Ng.status.NO_CONTENT]})}};Rs.OfferService=Ld});var xg=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.OfferCatalogService=void 0;var Gj=g(),$j=E(),kd=class extends $j.Service{async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s,itemListElementType:c},expectedStatusCodes:[Gj.status.NO_CONTENT]})}};Ms.OfferCatalogService=kd});var Dg=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.OfferCatalogItemService=void 0;var Ug=g(),Kj=E(),Bd=class extends Kj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ug.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:i,productType:s}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:i===!0,productType:s},expectedStatusCodes:[Ug.status.NO_CONTENT]})}};Is.OfferCatalogItemService=Bd});var Fg=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.CancelReservationAssetTransactionService=void 0;var Wj=g(),Hj=E(),Gd=class extends Hj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Wj.status.NO_CONTENT]})}};qs.CancelReservationAssetTransactionService=Gd});var Lg=o(ke=>{"use strict";var zj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oe=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&zj(r,e,n[i]);return Vj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmin=ke.service=void 0;var x;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.EmailMessage||(t.EmailMessage={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Me||(t.Me={});let d;d=t.Member||(t.Member={});let f;f=t.Movie||(t.Movie={});let p;p=t.MovieTheater||(t.MovieTheater={});let y;y=t.Note||(t.Note={});let S;S=t.NoteAboutOrder||(t.NoteAboutOrder={});let _;_=t.Order||(t.Order={});let b;b=t.PaymentMethod||(t.PaymentMethod={});let M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Room||(t.Room={});let N;N=t.Seat||(t.Seat={});let C;C=t.SeatSection||(t.SeatSection={});let R;R=t.Seller||(t.Seller={});let D;D=t.Offer||(t.Offer={});let k;k=t.OfferCatalog||(t.OfferCatalog={});let K;K=t.OfferCatalogItem||(t.OfferCatalogItem={});let W;(function(j){let $;$=j.CancelReservation||(j.CancelReservation={})})(W=t.assetTransaction||(t.assetTransaction={}))})(x||(ke.service=x={}));var $d=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return x.Customer.svc===void 0&&(x.Customer.svc=(await Promise.resolve().then(()=>oe(ng()))).CustomerService),new x.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return x.EmailMessage.svc===void 0&&(x.EmailMessage.svc=(await Promise.resolve().then(()=>oe(ig()))).EmailMessageService),new x.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return x.Event.svc===void 0&&(x.Event.svc=(await Promise.resolve().then(()=>oe(sg()))).EventService),new x.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return x.EventOffer.svc===void 0&&(x.EventOffer.svc=(await Promise.resolve().then(()=>oe(og()))).EventOfferService),new x.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return x.EventSeries.svc===void 0&&(x.EventSeries.svc=(await Promise.resolve().then(()=>oe(ug()))).EventSeriesService),new x.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return x.Me.svc===void 0&&(x.Me.svc=(await Promise.resolve().then(()=>oe(lg()))).MeService),new x.Me.svc({...this.options})}async createMemberInstance(e){return x.Member.svc===void 0&&(x.Member.svc=(await Promise.resolve().then(()=>oe(fg()))).MemberService),new x.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return x.Movie.svc===void 0&&(x.Movie.svc=(await Promise.resolve().then(()=>oe(pg()))).MovieService),new x.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return x.MovieTheater.svc===void 0&&(x.MovieTheater.svc=(await Promise.resolve().then(()=>oe(Sg()))).MovieTheaterService),new x.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return x.Note.svc===void 0&&(x.Note.svc=(await Promise.resolve().then(()=>oe(mg()))).NoteService),new x.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return x.NoteAboutOrder.svc===void 0&&(x.NoteAboutOrder.svc=(await Promise.resolve().then(()=>oe(_g()))).NoteAboutOrderService),new x.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return x.Order.svc===void 0&&(x.Order.svc=(await Promise.resolve().then(()=>oe(Og()))).OrderService),new x.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return x.PaymentMethod.svc===void 0&&(x.PaymentMethod.svc=(await Promise.resolve().then(()=>oe(Tg()))).PaymentMethodService),new x.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return x.Product.svc===void 0&&(x.Product.svc=(await Promise.resolve().then(()=>oe(Cg()))).ProductService),new x.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return x.Reservation.svc===void 0&&(x.Reservation.svc=(await Promise.resolve().then(()=>oe(gg()))).ReservationService),new x.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return x.Room.svc===void 0&&(x.Room.svc=(await Promise.resolve().then(()=>oe(Pg()))).RoomService),new x.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return x.Seat.svc===void 0&&(x.Seat.svc=(await Promise.resolve().then(()=>oe(wg()))).SeatService),new x.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return x.SeatSection.svc===void 0&&(x.SeatSection.svc=(await Promise.resolve().then(()=>oe(Ig()))).SeatSectionService),new x.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return x.Seller.svc===void 0&&(x.Seller.svc=(await Promise.resolve().then(()=>oe(qg()))).SellerService),new x.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return x.Offer.svc===void 0&&(x.Offer.svc=(await Promise.resolve().then(()=>oe(jg()))).OfferService),new x.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return x.OfferCatalog.svc===void 0&&(x.OfferCatalog.svc=(await Promise.resolve().then(()=>oe(xg()))).OfferCatalogService),new x.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return x.OfferCatalogItem.svc===void 0&&(x.OfferCatalogItem.svc=(await Promise.resolve().then(()=>oe(Dg()))).OfferCatalogItemService),new x.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return x.assetTransaction.CancelReservation.svc===void 0&&(x.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>oe(Fg()))).CancelReservationAssetTransactionService),new x.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmin=$d});var kg=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.AccountingReportService=void 0;var Yj=g(),Qj=E(),Kd=class extends Qj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};Ns.AccountingReportService=Kd});var Bg=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.AccountTitleService=void 0;var ge=g(),Zj=E(),js="/accountTitles/accountTitleCategory",xs="/accountTitles/accountTitleSet",Us="/accountTitles",Wd=class extends Zj.Service{async addAccounTitleCategory(e){await this.fetch({uri:js,method:"POST",body:e,expectedStatusCodes:[ge.status.CREATED,ge.status.NO_CONTENT]})}async findAccountTitleCategories(e){return this.fetch({uri:js,method:"GET",qs:e,expectedStatusCodes:[ge.status.OK]}).then(async r=>r.json())}async updateAccounTitleCategory(e){await this.fetch({uri:`${js}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`${js}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}async addAccounTitleSet(e){await this.fetch({uri:xs,method:"POST",body:e,expectedStatusCodes:[ge.status.CREATED,ge.status.NO_CONTENT]})}async findAccountTitleSets(e){return this.fetch({uri:xs,method:"GET",qs:e,expectedStatusCodes:[ge.status.OK]}).then(async r=>r.json())}async updateAccounTitleSet(e){await this.fetch({uri:`${xs}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`${xs}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}async addAccountTitle(e){await this.fetch({uri:Us,method:"POST",body:e,expectedStatusCodes:[ge.status.CREATED,ge.status.NO_CONTENT]})}async updateAccountTitle(e){await this.fetch({uri:`${Us}/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}async findAccountTitles(e){return this.fetch({uri:Us,method:"GET",qs:e,expectedStatusCodes:[ge.status.OK]}).then(async r=>r.json())}async deleteAccountTitleByCodeValue(e){await this.fetch({uri:`${Us}/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[ge.status.NO_CONTENT]})}};Ds.AccountTitleService=Wd});var $g=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ActionService=void 0;var Gg=g(),Jj=E(),Hd=class extends Jj.Service{async adminFindAnyActions(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Gg.status.OK]}).then(async r=>r.json())}async findRecipesByActionId(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Gg.status.OK]}).then(async r=>r.json())}};Fs.ActionService=Hd});var Kg=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.UpdateActionService=void 0;var Xj=g(),ex=E(),zd=class extends ex.Service{async findUpdateActions(e){return this.fetch({uri:"/updateActions",method:"GET",qs:e,expectedStatusCodes:[Xj.status.OK]}).then(async r=>r.json())}};Ls.UpdateActionService=zd});var Wg=o(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.InformActionService=void 0;var tx=g(),rx=E(),Vd=class extends rx.Service{async findInformActions(e){return this.fetch({uri:"/informActions",method:"GET",qs:e,expectedStatusCodes:[tx.status.OK]}).then(async r=>r.json())}};ks.InformActionService=Vd});var Hg=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.UseActionService=void 0;var nx=g(),ix=E(),Yd=class extends ix.Service{async findUseActions(e){return this.fetch({uri:"/useActions",method:"GET",qs:e,expectedStatusCodes:[nx.status.OK]}).then(async r=>r.json())}};Bs.UseActionService=Yd});var zg=o(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.CheckActionService=void 0;var sx=g(),ox=E(),Qd=class extends ox.Service{async findCheckActions(e){return this.fetch({uri:"/checkActions",method:"GET",qs:e,expectedStatusCodes:[sx.status.OK]}).then(async r=>r.json())}};Gs.CheckActionService=Qd});var Vg=o($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.AdditionalPropertyService=void 0;var Yr=g(),ax=E(),Zd=class extends ax.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Yr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Yr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yr.status.NO_CONTENT]})}};$s.AdditionalPropertyService=Zd});var Qg=o(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.AggregateOfferService=void 0;var Yg=g(),cx=E(),Jd=class extends cx.Service{async findAggregateOffers(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Yg.status.OK]}).then(async r=>r.json())}async deleteAggregateOfferById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Yg.status.NO_CONTENT]})}};Ks.AggregateOfferService=Jd});var Zg=o(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.AggregateReservationService=void 0;var ux=g(),dx=E(),Xd=class extends dx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[ux.status.OK]}).then(async r=>r.json())}};Ws.AggregateReservationService=Xd});var Jg=o(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.AggregationService=void 0;var lx=g(),fx=E(),el=class extends fx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[lx.status.OK]}).then(async r=>r.json())}};Hs.AggregationService=el});var Xg=o(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.AuthorizationService=void 0;var hx=g(),yx=E(),tl=class extends yx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[hx.status.OK]}).then(async r=>r.json())}};zs.AuthorizationService=tl});var eb=o(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.CreativeWorkService=void 0;var px=g(),vx=E(),rl=class extends vx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[px.status.NO_CONTENT]})}};Vs.CreativeWorkService=rl});var tb=o(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.CategoryCodeService=void 0;var Ys=g(),Sx=E(),Qs="/categoryCodes",nl=class extends Sx.Service{async createCategoryCode(e){return this.fetch({uri:Qs,method:"POST",body:e,expectedStatusCodes:[Ys.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:Qs,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Ys.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${Qs}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Ys.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${Qs}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ys.status.NO_CONTENT]})}};Zs.CategoryCodeService=nl});var rb=o(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.CustomerService=void 0;var il=g(),mx=E(),sl=class extends mx.Service{async addCustomer(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[il.status.CREATED]}).then(async r=>r.json())}async updateCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[il.status.NO_CONTENT]})}async deleteCustomerById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[il.status.NO_CONTENT]})}};Js.CustomerService=sl});var nb=o(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.CustomerTypeService=void 0;var _x=g(),Ox=E(),ol=class extends Ox.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[_x.status.OK]}).then(async r=>r.json())}};Xs.CustomerTypeService=ol});var ib=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.EmailMessageService=void 0;var eo=g(),Tx=E(),al=class extends Tx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[eo.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[eo.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[eo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[eo.status.NO_CONTENT]})}};to.EmailMessageService=al});var sb=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.EventService=void 0;var ro=g(),Ex=Y(),Cx=E(),cl=class extends Cx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:i,hasTicketedSeat:s}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{typeOf:Ex.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:i,hasTicketedSeat:s},expectedStatusCodes:[ro.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[ro.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[ro.status.OK]}).then(async n=>n.json())}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[ro.status.NO_CONTENT]})}};no.EventService=cl});var ob=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventSeriesService=void 0;var gx=g(),bx=E(),Ax="/eventSeries",ul=class extends bx.Service{async deleteEventSeriesById(e){await this.fetch({uri:`${Ax}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[gx.status.NO_CONTENT]})}};io.EventSeriesService=ul});var ab=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.HasMerchantReturnPolicyService=void 0;var Px=g(),wx=E(),dl=class extends wx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Px.status.OK]}).then(async e=>e.json())}};so.HasMerchantReturnPolicyService=dl});var cb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.IAMService=void 0;var bt=g(),Rx=E(),ll=class extends Rx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[bt.status.CREATED,bt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[bt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[bt.status.OK]}).then(async e=>e.json())}};oo.IAMService=ll});var ub=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IdentityService=void 0;var ao=g(),Mx=E(),fl=class extends Mx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[ao.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[ao.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[ao.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[ao.status.NO_CONTENT]})}};co.IdentityService=fl});var db=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityProviderService=void 0;var uo=g(),Ix=E(),hl=class extends Ix.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[uo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[uo.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:[uo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[uo.status.NO_CONTENT]})}};lo.IdentityProviderService=hl});var lb=o(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.IssuerService=void 0;var Qr=g(),qx=E(),yl=class extends qx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Qr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Qr.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:[Qr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Qr.status.NO_CONTENT]})}};fo.IssuerService=yl});var hb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.MeService=void 0;var fb=g(),Nx=E(),pl=class extends Nx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[fb.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:[fb.status.OK]}).then(async r=>r.json())}};ho.MeService=pl});var yb=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.MemberService=void 0;var At=g(),Pt=Y(),jx=E(),vl=class extends jx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${Pt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};yo.MemberService=vl});var pb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberProgramService=void 0;var po=g(),xx=E(),Sl=class extends xx.Service{async findMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[po.status.OK]}).then(async r=>r.json())}async addMemberProgram(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[po.status.NO_CONTENT]})}async updateMemberProgramByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r},expectedStatusCodes:[po.status.NO_CONTENT]})}async deleteMemberProgramByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[po.status.NO_CONTENT]})}};vo.MemberProgramService=Sl});var vb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MerchantReturnPolicyService=void 0;var Zr=g(),Ux=E(),ml=class extends Ux.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};So.MerchantReturnPolicyService=ml});var Sb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MessageService=void 0;var Dx=g(),Fx=E(),_l=class extends Fx.Service{async findMessages(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Dx.status.OK]}).then(async r=>r.json())}};mo.MessageService=_l});var mb=o(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.MovieTicketTypeService=void 0;var _o=g(),Lx=E(),Oo="/movieTicketTypes",Ol=class extends Lx.Service{async createMovieTicketType(e){return this.fetch({uri:Oo,method:"POST",body:e,expectedStatusCodes:[_o.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Oo,method:"GET",qs:e,expectedStatusCodes:[_o.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Oo}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[_o.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Oo}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[_o.status.NO_CONTENT]})}};To.MovieTicketTypeService=Ol});var _b=o(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.OrderService=void 0;var Eo=g(),kx=E(),Tl=class extends kx.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Eo.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Eo.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:[Eo.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[Eo.status.OK]}).then(async r=>r.json())}};Co.OrderService=Tl});var Ob=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.PaymentProductService=void 0;var yr=g(),Bx=E(),El=class extends Bx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[yr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[yr.status.OK],qs:n}).then(async i=>i.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[yr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[yr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}};go.PaymentProductService=El});var Tb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentServiceChannelService=void 0;var bo=g(),Gx=E(),Cl=class extends Gx.Service{async addPaymentServiceChannel(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[bo.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceChannels(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[bo.status.OK]}).then(async r=>r.json())}async updatePaymentServiceChannelById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[bo.status.NO_CONTENT]})}async deletePaymentServiceChannelById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[bo.status.NO_CONTENT]})}};Ao.PaymentServiceChannelService=Cl});var Cb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PendingReservationService=void 0;var Eb=g(),$x=E(),gl=class extends $x.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Eb.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:[Eb.status.OK]}).then(async n=>n.json())}};Po.PendingReservationService=gl});var bb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PermissionService=void 0;var gb=g(),Kx=E(),bl=class extends Kx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[gb.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:[gb.status.OK]}).then(async n=>n.json())}};wo.PermissionService=bl});var Pb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PersonService=void 0;var Ab=g(),Wx=E(),Al=class extends Wx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Ab.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:[Ab.status.OK],qs:{iss:n}}).then(async i=>i.json())}};Ro.PersonService=Al});var wb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PlaceService=void 0;var Jr=g(),Xr=Y(),Hx=E(),Pl=class extends Hx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${Xr.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[Jr.status.OK]}).then(async i=>i.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:i}=e;return this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:i},expectedStatusCodes:[Jr.status.OK]}).then(async s=>s.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:i}=r;await this.fetch({uri:`/places/${Xr.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:i},body:e,expectedStatusCodes:[Jr.status.NO_CONTENT]})}};Mo.PlaceService=Pl});var Rb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.POSService=void 0;var Io=g(),qo=Y(),zx=E(),wl=class extends zx.Service{async findPOS(e){return this.fetch({uri:`/places/${qo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Io.status.OK]}).then(async r=>r.json())}async addPOSByBranchCode(e){await this.fetch({uri:`/places/${qo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[Io.status.NO_CONTENT]})}async updatePOSByBranchCode(e){await this.fetch({uri:`/places/${qo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[Io.status.NO_CONTENT]})}async deletePOSByBranchCode(e){await this.fetch({uri:`/places/${qo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[Io.status.NO_CONTENT]})}};No.POSService=wl});var Mb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.PriceSpecificationService=void 0;var jo=g(),Vx=E(),Rl=class extends Vx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[jo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[jo.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:[jo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[jo.status.NO_CONTENT]})}};xo.PriceSpecificationService=Rl});var Ib=o(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.ProductService=void 0;var Uo=g(),Yx=E(),Do="/products",Ml=class extends Yx.Service{async createProduct(e){return this.fetch({uri:Do,method:"POST",body:e,expectedStatusCodes:[Uo.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${Do}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[Uo.status.OK],qs:n}).then(async i=>i.json())}async updateProduct(e){await this.fetch({uri:`${Do}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Uo.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${Do}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Uo.status.NO_CONTENT]})}};Fo.ProductService=Ml});var qb=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Lo=g(),Qx=E(),Il=class extends Qx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async addProject(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Lo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Lo.status.OK]}).then(async r=>r.json())}async updateProjectById(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Lo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Lo.status.NO_CONTENT]})}};ko.ProjectService=Il});var Nb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var Bo=g(),Zx=E(),ql=class extends Zx.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bo.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Bo.status.NO_CONTENT]})}};Go.ProjectMakesOfferService=ql});var jb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ReservationService=void 0;var Jx=g(),Xx=E(),Nl=class extends Xx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Jx.status.NO_CONTENT]})}};$o.ReservationService=Nl});var xb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var jl=g(),eU=E(),xl=class extends eU.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]})}};Ko.OfferService=xl});var Ub=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=g(),tU=E(),Ul=class extends tU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async i=>i.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Ho.OfferCatalogService=Ul});var Db=o(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OfferCatalogItemService=void 0;var Dl=g(),rU=E(),Fl=class extends rU.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Dl.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Dl.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:[Dl.status.OK]}).then(async i=>i.json())}};zo.OfferCatalogItemService=Fl});var Fb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var Vo=g(),nU=E(),Ll=class extends nU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[Vo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[Vo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Vo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Vo.status.NO_CONTENT]})}};Yo.OfferItemConditionService=Ll});var Lb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=g(),iU=E(),kl=class extends iU.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 findSellerPaymentAccepted(e){let{sellerId:r}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async n=>n.json())}async addSellerPaymentAccepted(e){let{sellerId:r,codeValue:n}=e;await this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"POST",body:{codeValue:n},expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteSellerPaymentAccepted(e){let{sellerId:r,codeValue:n}=e;await this.fetch({uri:`/sellers/${r}/paymentAccepted/${n}`,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=kl});var kb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Bl=g(),sU=E(),Gl=class extends sU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=Gl});var Bb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var en=g(),oU=E(),$l=class extends oU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[en.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:[en.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:[en.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=$l});var Gb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.AsyncActionService=void 0;var aU=g(),cU=E(),Kl=class extends cU.Service{async findAsyncActions(e){return this.fetch({uri:"/asyncActions",method:"GET",qs:e,expectedStatusCodes:[aU.status.OK]}).then(async r=>r.json())}};Xo.AsyncActionService=Kl});var $b=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.ScheduledTaskService=void 0;var uU=g(),dU=E(),Wl=class extends dU.Service{async findScheduledTasks(e){return this.fetch({uri:"/scheduledTasks",method:"GET",qs:e,expectedStatusCodes:[uU.status.OK]}).then(async r=>r.json())}};ea.ScheduledTaskService=Wl});var Kb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.TaskService=void 0;var Hl=g(),lU=E(),zl=class extends lU.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 findTasks(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Hl.status.OK]}).then(async r=>r.json())}};ta.TaskService=zl});var Wb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.TicketService=void 0;var fU=g(),hU=E(),Vl=class extends hU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[fU.status.OK]}).then(async r=>r.json())}};ra.TicketService=Vl});var Hb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.AssetTransactionService=void 0;var yU=g(),pU=E(),Yl=class extends pU.Service{async findAssetTransactions(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[yU.status.OK]}).then(async r=>r.json())}};na.AssetTransactionService=Yl});var zb=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.PayAssetTransactionService=void 0;var ia=g(),pr=Y(),vU=E(),Ql=class extends vU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ia.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...i}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT],body:i})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ia.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ia.status.OK]}).then(async r=>r.json())}};sa.PayAssetTransactionService=Ql});var Vb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var SU=E(),Zl=class extends SU.Service{};oa.TokenService=Zl});var Qb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Yb=g(),mU=Y(),_U=E(),Jl=class extends _U.Service{typeOf=mU.factory.transactionType.PlaceOrder;async findPlaceOrderTransactions(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Yb.status.OK]}).then(async r=>r.json())}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Yb.status.OK]}).then(async i=>i.json())}};aa.PlaceOrderTransactionService=Jl});var Zb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.TransactionNumberService=void 0;var OU=g(),TU=E(),Xl=class extends TU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[OU.status.CREATED]}).then(async e=>e.json())}};ca.TransactionNumberService=Xl});var Jb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.UserPoolService=void 0;var ef=g(),EU=E(),tf=class extends EU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[ef.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[ef.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:[ef.status.OK]}).then(async r=>r.json())}};ua.UserPoolService=tf});var Xb=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.WebSiteService=void 0;var da=g(),CU=E(),rf=class extends CU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[da.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[da.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[da.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[da.status.NO_CONTENT]})}};la.WebSiteService=rf});var eA=o(Be=>{"use strict";var gU=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bU=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&gU(r,e,n[i]);return bU(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreConsole=Be.service=void 0;var m;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let i;i=t.UpdateAction||(t.UpdateAction={});let s;s=t.InformAction||(t.InformAction={});let c;c=t.UseAction||(t.UseAction={});let d;d=t.CheckAction||(t.CheckAction={});let f;f=t.AdditionalProperty||(t.AdditionalProperty={});let p;p=t.AggregateOffer||(t.AggregateOffer={});let y;y=t.AggregateReservation||(t.AggregateReservation={});let S;S=t.Aggregation||(t.Aggregation={});let _;_=t.Authorization||(t.Authorization={});let b;b=t.CategoryCode||(t.CategoryCode={});let M;M=t.CreativeWork||(t.CreativeWork={});let w;w=t.Customer||(t.Customer={});let q;q=t.CustomerType||(t.CustomerType={});let N;N=t.EmailMessage||(t.EmailMessage={});let C;C=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let D;D=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let k;k=t.IAM||(t.IAM={});let K;K=t.Identity||(t.Identity={});let W;W=t.IdentityProvider||(t.IdentityProvider={});let j;j=t.Issuer||(t.Issuer={});let $;$=t.Me||(t.Me={});let G;G=t.Member||(t.Member={});let V;V=t.MemberProgram||(t.MemberProgram={});let Te;Te=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let ce;ce=t.Message||(t.Message={});let ie;ie=t.MovieTicketType||(t.MovieTicketType={});let se;se=t.Order||(t.Order={});let ee;ee=t.PaymentProduct||(t.PaymentProduct={});let Je;Je=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let nt;nt=t.PendingReservation||(t.PendingReservation={});let Xe;Xe=t.Permission||(t.Permission={});let xe;xe=t.Person||(t.Person={});let a;a=t.Place||(t.Place={});let u;u=t.POS||(t.POS={});let l;l=t.PriceSpecification||(t.PriceSpecification={});let h;h=t.Product||(t.Product={});let v;v=t.Project||(t.Project={});let T;T=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let A;A=t.Reservation||(t.Reservation={});let P;P=t.Offer||(t.Offer={});let L;L=t.OfferCatalog||(t.OfferCatalog={});let z;z=t.OfferCatalogItem||(t.OfferCatalogItem={});let Z;Z=t.OfferItemCondition||(t.OfferItemCondition={});let de;de=t.Seller||(t.Seller={});let Pe;Pe=t.SellerMakesOffer||(t.SellerMakesOffer={});let Ee;Ee=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let qt;qt=t.AsyncAction||(t.AsyncAction={});let ye;ye=t.ScheduledTask||(t.ScheduledTask={});let we;we=t.Task||(t.Task={});let it;it=t.Ticket||(t.Ticket={});let Er;Er=t.AssetTransaction||(t.AssetTransaction={});let WP;(function(U){let Pc;Pc=U.Pay||(U.Pay={})})(WP=t.assetTransaction||(t.assetTransaction={}));let HP;HP=t.Token||(t.Token={});let zP;(function(U){let Pc;Pc=U.PlaceOrder||(U.PlaceOrder={})})(zP=t.transaction||(t.transaction={}));let VP;VP=t.TransactionNumber||(t.TransactionNumber={});let YP;YP=t.UserPool||(t.UserPool={});let QP;QP=t.WebSite||(t.WebSite={})})(m||(Be.service=m={}));var nf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>F(kg()))).AccountingReportService),new m.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return m.AccountTitle.svc===void 0&&(m.AccountTitle.svc=(await Promise.resolve().then(()=>F(Bg()))).AccountTitleService),new m.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return m.Action.svc===void 0&&(m.Action.svc=(await Promise.resolve().then(()=>F($g()))).ActionService),new m.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createUpdateActionInstance(e){return m.UpdateAction.svc===void 0&&(m.UpdateAction.svc=(await Promise.resolve().then(()=>F(Kg()))).UpdateActionService),new m.UpdateAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createInformActionInstance(e){return m.InformAction.svc===void 0&&(m.InformAction.svc=(await Promise.resolve().then(()=>F(Wg()))).InformActionService),new m.InformAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createUseActionInstance(e){return m.UseAction.svc===void 0&&(m.UseAction.svc=(await Promise.resolve().then(()=>F(Hg()))).UseActionService),new m.UseAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createCheckActionInstance(e){return m.CheckAction.svc===void 0&&(m.CheckAction.svc=(await Promise.resolve().then(()=>F(zg()))).CheckActionService),new m.CheckAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Vg()))).AdditionalPropertyService),new m.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return m.AggregateOffer.svc===void 0&&(m.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Qg()))).AggregateOfferService),new m.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return m.AggregateReservation.svc===void 0&&(m.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Zg()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>F(Jg()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>F(Xg()))).AuthorizationService),new m.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return m.CreativeWork.svc===void 0&&(m.CreativeWork.svc=(await Promise.resolve().then(()=>F(eb()))).CreativeWorkService),new m.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return m.CategoryCode.svc===void 0&&(m.CategoryCode.svc=(await Promise.resolve().then(()=>F(tb()))).CategoryCodeService),new m.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return m.Customer.svc===void 0&&(m.Customer.svc=(await Promise.resolve().then(()=>F(rb()))).CustomerService),new m.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return m.CustomerType.svc===void 0&&(m.CustomerType.svc=(await Promise.resolve().then(()=>F(nb()))).CustomerTypeService),new m.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return m.EmailMessage.svc===void 0&&(m.EmailMessage.svc=(await Promise.resolve().then(()=>F(ib()))).EmailMessageService),new m.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return m.Event.svc===void 0&&(m.Event.svc=(await Promise.resolve().then(()=>F(sb()))).EventService),new m.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return m.EventSeries.svc===void 0&&(m.EventSeries.svc=(await Promise.resolve().then(()=>F(ob()))).EventSeriesService),new m.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return m.HasMerchantReturnPolicy.svc===void 0&&(m.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(ab()))).HasMerchantReturnPolicyService),new m.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return m.IAM.svc===void 0&&(m.IAM.svc=(await Promise.resolve().then(()=>F(cb()))).IAMService),new m.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return m.Identity.svc===void 0&&(m.Identity.svc=(await Promise.resolve().then(()=>F(ub()))).IdentityService),new m.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return m.IdentityProvider.svc===void 0&&(m.IdentityProvider.svc=(await Promise.resolve().then(()=>F(db()))).IdentityProviderService),new m.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return m.Issuer.svc===void 0&&(m.Issuer.svc=(await Promise.resolve().then(()=>F(lb()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>F(hb()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>F(yb()))).MemberService),new m.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return m.MemberProgram.svc===void 0&&(m.MemberProgram.svc=(await Promise.resolve().then(()=>F(pb()))).MemberProgramService),new m.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return m.MerchantReturnPolicy.svc===void 0&&(m.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(vb()))).MerchantReturnPolicyService),new m.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return m.Message.svc===void 0&&(m.Message.svc=(await Promise.resolve().then(()=>F(Sb()))).MessageService),new m.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return m.MovieTicketType.svc===void 0&&(m.MovieTicketType.svc=(await Promise.resolve().then(()=>F(mb()))).MovieTicketTypeService),new m.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return m.Order.svc===void 0&&(m.Order.svc=(await Promise.resolve().then(()=>F(_b()))).OrderService),new m.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return m.PaymentProduct.svc===void 0&&(m.PaymentProduct.svc=(await Promise.resolve().then(()=>F(Ob()))).PaymentProductService),new m.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return m.PaymentServiceChannel.svc===void 0&&(m.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(Tb()))).PaymentServiceChannelService),new m.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return m.PendingReservation.svc===void 0&&(m.PendingReservation.svc=(await Promise.resolve().then(()=>F(Cb()))).PendingReservationService),new m.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return m.Permission.svc===void 0&&(m.Permission.svc=(await Promise.resolve().then(()=>F(bb()))).PermissionService),new m.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return m.Person.svc===void 0&&(m.Person.svc=(await Promise.resolve().then(()=>F(Pb()))).PersonService),new m.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return m.Place.svc===void 0&&(m.Place.svc=(await Promise.resolve().then(()=>F(wb()))).PlaceService),new m.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createPOSInstance(e){return m.POS.svc===void 0&&(m.POS.svc=(await Promise.resolve().then(()=>F(Rb()))).POSService),new m.POS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return m.PriceSpecification.svc===void 0&&(m.PriceSpecification.svc=(await Promise.resolve().then(()=>F(Mb()))).PriceSpecificationService),new m.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return m.Product.svc===void 0&&(m.Product.svc=(await Promise.resolve().then(()=>F(Ib()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>F(qb()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Nb()))).ProjectMakesOfferService),new m.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return m.Reservation.svc===void 0&&(m.Reservation.svc=(await Promise.resolve().then(()=>F(jb()))).ReservationService),new m.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return m.Offer.svc===void 0&&(m.Offer.svc=(await Promise.resolve().then(()=>F(xb()))).OfferService),new m.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return m.OfferCatalog.svc===void 0&&(m.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Ub()))).OfferCatalogService),new m.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return m.OfferCatalogItem.svc===void 0&&(m.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(Db()))).OfferCatalogItemService),new m.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return m.OfferItemCondition.svc===void 0&&(m.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Fb()))).OfferItemConditionService),new m.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return m.Seller.svc===void 0&&(m.Seller.svc=(await Promise.resolve().then(()=>F(Lb()))).SellerService),new m.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return m.SellerMakesOffer.svc===void 0&&(m.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(kb()))).SellerMakesOfferService),new m.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return m.SellerReturnPolicy.svc===void 0&&(m.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Bb()))).SellerReturnPolicyService),new m.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createAsyncActionInstance(e){return m.AsyncAction.svc===void 0&&(m.AsyncAction.svc=(await Promise.resolve().then(()=>F(Gb()))).AsyncActionService),new m.AsyncAction.svc({...this.options,...e,retryableStatusCodes:[]})}async createScheduledTaskInstance(e){return m.ScheduledTask.svc===void 0&&(m.ScheduledTask.svc=(await Promise.resolve().then(()=>F($b()))).ScheduledTaskService),new m.ScheduledTask.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return m.Task.svc===void 0&&(m.Task.svc=(await Promise.resolve().then(()=>F(Kb()))).TaskService),new m.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return m.Ticket.svc===void 0&&(m.Ticket.svc=(await Promise.resolve().then(()=>F(Wb()))).TicketService),new m.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return m.AssetTransaction.svc===void 0&&(m.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Hb()))).AssetTransactionService),new m.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return m.assetTransaction.Pay.svc===void 0&&(m.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F(zb()))).PayAssetTransactionService),new m.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return m.Token.svc===void 0&&(m.Token.svc=(await Promise.resolve().then(()=>F(Vb()))).TokenService),new m.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return m.transaction.PlaceOrder.svc===void 0&&(m.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(Qb()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Zb()))).TransactionNumberService),new m.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return m.UserPool.svc===void 0&&(m.UserPool.svc=(await Promise.resolve().then(()=>F(Jb()))).UserPoolService),new m.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return m.WebSite.svc===void 0&&(m.WebSite.svc=(await Promise.resolve().then(()=>F(Xb()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreConsole=nf});var tA=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.PaymentService=void 0;var me=g(),ve=Y(),AU=E(),PU=["awashimakisen-production","awashimakisen-test"],sf=class extends AU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async i=>i.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:i,issuedThrough:s,paymentMethod:c,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:i,issuedThrough:s,paymentMethod:c,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n}=e,{amount:i,issuedThrough:s,paymentMethod:c,creditCard:d,method:f,paymentMethodId:p,name:y,additionalProperty:S,ticketToken:_,eventIdsAsOrderedItem:b}=r;if((typeof p!="string"||p==="")&&(typeof _!="string"||_===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!PU.includes(this.options.project.id)&&(!Array.isArray(b)||b.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:i,issuedThrough:s,paymentMethod:c,...d!=null?{creditCard:d}:void 0,...typeof y=="string"?{name:y}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{paymentMethodId:p}:void 0,...typeof _=="string"?{ticketToken:_}:void 0,...Array.isArray(S)?{additionalProperty:S}:void 0,...Array.isArray(b)?{eventIdsAsOrderedItem:b}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async w=>w.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:i}=e,{issuedThrough:s,paymentMethod:c,movieTickets:d,name:f,additionalProperty:p,ticketToken:y}=n,{checkedActionId:S}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:s,paymentMethod:c,...Array.isArray(d)?{movieTickets:d}:void 0,...typeof f=="string"?{name:f}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(p)?{additionalProperty:p}:void 0},purpose:i},qs:{checkedActionId:S,async:!0,purpose:{id:i.id}}}).then(async _=>_.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n}=e,{amount:i,creditCard:s,issuedThrough:c,paymentMethod:d,method:f,ticketToken:p,eventIdsAsOrderedItem:y}=r;if(typeof p!="string"||p==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(y)||y.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:i,issuedThrough:c,paymentMethod:d,...s!=null?{creditCard:s}:void 0,...typeof f=="string"?{method:f}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(y)?{eventIdsAsOrderedItem:y}:void 0},purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async S=>S.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:i}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:i},qs:{purpose:{id:i.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:i===!0}}).then(async s=>s.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:i,page:s}}).then(async c=>c.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:i,page:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:i,page:s}}).then(async c=>c.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:i}=e,s=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:i},qs:{purpose:{id:r.id},serviceOutputType:s}}).then(async c=>c.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async i=>i.json())}};fa.PaymentService=sf});var rA=o(Ge=>{"use strict";var wU=Ge&&Ge.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MU=Ge&&Ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&wU(r,e,n[i]);return RU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevrePay=Ge.service=void 0;var tn;(function(t){let e;e=t.Payment||(t.Payment={})})(tn||(Ge.service=tn={}));var of=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return tn.Payment.svc===void 0&&(tn.Payment.svc=(await Promise.resolve().then(()=>MU(tA()))).PaymentService),new tn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ge.ChevrePay=of});var iA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.OfferService=void 0;var af=g(),nA=Y(),IU=E(),cf=class extends IU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:i,eventOfferId:s}=e;return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[af.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:i,...typeof s=="string"?{eventOfferId:s}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[af.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...i}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[af.status.NO_CONTENT],body:i,qs:{purpose:{id:e.purpose.id}}})}};ha.OfferService=cf});var sA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.PlaceOrderTransactionService=void 0;var rn=g(),qU=Y(),NU=E(),uf=class extends NU.Service{typeOf=qU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[rn.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[rn.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:[rn.status.OK],body:n}).then(async i=>i.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[rn.status.NO_CONTENT]})}};ya.PlaceOrderTransactionService=uf});var oA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var pa=g(),df=Y(),jU=E(),lf=class extends jU.Service{async start(e){return this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,expectedStatusCodes:[pa.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[pa.status.NO_CONTENT,pa.status.OK]})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${df.factory.transactionType.ReturnOrder}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[pa.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=lf});var aA=o($e=>{"use strict";var xU=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ff=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&xU(r,e,n[i]);return UU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreTxn=$e.service=void 0;var tt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(tt||($e.service=tt={}));var hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return tt.Offer.svc===void 0&&(tt.Offer.svc=(await Promise.resolve().then(()=>ff(iA()))).OfferService),new tt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return tt.transaction.PlaceOrder.svc===void 0&&(tt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>ff(sA()))).PlaceOrderTransactionService),new tt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return tt.transaction.ReturnOrder.svc===void 0&&(tt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>ff(oA()))).ReturnOrderTransactionService),new tt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};$e.ChevreTxn=hf});var cA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var nn=g(),sn=Y(),DU=E(),yf=class extends DU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:i}=e;return this.fetch({uri:`/offers/${sn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[nn.status.ACCEPTED],body:{object:r,purpose:n,...typeof i?.id=="string"?{potentialActions:i}:void 0},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${sn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[nn.status.OK],qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${sn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[nn.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${sn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[nn.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:i}=e;return this.fetch({uri:`/offers/${sn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[nn.status.OK],qs:{purpose:{id:i.id}}}).then(async s=>s.json())}};Sa.OfferService=yf});var uA=o(Ke=>{"use strict";var FU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),LU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kU=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&FU(r,e,n[i]);return LU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevreTxc=Ke.service=void 0;var on;(function(t){let e;e=t.Offer||(t.Offer={})})(on||(Ke.service=on={}));var pf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return on.Offer.svc===void 0&&(on.Offer.svc=(await Promise.resolve().then(()=>kU(cA()))).OfferService),new on.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevreTxc=pf});var dA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=g(),BU=E(),vf=class extends BU.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 lA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=g(),GU=E(),Sf=class extends GU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Oa.status.OK]}).then(async e=>({data:await e.json()}))}};Ta.EmailMessageService=Sf});var fA=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PlaceService=void 0;var Ea=g(),$U=Y(),KU=E(),mf=class extends KU.Service{constructor(e){super({...e,retryableStatusCodes:[Ea.status.BAD_GATEWAY,Ea.status.FORBIDDEN,Ea.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${$U.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ea.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.PlaceService=mf});var hA=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.HasPOSService=void 0;var ga=g(),WU=Y(),HU=E(),_f=class extends HU.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${WU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ga.status.OK]}).then(async r=>r.json())}};ba.HasPOSService=_f});var yA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.SellerService=void 0;var Bt=g(),zU=E(),Of=class extends zU.Service{constructor(e){super({...e,retryableStatusCodes:[Bt.status.BAD_GATEWAY,Bt.status.FORBIDDEN,Bt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[Bt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Bt.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:[Bt.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:[Bt.status.OK]}).then(async r=>({data:await r.json()}))}};Aa.SellerService=Of});var vA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.service=void 0;var VU=dA(),YU=lA(),QU=fA(),ZU=hA(),JU=yA(),pA;(function(t){class e extends VU.CategoryCodeService{}t.CategoryCode=e;class r extends YU.EmailMessageService{}t.EmailMessage=r;class n extends QU.PlaceService{}t.Place=n;let i;(function(c){class d extends ZU.HasPOSService{}c.HasPOS=d})(i=t.place||(t.place={}));class s extends JU.SellerService{}t.Seller=s})(pA||(Pa.service=pA={}))});var SA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CreativeWorkService=void 0;var XU=te(),eD=E(),Tf=class extends eD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,XU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertMoviesByIdentifier(e)}};wa.CreativeWorkService=Tf});var mA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CustomerService=void 0;var tD=te(),rD=E(),Ef=class extends rD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,tD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findCustomers(e)}};Ra.CustomerService=Ef});var _A=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventService=void 0;var vr=Y(),Ma=te(),nD=E(),Cf=class extends nD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:i})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:i,disableAutoRetry:d})).createEventInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c}=this.options;return(await(await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n});if(![vr.factory.eventStatusType.EventCancelled,vr.factory.eventStatusType.EventPostponed,vr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new vr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new vr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await c.createEventInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:vr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ia.EventService=Cf});var OA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventOfferService=void 0;var iD=te(),sD=E(),gf=class extends sD.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:i}=this.options,s=await(0,iD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await s.createEventOfferInstance({project:n,seller:{id:typeof i?.id=="string"?i.id:""}})}return this.chevreAdminEventOffer}};qa.EventOfferService=gf});var TA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventSeriesService=void 0;var oD=te(),aD=E(),bf=class extends aD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,oD.loadChevreAdmin)({auth:n,endpoint:i})).createEventSeriesInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};Na.EventSeriesService=bf});var CA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.MeService=void 0;var EA=te(),cD=E(),Af=class extends cD.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)}};ja.MeService=Af});var AA=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.MovieTheaterService=void 0;var xa=Y(),gA=te(),uD=E(),bA=20,Pf=class extends uD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,gA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new xa.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new xa.factory.errors.Argument("page","must be number");if(d<1||d>bA)throw new xa.factory.errors.Argument("limit",`must be >=1 and <=${bA}`);if(f<1)throw new xa.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,gA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findEntranceGates(e)}};Ua.MovieTheaterService=Pf});var PA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.NoteAboutOrderService=void 0;var wf=te(),dD=E(),Rf=class extends dD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,wf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,wf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:i,endpoint:s,project:c,seller:d}=this.options;await(await(await(0,wf.loadChevreAdmin)({auth:i,endpoint:s})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Da.NoteAboutOrderService=Rf});var RA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferService=void 0;var St=Y(),wA=te(),lD=E(),Mf=class extends lD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,wA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new St.factory.errors.Argument("limit","must be number");if(typeof e.page!="number")throw new St.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new St.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 St.factory.errors.Argument("identifier.$in","must be >=1 and <=10");return(await c.createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options,d=await(0,wA.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==St.factory.product.ProductType.EventService&&y!==St.factory.product.ProductType.Product)throw new St.factory.errors.Argument("itemOffered.typeOf",`must be ${St.factory.product.ProductType.EventService} or ${St.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Fa.OfferService=Mf});var MA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogService=void 0;var an=Y(),fD=te(),hD=E(),If=class extends hD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options,d=await(0,fD.loadChevreAdmin)({auth:n,endpoint:i});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==an.factory.product.ProductType.EventService&&y!==an.factory.product.ProductType.Product)throw new an.factory.errors.Argument("itemOffered.typeOf",`must be ${an.factory.product.ProductType.EventService} or ${an.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogService=If});var qA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogItemService=void 0;var IA=te(),yD=E(),qf=class extends yD.Service{async search(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,d=await(await(0,IA.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;await(await(await(0,IA.loadChevreAdmin)({auth:n,endpoint:i})).createOfferCatalogItemInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogItemService=qf});var NA=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OrderService=void 0;var wt=Y(),cn=te(),pD=E(),Ba=20,Nf=class extends pD.Service{async findOrders(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,cn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,cn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new wt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new wt.factory.errors.Argument("page","must be number");if(d<1||d>Ba)throw new wt.factory.errors.Argument("limit",`must be >=1 and <=${Ba}`);if(f<1)throw new wt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f},{minimizeReservationFor:!0,onlyReservedTicket:!0,minimizeReservedTicket:!0})}async findReturner(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,cn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:i,project:s,seller:c}=this.options;return(await(await(0,cn.loadChevreAdmin)({auth:n,endpoint:i})).createOrderInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""}})).findAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r,{minimizeReservationFor:!0,onlyReservedTicket:!0,minimizeReservedTicket:!0})}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;await(await(await(0,cn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Ga.OrderService=Nf});var jA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.PaymentMethodService=void 0;var vD=te(),SD=E(),jf=class extends SD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,vD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findPaymentMethods(e)}};$a.PaymentMethodService=jf});var xA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ProductService=void 0;var un=Y(),mD=te(),_D=E(),xf=class extends _D.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,mD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==un.factory.product.ProductType.EventService&&f!==un.factory.product.ProductType.Product)throw new un.factory.errors.Argument("typeOf",`must be ${un.factory.product.ProductType.EventService} or ${un.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).upsertByProductId(e)}};Ka.ProductService=xf});var DA=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.ReservationService=void 0;var dn=Y(),Wa=te(),OD=E(),UA=20,Uf=class extends OD.Service{async findReservations(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options,c=await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new dn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new dn.factory.errors.Argument("page","must be number");if(d<1||d>UA)throw new dn.factory.errors.Argument("limit",`must be >=1 and <=${UA}`);if(f<1)throw new dn.factory.errors.Argument("page","must be >=1");return await(await c.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f}=this.options,p=await(0,Wa.loadChevreAdmin)({auth:s,endpoint:c}),y=String(i?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;return(await(await(0,Wa.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:i,seller:s}=this.options;if(typeof s?.id!="string"||s.id.length===0)throw new dn.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:i,seller:{id:s.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Ha.ReservationService=Uf});var FA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SellerService=void 0;var TD=te(),ED=E(),Df=class extends ED.Service{async search(e){let{auth:r,endpoint:n,project:i}=this.options;return(await(await(0,TD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:i})).search(e)}};za.SellerService=Df});var LA=o(We=>{"use strict";var CD=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gD=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&CD(r,e,n[i]);return gD(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.CloudAdmin=We.service=void 0;var B;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let c;c=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let _;_=t.Order||(t.Order={});let b;b=t.PaymentMethod||(t.PaymentMethod={});let M;M=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(We.service=B={}));var 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(SA()))).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(mA()))).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(_A()))).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(OA()))).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(TA()))).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(CA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(AA()))).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(PA()))).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(RA()))).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(MA()))).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(qA()))).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(NA()))).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(jA()))).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(xA()))).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(DA()))).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(FA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};We.CloudAdmin=Ff});var kA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.OrderService=void 0;var Gt=te(),bD=E(),Lf=class extends bD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:_,orderNumber:b}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...y!==void 0?{customer:y}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,..._!==void 0?{orderDateThrough:_}:void 0,...typeof b=="string"?{orderNumber:b}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e.object,{object:y,result:S}=e,_=await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:b}=await _.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:b}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Gt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0},{minimizeReservationFor:!0,onlyReservedTicket:!0,minimizeReservedTicket:!0})}};Va.OrderService=Lf});var BA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.DeliveryService=void 0;var AD=te(),PD=E(),kf=class extends PD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,AD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Ya.DeliveryService=kf});var $A=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.ReservationService=void 0;var GA=te(),wD=E(),Bf=class extends wD.Service{async findByCode(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,GA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,GA.loadChevreAsset)({auth:n,endpoint:i,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Qa.ReservationService=Bf});var KA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.TokenService=void 0;var RD=E(),Gf=class extends RD.Service{};Za.TokenService=Gf});var WA=o(He=>{"use strict";var MD=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ID=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ja=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&MD(r,e,n[i]);return ID(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.CloudAsset=He.service=void 0;var Xa=g(),Ne;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let i;i=t.Token||(t.Token={})})(Ne||(He.service=Ne={}));var ec=[Xa.status.BAD_GATEWAY,Xa.status.SERVICE_UNAVAILABLE,Xa.status.FORBIDDEN,Xa.status.UNAUTHORIZED],$f=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(()=>Ja(kA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:ec})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>Ja(BA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:ec})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>Ja($A()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:ec})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>Ja(KA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:ec})}};He.CloudAsset=$f});var HA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.CreativeWorkService=void 0;var qD=g(),ND=E(),Kf=class extends ND.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[qD.status.OK]}).then(async r=>r.json())}};tc.CreativeWorkService=Kf});var zA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.ProductService=void 0;var Wf=g(),jD=E(),Hf=class extends jD.Service{async search(e){let{typeOf:r,limit:n,page:i}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:i,seller:s}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Wf.status.OK],qs:{limit:r,page:n,itemOffered:i,seller:s}}).then(async c=>c.json())}async searchProductModels(e){let{category:r,limit:n,page:i}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:i},expectedStatusCodes:[Wf.status.OK]}).then(async s=>s.json())}};rc.ProductService=Hf});var VA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.EventService=void 0;var Rt=g(),xD=E(),Mt="/events",zf=class extends xD.Service{async findEvents(e){return this.fetch({uri:Mt,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findAggregateReservations4ttts(e){return this.fetch({uri:`${Mt}/aggregations`,method:"GET",qs:e,expectedStatusCodes:[Rt.status.OK]}).then(async r=>r.json())}async findSeatOffersDeprecated(e){let{event:r,limit:n,page:i}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r.id))}/seats`,method:"GET",qs:{limit:n,page:i},expectedStatusCodes:[Rt.status.OK]}).then(async s=>{let c=await s.json();return{data:c,...c.length>0?{sectionCode:c[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`${Mt}/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Rt.status.OK],qs:n}).then(async i=>i.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Rt.status.OK]}).then(async i=>i.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:i,typeOf:s}=e;return this.fetch({uri:`${Mt}/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:i,typeOf:s},expectedStatusCodes:[Rt.status.OK]}).then(async c=>c.json())}};nc.EventService=zf});var YA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventSeriesService=void 0;var UD=g(),DD=E(),FD="/eventSeries",Vf=class extends DD.Service{async findEventSeries(e){return this.fetch({uri:FD,method:"GET",qs:e,expectedStatusCodes:[UD.status.OK]}).then(async r=>r.json())}};ic.EventSeriesService=Vf});var QA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.EventOfferService=void 0;var LD=g(),kD=E(),BD="/eventOffers",Yf=class extends kD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c}=e;return this.fetch({uri:BD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:i,itemOfferedId:s,itemOfferedIds:c},expectedStatusCodes:[LD.status.OK]}).then(async d=>d.json())}};sc.EventOfferService=Yf});var ZA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=g(),GD=Y(),$D=E(),Zf=class extends $D.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${GD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>r.json())}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s},expectedStatusCodes:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:i,roomCode:s,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var JA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var KD=g(),WD=E(),HD="/seatOffers",Jf=class extends WD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:i,sectionCode:s}=e;return this.fetch({uri:HD,method:"GET",qs:{limit:r,page:n,eventId:i,sectionCode:s},expectedStatusCodes:[KD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var XA=o(ze=>{"use strict";var zD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$t=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&zD(r,e,n[i]);return VD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudSearch=ze.service=void 0;var Xf=g(),ae;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Event||(t.Event={});let n;n=t.EventSeries||(t.EventSeries={});let i;i=t.EventOffer||(t.EventOffer={});let s;s=t.Place||(t.Place={});let c;c=t.Product||(t.Product={});let d;d=t.SeatOffer||(t.SeatOffer={})})(ae||(ze.service=ae={}));var Kt=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return ae.CreativeWork.svc===void 0&&(ae.CreativeWork.svc=(await Promise.resolve().then(()=>$t(HA()))).CreativeWorkService),new ae.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Kt})}async createProductInstance(e){return ae.Product.svc===void 0&&(ae.Product.svc=(await Promise.resolve().then(()=>$t(zA()))).ProductService),new ae.Product.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventInstance(e){return ae.Event.svc===void 0&&(ae.Event.svc=(await Promise.resolve().then(()=>$t(VA()))).EventService),new ae.Event.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventSeriesInstance(e){return ae.EventSeries.svc===void 0&&(ae.EventSeries.svc=(await Promise.resolve().then(()=>$t(YA()))).EventSeriesService),new ae.EventSeries.svc({...this.options,...e,retryableStatusCodes:Kt})}async createEventOfferInstance(e){return ae.EventOffer.svc===void 0&&(ae.EventOffer.svc=(await Promise.resolve().then(()=>$t(QA()))).EventOfferService),new ae.EventOffer.svc({...this.options,...e,retryableStatusCodes:Kt})}async createPlaceInstance(e){return ae.Place.svc===void 0&&(ae.Place.svc=(await Promise.resolve().then(()=>$t(ZA()))).PlaceService),new ae.Place.svc({...this.options,...e,retryableStatusCodes:Kt})}async createSeatOfferInstance(e){return ae.SeatOffer.svc===void 0&&(ae.SeatOffer.svc=(await Promise.resolve().then(()=>$t(JA()))).SeatOfferService),new ae.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Kt})}};ze.CloudSearch=eh});var rP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var fe=g(),be=Y(),Ae=te(),YD=E(),eP=1e3,QD=5e3;async function tP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends YD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:s});return b.authorizeCreditCard({object:{...n,ticketToken:M},purpose:i})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:i}=e,{checkedActionId:s}=r,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,_=await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y}),{ticketToken:b}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await _.createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:b},purpose:i},{checkedActionId:s})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:i}=e,s=r?.intervalAfterIssueTicketInMS,{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options,b=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),{ticketToken:M}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:i},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:s});if(typeof M!="string"||M==="")throw new be.factory.errors.ArgumentNull("object.ticketToken");return b.publishCreditCardPaymentUrl({object:{...n,ticketToken:M},purpose:i})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),_=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:be.factory.transactionType.PlaceOrder},b=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(M=>({...M,typeOf:S})):[];if(b.length!==1)throw new be.factory.errors.Argument("object.movieTickets","movieTickets length must be 1");return p.checkMovieTicketAsync({object:[{typeOf:be.factory.service.paymentService.PaymentServiceType.MovieTicket,id:y,paymentMethod:{typeOf:S},movieTickets:b,seller:{id:String(e.object?.seller?.id),typeOf:be.factory.organizationType.Corporation}}],purpose:_})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;await(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,Ae.loadChevrePay)({auth:s,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],fe.status.CONFLICT,fe.status.GATEWAY_TIMEOUT,fe.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:i.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:s,endpoint:c,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:i})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:i,endpoint:s,disableAutoRetry:f})).createPaymentInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:i,purpose:s}=e;if(typeof r!="number")throw new be.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new be.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new be.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new be.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,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:i,purpose:s})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:i,purpose:s}=e;if(typeof r!="number")throw new be.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new be.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new be.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new be.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,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:i,purpose:s})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,Ae.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).createPaymentInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],fe.status.CONFLICT,fe.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:i}=e,{giveUpInMS:s}=r;if(typeof s!="number"||s<=0)throw new be.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,_=await(await(0,Ae.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),b=!1,M=setTimeout(()=>{b=!0},s),w,q=new be.factory.errors.GatewayTimeout("given up");for(;w===void 0&&!b;){try{w=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:i}),clearTimeout(M);break}catch(N){q=N}await tP(QD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,b)}if(typeof w?.ticketToken=="string")return w;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:i}=e,{checkPaymentMethodId:s}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>eP?r.intervalAfterIssueTicketInMS:eP,f=!1,p=n.paymentMethodId;if(s?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:i});return await tP(d),y}};cc.PaymentService=th});var nP=o(Ve=>{"use strict";var ZD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XD=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&ZD(r,e,n[i]);return JD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudPay=Ve.service=void 0;var uc=g(),ln;(function(t){let e;e=t.Payment||(t.Payment={})})(ln||(Ve.service=ln={}));var eF=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return ln.Payment.svc===void 0&&(ln.Payment.svc=(await Promise.resolve().then(()=>XD(rP()))).PaymentService),new ln.Payment.svc({...this.options,...e,retryableStatusCodes:eF})}};Ve.CloudPay=rh});var aP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=rF;dc.voidAuthorizeOfferAsync=nF;var re=Y(),iP=2e4,sP=1e3;async function oP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function tF(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 rF(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},iP);let i,s;for(;i===void 0&&s===void 0;){if(await oP(sP),n){s=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){i={id:c.id};break}if(c.error!==void 0){s=tF(c.error);break}}if(typeof i?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:i.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw s}}function nF(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},iP);let i,s;for(;i===void 0&&s===void 0;){if(await oP(sP),n){s=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){i=c;break}}if(typeof i?.status!="string")throw s}}});var uP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var cP=Y(),nh=te(),iF=E(),ih=aP(),sh=class extends iF.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:i,acceptedOffer:s,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:_,disableAutoRetry:b,retryableStatusCodes:M}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:b})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(M)?M:[]]}),N=await(0,ih.authorizeOfferAsync)({purpose:{id:n.id},event:{id:i.id},acceptedOffer:s,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:i,endpoint:s,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ih.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:i}=e,{event:s,acceptedOffer:c,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:_,seller:b,disableAutoRetry:M,retryableStatusCodes:w}=this.options,N=await(await(0,nh.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:M})).createOfferInstance({project:_,seller:{id:typeof b?.id=="string"?b.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),C=await(0,ih.authorizeOfferAsync)({purpose:{id:i.id},event:{id:s.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=sh});var dP=o(Ye=>{"use strict";var sF=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oF=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aF=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&sF(r,e,n[i]);return oF(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudTxc=Ye.service=void 0;var fc=g(),fn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(fn||(Ye.service=fn={}));var cF=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],oh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return fn.transaction.PlaceOrder.svc===void 0&&(fn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>aF(uP()))).PlaceOrderCOAService),new fn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:cF})}};Ye.CloudTxc=oh});var lP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var uF=Y(),ah=te(),dF=E(),ch=class extends dF.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:i,seller:s,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).createOfferInstance({project:i,seller:{id:typeof s?.id=="string"?s.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:_,eventOfferId:b}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:_,eventOfferId:b})}async authorizeEventService(e,r){let{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createOfferInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:uF.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:i.itemOffered.typeOf}},purpose:n})}};hc.OfferService=ch});var fP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var Sr=g(),mr=te(),lF=E(),uh=class extends lF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:i,endpoint:s,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:i,endpoint:s,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,sendEmailMessage:n,email:i}=e,{auth:s,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,mr.loadChevreTxn)({auth:s,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:i})}async cancel(e){let{id:r}=e,{auth:n,endpoint:i,project:s,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,mr.loadChevreTxn)({auth:n,endpoint:i,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Sr.status.CONFLICT,Sr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var hP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),fF=E(),lh=class extends fF.Service{async start(e){let{agent:r,object:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:i,project:s,seller:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:i})).createReturnOrderTransactionInstance({project:s,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:i,endpoint:s,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:s})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var yP=o(Qe=>{"use strict";var hF=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yF=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&hF(r,e,n[i]);return yF(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudTxn=Qe.service=void 0;var vc=g(),rt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let i;i=n.PlaceOrder||(n.PlaceOrder={});let s;s=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(rt||(Qe.service=rt={}));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 rt.Offer.svc===void 0&&(rt.Offer.svc=(await Promise.resolve().then(()=>fh(lP()))).OfferService),new rt.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return rt.transaction.PlaceOrder.svc===void 0&&(rt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(fP()))).PlaceOrderTransactionService),new rt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return rt.transaction.ReturnOrder.svc===void 0&&(rt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(hP()))).ReturnOrderTransactionService),new rt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Qe.CloudTxn=yh});var pP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var pF=g(),vF=E(),ph=class extends vF.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[pF.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var SP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var vP=g(),SF=E(),vh=class extends SF.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[vP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[vP.status.NO_CONTENT]})}};mc.RuleSetService=vh});var _P=o(Ze=>{"use strict";var mF=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_F=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mP=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&mF(r,e,n[i]);return _F(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.WaiterAdmin=Ze.service=void 0;var It;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(It||(Ze.service=It={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return It.Rule.svc===void 0&&(It.Rule.svc=(await Promise.resolve().then(()=>mP(pP()))).RuleService),new It.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return It.RuleSet.svc===void 0&&(It.RuleSet.svc=(await Promise.resolve().then(()=>mP(SP()))).RuleSetService),new It.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Ze.WaiterAdmin=Sh});var te=o(X=>{"use strict";var OF=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),TF=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&OF(r,e,n[i]);return TF(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=gF;X.loadChevreAsset=bF;X.loadChevreAdmic=AF;X.loadChevreAdmin=PF;X.loadChevreConsole=wF;X.loadChevrePay=RF;X.loadChevreTxn=MF;X.loadChevreTxc=IF;X.loadService=qF;X.loadCloudAdmin=NF;X.loadCloudAsset=jF;X.loadCloudSearch=xF;X.loadCloudPay=UF;X.loadCloudTxc=DF;X.loadCloudTxn=FF;X.loadWaiterAdmin=LF;var EF=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return EF.factory}});var CF=Oe(qi());X.transporters=CF;var mh;async function gF(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(VC()))).Chevre),new mh(...t)}var _h;async function bF(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAsset),new _h(...t)}var Oh;async function AF(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(rg()))).ChevreAdmic),new Oh(...t)}var Th;async function PF(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(Lg()))).ChevreAdmin),new Th(...t)}var Eh;async function wF(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(eA()))).ChevreConsole),new Eh(...t)}var Ch;async function RF(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(rA()))).ChevrePay),new Ch(...t)}var gh;async function MF(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(aA()))).ChevreTxn),new gh(...t)}var bh;async function IF(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(uA()))).ChevreTxc),new bh(...t)}var Ah;async function qF(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(vA()))).service),Ah}var Ph;async function NF(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(LA()))).CloudAdmin),new Ph(...t)}var wh;async function jF(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(WA()))).CloudAsset),new wh(...t)}var Rh;async function xF(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(XA()))).CloudSearch),new Rh(...t)}var Mh;async function UF(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(nP()))).CloudPay),new Mh(...t)}var Ih;async function DF(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(dP()))).CloudTxc),new Ih(...t)}var qh;async function FF(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(yP()))).CloudTxn),new qh(...t)}var Nh;async function LF(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(_P()))).WaiterAdmin),new Nh(...t)}});var OP=o(Wt=>{"use strict";var kF=Wt&&Wt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BF=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&kF(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});BF(te(),Wt)});var NP=o((_5,qP)=>{var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(t){var e={exports:{}};return t(e,e.exports),e.exports}var GF=Vt(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},i=0,s=void 0,c=void 0,d=function(h,v){M[i]=h,M[i+1]=v,(i+=2)===2&&(c?c(w):D())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function b(){var h=setTimeout;return function(){return h(w,1)}}var M=new Array(1e3);function w(){for(var h=0;h<i;h+=2)(0,M[h])(M[h+1]),M[h]=void 0,M[h+1]=void 0;i=0}var q,N,C,R,D=void 0;function k(h,v){var T=this,A=new this.constructor(j);A[W]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return Xe(P,A,L,T._result)})}else Je(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(j);return ce(v,h),v}D=S?function(){return process.nextTick(w)}:y?(N=0,C=new y(w),R=document.createTextNode(""),C.observe(R,{characterData:!0}),function(){R.data=N=++N%2}):_?((q=new MessageChannel).port1.onmessage=w,function(){return q.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(s=h.runOnLoop||h.runOnContext)!==void 0?function(){s(w)}:b()}catch{return b()}})():b();var W=Math.random().toString(36).substring(2);function j(){}var $=void 0,G=1,V=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===G?se(A,P._result):P._state===V?ee(A,P._result):Je(P,void 0,function(L){return ce(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?se(h,v):r(T)?(function(A,P,L){d(function(z){var Z=!1,de=(function(Pe,Ee,qt,ye){try{Pe.call(Ee,function(we){Z||(Z=!0,P!==we?ce(z,we):se(z,we))},function(we){Z||(Z=!0,ee(z,we))})}catch(we){return we}})(L,P);!Z&&de&&(Z=!0,ee(z,de))},A)})(h,v,T):se(h,v)}function ce(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")se(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 ie(h){h._onerror&&h._onerror(h._result),nt(h)}function se(h,v){h._state===$&&(h._result=v,h._state=G,h._subscribers.length!==0&&d(nt,h))}function ee(h,v){h._state===$&&(h._state=V,h._result=v,d(ie,h))}function Je(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+G]=T,P[L+V]=A,L===0&&h._state&&d(nt,h)}function nt(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])?Xe(T,A,P,L):P(L);h._subscribers.length=0}}function Xe(h,v,T,A){var P=r(T),L=void 0,z=void 0,Z=!0;if(P){try{L=T(A)}catch(de){Z=!1,z=de}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=A;v._state!==$||(P&&Z?ce(v,L):Z===!1?ee(v,z):h===G?se(v,L):h===V&&ee(v,L))}var xe=0;function a(h){h[W]=xe++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(j),this.promise[W]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?se(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&se(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===$&&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(Pe){Z=!0,z=Pe}if(L===k&&v._state!==$)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(A===l){var de=new A(j);Z?ee(de,z):Te(de,v,L),this._willSettleAt(de,T)}else this._willSettleAt(new A(function(Pe){return Pe(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===$&&(this._remaining--,v===V?ee(P,A):this._result[T]=A),this._remaining===0&&se(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;Je(v,void 0,function(P){return A._settledAt(G,T,P)},function(P){return A._settledAt(V,T,P)})},h})(),l=(function(){function h(v){this[W]=xe++,this._result=this._state=void 0,this._subscribers=[],j!==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){ce(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(j);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(zt!==void 0)h=zt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),$F={__proto__:null,default:{}},Fh=Vt(function(t,e){var r;t.exports=(r=r||(function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&zt!==void 0&&zt.crypto&&(s=zt.crypto),!s)try{s=$F}catch{}var c=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(R){var D;return C.prototype=R,D=new C,C.prototype=null,D}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var R=d(this);return C&&R.mixIn(C),R.hasOwnProperty("init")&&this.init!==R.init||(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var R in C)C.hasOwnProperty(R)&&(this[R]=C[R]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,R){C=this.words=C||[],this.sigBytes=R??4*C.length},toString:function(C){return(C||b).stringify(this)},concat:function(C){var R=this.words,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var W=0;W<K;W++)R[k+W>>>2]|=(D[W>>>2]>>>24-W%4*8&255)<<24-(k+W)%4*8;else for(var j=0;j<K;j+=4)R[k+j>>>2]=D[j>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,R=this.sigBytes;C[R>>>2]&=4294967295<<32-R%4*8,C.length=n.ceil(R/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var R=[],D=0;D<C;D+=4)R.push(c());return new S.init(R,C)}}),_=f.enc={},b=_.Hex={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var W=R[K>>>2]>>>24-K%4*8&255;k.push((W>>>4).toString(16)),k.push((15&W).toString(16))}return k.join("")},parse:function(C){for(var R=C.length,D=[],k=0;k<R;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,R/2)}},M=_.Latin1={stringify:function(C){for(var R=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(R[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var R=C.length,D=[],k=0;k<R;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,R)}},w=_.Utf8={stringify:function(C){try{return decodeURIComponent(escape(M.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return M.parse(unescape(encodeURIComponent(C)))}},q=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=w.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var R,D=this._data,k=D.words,K=D.sigBytes,W=this.blockSize,j=K/(4*W),$=(j=C?n.ceil(j):n.max((0|j)-this._minBufferSize,0))*W,G=n.min(4*$,K);if($){for(var V=0;V<$;V+=W)this._doProcessBlock(k,V);R=k.splice(0,$),D.sigBytes-=G}return new S.init(R,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(R,D){return new C.init(D).finalize(R)}},_createHmacHelper:function(C){return function(R,D){return new N.HMAC.init(C,D).finalize(R)}}});var N=f.algo={};return f})(Math),r)}),AP=Vt(function(t,e){var r;t.exports=(r=Fh,(function(n){var i=r,s=i.lib,c=s.WordArray,d=s.Hasher,f=i.algo,p=[],y=[];(function(){function b(N){for(var C=n.sqrt(N),R=2;R<=C;R++)if(!(N%R))return!1;return!0}function M(N){return 4294967296*(N-(0|N))|0}for(var w=2,q=0;q<64;)b(w)&&(q<8&&(p[q]=M(n.pow(w,.5))),y[q]=M(n.pow(w,1/3)),q++),w++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(b,M){for(var w=this._hash.words,q=w[0],N=w[1],C=w[2],R=w[3],D=w[4],k=w[5],K=w[6],W=w[7],j=0;j<64;j++){if(j<16)S[j]=0|b[M+j];else{var $=S[j-15],G=S[j-2];S[j]=(($<<25|$>>>7)^($<<14|$>>>18)^$>>>3)+S[j-7]+((G<<15|G>>>17)^(G<<13|G>>>19)^G>>>10)+S[j-16]}var V=q&N^q&C^N&C,Te=W+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[j]+S[j];W=K,K=k,k=D,D=R+Te|0,R=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+V)|0}w[0]=w[0]+q|0,w[1]=w[1]+N|0,w[2]=w[2]+C|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+k|0,w[6]=w[6]+K|0,w[7]=w[7]+W|0},_doFinalize:function(){var b=this._data,M=b.words,w=8*this._nDataBytes,q=8*b.sigBytes;return M[q>>>5]|=128<<24-q%32,M[14+(q+64>>>9<<4)]=n.floor(w/4294967296),M[15+(q+64>>>9<<4)]=w,b.sigBytes=4*M.length,this._process(),this._hash},clone:function(){var b=d.clone.call(this);return b._hash=this._hash.clone(),b}});i.SHA256=d._createHelper(_),i.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),KF=Vt(function(t,e){var r,n;t.exports=(n=(r=Fh).lib.WordArray,r.enc.Base64={stringify:function(i){var s=i.words,c=i.sigBytes,d=this._map;i.clamp();for(var f=[],p=0;p<c;p+=3)for(var y=(s[p>>>2]>>>24-p%4*8&255)<<16|(s[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|s[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<c;S++)f.push(d.charAt(y>>>6*(3-S)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(i){var s=i.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=i.indexOf(p);y!==-1&&(s=y)}return(function(S,_,b){for(var M=[],w=0,q=0;q<_;q++)if(q%4){var N=b[S.charCodeAt(q-1)]<<q%4*2,C=b[S.charCodeAt(q)]>>>6-q%4*2;M[w>>>2]|=(N|C)<<24-w%4*8,w++}return n.create(M,w)})(i,s,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),TP=Vt(function(t,e){t.exports=Fh.enc.Hex}),PP=Vt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function i(){return new n(null)}var s=typeof navigator<"u";s&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],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):s&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],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=i();return u.fromInt(a),u}function _(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,l+=1),l}function b(a){this.m=a}function M(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function w(a,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function R(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function W(a){this.r2=i(),this.q3=i(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}b.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},b.prototype.revert=function(a){return a},b.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},b.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},b.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},M.prototype.convert=function(a){var u=i();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},M.prototype.revert=function(a){var u=i();return a.copyTo(u),this.reduce(u),u},M.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},M.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},M.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=i());var T=i(),A=this.s,P=a.s,L=this.DB-_(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var de=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Pe=this.FV/de,Ee=(1<<this.F1)/de,qt=1<<this.F2,ye=l.t,we=ye-z,it=u??i();for(T.dlShiftTo(we,it),l.compareTo(it)>=0&&(l[l.t++]=1,l.subTo(it,l)),n.ONE.dlShiftTo(z,it),it.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--we>=0;){var Er=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+qt)*Ee);if((l[ye]+=T.am(0,Er,l,we,0,z))<Er)for(T.dlShiftTo(we,it),l.subTo(it,l);l[ye]<--Er;)l.subTo(it,l)}u!=null&&(l.drShiftTo(z,u),A!=P&&n.ZERO.subTo(u,u)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),A<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=i(),h=i(),v=u.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&h,P<=0&&(P+=this.DB,--A)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=i();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var u=i();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new b(u):new M(u),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},W.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var u=i();return a.copyTo(u),this.reduce(u),u},W.prototype.revert=function(a){return a},W.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)},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)};var j,$,G,V=[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)/V[V.length-1];function ce(){var a;a=new Date().getTime(),$[G++]^=255&a,$[G++]^=a>>8&255,$[G++]^=a>>16&255,$[G++]^=a>>24&255,G>=xe&&(G-=xe)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=i(),T=i(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>V.length&&(a=V.length);for(var v=i(),T=0;T<a;++T){v.fromInt(V[Math.floor(Math.random()*V.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=0)return!1}}return!0},n.prototype.clone=function(){var a=i();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,u=new Array;u[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(u[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(u[v++]=l);return u},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var u=i();return this.bitwiseTo(a,w,u),u},n.prototype.or=function(a){var u=i();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=i();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=i();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=i(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=i();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=i();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+R(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=i();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=i();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=i();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=i();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=i();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=i(),l=i();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new b(u):u.isEven()?new W(u):new M(u);var A=new Array,P=3,L=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=i();for(h.sqrTo(A[1],Z);P<=z;)A[P]=i(),h.mulTo(Z,A[P-2],A[P]),P+=2}var de,Pe,Ee=a.t-1,qt=!0,ye=i();for(v=_(a[Ee])-1;Ee>=0;){for(v>=L?de=a[Ee]>>v-L&z:(de=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(de|=a[Ee-1]>>this.DB+v-L)),P=l;(1&de)==0;)de>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),qt)A[de].copyTo(T),qt=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),h.mulTo(ye,A[de],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var 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]<=V[V.length-1]){for(u=0;u<V.length;++u)if(l[0]==V[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<V.length;){for(var h=V[u],v=u+1;v<V.length&&h<Te;)h*=V[v++];for(h=l.modInt(h);u<v;)if(h%V[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=i();return this.squareTo(a),a},n.prototype.Barrett=W,$==null){var ie;if($=new Array,G=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var se=new Uint8Array(32);for(window.crypto.getRandomValues(se),ie=0;ie<32;++ie)$[G++]=se[ie]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(ie=0;ie<ee.length;++ie)$[G++]=255&ee.charCodeAt(ie)}}for(;G<xe;)ie=Math.floor(65536*Math.random()),$[G++]=ie>>>8,$[G++]=255&ie;G=0,ce()}function Je(){if(j==null){for(ce(),(j=new Xe).init($),G=0;G<$.length;++G)$[G]=0;G=0}return j.next()}function nt(){}function Xe(){this.i=0,this.j=0,this.S=new Array}nt.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=Je()},Xe.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%a.length]&255],this.S[l]=h;this.i=0,this.j=0},Xe.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var xe=256;t.exports={default:n,BigInteger:n,SecureRandom:nt}}).call(zt)}),EP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},CP={sha256:AP};function wP(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 PP.BigInteger(t,16),this.e=parseInt(e,16)}wP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new PP.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(s){for(var c in EP){var d=EP[c],f=d.length;if(s.substring(0,f)===d)return{alg:c,hash:s.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!CP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var i=CP[n.alg](t).toString();return n.hash===i};for(gP=[],je=[],RP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ht=0;Ht<64;++Ht)gP[Ht]=jh[Ht],je[jh.charCodeAt(Ht)]=Ht;var gP,je,RP,jh,Ht;je[45]=62,je[95]=63;var MP=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),i=n[0],s=n[1],c=new RP((function(p,y,S){return 3*(y+S)/4-S})(0,i,s)),d=0,f=s>0?i-4:i;for(r=0;r<f;r+=4)e=je[t.charCodeAt(r)]<<18|je[t.charCodeAt(r+1)]<<12|je[t.charCodeAt(r+2)]<<6|je[t.charCodeAt(r+3)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return s===2&&(e=je[t.charCodeAt(r)]<<2|je[t.charCodeAt(r+1)]>>4,c[d++]=255&e),s===1&&(e=je[t.charCodeAt(r)]<<10|je[t.charCodeAt(r+1)]<<4|je[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function IP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function bP(t){return t=IP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(MP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var i=e[n].toString(16);r+=i.length===2?i:"0"+i}return r})(MP(IP(t)))}var WF=Vt(function(t){var e,r;e=zt,r=function(){return function(){return(function(n){var i=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var s=n.shift();n[0]=s+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<n.length-1?"":"/"),i.push(d))}var f=i.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function HF(t,e){return e=e||{},new Promise(function(r,n){var i=new XMLHttpRequest,s=[],c=[],d={},f=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:f,headers:{keys:function(){return s},entries:function(){return c},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,_){s.push(S=S.toLowerCase()),c.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},i.onerror=n,i.withCredentials=e.credentials=="include",e.headers)i.setRequestHeader(p,e.headers[p]);i.send(e.body||null)})}function zF(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 VF=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();GF.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},YF=function(){return new Date};function hn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new VF,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:YF,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}hn.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 i=n.encoded.header+"."+n.encoded.payload,s=xh(n.encoded.signature),c=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,_=n.payload.nbf,b=n.payload.iat,M=n.payload.azp,w=n.payload.auth_time,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ne('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(R,D){if(R)return r(R,null);if(!D.verify(i,s))return r(new 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(!M||typeof M!="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(M!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+M+'"'),null)}if(!S||!_c(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!b||!_c(b))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(_&&_c(_)){var W=_-C.leeway,j=new Date(0);if(j.setUTCSeconds(W),N<j)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+j+'"'),null)}if(C.maxAge){if(!w||!_c(w))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+C.maxAge+C.leeway,G=new Date(0);if(G.setUTCSeconds($),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)})},hn.prototype.getRsaVerifier=function(t,e,r){var n=this,i=t+e;Promise.resolve(this.jwksCache.has(i)).then(function(s){return s?n.jwksCache.get(i):(d=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||WF(c.iss,".well-known","jwks.json"),(fetch=="undefined"?HF:fetch)(d).then(zF).then(function(f){var p,y,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(y=f.keys[p]).kid===c.kid&&(_=y);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=_).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,d}).then(function(s){if(!s||!s.modulus||!s.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(i,s)).then(function(){r&&r(null,new wP(s.modulus,s.exp))})}).catch(function(s){r&&r(s)})},hn.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(bP(n[0])),r=JSON.parse(bP(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]}}},hn.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 i,s=AP(t),c=TP.stringify(s),d=c.substring(0,c.length/2),f=TP.parse(d),p=KF.stringify(f);return n((i={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return i[y]})!==r?new ne("Invalid access_token"):null))},qP.exports=hn});var yn=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Lh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Lh});var jP=o(_r=>{"use strict";var QF=_r&&_r.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_r,"__esModule",{value:!0});_r.PopupHandler=void 0;var ZF=QF(ir()),kh=(0,ZF.default)("cinerino-sdk:auth:popupHandler"),Bh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(kh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){kh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};_r.PopupHandler=Bh});var xP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var JF=yn(),XF=jP(),Gh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.location.hash}catch(s){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new XF.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new JF.AuthorizeError("Timeout during authentication");i.error="timeout",i.errorDescription="Timeout during authentication",n(i)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=Gh});var Kh=o(Or=>{"use strict";var eL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.IframeHandler=void 0;var tL=eL(ir()),rL=(0,tL.default)("cinerino-sdk:auth:iframeHandler"),$h=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(rL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Or.IframeHandler=$h});var UP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var nL=yn(),iL=Kh(),Wh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new iL.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new nL.AuthorizeError("Timeout during authentication renew");i.error="timeout",i.errorDescription="Timeout during authentication renew",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Wh});var DP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var sL=yn(),oL=Kh(),Hh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let i;try{r?typeof n.event.data=="object"&&n.event.data.hash?i=n.event.data.hash:i=n.event.data:i=n.sourceObject.contentWindow.location.hash}catch(s){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",s)}e(i)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new oL.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let i=new sL.AuthorizeError("Timeout during logout");i.error="timeout",i.errorDescription="Timeout during logout",n(i)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentLogoutHandler=Hh});var FP=o(()=>{});var LP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.LoginTicket=void 0;var zh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};gc.LoginTicket=zh});var kP=o(mt=>{"use strict";var aL=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mt,"__esModule",{value:!0});mt.OAuth2client=mt.MAX_RETRY_NUM=void 0;var cL=FP(),uL=aL(ir()),bc=g(),dL=qi(),lL=LP(),Yt=(0,uL.default)("cinerino-sdk:auth:oAuth2client"),fL=1e3;mt.MAX_RETRY_NUM=2;async function hL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Vh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,cL.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},i=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(i),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Yt("response:",d.status),d.status!==bc.status.OK)if(d.status===bc.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Yt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,i){let s=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let c,d=0;for(;c===void 0;)try{d+=1,d>mt.MAX_RETRY_NUM&&(s=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Yt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",s,"retryableStatusCodes: ",i),s&&typeof p=="number"&&i.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await hL(fL*d);continue}}throw f}return c}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let i=new dL.DefaultTransporter(n),s;return typeof this.events.preFetch=="function"?s=(await this.events.preFetch({url:e,options:r})).options:s=r,i.fetch(e,s)}async refreshToken(e){Yt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(n),s={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Yt("fetching...",s),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,s).then(async c=>{if(Yt("response:",c.status),c.status!==bc.status.OK)if(c.status===bc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:_}=f;d={access_token:p,id_token:y,token_type:_,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let i,s;try{i=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{s=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(s.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(s)}`);if(s.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(s)}`);if(isNaN(s.iat))throw new Error("iat field using invalid format");if(isNaN(s.exp))throw new Error("exp field using invalid format");if(r!==void 0){let c=s.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new lL.LoginTicket({envelope:i,payload:s})}};mt.OAuth2client=Vh});var $P=o(Tr=>{"use strict";var GP=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.ImplicitGrantClient=void 0;var yL=GP(ir()),BP=GP(NP()),Yh=Wu(),pL=yn(),vL=xP(),SL=UP(),mL=DP(),_L=kP(),Ac=(0,yL.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends _L.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Ac("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},i=await SL.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(i)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},i=await vL.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(i)}async signOut(){await mL.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let i=new pL.AuthorizeError(n.error_description);throw i.error=n.error,i.errorDescription=n.error_description,i.state=n.state,i}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let i=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i)}if(typeof n.id_token=="string"){let s=new BP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,i)=>{new BP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){i(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Tr.ImplicitGrantClient=Qh});var KP=o(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.transporters=he.factory=he.loadService=he.loadCloudTxn=he.loadCloudTxc=he.loadCloudSearch=he.loadCloudPay=he.loadCloudAsset=he.loadCloudAdmin=void 0;he.createAuthInstance=TL;var _t=OP();Object.defineProperty(he,"factory",{enumerable:!0,get:function(){return _t.factory}});Object.defineProperty(he,"loadCloudAdmin",{enumerable:!0,get:function(){return _t.loadCloudAdmin}});Object.defineProperty(he,"loadCloudAsset",{enumerable:!0,get:function(){return _t.loadCloudAsset}});Object.defineProperty(he,"loadCloudPay",{enumerable:!0,get:function(){return _t.loadCloudPay}});Object.defineProperty(he,"loadCloudSearch",{enumerable:!0,get:function(){return _t.loadCloudSearch}});Object.defineProperty(he,"loadCloudTxc",{enumerable:!0,get:function(){return _t.loadCloudTxc}});Object.defineProperty(he,"loadCloudTxn",{enumerable:!0,get:function(){return _t.loadCloudTxn}});Object.defineProperty(he,"loadService",{enumerable:!0,get:function(){return _t.loadService}});Object.defineProperty(he,"transporters",{enumerable:!0,get:function(){return _t.transporters}});var OL=$P();function TL(t){return new OL.ImplicitGrantClient(t)}});var q5=window.cinerino=KP();})();
|
|
5
5
|
/* istanbul ignore else -- @preserve */
|
|
6
6
|
//# sourceMappingURL=bundle.js.map
|