1import{F as Yr,a as ot,b as Qr,c as Jr,d as l,e as Gt,f as Xr}from"./chunk-Y77DBAFB.js";var at=l(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.errors=y.Unavailable=y.BadGateway=y.NotImplemented=y.GeneralError=y.TooManyRequests=y.Unprocessable=y.LengthRequired=y.Gone=y.Conflict=y.Timeout=y.NotAcceptable=y.MethodNotAllowed=y.NotFound=y.Forbidden=y.PaymentError=y.NotAuthenticated=y.BadRequest=y.FeathersError=void 0;y.convert=va;var E=class extends Error{constructor(e,r,n,o,i){let a=typeof e=="string"?e:"Error",u={name:r,code:n,className:o,type:"FeathersError"};if(Array.isArray(i))u.data=i;else if(typeof e=="object"||i!==void 0){let s=e!==null&&typeof e=="object"?e:i,{message:c,errors:p}=s,d=Jr(s,["message","errors"]);a=c||a,u.errors=p,u.data=d}super(a),Object.assign(this,u)}toJSON(){let e={name:this.name,message:this.message,code:this.code,className:this.className};return this.data!==void 0&&(e.data=this.data),this.errors!==void 0&&(e.errors=this.errors),e}};y.FeathersError=E;var Ee=class extends E{constructor(e,r){super(e,"BadRequest",400,"bad-request",r)}};y.BadRequest=Ee;var Pe=class extends E{constructor(e,r){super(e,"NotAuthenticated",401,"not-authenticated",r)}};y.NotAuthenticated=Pe;var Ae=class extends E{constructor(e,r){super(e,"PaymentError",402,"payment-error",r)}};y.PaymentError=Ae;var Me=class extends E{constructor(e,r){super(e,"Forbidden",403,"forbidden",r)}};y.Forbidden=Me;var xe=class extends E{constructor(e,r){super(e,"NotFound",404,"not-found",r)}};y.NotFound=xe;var je=class extends E{constructor(e,r){super(e,"MethodNotAllowed",405,"method-not-allowed",r)}};y.MethodNotAllowed=je;var qe=class extends E{constructor(e,r){super(e,"NotAcceptable",406,"not-acceptable",r)}};y.NotAcceptable=qe;var Ce=class extends E{constructor(e,r){super(e,"Timeout",408,"timeout",r)}};y.Timeout=Ce;var ke=class extends E{constructor(e,r){super(e,"Conflict",409,"conflict",r)}};y.Conflict=ke;var it=class extends E{constructor(e,r){super(e,"Gone",410,"gone",r)}};y.Gone=it;var Ie=class extends E{constructor(e,r){super(e,"LengthRequired",411,"length-required",r)}};y.LengthRequired=Ie;var De=class extends E{constructor(e,r){super(e,"Unprocessable",422,"unprocessable",r)}};y.Unprocessable=De;var Fe=class extends E{constructor(e,r){super(e,"TooManyRequests",429,"too-many-requests",r)}};y.TooManyRequests=Fe;var Re=class extends E{constructor(e,r){super(e,"GeneralError",500,"general-error",r)}};y.GeneralError=Re;var Le=class extends E{constructor(e,r){super(e,"NotImplemented",501,"not-implemented",r)}};y.NotImplemented=Le;var Ne=class extends E{constructor(e,r){super(e,"BadGateway",502,"bad-gateway",r)}};y.BadGateway=Ne;var $e=class extends E{constructor(e,r){super(e,"Unavailable",503,"unavailable",r)}};y.Unavailable=$e;y.errors={FeathersError:E,BadRequest:Ee,NotAuthenticated:Pe,PaymentError:Ae,Forbidden:Me,NotFound:xe,MethodNotAllowed:je,NotAcceptable:qe,Timeout:Ce,Conflict:ke,LengthRequired:Ie,Unprocessable:De,TooManyRequests:Fe,GeneralError:Re,NotImplemented:Le,BadGateway:Ne,Unavailable:$e,400:Ee,401:Pe,402:Ae,403:Me,404:xe,405:je,406:qe,408:Ce,409:ke,410:it,411:Ie,422:De,429:Fe,500:Re,501:Le,502:Ne,503:$e};function va(t){if(!t)return t;let e=y.errors[t.name],r=e?new e(t.message,t.data):new Error(t.message||t);return typeof t=="object"&&Object.assign(r,t),r}});var Vt=l(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.StorageWrapper=ue.MemoryStorage=void 0;var Kt=class{constructor(){this.store={}}getItem(e){return Promise.resolve(this.store[e])}setItem(e,r){return Promise.resolve(this.store[e]=r)}removeItem(e){let r=this.store[e];return delete this.store[e],Promise.resolve(r)}};ue.MemoryStorage=Kt;var zt=class{constructor(e){this.storage=e}getItem(e){var r;return Promise.resolve((r=this.storage)===null||r===void 0?void 0:r.getItem(e))}setItem(e,r){var n;return Promise.resolve((n=this.storage)===null||n===void 0?void 0:n.setItem(e,r))}removeItem(e){var r;return Promise.resolve((r=this.storage)===null||r===void 0?void 0:r.removeItem(e))}};ue.StorageWrapper=zt});var tn=l(st=>{"use strict";
1Object.defineProperty(st,"__esModule",{value:!0});st.AuthenticationClient=void 0;var en=at(),ga=Vt(),Qt=class extends en.FeathersError{constructor(e,r){super(e,"OauthError",401,"oauth-error",r)}},Zr=(t,e)=>{let r=new RegExp(`(?:&?)${e}=([^&]*)`),n=t.hash?t.hash.match(r):null;if(n!==null){let[,o]=n;return[o,r]}return[null,r]},Jt=class{constructor(e,r){let n=e.io,o=new ga.StorageWrapper(e.get("storage")||r.storage);this.app=e,this.options=r,this.authenticated=!1,this.app.set("storage",o),n&&this.handleSocket(n)}get service(){return this.app.service(this.options.path)}get storage(){return this.app.get("storage")}handleSocket(e){e.on("disconnect",()=>{this.authenticated&&this.reAuthenticate(!0)})}getFromLocation(e){let[r,n]=Zr(e,this.options.locationKey);if(r!==null)return e.hash=e.hash.replace(n,""),Promise.resolve(r);let[o,i]=Zr(e,this.options.locationErrorKey);return o!==null?(e.hash=e.hash.replace(i,""),Promise.reject(new Qt(decodeURIComponent(o)))):Promise.resolve(null)}setAccessToken(e){return this.storage.setItem(this.options.storageKey,e)}getAccessToken(){return this.storage.getItem(this.options.storageKey).then(e=>!e&&typeof window<"u"&&window.location?this.getFromLocation(window.location):e||null)}removeAccessToken(){return this.storage.removeItem(this.options.storageKey)}reset(){return this.app.set("authentication",null),this.authenticated=!1,Promise.resolve(null)}handleError(e,r){if(e.code>400&&e.code<408){let n=this.removeAccessToken().then(()=>this.reset());return r==="logout"?n:n.then(()=>Promise.reject(e))}return this.reset().then(()=>Promise.reject(e))}reAuthenticate(e=!1,r,n){let o=this.app.get("authentication");return(!o||e===!0)&&(o=this.getAccessToken().then(i=>i?this.authenticate({strategy:r||this.options.jwtStrategy,accessToken:i},n):this.handleError(new en.NotAuthenticated("No accessToken found in storage"),"authenticate")),this.app.set("authentication",o)),o}authenticate(e,r){if(!e)return this.reAuthenticate();let n=this.service.create(e,r).then(o=>{let{accessToken:i}=o;return this.authenticated=!0,this.app.emit("login",o),this.app.emit("authenticated",o),this.setAccessToken(i).then(()=>o)}).catch(o=>this.handleError(o,"authenticate"));return this.app.set("authentication",n),n}logout(){return Promise.resolve(this.app.get("authentication")).then(()=>this.service.remove(null).then(e=>this.removeAccessToken().then(()=>this.reset()).then(()=>(this.app.emit("logout",e),e)))).catch(e=>this.handleError(e,"logout"))}};st.AuthenticationClient=Jt});var on=l(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.noopDebug=rn;He.setDebug=ma;He.createDebug=ba;var Te={};function rn(){return function(){}}var nn=rn;function ma(t){nn=t,Object.keys(Te).forEach(e=>{Te[e]=t(e)})}function ba(t){return Te[t]||(Te[t]=nn(t)),(...e)=>Te[t](...e)}});var ce=l(_=>{"use strict";var wa=_&&_.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Oa=_&&_.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wa(e,t,r)};Object.defineProperty(_,"__esModule",{value:!0});_._=void 0;_.stripSlashes=_a;_.isPromise=Sa;_.createSymbol=Ea;function _a(t){return t.replace(/^(\/+)|(\/+)$/g,"")}_._={each(t,e){t&&typeof t.forEach=="function"?t.forEach(e):_._.isObject(t)&&Object.keys(t).forEach(r=>e(t[r],r))},some(t,e){return Object.keys(t).map(r=>[t[r],r]).some(([r,n])=>e(r,n))},every(t,e){return Object.keys(t).map(r=>[t[r],r]).every(([r,n])=>e(r,n))},keys(t){return Object.keys(t)},values(t){return _._.keys(t).map(e=>t[e])},isMatch(t,e){return _._.keys(e).every(r=>t[r]===e[r])},isEmpty(t){return _._.keys(t).length===0},isObject(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null},isObjectOrArray(t){return typeof t=="object"&&t!==null},extend(t,...e){return Object.assign(t,...e)},omit(t,...e){let r=_._.extend({},t);return e.forEach(n=>delete r[n]),r},pick(t,...e){return e.reduce((r,n)=>(t[n]!==void 0&&(r[n]=t[n]),r),{})},merge(t,e){return _._.isObject(t)&&_._.isObject(e)&&Object.keys(e).forEach(r=>{_._.isObject(e[r])?(t[r]||Object.assign(t,{[r]:{}}),_._.merge(t[r],e[r])):Object.assign(t,{[r]:e[r]})}),t}};function Sa(t){return _._.isObject(t)&&typeof t.then=="function"}function Ea(t){return typeof Symbol<"u"?Symbol.for(t):t}Oa(on(),_)});var an=l(ut=>{"use strict";
1Object.defineProperty(ut,"__esModule",{value:!0});ut.authentication=void 0;var Pa=ce(),Aa=()=>(t,e)=>{let{app:r,params:n,path:o,method:i,app:{authentication:a}}=t;return(0,Pa.stripSlashes)(a.options.path)===o&&i==="create"?e():Promise.resolve(r.get("authentication")).then(u=>{u&&(t.params=Object.assign({},u,n))}).then(e)};ut.authentication=Aa});var sn=l(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.populateHeader=void 0;var Ma=()=>(t,e)=>{let{app:r,params:{accessToken:n}}=t,o=r.authentication;if(r.rest&&n){let{scheme:i,header:a}=o.options,u=`${i} ${n}`;t.params.headers=Object.assign({},{[a]:u},t.params.headers)}return e()};ct.populateHeader=Ma});var un=l(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.populateHeader=fe.authentication=void 0;var xa=an();Object.defineProperty(fe,"authentication",{enumerable:!0,get:function(){return xa.authentication}});var ja=sn();Object.defineProperty(fe,"populateHeader",{enumerable:!0,get:function(){return ja.populateHeader}})});var ln=l((O,ft)=>{"use strict";var qa=O&&O.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ca=O&&O.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ka=O&&O.__importStar||function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&qa(r,e,n[o]);return Ca(r,e),r}}();
1Object.defineProperty(O,"__esModule",{value:!0});O.defaults=O.defaultStorage=O.hooks=O.MemoryStorage=O.AuthenticationClient=O.getDefaultStorage=void 0;var cn=tn();Object.defineProperty(O,"AuthenticationClient",{enumerable:!0,get:function(){return cn.AuthenticationClient}});var Xt=ka(un());O.hooks=Xt;var Yt=Vt();Object.defineProperty(O,"MemoryStorage",{enumerable:!0,get:function(){return Yt.MemoryStorage}});var Ia=()=>{try{return new Yt.StorageWrapper(window.localStorage)}catch{}return new Yt.MemoryStorage};O.getDefaultStorage=Ia;O.defaultStorage=(0,O.getDefaultStorage)();O.defaults={header:"Authorization",scheme:"Bearer",storageKey:"feathers-jwt",locationKey:"access_token",locationErrorKey:"error",jwtStrategy:"jwt",path:"/authentication",Authentication:cn.AuthenticationClient,storage:O.defaultStorage};var fn=(t={})=>{let e=Object.assign({},O.defaults,t),{Authentication:r}=e;return n=>{let o=new r(n,e);n.authentication=o,n.authenticate=o.authenticate.bind(o),n.reAuthenticate=o.reAuthenticate.bind(o),n.logout=o.logout.bind(o),n.hooks([Xt.authentication(),Xt.populateHeader()])}};O.default=fn;typeof ft<"u"&&(ft.exports=Object.assign(fn,ft.exports))});var er=l(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default="5.0.34"});var dt=l((df,tr)=>{"use strict";var le=typeof Reflect=="object"?Reflect:null,pn=le&&typeof le.apply=="function"?le.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},lt;le&&typeof le.ownKeys=="function"?lt=le.ownKeys:Object.getOwnPropertySymbols?lt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:lt=function(e){return Object.getOwnPropertyNames(e)};function Da(t){console&&console.warn&&console.warn(t)}var yn=Number.isNaN||function(e){return e!==e};function b(){b.init.call(this)}tr.exports=b;tr.exports.once=Na;b.EventEmitter=b;b.prototype._events=void 0;b.prototype._eventsCount=0;b.prototype._maxListeners=void 0;var dn=10;function pt(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return dn},set:function(t){if(typeof t!="number"||t<0||yn(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");dn=t}});b.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};b.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||yn(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function hn(t){return t._maxListeners===void 0?b.defaultMaxListeners:t._maxListeners}b.prototype.getMaxListeners=function(){return hn(this)};b.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var o=e==="error",i=this._events;
vendor: 4,386 bytes, line 1
1if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")pn(s,this,r);else for(var c=s.length,p=wn(s,c),n=0;n<c;++n)pn(p[n],this,r);return!0};function vn(t,e,r,n){var o,i,a;if(pt(r),i=t._events,i===void 0?(i=t._events=Object.create(null),t._eventsCount=0):(i.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),a===void 0)a=i[e]=r,++t._eventsCount;else if(typeof a=="function"?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),o=hn(t),o>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,Da(u)}return t}b.prototype.addListener=function(e,r){return vn(this,e,r,!1)};b.prototype.on=b.prototype.addListener;b.prototype.prependListener=function(e,r){return vn(this,e,r,!0)};function Fa(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function gn(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=Fa.bind(n);return o.listener=r,n.wrapFn=o,o}b.prototype.once=function(e,r){return pt(r),this.on(e,gn(this,e,r)),this};b.prototype.prependOnceListener=function(e,r){return pt(r),this.prependListener(e,gn(this,e,r)),this};b.prototype.removeListener=function(e,r){var n,o,i,a,u;if(pt(r),o=this._events,o===void 0)return this;if(n=o[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===r||n[a].listener===r){u=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():Ra(n,i),n.length===1&&(o[e]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",e,u||r)}return this};b.prototype.off=b.prototype.removeListener;b.prototype.removeAllListeners=function(e){var r,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r!==void 0)for(o=r.length-1;o>=0;o--)this.removeListener(e,r[o]);return this};function mn(t,e,r){var n=t._events;if(n===void 0)return[];var o=n[e];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?La(o):wn(o,o.length)}b.prototype.listeners=function(e){return mn(this,e,!0)};b.prototype.rawListeners=function(e){return mn(this,e,!1)};b.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):bn.call(t,e)};b.prototype.listenerCount=bn;function bn(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}b.prototype.eventNames=function(){return this._eventsCount>0?lt(this._events):[]};function wn(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function Ra(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function La(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}function Na(t,e){return new Promise(function(r,n){function o(a){t.removeListener(e,i),n(a)}function i(){typeof t.removeListener=="function"&&t.removeListener("error",o),r([].slice.call(arguments))}On(t,e,i,{once:!0}),e!=="error"&&$a(t,o,{once:!0})})}function $a(t,e,r){typeof t.on=="function"&&On(t,"error",e,r)}function On(t,e,r,n){if(typeof t.on=="function")n.once?t.once(e,r):t.on(e,r);else if(typeof t.addEventListener=="function")t.addEventListener(e,function o(i){n.once&&t.removeEventListener(e,o),r(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var rr=l(pe=>{"use strict";
1Object.defineProperty(pe,"__esModule",{value:!0});pe.copyFnProperties=pe.copyProperties=void 0;function Ta(t,...e){for(let r of e){let n=Object.keys(r).concat(Object.getOwnPropertySymbols(r));for(let o of n){let i=Object.getOwnPropertyDescriptor(r,o);i&&!Object.prototype.hasOwnProperty.call(t,o)&&Object.defineProperty(t,o,i)}}return t}pe.copyProperties=Ta;function Ha(t,e){let r=["name","length"];try{for(let n of r){let o=e[n];Object.defineProperty(t,n,{value:o})}}catch{}return t}pe.copyFnProperties=Ha});var ht=l(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.setMiddleware=P.getMiddleware=P.setManager=P.getManager=P.convertOptions=P.HookManager=P.BaseHookContext=P.HOOKS=void 0;var nr=rr();P.HOOKS=Symbol.for("@feathersjs/hooks");var yt=class{constructor(e={}){Object.defineProperty(this,"self",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,e)}toJSON(){let e=Object.keys(this),r=Object.getPrototypeOf(this);for(;r;)e.push(...Object.keys(r)),r=Object.getPrototypeOf(r);return e.reduce((n,o)=>(n[o]=this[o],n),{})}};P.BaseHookContext=yt;var de=class{constructor(){Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_params",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_middleware",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_props",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_defaults",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}parent(e){return this._parent=e,this}middleware(e){return this._middleware=e?.length?e:null,this}getMiddleware(){let e=this._parent?.getMiddleware();return e&&this._middleware?e.concat(this._middleware):e||this._middleware}collectMiddleware(e,r){let n=Sn(e),o=this.getMiddleware();return n&&o?n.concat(o):n||o||[]}props(e){return this._props||(this._props={}),(0,nr.copyProperties)(this._props,e),this}getProps(){let e=this._parent?.getProps();return e&&this._props?(0,nr.copyProperties)({},e,this._props):e||this._props||null}params(...e){return this._params=e,this}getParams(){let e=this._parent?.getParams();return e&&this._params?e.concat(this._params):e||this._params}defaults(e){return this._defaults=e,this}getDefaults(e,r,n){let o=typeof this._defaults=="function"?this._defaults(e,r,n):null,i=this._parent?.getDefaults(e,r,n);return i&&o?Object.assign({},i,o):i||o}getContextClass(e=yt){let r=class extends e{constructor(a){super(a)}},n=this.getParams(),o=this.getProps();return n&&n.forEach((i,a)=>{if(o?.[i]!==void 0)throw new Error(`Hooks can not have a property and param named '${i}'. Use .defaults instead.`);Object.defineProperty(r.prototype,i,{enumerable:!0,get(){return this?.arguments[a]},set(u){this.arguments[a]=u}})}),o&&(0,nr.copyProperties)(r.prototype,o),r}initializeContext(e,r,n){let o=this._parent?this._parent.initializeContext(e,r,n):n,i=this.getDefaults(e,r,o);if(e&&(o.self=e),o.arguments=r,i)for(let a of Object.keys(i))o[a]===void 0&&(o[a]=i[a]);return o}};P.HookManager=de;function Ba(t=null){return t?Array.isArray(t)?new de().middleware(t):t:new de}P.convertOptions=Ba;function or(t){return t&&t[P.HOOKS]||null}P.getManager=or;function _n(t,e){let r=or(t);return t[P.HOOKS]=e.parent(r),t}P.setManager=_n;function Sn(t){let e=or(t);return e?e.getMiddleware():null}P.getMiddleware=Sn;function Ua(t,e){let r=new de().middleware(e);return _n(t,r)}P.setMiddleware=Ua});var gt=l(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.compose=void 0;function Wa(t){if(!Array.isArray(t))throw new TypeError("Middleware stack must be an array!");for(let e of t)if(typeof e!="function")throw new TypeError("Middleware must be composed of functions!");return function(e,r){let n=-1;return o.call(this,0);function o(i){if(i<=n)return Promise.reject(new Error("next() called multiple times"));n=i;let a=t[i];if(i===t.length&&(a=r),!a)return Promise.resolve();try{return Promise.resolve(a.call(this,e,o.bind(this,i+1)))}catch(u){return Promise.reject(u)}}}}vt.compose=Wa});var ar=l(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.legacyDecorator=I.hookDecorator=I.objectHooks=I.functionHooks=I.getOriginal=void 0;var Ga=gt(),z=ht(),En=rr();function ir(t){return typeof t.original=="function"?ir(t.original):t}I.getOriginal=ir;function mt(t,e){if(typeof t!="function")throw new Error("Can not apply hooks to non-function");let r=(0,z.convertOptions)(e),n=function(...o){let{Context:i,original:a}=n,u=o[o.length-1]instanceof i,s=u?o.pop():new i,c=r.initializeContext(this,o,s),p=[(f,v)=>v().then(()=>u?f:f.result)],d=r.collectMiddleware(this,o);
1return d&&Array.prototype.push.apply(p,d),p.push((f,v)=>Object.prototype.hasOwnProperty.call(c,"result")?v():Promise.resolve(a.apply(this,f.arguments)).then(m=>(f.result=m,v()))),(0,Ga.compose)(p).call(this,c)};return(0,En.copyFnProperties)(n,t),(0,En.copyProperties)(n,t),(0,z.setManager)(n,r),Object.assign(n,{original:ir(t),Context:r.getContextClass(),createContext:(o={})=>new n.Context(o)})}I.functionHooks=mt;function Ka(t,e){if(Array.isArray(e))return(0,z.setMiddleware)(t,e);for(let r of Object.keys(e)){let n=typeof t[r]=="function"?t:t.prototype,o=n&&n[r];if(typeof o!="function")throw new Error(`Can not apply hooks. '${r}' is not a function`);let i=(0,z.convertOptions)(e[r]);n[r]=mt(o,i.props({method:r}))}return t}I.objectHooks=Ka;var za=t=>(e,r)=>{let n=(0,z.convertOptions)(t);if(r.kind==="class")return(0,z.setManager)(e.prototype,n),e;if(r.kind==="method"){let o=String(r.name);return mt(e,n.props({method:o}))}throw new Error("Can not apply hooks.")};I.hookDecorator=za;var Va=t=>(r,n,o)=>{let i=(0,z.convertOptions)(t);if(!o)return(0,z.setManager)(r.prototype,i),r;let a=o.value;if(typeof a!="function")throw new Error(`Can not apply hooks. '${n}' is not a function`);return o.value=mt(a,i.props({method:n})),o};I.legacyDecorator=Va});var xn=l(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.collect=A.fromErrorHook=A.fromAfterHook=A.fromBeforeHook=A.runHooks=A.runHook=void 0;var Qa=gt(),Ja=(t,e,r)=>{let n=e.type;return r&&(e.type=r),Promise.resolve(t.call(e.self,e)).then(o=>{r&&(e.type=n),o&&o!==e&&Object.assign(e,o)})};A.runHook=Ja;var Xa=t=>e=>t.reduce((r,n)=>r.then(()=>(0,A.runHook)(n,e)),Promise.resolve(e));A.runHooks=Xa;function Pn(t){return(e,r)=>(0,A.runHook)(t,e,"before").then(r)}A.fromBeforeHook=Pn;function An(t){return(e,r)=>r().then(()=>(0,A.runHook)(t,e,"after"))}A.fromAfterHook=An;function Mn(t){return(e,r)=>r().catch(n=>((e.error!==n||e.result!==void 0)&&(e.original=ot({},e),e.error=n,delete e.result),(0,A.runHook)(t,e,"error").then(()=>{if(e.result===void 0&&e.error!==void 0)throw e.error}).catch(o=>{throw e.error=o,e.error})))}A.fromErrorHook=Mn;function Ya({before:t=[],after:e=[],error:r=[]}){let n=t.map(Pn),o=[...e].reverse().map(An),i=r.length?[Mn((0,A.runHooks)(r))]:[];return(0,Qa.compose)([...i,...n,...o])}A.collect=Ya});var ur=l(C=>{"use strict";var Za=C&&C.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),bt=C&&C.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Za(e,t,r)};Object.defineProperty(C,"__esModule",{value:!0});C.hooks=C.middleware=void 0;var jn=ht(),sr=ar();bt(ar(),C);bt(gt(),C);bt(ht(),C);bt(xn(),C);function es(t,e){let r=new jn.HookManager().middleware(t);return e&&(e.params&&r.params(...e.params),e.defaults&&r.defaults(e.defaults),e.props&&r.props(e.props)),r}C.middleware=es;function ts(...t){let[e,r]=t;return typeof e=="function"&&(r instanceof jn.HookManager||Array.isArray(r)||t.length===1)?(0,sr.functionHooks)(e,r):t.length===2?(0,sr.objectHooks)(e,r):(0,sr.hookDecorator)(e)}C.hooks=ts});var Be=l(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.normalizeServiceOptions=w.protectedMethods=w.defaultServiceEvents=w.defaultEventMap=w.defaultServiceMethods=w.defaultServiceArguments=w.SERVICE=void 0;w.getHookMethods=os;w.getServiceOptions=is;w.wrapService=ss;var rs=dt(),ns=ce();w.SERVICE=(0,ns.createSymbol)("@feathersjs/service");w.defaultServiceArguments={find:["params"],get:["id","params"],create:["data","params"],update:["id","data","params"],patch:["id","data","params"],remove:["id","params"]};w.defaultServiceMethods=["find","get","create","update","patch","remove"];w.defaultEventMap={create:"created",update:"updated",patch:"patched",remove:"removed"};w.defaultServiceEvents=Object.values(w.defaultEventMap);w.protectedMethods=Object.keys(Object.prototype).concat(Object.keys(rs.EventEmitter.prototype)).concat(["all","around","before","after","error","hooks","setup","teardown","publish"]);function os(t,e){let{methods:r}=e;return w.defaultServiceMethods.filter(n=>typeof t[n]=="function"&&!r.includes(n)).concat(r)}function is(t){return t[w.SERVICE]}var as=(t,e={})=>{let{methods:r=w.defaultServiceMethods.filter(i=>typeof t[i]=="function"),events:n=t.events||[]}=e,o=e.serviceEvents||w.defaultServiceEvents.concat(n);return Qr(ot({},e),{events:n,methods:r,serviceEvents:o})};w.normalizeServiceOptions=as;function ss(t,e,r){if(e[w.SERVICE])return e;let n=Object.create(e),o=(0,w.normalizeServiceOptions)(e,r);if(Object.keys(o.methods).length===0&&![...w.defaultServiceMethods,"setup","teardown"].some(i=>typeof e[i]=="function"))throw new Error(`Invalid service object passed for path \`${t}\``);return Object.defineProperty(n,w.SERVICE,{value:o}),n}});var Cn=l(wt=>{"use strict";
1Object.defineProperty(wt,"__esModule",{value:!0});wt.eventHook=cs;wt.eventMixin=fs;var us=dt(),qn=Be();function cs(t,e){let{events:r}=(0,qn.getServiceOptions)(t.self),n=qn.defaultEventMap[t.method]||null;return t.event=n,e().then(()=>{typeof t.event=="string"&&!r.includes(t.event)&&(Array.isArray(t.result)?t.result:[t.result]).forEach(i=>t.self.emit(t.event,i,t))})}function fs(t){return typeof t.on=="function"&&typeof t.emit=="function"||Object.assign(t,us.EventEmitter.prototype),t}});var Ot=l($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.FeathersHookManager=void 0;$.convertHookData=In;$.collectHooks=cr;$.enableHooks=Dn;$.createContext=ds;$.hookMixin=ys;var Y=ur(),kn=Be(),ls=["before","after","error","around"],ps=t=>ls.includes(t);function In(t){let e={};if(Array.isArray(t))e.all=t;else if(typeof t!="object")e.all=[t];else for(let r of Object.keys(t)){let n=t[r];e[r]=Array.isArray(n)?n:[n]}return e}function cr(t,e){let{collected:r,collectedAll:n,around:o}=t.__hooks;return[...o.all||[],...o[e]||[],...n.before||[],...r[e]||[],...n.after||[]]}function Dn(t){return Object.defineProperty(t,"__hooks",{configurable:!0,value:{around:{},before:{},after:{},error:{},collected:{},collectedAll:{}},writable:!0}),function(n){let o=this.__hooks,i=Object.keys(n).reduce((u,s)=>{if(!ps(s))throw new Error(`'${s}' is not a valid hook type`);return u[s]=In(n[s]),u},{});
1return Object.keys(i).forEach(u=>Object.keys(i[u]).forEach(s=>{var c;let p=i[u][s];if(((c=o[u])[s]||(c[s]=[])).push(...p),s==="all"){if(o.before[s]||o.error[s]){let f=(0,Y.collect)({before:o.before[s]||[],error:o.error[s]||[]});o.collectedAll.before=[f]}if(o.after[s]){let f=(0,Y.collect)({after:o.after[s]||[]});o.collectedAll.after=[f]}}else if(o.before[s]||o.after[s]||o.error[s]){let f=(0,Y.collect)({before:o.before[s]||[],after:o.after[s]||[],error:o.error[s]||[]});o.collected[s]=[f]}})),this}}function ds(t,e,r={}){let n=t[e].createContext;if(typeof n!="function")throw new Error(`Can not create context for method ${e}`);return n(r)}var Ue=class extends Y.HookManager{constructor(e,r){super(),this.app=e,this.method=r,this._middleware=[]}collectMiddleware(e,r){let n=cr(this.app,this.method),o=super.collectMiddleware(e,r),i=cr(e,this.method);return[...n,...o,...i]}initializeContext(e,r,n){let o=super.initializeContext(e,r,n);return o.params=o.params||{},o}middleware(e){return this._middleware.push(...e),this}};$.FeathersHookManager=Ue;function ys(t,e,r){if(typeof t.hooks=="function")return t;let o=(0,kn.getHookMethods)(t,r).reduce((a,u)=>{let s=kn.defaultServiceArguments[u]||["data","params"];return a[u]=new Ue(this,u).params(...s).props({app:this,path:e,method:u,service:t,event:null,type:"around",get statusCode(){var c;return(c=this.http)===null||c===void 0?void 0:c.status},set statusCode(c){this.http=this.http||{},this.http.status=c}}),a},{}),i=Dn(t);return(0,Y.hooks)(t,o),t.hooks=function(a){return a.before||a.after||a.error||a.around?i.call(this,a):Array.isArray(a)?(0,Y.hooks)(this,a):(Object.keys(a).forEach(u=>{let s=(0,Y.getManager)(this[u]);if(!(s instanceof Ue))throw new Error(`Method ${u} is not a Feathers hooks enabled service method`);s.middleware(a[u])}),this)},t}});var Rn=l(ye=>{"use strict";var hs=ye&&ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ye,"__esModule",{value:!0});ye.Feathers=void 0;var vs=hs(er()),gs=dt(),St=ce(),Z=ur(),Fn=Cn(),ms=Ot(),fr=Be(),bs=Ot(),_t=(0,St.createDebug)("@feathersjs/feathers"),lr=class extends gs.EventEmitter{constructor(){super(),this.services={},this.settings={},this.mixins=[ms.hookMixin,Fn.eventMixin],this.version=vs.default,this._isSetup=!1,this.registerHooks=(0,bs.enableHooks)(this),this.registerHooks({around:[Fn.eventHook]})}get(e){return this.settings[e]}set(e,r){return this.settings[e]=r,this}configure(e){return e.call(this,this),this}defaultService(e){throw new Error(`Can not find service '${e}'`)}service(e){let r=(0,St.stripSlashes)(e)||"/",n=this.services.hasOwnProperty(r)?this.services[r]:void 0;return typeof n>"u"?(this.use(r,this.defaultService(r)),this.service(r)):n}_setup(){return this._isSetup=!0,Object.keys(this.services).reduce((e,r)=>e.then(()=>{let n=this.service(r);if(typeof n.setup=="function")return _t(`Setting up service for \`${r}\``),n.setup(this,r)}),Promise.resolve()).then(()=>this)}get setup(){return this._setup}set setup(e){this._setup=e[Z.HOOKS]?e:(0,Z.hooks)(e,(0,Z.middleware)().params("server").props({app:this}))}_teardown(){return this._isSetup=!1,Object.keys(this.services).reduce((e,r)=>e.then(()=>{let n=this.service(r);if(typeof n.teardown=="function")return _t(`Tearing down service for \`${r}\``),n.teardown(this,r)}),Promise.resolve()).then(()=>this)}get teardown(){return this._teardown}set teardown(e){this._teardown=e[Z.HOOKS]?e:(0,Z.hooks)(e,(0,Z.middleware)().params("server").props({app:this}))}use(e,r,n){if(typeof e!="string")throw new Error(`'${e}' is not a valid service path.`);let o=(0,St.stripSlashes)(e)||"/",i=r;if(typeof i.service=="function"&&i.services)return Object.keys(i.services).forEach(c=>this.use(`${o}/${c}`,i.service(c))),this;let u=(0,fr.wrapService)(o,r,n),s=(0,fr.getServiceOptions)(u);for(let c of fr.protectedMethods)if(s.methods.includes(c))throw new Error(`'${c}' on service '${o}' is not allowed as a custom method name`);return _t(`Registering new service at \`${o}\``),this.mixins.forEach(c=>c.call(this,u,o,s)),this.services[o]=u,this._isSetup&&typeof u.setup=="function"&&(_t(`Setting up service for \`${o}\``),u.setup(this,o)),this}unuse(e){return Xr(this,null,function*(){let r=(0,St.stripSlashes)(e)||"/",n=this.services[r];return n&&typeof n.teardown=="function"&&(yield n.teardown(this,r)),delete this.services[r],n})}hooks(e){let r=e;return r.before||r.after||r.error||r.around?this.registerHooks(r):r.setup||r.teardown?(0,Z.hooks)(this,r):this.registerHooks({around:r}),this}};ye.Feathers=lr});var Nn=l(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0})});var yr=l((q,Et)=>{"use strict";var ws=q&&q.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),pr=q&&q.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ws(e,t,r)},Os=q&&q.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(q,"__esModule",{value:!0});q.Feathers=q.version=void 0;q.feathers=dr;var _s=ce(),Ss=Os(er());q.version=Ss.default;var $n=Rn();Object.defineProperty(q,"Feathers",{enumerable:!0,get:function(){return $n.Feathers}});function dr(){return new $n.Feathers}dr.setDebug=_s.setDebug;pr(Ot(),q);pr(Nn(),q);pr(Be(),q);typeof Et<"u"&&(Et.exports=Object.assign(dr,Et.exports))});var ee=l((jf,Tn)=>{"use strict";Tn.exports=TypeError});var Hn=l(()=>{"use strict"});var Ve=l((kf,so)=>{"use strict";var Er=typeof Map=="function"&&Map.prototype,hr=Object.getOwnPropertyDescriptor&&Er?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,At=Er&&hr&&typeof hr.get=="function"?hr.get:null,Bn=Er&&Map.prototype.forEach,Pr=typeof Set=="function"&&Set.prototype,vr=Object.getOwnPropertyDescriptor&&Pr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Mt=Pr&&vr&&typeof vr.get=="function"?vr.get:null,Un=Pr&&Set.prototype.forEach,Es=typeof WeakMap=="function"&&WeakMap.prototype,Ge=Es?WeakMap.prototype.has:null,Ps=typeof WeakSet=="function"&&WeakSet.prototype,Ke=Ps?WeakSet.prototype.has:null,As=typeof WeakRef=="function"&&WeakRef.prototype,Wn=As?WeakRef.prototype.deref:null,Ms=Boolean.prototype.valueOf,xs=Object.prototype.toString,js=Function.prototype.toString,qs=String.prototype.match,Ar=String.prototype.slice,V=String.prototype.replace,Cs=String.prototype.toUpperCase,Gn=String.prototype.toLowerCase,eo=RegExp.prototype.test,Kn=Array.prototype.concat,F=Array.prototype.join,ks=Array.prototype.slice,zn=Math.floor,br=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gr=Object.getOwnPropertySymbols,wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,he=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ze=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===he||!0)?Symbol.toStringTag:null,to=Object.prototype.propertyIsEnumerable,Vn=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Qn(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||eo.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-zn(-t):zn(t);if(n!==t){var o=String(n),i=Ar.call(e,o.length+1);return V.call(o,r,"$&_")+"."+V.call(V.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return V.call(e,r,"$&_")}var Or=Hn(),Jn=Or.custom,Xn=oo(Jn)?Jn:null,ro={__proto__:null,double:'"',single:"'"},Is={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};so.exports=function t(e,r,n,o){var i=r||{};if(T(i,"quoteStyle")&&!T(ro,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(T(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=T(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(T(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(T(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ao(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return u?Qn(e,s):s}if(typeof e=="bigint"){var c=String(e)+"n";return u?Qn(e,c):c}var p=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=p&&p>0&&typeof e=="object")return _r(e)?"[Array]":"[Object]";var d=Xs(i,n);if(typeof o>"u")o=[];else if(io(o,e)>=0)return"[Circular]";function f(D,K,N){if(K&&(o=ks.call(o),o.push(K)),N){var Se={depth:i.depth};return T(i,"quoteStyle")&&(Se.quoteStyle=i.quoteStyle),t(D,Se,n+1,o)}return t(D,i,n+1,o)}if(typeof e=="function"&&!Yn(e)){var v=Bs(e),m=Pt(e,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+F.call(m,", ")+" }":"")}
vendor: 5,502 bytes, lines 1-4
1if(oo(e)){var j=he?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):wr.call(e);return typeof e=="object"&&!he?We(j):j}if(Vs(e)){for(var k="<"+Gn.call(String(e.nodeName)),B=e.attributes||[],U=0;U<B.length;U++)k+=" "+B[U].name+"="+no(Ds(B[U].value),"double",i);return k+=">",e.childNodes&&e.childNodes.length&&(k+="..."),k+="</"+Gn.call(String(e.nodeName))+">",k}if(_r(e)){if(e.length===0)return"[]";var g=Pt(e,f);return d&&!Js(g)?"["+Sr(g,d)+"]":"[ "+F.call(g,", ")+" ]"}if(Rs(e)){var W=Pt(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!to.call(e,"cause")?"{ ["+String(e)+"] "+F.call(Kn.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(W,", ")+" }"}if(typeof e=="object"&&a){if(Xn&&typeof e[Xn]=="function"&&Or)return Or(e,{depth:p-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Us(e)){var J=[];return Bn&&Bn.call(e,function(D,K){J.push(f(K,e,!0)+" => "+f(D,e))}),Zn("Map",At.call(e),J,d)}if(Ks(e)){var _e=[];return Un&&Un.call(e,function(D){_e.push(f(D,e))}),Zn("Set",Mt.call(e),_e,d)}if(Ws(e))return mr("WeakMap");if(zs(e))return mr("WeakSet");if(Gs(e))return mr("WeakRef");if(Ns(e))return We(f(Number(e)));if(Ts(e))return We(f(br.call(e)));if($s(e))return We(Ms.call(e));if(Ls(e))return We(f(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(!Fs(e)&&!Yn(e)){var ae=Pt(e,f),rt=Vn?Vn(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",G=!rt&&ze&&Object(e)===e&&ze in e?Ar.call(Q(e),8,-1):X?"Object":"",nt=rt||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",se=nt+(G||X?"["+F.call(Kn.call([],G||[],X||[]),": ")+"] ":"");return ae.length===0?se+"{}":d?se+"{"+Sr(ae,d)+"}":se+"{ "+F.call(ae,", ")+" }"}return String(e)};function no(t,e,r){var n=r.quoteStyle||e,o=ro[n];return o+t+o}function Ds(t){return V.call(String(t),/"/g,""")}function te(t){return!ze||!(typeof t=="object"&&(ze in t||typeof t[ze]<"u"))}function _r(t){return Q(t)==="[object Array]"&&te(t)}function Fs(t){return Q(t)==="[object Date]"&&te(t)}function Yn(t){return Q(t)==="[object RegExp]"&&te(t)}function Rs(t){return Q(t)==="[object Error]"&&te(t)}function Ls(t){return Q(t)==="[object String]"&&te(t)}function Ns(t){return Q(t)==="[object Number]"&&te(t)}function $s(t){return Q(t)==="[object Boolean]"&&te(t)}function oo(t){if(he)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!wr)return!1;try{return wr.call(t),!0}catch{}return!1}function Ts(t){if(!t||typeof t!="object"||!br)return!1;try{return br.call(t),!0}catch{}return!1}var Hs=Object.prototype.hasOwnProperty||function(t){return t in this};function T(t,e){return Hs.call(t,e)}function Q(t){return xs.call(t)}function Bs(t){if(t.name)return t.name;var e=qs.call(js.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function io(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 Us(t){if(!At||!t||typeof t!="object")return!1;try{At.call(t);try{Mt.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Ws(t){if(!Ge||!t||typeof t!="object")return!1;try{Ge.call(t,Ge);try{Ke.call(t,Ke)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Gs(t){if(!Wn||!t||typeof t!="object")return!1;try{return Wn.call(t),!0}catch{}return!1}function Ks(t){if(!Mt||!t||typeof t!="object")return!1;try{Mt.call(t);try{At.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function zs(t){if(!Ke||!t||typeof t!="object")return!1;try{Ke.call(t,Ke);try{Ge.call(t,Ge)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Vs(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ao(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ao(Ar.call(t,0,e.maxStringLength),e)+n}var o=Is[e.quoteStyle||"single"];o.lastIndex=0;var i=V.call(V.call(t,o,"\\$1"),/[\x00-\x1f]/g,Qs);return no(i,"single",e)}function Qs(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":"")+Cs.call(e.toString(16))}function We(t){return"Object("+t+")"}function mr(t){return t+" { ? }"}function Zn(t,e,r,n){var o=n?Sr(r,n):F.call(r,", ");return t+" ("+e+") {"+o+"}"}function Js(t){for(var e=0;e<t.length;e++)if(io(t[e],` 2`)>=0)return!1;return!0}function Xs(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=F.call(Array(t.indent+1)," ");else return null;return{base:r,prev:F.call(Array(e+1),r)}}function Sr(t,e){if(t.length===0)return"";var r=` 3`+e.prev+e.base;return r+F.call(t,","+r)+` 4`+e.prev}function Pt(t,e){var r=_r(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=T(t,o)?e(t[o],t):""}var i=typeof gr=="function"?gr(t):[],a;if(he){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var s in t)T(t,s)&&(r&&String(Number(s))===s&&s<t.length||he&&a["$"+s]instanceof Symbol||(eo.call(/[^\w$]/,s)?n.push(e(s,t)+": "+e(t[s],t)):n.push(s+": "+e(t[s],t))));if(typeof gr=="function")for(var c=0;c<i.length;c++)to.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}});var co=l((If,uo)=>{"use strict";var Ys=Ve(),Zs=ee(),xt=function(t,e,r){for(var n=t,o;(o=n.next)!=null;
4n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},eu=function(t,e){if(t){var r=xt(t,e);return r&&r.value}},tu=function(t,e,r){var n=xt(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},ru=function(t,e){return t?!!xt(t,e):!1},nu=function(t,e){if(t)return xt(t,e,!0)};uo.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Zs("Side channel does not contain "+Ys(n))},delete:function(n){var o=e&&e.next,i=nu(e,n);return i&&o&&o===i&&(e=void 0),!!i},get:function(n){return eu(e,n)},has:function(n){return ru(e,n)},set:function(n,o){e||(e={next:void 0}),tu(e,n,o)}};return r}});var Mr=l((Df,fo)=>{"use strict";fo.exports=Object});var po=l((Ff,lo)=>{"use strict";lo.exports=Error});var ho=l((Rf,yo)=>{"use strict";yo.exports=EvalError});var go=l((Lf,vo)=>{"use strict";vo.exports=RangeError});var bo=l((Nf,mo)=>{"use strict";mo.exports=ReferenceError});var Oo=l(($f,wo)=>{"use strict";wo.exports=SyntaxError});var So=l((Tf,_o)=>{"use strict";_o.exports=URIError});var Po=l((Hf,Eo)=>{"use strict";Eo.exports=Math.abs});var Mo=l((Bf,Ao)=>{"use strict";Ao.exports=Math.floor});var jo=l((Uf,xo)=>{"use strict";xo.exports=Math.max});var Co=l((Wf,qo)=>{"use strict";qo.exports=Math.min});var Io=l((Gf,ko)=>{"use strict";ko.exports=Math.pow});var Fo=l((Kf,Do)=>{"use strict";Do.exports=Math.round});var Lo=l((zf,Ro)=>{"use strict";Ro.exports=Number.isNaN||function(e){return e!==e}});var $o=l((Vf,No)=>{"use strict";var ou=Lo();No.exports=function(e){return ou(e)||e===0?e:e<0?-1:1}});var Ho=l((Qf,To)=>{"use strict";To.exports=Object.getOwnPropertyDescriptor});var xr=l((Jf,Bo)=>{"use strict";var jt=Ho();if(jt)try{jt([],"length")}catch{jt=null}Bo.exports=jt});var Wo=l((Xf,Uo)=>{"use strict";var qt=Object.defineProperty||!1;if(qt)try{qt({},"a",{value:1})}catch{qt=!1}Uo.exports=qt});var Ko=l((Yf,Go)=>{"use strict";Go.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 o=42;e[r]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}});var Qo=l((Zf,Vo)=>{"use strict";var zo=typeof Symbol<"u"&&Symbol,iu=Ko();Vo.exports=function(){return typeof zo!="function"||typeof Symbol!="function"||typeof zo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iu()}});var jr=l((el,Jo)=>{"use strict";Jo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qr=l((tl,Xo)=>{"use strict";var au=Mr();Xo.exports=au.getPrototypeOf||null});var ei=l((rl,Zo)=>{"use strict";var su="Function.prototype.bind called on incompatible ",uu=Object.prototype.toString,cu=Math.max,fu="[object Function]",Yo=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},lu=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},pu=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};Zo.exports=function(e){var r=this;if(typeof r!="function"||uu.apply(r)!==fu)throw new TypeError(su+r);for(var n=lu(arguments,1),o,i=function(){if(this instanceof o){var p=r.apply(this,Yo(n,arguments));return Object(p)===p?p:this}return r.apply(e,Yo(n,arguments))},a=cu(0,r.length-n.length),u=[],s=0;s<a;s++)u[s]="$"+s;if(o=Function("binder","return function ("+pu(u,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var Qe=l((nl,ti)=>{"use strict";var du=ei();ti.exports=Function.prototype.bind||du});var Ct=l((ol,ri)=>{"use strict";ri.exports=Function.prototype.call});
4var Cr=l((il,ni)=>{"use strict";ni.exports=Function.prototype.apply});var ii=l((al,oi)=>{"use strict";oi.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var si=l((sl,ai)=>{"use strict";var yu=Qe(),hu=Cr(),vu=Ct(),gu=ii();ai.exports=gu||yu.call(vu,hu)});var kr=l((ul,ui)=>{"use strict";var mu=Qe(),bu=ee(),wu=Ct(),Ou=si();ui.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new bu("a function is required");return Ou(mu,wu,e)}});var yi=l((cl,di)=>{"use strict";var _u=kr(),ci=xr(),li;try{li=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Ir=!!li&&ci&&ci(Object.prototype,"__proto__"),pi=Object,fi=pi.getPrototypeOf;di.exports=Ir&&typeof Ir.get=="function"?_u([Ir.get]):typeof fi=="function"?function(e){return fi(e==null?e:pi(e))}:!1});var bi=l((fl,mi)=>{"use strict";var hi=jr(),vi=qr(),gi=yi();mi.exports=hi?function(e){return hi(e)}:vi?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return vi(e)}:gi?function(e){return gi(e)}:null});var Oi=l((ll,wi)=>{"use strict";var Su=Function.prototype.call,Eu=Object.prototype.hasOwnProperty,Pu=Qe();wi.exports=Pu.call(Su,Eu)});var Dt=l((pl,Mi)=>{"use strict";var h,Au=Mr(),Mu=po(),xu=ho(),ju=go(),qu=bo(),be=Oo(),me=ee(),Cu=So(),ku=Po(),Iu=Mo(),Du=jo(),Fu=Co(),Ru=Io(),Lu=Fo(),Nu=$o(),Pi=Function,Dr=function(t){try{return Pi('"use strict"; return ('+t+").constructor;")()}catch{}},Je=xr(),$u=Wo(),Fr=function(){throw new me},Tu=Je?function(){try{return arguments.callee,Fr}catch{try{return Je(arguments,"callee").get}catch{return Fr}}}():Fr,ve=Qo()(),x=bi(),Hu=qr(),Bu=jr(),Ai=Cr(),Xe=Ct(),ge={},Uu=typeof Uint8Array>"u"||!x?h:x(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":ve&&x?x([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":ge,"%AsyncGenerator%":ge,"%AsyncGeneratorFunction%":ge,"%AsyncIteratorPrototype%":ge,"%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%":Mu,"%eval%":eval,"%EvalError%":xu,"%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%":Pi,"%GeneratorFunction%":ge,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 4,946 bytes, line 4
4"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ve&&x?x(x([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ve||!x?h:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Au,"%Object.getOwnPropertyDescriptor%":Je,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":ju,"%ReferenceError%":qu,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ve||!x?h:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ve&&x?x(""[Symbol.iterator]()):h,"%Symbol%":ve?Symbol:h,"%SyntaxError%":be,"%ThrowTypeError%":Tu,"%TypedArray%":Uu,"%TypeError%":me,"%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%":Cu,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":Xe,"%Function.prototype.apply%":Ai,"%Object.defineProperty%":$u,"%Object.getPrototypeOf%":Hu,"%Math.abs%":ku,"%Math.floor%":Iu,"%Math.max%":Du,"%Math.min%":Fu,"%Math.pow%":Ru,"%Math.round%":Lu,"%Math.sign%":Nu,"%Reflect.getPrototypeOf%":Bu};if(x)try{null.error}catch(t){_i=x(x(t)),re["%Error.prototype%"]=_i}var _i,Wu=function t(e){var r;if(e==="%AsyncFunction%")r=Dr("async function () {}");else if(e==="%GeneratorFunction%")r=Dr("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Dr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&x&&(r=x(o.prototype))}return re[e]=r,r},Si={__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"]},Ye=Qe(),kt=Oi(),Gu=Ye.call(Xe,Array.prototype.concat),Ku=Ye.call(Ai,Array.prototype.splice),Ei=Ye.call(Xe,String.prototype.replace),It=Ye.call(Xe,String.prototype.slice),zu=Ye.call(Xe,RegExp.prototype.exec),Vu=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qu=/\\(\\)?/g,Ju=function(e){var r=It(e,0,1),n=It(e,-1);
4if(r==="%"&&n!=="%")throw new be("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new be("invalid intrinsic syntax, expected opening `%`");var o=[];return Ei(e,Vu,function(i,a,u,s){o[o.length]=u?Ei(s,Qu,"$1"):a||i}),o},Xu=function(e,r){var n=e,o;if(kt(Si,n)&&(o=Si[n],n="%"+o[0]+"%"),kt(re,n)){var i=re[n];if(i===ge&&(i=Wu(n)),typeof i>"u"&&!r)throw new me("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new be("intrinsic "+e+" does not exist!")};Mi.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new me("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new me('"allowMissing" argument must be a boolean');if(zu(/^%?[^%]*%?$/,e)===null)throw new be("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ju(e),o=n.length>0?n[0]:"",i=Xu("%"+o+"%",r),a=i.name,u=i.value,s=!1,c=i.alias;c&&(o=c[0],Ku(n,Gu([0,1],c)));for(var p=1,d=!0;p<n.length;p+=1){var f=n[p],v=It(f,0,1),m=It(f,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new be("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(s=!0),o+="."+f,a="%"+o+"%",kt(re,a))u=re[a];else if(u!=null){if(!(f in u)){if(!r)throw new me("base intrinsic for "+e+" exists, but the property is not available.");return}if(Je&&p+1>=n.length){var j=Je(u,f);d=!!j,d&&"get"in j&&!("originalValue"in j.get)?u=j.get:u=u[f]}else d=kt(u,f),u=u[f];d&&!s&&(re[a]=u)}}return u}});var Rr=l((dl,qi)=>{"use strict";var xi=Dt(),ji=kr(),Yu=ji([xi("%String.prototype.indexOf%")]);qi.exports=function(e,r){var n=xi(e,!!r);return typeof n=="function"&&Yu(e,".prototype.")>-1?ji([n]):n}});var Lr=l((yl,ki)=>{"use strict";var Zu=Dt(),Ze=Rr(),ec=Ve(),tc=ee(),Ci=Zu("%Map%",!0),rc=Ze("Map.prototype.get",!0),nc=Ze("Map.prototype.set",!0),oc=Ze("Map.prototype.has",!0),ic=Ze("Map.prototype.delete",!0),ac=Ze("Map.prototype.size",!0);ki.exports=!!Ci&&function(){var e,r={assert:function(n){if(!r.has(n))throw new tc("Side channel does not contain "+ec(n))},delete:function(n){if(e){var o=ic(e,n);return ac(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return rc(e,n)},has:function(n){return e?oc(e,n):!1},set:function(n,o){e||(e=new Ci),nc(e,n,o)}};return r}});var Di=l((hl,Ii)=>{"use strict";var sc=Dt(),Rt=Rr(),uc=Ve(),Ft=Lr(),cc=ee(),we=sc("%WeakMap%",!0),fc=Rt("WeakMap.prototype.get",!0),lc=Rt("WeakMap.prototype.set",!0),pc=Rt("WeakMap.prototype.has",!0),dc=Rt("WeakMap.prototype.delete",!0);Ii.exports=we?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new cc("Side channel does not contain "+uc(o))},delete:function(o){if(we&&o&&(typeof o=="object"||typeof o=="function")){if(e)return dc(e,o)}else if(Ft&&r)return r.delete(o);return!1},get:function(o){return we&&o&&(typeof o=="object"||typeof o=="function")&&e?fc(e,o):r&&r.get(o)},has:function(o){return we&&o&&(typeof o=="object"||typeof o=="function")&&e?pc(e,o):!!r&&r.has(o)},set:function(o,i){we&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new we),lc(e,o,i)):Ft&&(r||(r=Ft()),r.set(o,i))}};return n}:Ft});var Ri=l((vl,Fi)=>{"use strict";var yc=ee(),hc=Ve(),vc=co(),gc=Lr(),mc=Di(),bc=mc||gc||vc;Fi.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new yc("Side channel does not contain "+hc(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,o){e||(e=bc()),e.set(n,o)}};return r}});var Lt=l((gl,Li)=>{"use strict";var wc=String.prototype.replace,Oc=/%20/g,Nr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Li.exports={default:Nr.RFC3986,formatters:{RFC1738:function(t){return wc.call(t,Oc,"+")},RFC3986:function(t){return String(t)}},RFC1738:Nr.RFC1738,RFC3986:Nr.RFC3986}});var Hr=l((ml,$i)=>{"use strict";var _c=Lt(),$r=Object.prototype.hasOwnProperty,ne=Array.isArray,R=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Sc=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(ne(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},Ni=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Ec=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(ne(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!$r.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return ne(e)&&!ne(r)&&(o=Ni(e,n)),ne(e)&&ne(r)?(r.forEach(function(i,a){if($r.call(e,a)){var u=e[a];u&&typeof u=="object"&&i&&typeof i=="object"?e[a]=t(u,i,n):e.push(i)}else e[a]=i}
vendor: 4,210 bytes, line 4
4),e):Object.keys(r).reduce(function(i,a){var u=r[a];return $r.call(i,a)?i[a]=t(i[a],u,n):i[a]=u,i},o)},Pc=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ac=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}},Tr=1024,Mc=function(e,r,n,o,i){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var u="",s=0;s<a.length;s+=Tr){for(var c=a.length>=Tr?a.slice(s,s+Tr):a,p=[],d=0;d<c.length;++d){var f=c.charCodeAt(d);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===_c.RFC1738&&(f===40||f===41)){p[p.length]=c.charAt(d);continue}if(f<128){p[p.length]=R[f];continue}if(f<2048){p[p.length]=R[192|f>>6]+R[128|f&63];continue}if(f<55296||f>=57344){p[p.length]=R[224|f>>12]+R[128|f>>6&63]+R[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|c.charCodeAt(d)&1023),p[p.length]=R[240|f>>18]+R[128|f>>12&63]+R[128|f>>6&63]+R[128|f&63]}u+=p.join("")}return u},xc=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],a=i.obj[i.prop],u=Object.keys(a),s=0;s<u.length;++s){var c=u[s],p=a[c];typeof p=="object"&&p!==null&&n.indexOf(p)===-1&&(r.push({obj:a,prop:c}),n.push(p))}return Sc(r),e},jc=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},qc=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Cc=function(e,r){return[].concat(e,r)},kc=function(e,r){if(ne(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};$i.exports={arrayToObject:Ni,assign:Pc,combine:Cc,compact:xc,decode:Ac,encode:Mc,isBuffer:qc,isRegExp:jc,maybeMap:kc,merge:Ec}});var Gi=l((bl,Wi)=>{"use strict";var Hi=Ri(),Nt=Hr(),et=Lt(),Ic=Object.prototype.hasOwnProperty,Bi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},L=Array.isArray,Dc=Array.prototype.push,Ui=function(t,e){Dc.apply(t,L(e)?e:[e])},Fc=Date.prototype.toISOString,Ti=et.default,M={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Nt.encode,encodeValuesOnly:!1,filter:void 0,format:Ti,formatter:et.formatters[Ti],indices:!1,serializeDate:function(e){return Fc.call(e)},skipNulls:!1,strictNullHandling:!1},Rc=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Br={},Lc=function t(e,r,n,o,i,a,u,s,c,p,d,f,v,m,j,k,B,U){for(var g=e,W=U,J=0,_e=!1;(W=W.get(Br))!==void 0&&!_e;){var ae=W.get(e);if(J+=1,typeof ae<"u"){if(ae===J)throw new RangeError("Cyclic object value");_e=!0}typeof W.get(Br)>"u"&&(J=0)}if(typeof p=="function"?g=p(r,g):g instanceof Date?g=v(g):n==="comma"&&L(g)&&(g=Nt.maybeMap(g,function(Wt){return Wt instanceof Date?v(Wt):Wt})),g===null){if(a)return c&&!k?c(r,M.encoder,B,"key",m):r;g=""}if(Rc(g)||Nt.isBuffer(g)){if(c){var rt=k?r:c(r,M.encoder,B,"key",m);return[j(rt)+"="+j(c(g,M.encoder,B,"value",m))]}return[j(r)+"="+j(String(g))]}var X=[];if(typeof g>"u")return X;var G;if(n==="comma"&&L(g))k&&c&&(g=Nt.maybeMap(g,c)),G=[{value:g.length>0?g.join(",")||null:void 0}];else if(L(p))G=p;else{var nt=Object.keys(g);G=d?nt.sort(d):nt}var se=s?String(r).replace(/\./g,"%2E"):String(r),D=o&&L(g)&&g.length===1?se+"[]":se;if(i&&L(g)&&g.length===0)return D+"[]";for(var K=0;K<G.length;++K){var N=G[K],Se=typeof N=="object"&&N&&typeof N.value<"u"?N.value:g[N];if(!(u&&Se===null)){var Ut=f&&s?String(N).replace(/\./g,"%2E"):String(N),ha=L(g)?typeof n=="function"?n(D,Ut):D:D+(f?"."+Ut:"["+Ut+"]");U.set(e,J);var Vr=Hi();Vr.set(Br,U),Ui(X,t(Se,ha,n,o,i,a,u,s,n==="comma"&&k&&L(g)?null:c,p,d,f,v,m,j,k,B,Vr))}}return X},Nc=function(e){if(!e)return M;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
vendor: 2,012 bytes, line 4
4if(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||M.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=et.default;if(typeof e.format<"u"){if(!Ic.call(et.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=et.formatters[n],i=M.filter;(typeof e.filter=="function"||L(e.filter))&&(i=e.filter);var a;if(e.arrayFormat in Bi?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=M.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:M.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:M.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:M.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:M.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?M.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:M.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:M.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:M.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:M.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:M.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:M.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:M.str
vendor: 4,145 bytes, line 4
4ictNullHandling}};Wi.exports=function(t,e){var r=t,n=Nc(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):L(n.filter)&&(i=n.filter,o=i);var a=[];if(typeof r!="object"||r===null)return"";var u=Bi[n.arrayFormat],s=u==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var c=Hi(),p=0;p<o.length;++p){var d=o[p],f=r[d];n.skipNulls&&f===null||Ui(a,Lc(f,d,u,s,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,c))}var v=a.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""}});var Qi=l((wl,Vi)=>{"use strict";var oe=Hr(),Ur=Object.prototype.hasOwnProperty,Ki=Array.isArray,S={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:oe.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},$c=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},zi=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},Tc="utf8=%26%2310003%3B",Hc="utf8=%E2%9C%93",Bc=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=o.split(r.delimiter,r.throwOnLimitExceeded?i+1:i);if(r.throwOnLimitExceeded&&a.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var u=-1,s,c=r.charset;if(r.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===Hc?c="utf-8":a[s]===Tc&&(c="iso-8859-1"),u=s,s=a.length);for(s=0;s<a.length;++s)if(s!==u){var p=a[s],d=p.indexOf("]="),f=d===-1?p.indexOf("="):d+1,v,m;f===-1?(v=r.decoder(p,S.decoder,c,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(p.slice(0,f),S.decoder,c,"key"),m=oe.maybeMap(zi(p.slice(f+1),r,Ki(n[v])?n[v].length:0),function(k){return r.decoder(k,S.decoder,c,"value")})),m&&r.interpretNumericEntities&&c==="iso-8859-1"&&(m=$c(String(m))),p.indexOf("[]=")>-1&&(m=Ki(m)?[m]:m);var j=Ur.call(n,v);j&&r.duplicates==="combine"?n[v]=oe.combine(n[v],m):(!j||r.duplicates==="last")&&(n[v]=m)}return n},Uc=function(t,e,r,n){var o=0;if(t.length>0&&t[t.length-1]==="[]"){var i=t.slice(0,-1).join("");o=Array.isArray(e)&&e[i]?e[i].length:0}for(var a=n?e:zi(e,r,o),u=t.length-1;u>=0;--u){var s,c=t[u];if(c==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:oe.combine([],a);else{s=r.plainObjects?{__proto__:null}:{};var p=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,d=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(d,10);!r.parseArrays&&d===""?s={0:a}:!isNaN(f)&&c!==d&&String(f)===d&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[],s[f]=a):d!=="__proto__"&&(s[d]=a)}a=s}return a},Wc=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=n.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!n.plainObjects&&Ur.call(Object.prototype,c)&&!n.allowPrototypes)return;p.push(c)}for(var d=0;n.depth>0&&(s=u.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Ur.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;p.push(s[1])}if(s){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");p.push("["+i.slice(s.index)+"]")}return Uc(p,r,n,o)}},Gc=function(e){if(!e)return S;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
4if(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");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset>"u"?S.charset:e.charset,n=typeof e.duplicates>"u"?S.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:S.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:S.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:S.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:S.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:S.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:S.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:S.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:S.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:S.decoder,delimiter:typeof e.delimiter=="string"||oe.isRegExp(e.delimiter)?e.delimiter:S.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:S.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:S.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:S.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:S.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:S.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:S.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};Vi.exports=function(t,e){var r=Gc(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Bc(t,r):t,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),a=0;a<i.length;++a){var u=i[a],s=Wc(u,n[u],r,typeof t=="string");o=oe.merge(o,s,r)}return r.allowSparse===!0?o:oe.compact(o)}});var Xi=l((Ol,Ji)=>{"use strict";var Kc=Gi(),zc=Qi(),Vc=Lt();Ji.exports={formats:Vc,parse:zc,stringify:Kc}});var tt=l(Oe=>{"use strict";var Qc=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.Base=void 0;var Jc=Qc(Xi()),Yi=at(),Zi=ce();function ie(t){throw t.code==="ECONNREFUSED"?new Yi.Unavailable(t.message,Zi._.pick(t,"address","port","config")):(0,Yi.convert)(t)}var Wr=class{constructor(e){this.name=(0,Zi.stripSlashes)(e.name),this.options=e.options,this.connection=e.connection,this.base=`${e.base}/${this.name}`}makeUrl(e,r,n){let o=this.base;return n&&Object.keys(n).forEach(i=>{o=o.replace(`:${i}`,n[i])}),e=e||{},typeof r<"u"&&r!==null&&(o+=`/${encodeURIComponent(r)}`),o+this.getQuery(e)}getQuery(e){return Object.keys(e).length!==0?`?${Jc.default.stringify(e)}`:""}methods(...e){return e.forEach(r=>{let n=`_${r}`;this[n]=function(o,i={}){return this.request({body:o,url:this.makeUrl(i.query,null,i.route),method:"POST",headers:Object.assign({"Content-Type":"application/json","X-Service-Method":r},i.headers)},i).catch(ie)},this[r]=function(o,i={}){return this[n](o,i)}}),this}_find(e){return this.request({url:this.makeUrl(e.query,null,e.route),method:"GET",headers:Object.assign({},e.headers)},e).catch(ie)}find(e){return this._find(e)}_get(e,r){return typeof e>"u"?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(r.query,e,r.route),method:"GET",headers:Object.assign({},r.headers)},r).catch(ie)}get(e,r){return this._get(e,r)}_create(e,r){return this.request({url:this.makeUrl(r.query,null,r.route),body:e,method:"POST",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(ie)}create(e,r){return this._create(e,r)}_update(e,r,n){return typeof e>"u"?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(n.query,e,n.route),body:r,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},n.headers)},n).catch(ie)}update(e,r,n){return this._update(e,r,n)}_patch(e,r,n){return typeof e>"u"?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(n.query,e,n.route),body:r,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},n.headers)},n).catch(ie)}patch(e,r,n){return this._patch(e,r,n)}_remove(e,r){return typeof e>"u"?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(r.query,e,r.route),method:"DELETE",headers:Object.assign({},r.headers)},r).catch(ie)}remove(e,r){return this._remove(e,r)}};Oe.Base=Wr});var ea=l($t=>{"use strict";
4Object.defineProperty($t,"__esModule",{value:!0});$t.AxiosClient=void 0;var Xc=tt(),Gr=class extends Xc.Base{request(e,r){let n=Object.assign({url:e.url,method:e.method,data:e.body,headers:Object.assign({Accept:"application/json"},this.options.headers,e.headers)},r.connection);return this.connection.request(n).then(o=>o.data).catch(o=>{let i=o.response||o;throw i instanceof Error?i:i.data||i})}};$t.AxiosClient=Gr});var ta=l(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.FetchClient=void 0;var Yc=at(),Zc=tt(),Kr=class extends Zc.Base{request(e,r){let n=Object.assign({},e,r.connection);return n.headers=Object.assign({Accept:"application/json"},this.options.headers,n.headers),e.body&&(n.body=JSON.stringify(e.body)),this.connection(e.url,n).then(this.checkStatus).then(o=>o.status===204?null:o.json())}checkStatus(e){return e.ok?e:e.json().catch(()=>{let r=Yc.errors[e.status]||Error;return new r("JSON parsing error")}).then(r=>{throw r.response=e,r})}};Tt.FetchClient=Kr});var ra=l(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.SuperagentClient=void 0;var ef=tt(),zr=class extends ef.Base{request(e,r){let n=this.connection(e.method,e.url).set(this.options.headers||{}).set("Accept","application/json").set(r.connection||{}).set(e.headers||{}).type(e.type||"json");return new Promise((o,i)=>{n.set(e.headers),e.body&&n.send(e.body),n.end(function(a,u){if(a){try{let s=a.response;a=JSON.parse(a.response.text),a.response=s}catch{}return i(a)}o(u&&u.body)})})}};Ht.SuperagentClient=zr});var ca=l((H,Bt)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0});H.SuperagentClient=H.FetchClient=H.AxiosClient=void 0;H.default=ua;var tf=yr(),na=tt(),ia=ea();Object.defineProperty(H,"AxiosClient",{enumerable:!0,get:function(){return ia.AxiosClient}});var aa=ta();Object.defineProperty(H,"FetchClient",{enumerable:!0,get:function(){return aa.FetchClient}});var sa=ra();Object.defineProperty(H,"SuperagentClient",{enumerable:!0,get:function(){return sa.SuperagentClient}});var oa={superagent:sa.SuperagentClient,fetch:aa.FetchClient,axios:ia.AxiosClient};function ua(t=""){let e={Base:na.Base};return Object.keys(oa).forEach(r=>{e[r]=function(n,o={},i=oa[r]){if(!n)throw new Error(`${r} has to be provided to feathers-rest`);typeof o=="function"&&(i=o,o={});let a=function(s){return new i({base:t,name:s,connection:n,options:o})},u=s=>{if(s.rest!==void 0)throw new Error("Only one default client provider can be configured");s.rest=n,s.defaultService=a,s.mixins.unshift((c,p,d)=>{if(d&&d.methods&&c instanceof na.Base){let f=d.methods.filter(v=>!tf.defaultServiceMethods.includes(v));c.methods(...f)}})};return u.Service=i,u.service=a,u}}),e}typeof Bt<"u"&&(Bt.exports=Object.assign(ua,Bt.exports))});var pa=Gt(ln()),da=Gt(yr()),ya=Gt(ca());var fa={production:!0,environment:"PROD",apiAddress:"https://api.volleystation.com"};var la=class t{app;constructor(){this.app=(0,da.feathers)();let e=(0,ya.default)(fa.apiAddress);this.app.configure(e.fetch(window.fetch.bind(window))),this.app.configure((0,pa.default)({storage:window.localStorage}))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Yr({token:t,factory:t.\u0275fac,providedIn:"root"})};export{la as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.