PageSourceSearch

https://saabparts.com/_next/static/chunks/3187-3c0f31f80f3d0a42.js

js saabparts.com collected 2026-10-02 11:33:26 UTC 600,908 bytes, 564 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3187],{120:(r,n,i)=>{"use strict";i.d(n,{p:()=>y});var o=i(57935),a=i(35533),s=i(36439),u=i(16370),c=i(6007),l=i(90274),d=i(81548),f=i(93028);let p="input";function h(r,n){let i=(0,s.useId)(),h=(0,c.q)(),y=(0,u._)(),{id:g=h||`headlessui-input-${i}`,disabled:m=y||!1,autoFocus:b=!1,invalid:w=!1,...v}=r,_=(0,f.o2)(),E=(0,d.MM)(),{isFocused:S,focusProps:R}=(0,o.o)({autoFocus:b}),{isHovered:A,hoverProps:k}=(0,a.M)({isDisabled:m}),O=(0,l.v6)({ref:n,id:g,"aria-labelledby":_,"aria-describedby":E,"aria-invalid":w?"":void 0,disabled:m||void 0,autoFocus:b},R,k),x=(0,s.useMemo)(()=>({disabled:m,invalid:w,hover:A,focus:S,autofocus:b}),[m,w,A,S,b]);return(0,l.Ci)()({ourProps:O,theirProps:v,slot:x,defaultTag:p,name:"Input"})}let y=(0,l.FX)(h)},631:(r,n,i)=>{"use strict";i.d(n,{If:()=>u.I,Bd:()=>s.Bd,Qg:()=>s.Qg,N6:()=>s.N6,bJ:()=>o.b,qx:()=>s.qx,tX:()=>s.tX,lV:()=>s.lV,p7:()=>s.p7,Al:()=>a.Al,SW:()=>a.SW});var o=i(99411),a=i(71971);i(81998);var s=i(51282),u=i(99634)},887:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BaseAPI=void 0;let o=i(62789),a=i(925),s=i(64462),u=i(70948),c=i(41299),l=1e4;class d{constructor(r,n){if(this.axios=n,r instanceof u.Configuration?this.configuration=r:this.configuration=new u.Configuration(r),this.configuration.isValid(),this.credentials=c.Credentials.init(this.configuration,this.axios),!this.axios){const r=new a.Agent({keepAlive:!0}),n=new s.Agent({keepAlive:!0});this.axios=o.default.create({httpAgent:r,httpsAgent:n,timeout:l,headers:this.configuration.baseOptions?.headers})}}}n.BaseAPI=d},925:(r,n,i)=>{var o="/",a=i(49914),s=i(84890).Buffer,u={514:function(r){r.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},638:function(r){"function"==typeof Object.create?r.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},329:function(r){"use strict";let n={};function i(r,i,o){function a(r,n,o){return"string"==typeof i?i:i(r,n,o)}o||(o=Error);class s extends o{constructor(r,n,i){super(a(r,n,i))}}s.prototype.name=o.name,s.prototype.code=r,n[r]=s}function o(r,n){if(!Array.isArray(r))return`of ${n} ${String(r)}`;{let i=r.length;return(r=r.map(r=>String(r)),i>2)?`one of ${n} ${r.slice(0,i-1).join(", ")}, or `+r[i-1]:2===i?`one of ${n} ${r[0]} or ${r[1]}`:`of ${n} ${r[0]}`}}function a(r,n,i){return r.substr(!i||i<0?0:+i,n.length)===n}function s(r,n,i){return(void 0===i||i>r.length)&&(i=r.length),r.substring(i-n.length,i)===n}function u(r,n,i){return"number"!=typeof i&&(i=0),!(i+n.length>r.length)&&-1!==r.indexOf(n,i)}i("ERR_INVALID_OPT_VALUE",function(r,n){return'The value "'+n+'" is 
1invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,n,i){let c,l;if("string"==typeof n&&a(n,"not ")?(c="must not be",n=n.replace(/^not /,"")):c="must be",s(r," argument"))l=`The ${r} ${c} ${o(n,"type")}`;else{let i=u(r,".")?"property":"argument";l=`The "${r}" ${i} ${c} ${o(n,"type")}`}return l+`. Received type ${typeof i}`},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.F=n},686:function(r,n,i){"use strict";var o=Object.keys||function(r){var n=[];for(var i in r)n.push(i);return n};r.exports=f;var s=i(276),u=i(732);i(638)(f,s);for(var c=o(u.prototype),l=0;l<c.length;l++){var d=c[l];f.prototype[d]||(f.prototype[d]=u.prototype[d])}function f(r){if(!(this instanceof f))return new f(r);s.call(this,r),u.call(this,r),this.allowHalfOpen=!0,r&&(!1===r.readable&&(this.readable=!1),!1===r.writable&&(this.writable=!1),!1===r.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||a.nextTick(h,this)}function h(r){r.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(r){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=r,this._writableState.destroyed=r)}})},512:function(r,n,i){"use strict";r.exports=a;var o=i(586);function a(r){if(!(this instanceof a))return new a(r);o.call(this,r)}i(638)(a,o),a.prototype._transform=function(r,n,i){i(null,r)}},276:function(r,n,o){"use strict";r.exports=C,C.ReadableState=P,o(434).EventEmitter;var s,u,c,l,d,f=function(r,n){return r.listeners(n).length},p=o(120),h=o(181).Buffer,y=i.g.Uint8Array||function(){};function g(r){return h.from(r)}function m(r){return h.isBuffer(r)||r instanceof y}var b=o(23);u=b&&b.debuglog?b.debuglog("stream"):function(){};var w=o(137),v=o(528),_=o(771).getHighWaterMark,E=o(329).F,S=E.ERR_INVALID_ARG_TYPE,R=E.ERR_STREAM_PUSH_AFTER_EOF,A=E.ERR_METHOD_NOT_IMPLEMENTED,k=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;o(638)(C,p);var O=v.errorOrDestroy,x=["error","close","destroy","pause","resume"];function T(r,n,i){if("function"==typeof r.prependListener)return r.prependListener(n,i);r._events&&r._events[n]?Array.isArray(r._events[n])?r._events[n].unshift(i):r._events[n]=[i,r._events[n]]:r.on(n,i)}function P(r,n,i){s=s||o(686),r=r||{},"boolean"!=typeof i&&(i=n instanceof s),this.objectMode=!!r.objectMode,i&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=_(this,r,"readableHighWaterMark",i),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(c||(c=o(319).I),this.decoder=new c(r.encoding),this.encoding=r.encoding)}function C(r){if(s=s||o(686),!(this instanceof C))return new C(r);var n=this instanceof s;this._readableState=new P(r,this,n),this.readable=!0,r&&("function"==typeof r.read&&(this._read=r.read),"function"==typeof r.destroy&&(this._destroy=r.destroy)),p.call(this)}function j(r,n,i,o,a){u("readableAddChunk",n);var s,c=r._readableState;if(null===n)c.reading=!1,L(r,c);else if(a||(s=D(c,n)),s)O(r,s);else if(c.objectMode||n&&n.length>0)if("string"==typeof n||c.objectMode||Object.getPrototypeOf(n)===h.prototype||(n=g(n)),o)c.endEmitted?O(r,new k):I(r,c,n,!0);else if(c.ended)O(r,new R);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!i?(n=c.decoder.write(n),c.objectMode||0!==n.length?I(r,c,n,!1):B(r,c)):I(r,c,n,!1)}else o||(c.reading=!1,B(r,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function I(r,n,i,o){n.flowing&&0===n.length&&!n.sync?(n.awaitDrain=0,r.emit("data",i)):(n.length+=n.objectMode?1:i.length,o?n.buffer.unshift(i):n.buffer.push(i),n.needReadable&&$(r)),B(r,n)}function D(r,n){var i;return m(n)||"string"==typeof n||void 0===n||r.objectMode||(i=new S("chunk",["string","Buffer","Uint8Array"],n)),i}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}}),C.prototype.destroy=v.destroy,C.prototype._undestroy=v.undestroy,C.prototype._destroy=function(r,n){n(r)},C.prototype.push=function(r,n){var i,o=this._readableState;return o.objectMode?i=!0:"string"==typeof r&&((n=n||o.defaultEncoding)!==o.encoding&&(r=h.from(r,n),n=""),i=!0),j(this,r,n,!1,i)},C.prototype.unshift=function(r){return j(this,r,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(r){c||(c=o(319).I);var n=new c(r);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 5,851 bytes, line 1
1for(var i=this._readableState.buffer.head,a="";null!==i;)a+=n.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var U=0x40000000;function N(r){return r>=U?r=U:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function M(r,n){if(r<=0||0===n.length&&n.ended)return 0;if(n.objectMode)return 1;if(r!=r)if(n.flowing&&n.length)return n.buffer.head.data.length;else return n.length;return(r>n.highWaterMark&&(n.highWaterMark=N(r)),r<=n.length)?r:n.ended?n.length:(n.needReadable=!0,0)}function L(r,n){if(u("onEofChunk"),!n.ended){if(n.decoder){var i=n.decoder.end();i&&i.length&&(n.buffer.push(i),n.length+=n.objectMode?1:i.length)}n.ended=!0,n.sync?$(r):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,q(r)))}}function $(r){var n=r._readableState;u("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(u("emitReadable",n.flowing),n.emittedReadable=!0,a.nextTick(q,r))}function q(r){var n=r._readableState;u("emitReadable_",n.destroyed,n.length,n.ended),!n.destroyed&&(n.length||n.ended)&&(r.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,J(r)}function B(r,n){n.readingMore||(n.readingMore=!0,a.nextTick(F,r,n))}function F(r,n){for(;!n.reading&&!n.ended&&(n.length<n.highWaterMark||n.flowing&&0===n.length);){var i=n.length;if(u("maybeReadMore read 0"),r.read(0),i===n.length)break}n.readingMore=!1}function H(r){return function(){var n=r._readableState;u("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&f(r,"data")&&(n.flowing=!0,J(r))}}function W(r){var n=r._readableState;n.readableListening=r.listenerCount("readable")>0,n.resumeScheduled&&!n.paused?n.flowing=!0:r.listenerCount("data")>0&&r.resume()}function z(r){u("readable nexttick read 0"),r.read(0)}function V(r,n){n.resumeScheduled||(n.resumeScheduled=!0,a.nextTick(K,r,n))}function K(r,n){u("resume",n.reading),n.reading||r.read(0),n.resumeScheduled=!1,r.emit("resume"),J(r),n.flowing&&!n.reading&&r.read(0)}function J(r){var n=r._readableState;for(u("flow",n.flowing);n.flowing&&null!==r.read(););}function G(r,n){var i;return 0===n.length?null:(n.objectMode?i=n.buffer.shift():!r||r>=n.length?(i=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.first():n.buffer.concat(n.length),n.buffer.clear()):i=n.buffer.consume(r,n.decoder),i)}function X(r){var n=r._readableState;u("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,a.nextTick(Y,n,r))}function Y(r,n){if(u("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&0===r.length&&(r.endEmitted=!0,n.readable=!1,n.emit("end"),r.autoDestroy)){var i=n._writableState;(!i||i.autoDestroy&&i.finished)&&n.destroy()}}function Q(r,n){for(var i=0,o=r.length;i<o;i++)if(r[i]===n)return i;return -1}C.prototype.read=function(r){u("read",r),r=parseInt(r,10);var n,i=this._readableState,o=r;if(0!==r&&(i.emittedReadable=!1),0===r&&i.needReadable&&((0!==i.highWaterMark?i.length>=i.highWaterMark:i.length>0)||i.ended))return u("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?X(this):$(this),null;if(0===(r=M(r,i))&&i.ended)return 0===i.length&&X(this),null;var a=i.needReadable;return u("need readable",a),(0===i.length||i.length-r<i.highWaterMark)&&u("length less than watermark",a=!0),i.ended||i.reading?u("reading or ended",a=!1):a&&(u("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(r=M(o,i))),null===(n=r>0?G(r,i):null)?(i.needReadable=i.length<=i.highWaterMark,r=0):(i.length-=r,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),o!==r&&i.ended&&X(this)),null!==n&&this.emit("data",n),n},C.prototype._read=function(r){O(this,new A("_read()"))},C.prototype.pipe=function(r,n){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=r;break;case 1:o.pipes=[o.pipes,r];break;default:o.pipes.push(r)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,n);var s=n&&!1===n.end||r===a.stdout||r===a.stderr?w:l;function c(r,n){u("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h())}function l(){u("onend"),r.end()}o.endEmitted?a.nextTick(s):i.once("end",s),r.on("unpipe",c);var d=H(i);r.on("drain",d);var p=!1;function h(){u("cleanup"),r.removeListener("close",m),r.removeListener("finish",b),r.removeListener("drain",d),r.removeListener("error",g),r.removeListener("unpipe",c),i.removeListener("end",l),i.removeListener("end",w),i.removeListener("data",y),p=!0,o.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&d()}function y(n){u("ondata");var a=r.write(n);u("dest.write",a),!1===a&&((1===o.pipesCount&&o.pipes===r||o.pipesCount>1&&-1!==Q(o.pipes,r))&&!p&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function g(n){u("onerror",n),w(),r.removeListener("error",g),0===f(r,"error")&&O(r,n)}function m(){r.removeListener("finish",b),w()}function b(){u("onfinish"),r.removeListener("close",m),w()}function w(){u("unpipe"),i.unpipe(r)}return i.on("data",y),T(r,"error",g),r.once("close",m),r.once("finish",b),r.emit("pipe",i),o.flowing||(u("pipe resume"),i.resume()),r},C.prototype.unpipe=function(r){var n=this._readableState,i={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return r&&r!==n.pipes||(r||(r=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,r&&r.emit("unpipe",this,i)),this;if(!r){var o=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var s=0;s<a;s++)o[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=Q(n.pipes,r);return -1===u||(n.pipes.splice(u,1),n.pipesCount-=1,1===n.pipesCount&&(n.pipes=n.pipes[0]),r.emit("unpipe",this,i)),this},C.prototype.on=function(r,n){var i=p.prototype.on.call(this,r,n),o=this._readableState;return"data"===r?(o.readableListening=this.listenerCount("readable")>
vendor: 4,713 bytes, line 1
10,!1!==o.flowing&&this.resume()):"readable"!==r||o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?$(this):o.reading||a.nextTick(z,this)),i},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(r,n){var i=p.prototype.removeListener.call(this,r,n);return"readable"===r&&a.nextTick(W,this),i},C.prototype.removeAllListeners=function(r){var n=p.prototype.removeAllListeners.apply(this,arguments);return("readable"===r||void 0===r)&&a.nextTick(W,this),n},C.prototype.resume=function(){var r=this._readableState;return r.flowing||(u("resume"),r.flowing=!r.readableListening,V(this,r)),r.paused=!1,this},C.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(r){var n=this,i=this._readableState,o=!1;for(var a in r.on("end",function(){if(u("wrapped end"),i.decoder&&!i.ended){var r=i.decoder.end();r&&r.length&&n.push(r)}n.push(null)}),r.on("data",function(a){u("wrapped data"),i.decoder&&(a=i.decoder.write(a)),i.objectMode&&null==a||(i.objectMode||a&&a.length)&&(n.push(a)||(o=!0,r.pause()))}),r)void 0===this[a]&&"function"==typeof r[a]&&(this[a]=function(n){return function(){return r[n].apply(r,arguments)}}(a));for(var s=0;s<x.length;s++)r.on(x[s],this.emit.bind(this,x[s]));return this._read=function(n){u("wrapped _read",n),o&&(o=!1,r.resume())},this},"function"==typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=o(531)),l(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}}),C._fromList=G,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(C.from=function(r,n){return void 0===d&&(d=o(812)),d(C,r,n)})},586:function(r,n,i){"use strict";r.exports=f;var o=i(329).F,a=o.ERR_METHOD_NOT_IMPLEMENTED,s=o.ERR_MULTIPLE_CALLBACK,u=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=o.ERR_TRANSFORM_WITH_LENGTH_0,l=i(686);function d(r,n){var i=this._transformState;i.transforming=!1;var o=i.writecb;if(null===o)return this.emit("error",new s);i.writechunk=null,i.writecb=null,null!=n&&this.push(n),o(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);l.call(this,r),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&("function"==typeof r.transform&&(this._transform=r.transform),"function"==typeof r.flush&&(this._flush=r.flush)),this.on("prefinish",p)}function p(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(n,i){h(r,n,i)})}function h(r,n,i){if(n)return r.emit("error",n);if(null!=i&&r.push(i),r._writableState.length)throw new c;if(r._transformState.transforming)throw new u;return r.push(null)}i(638)(f,l),f.prototype.push=function(r,n){return this._transformState.needTransform=!1,l.prototype.push.call(this,r,n)},f.prototype._transform=function(r,n,i){i(new a("_transform()"))},f.prototype._write=function(r,n,i){var o=this._transformState;if(o.writecb=i,o.writechunk=r,o.writeencoding=n,!o.transforming){var a=this._readableState;(o.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},f.prototype._read=function(r){var n=this._transformState;null===n.writechunk||n.transforming?n.needTransform=!0:(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform))},f.prototype._destroy=function(r,n){l.prototype._destroy.call(this,r,function(r){n(r)})}},732:function(r,n,o){"use strict";function s(r){var n=this;this.next=null,this.entry=null,this.finish=function(){K(n,r)}}r.exports=P,P.WritableState=T;var u,c,l={deprecate:o(774)},d=o(120),f=o(181).Buffer,p=i.g.Uint8Array||function(){};function h(r){return f.from(r)}function y(r){return f.isBuffer(r)||r instanceof p}var g=o(528),m=o(771).getHighWaterMark,b=o(329).F,w=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENT
vendor: 1,770 bytes, line 1
1ED,_=b.ERR_MULTIPLE_CALLBACK,E=b.ERR_STREAM_CANNOT_PIPE,S=b.ERR_STREAM_DESTROYED,R=b.ERR_STREAM_NULL_VALUES,A=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,O=g.errorOrDestroy;function x(){}function T(r,n,i){u=u||o(686),r=r||{},"boolean"!=typeof i&&(i=n instanceof u),this.objectMode=!!r.objectMode,i&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=m(this,r,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===r.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(r){L(n,r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}o(638)(P,d),T.prototype.getBuffer=function(){for(var r=this.bufferedRequest,n=[];r;)n.push(r),r=r.next;return n};try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(r){}function P(r){var n=this instanceof(u=u||o(686));if(!n&&!c.call(P,this))return new P(r);this._writableState=new T(r,this,n),this.writable=!0,r&&("function"==typeof r.write&&(this._write=r.write),"function"==typeof r.writev&&(this._writev=r.writev),"function"==typeof r.destroy&&(this._destroy=r.destroy),"function"==typeof r.final&&(this._final=r.final)),d.call(this)}function C(r,n){var i=new A;O(r,i),a.nextTick(n,i)}function j(r,n,i,o){var s;
vendor: 13,482 bytes, line 1
1return null===i?s=new R:"string"==typeof i||n.objectMode||(s=new w("chunk",["string","Buffer"],i)),!s||(O(r,s),a.nextTick(o,s),!1)}function I(r,n,i){return r.objectMode||!1===r.decodeStrings||"string"!=typeof n||(n=f.from(n,i)),n}function D(r,n,i,o,a,s){if(!i){var u=I(n,o,a);o!==u&&(i=!0,a="buffer",o=u)}var c=n.objectMode?1:o.length;n.length+=c;var l=n.length<n.highWaterMark;if(l||(n.needDrain=!0),n.writing||n.corked){var d=n.lastBufferedRequest;n.lastBufferedRequest={chunk:o,encoding:a,isBuf:i,callback:s,next:null},d?d.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1}else U(r,n,!1,c,o,a,s);return l}function U(r,n,i,o,a,s,u){n.writelen=o,n.writecb=u,n.writing=!0,n.sync=!0,n.destroyed?n.onwrite(new S("write")):i?r._writev(a,n.onwrite):r._write(a,s,n.onwrite),n.sync=!1}function N(r,n,i,o,s){--n.pendingcb,i?(a.nextTick(s,o),a.nextTick(z,r,n),r._writableState.errorEmitted=!0,O(r,o)):(s(o),r._writableState.errorEmitted=!0,O(r,o),z(r,n))}function M(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function L(r,n){var i=r._writableState,o=i.sync,s=i.writecb;if("function"!=typeof s)throw new _;if(M(i),n)N(r,i,o,n,s);else{var u=F(i)||r.destroyed;u||i.corked||i.bufferProcessing||!i.bufferedRequest||B(r,i),o?a.nextTick($,r,i,u,s):$(r,i,u,s)}}function $(r,n,i,o){i||q(r,n),n.pendingcb--,o(),z(r,n)}function q(r,n){0===n.length&&n.needDrain&&(n.needDrain=!1,r.emit("drain"))}function B(r,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(r._writev&&i&&i.next){var o=Array(n.bufferedRequestCount),a=n.corkedRequestsFree;a.entry=i;for(var u=0,c=!0;i;)o[u]=i,i.isBuf||(c=!1),i=i.next,u+=1;o.allBuffers=c,U(r,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new s(n),n.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,d=i.encoding,f=i.callback,p=n.objectMode?1:l.length;if(U(r,n,!1,p,l,d,f),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function F(r){return r.ending&&0===r.length&&null===r.bufferedRequest&&!r.finished&&!r.writing}function H(r,n){r._final(function(i){n.pendingcb--,i&&O(r,i),n.prefinished=!0,r.emit("prefinish"),z(r,n)})}function W(r,n){n.prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,a.nextTick(H,r,n)))}function z(r,n){var i=F(n);if(i&&(W(r,n),0===n.pendingcb)&&(n.finished=!0,r.emit("finish"),n.autoDestroy)){var o=r._readableState;(!o||o.autoDestroy&&o.endEmitted)&&r.destroy()}return i}function V(r,n,i){n.ending=!0,z(r,n),i&&(n.finished?a.nextTick(i):r.once("finish",i)),n.ended=!0,r.writable=!1}function K(r,n,i){var o=r.entry;for(r.entry=null;o;){var a=o.callback;n.pendingcb--,a(i),o=o.next}n.corkedRequestsFree.next=r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(r){return!!c.call(this,r)||this===P&&r&&r._writableState instanceof T}})):c=function(r){return r instanceof this},P.prototype.pipe=function(){O(this,new E)},P.prototype.write=function(r,n,i){var o=this._writableState,a=!1,s=!o.objectMode&&y(r);return s&&!f.isBuffer(r)&&(r=h(r)),"function"==typeof n&&(i=n,n=null),s?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof i&&(i=x),o.ending?C(this,i):(s||j(this,o,r,i))&&(o.pendingcb++,a=D(this,o,s,r,n,i)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,r.writing||r.corked||r.bufferProcessing||!r.bufferedRequest||B(this,r))},P.prototype.setDefaultEncoding=function(r){if("string"==typeof r&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new k(r);return this._writableState.defaultEncoding=r,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(r,n,i){i(new v("_write()"))},P.prototype._writev=null,P.prototype.end=function(r,n,i){var o=this._writableState;return"function"==typeof r?(i=r,r=null,n=null):"function"==typeof n&&(i=n,n=null),null!=r&&this.write(r,n),o.corked&&(o.corked=1,this.uncork()),o.ending||V(this,o,i),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}}),P.prototype.destroy=g.destroy,P.prototype._undestroy=g.undestroy,P.prototype._destroy=function(r,n){n(r)}},531:function(r,n,i){"use strict";function o(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var s,u=i(134),c=Symbol("lastResolve"),l=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),y=Symbol("stream");function g(r,n){return{value:r,done:n}}function m(r){var n=r[c];if(null!==n){var i=r[y].read();null!==i&&(r[p]=null,r[c]=null,r[l]=null,n(g(i,!1)))}}function b(r){a.nextTick(m,r)}function w(r,n){return function(i,o){r.then(function(){n[f]?i(g(void 0,!0)):n[h](i,o)},o)}}var v=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((o(s={get stream(){return this[y]},next:function(){var r,n=this,i=this[d];if(null!==i)return Promise.reject(i);if(this[f])return Promise.resolve(g(void 0,!0));if(this[y].destroyed)return new Promise(function(r,i){a.nextTick(function(){n[d]?i(n[d]):r(g(void 0,!0))})});var o=this[p];if(o)r=new Promise(w(o,this));else{var s=this[y].read();if(null!==s)return Promise.resolve(g(s,!1));r=new Promise(this[h])}return this[p]=r,r}},Symbol.asyncIterator,function(){return this}),o(s,"return",function(){var r=this;return new Promise(function(n,i){r[y].destroy(null,function(r){r?i(r):n(g(void 0,!0))})})}),s),v);r.exports=function(r){var n,i=Object.create(_,(o(n={},y,{value:r,writable:!0}),o(n,c,{value:null,writable:!0}),o(n,l,{value:null,writable:!0}),o(n,d,{value:null,writable:!0}),o(n,f,{value:r._readableState.endEmitted,writable:!0}),o(n,h,{value:function(r,n){var o=i[y].read();o?(i[p]=null,i[c]=null,i[l]=null,r(g(o,!1))):(i[c]=r,i[l]=n)},writable:!0}),n));return i[p]=null,u(r,function(r){if(r&&"ERR_STREAM_PREMATURE_CLOSE"!==r.code){var n=i[l];null!==n&&(i[p]=null,i[c]=null,i[l]=null,n(r)),i[d]=r;return}var o=i[c];null!==o&&(i[p]=null,i[c]=null,i[l]=null,o(g(void 0,!0))),i[f]=!0}),r.on("readable",b.bind(null,i)),i}},137:function(r,n,i){"use strict";function o(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function a(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?o(Object(i),!0).forEach(function(n){s(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function s(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}function u(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function c(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function l(r,n,i){return n&&c(r.prototype,n),i&&c(r,i),r}var d=i(181).Buffer,f=i(23).inspect,p=f&&f.custom||"inspect";function h(r,n,i){d.prototype.copy.call(r,n,i)}r.exports=function(){function r(){u(this,r),this.head=null,this.tail=null,this.length=0}return l(r,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(0!==this.length){var r=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(0===this.length)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(0===this.length)return d.alloc(0);for(var n=d.allocUnsafe(r>>>0),i=this.head,o=0;i;)h(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):i=r===this.head.data.length?this.shift():n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(s===a.length?o+=a:o+=a.slice(0,r),0==(r-=s)){s===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=d.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var a=i.data,s=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,s),0==(r-=s)){s===a.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++o}return this.length-=o,n}},{key:p,value:function(r,n){return f(this,a({},n,{depth:0,customInspect:!1}))}}]),r}()},528:function(r){"use strict";function n(r,n){o(r,n),i(r)}function i(r){r._writableState&&!r._writableState.emitClose||(!r._readableState||r._readableState.emitClose)&&r.emit("close")}function o(r,n){r.emit("error",n)}r.exports={destroy:function(r,s){var u=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?s?s(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,r)):a.nextTick(o,this,r)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(r){!s&&r?u._writableState?u._writableState.errorEmitted?a.nextTick(i,u):(u._writableState.errorEmitted=!0,a.nextTick(n,u,r)):a.nextTick(n,u,r):s?(a.nextTick(i,u),s(r)):a.nextTick(i,u)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(r,n){var i=r._readableState,o=r._writableState;i&&i.autoDestroy||o&&o.autoDestroy?r.destroy(n):r.emit("error",n)}}},134:function(r,n,i){"use strict";var o=i(329).F.ERR_STREAM_PREMATURE_CLOSE;function a(r){var n=!1;return function(){if(!n){n=!0;for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];r.apply(this,o)}}}function s(){}function u(r){return r.setHeader&&"function"==typeof r.abort}function c(r,n,i){if("function"==typeof n)return c(r,null,n);n||(n={}),i=a(i||s);var l=n.readable||!1!==n.readable&&r.readable,d=n.writable||!1!==n.writable&&r.writable,f=function(){r.writable||h()},p=r._writableState&&r._writableState.finished,h=function(){d=!1,p=!0,l||i.call(r)},y=r._readableState&&r._readableState.endEmitted,g=function(){l=!1,y=!0,d||i.call(r)},m=function(n){i.call(r,n)},b=function(){var n;return l&&!y?(r._readableState&&r._readableState.ended||(n=new o),i.call(r,n)):d&&!p?(r._writableState&&r._writableState.ended||(n=new o),i.call(r,n)):void 0},w=function(){r.req.on("finish",h)};return u(r)?(r.on("complete",h),r.on("abort",b),r.req?w():r.on("request",w)):d&&!r._writableState&&(r.on("end",f),r.on("close",f)),r.on("end",g),r.on("finish",h),!1!==n.error&&r.on("error",m),r.on("close",b),function(){r.removeListener("complete",h),r.removeListener("abort",b),r.removeListener("request",w),r.req&&r.req.removeListener("finish",h),r.removeListener("end",f),r.removeListener("close",f),r.removeListener("finish",h),r.removeListener("end",g),r.removeListener("error",m),r.removeListener("close",b)}}r.exports=c},812:function(r,n,i){"use strict";function o(r,n,i,o,a,s,u){try{var c=r[s](u),l=c.value}catch(r){i(r);return}c.done?n(l):Promise.resolve(l).then(o,a)}function a(r){return function(){var n=this,i=arguments;return new Promise(function(a,s){var u=r.apply(n,i);function c(r){o(u,a,s,c,l,"next",r)}function l(r){o(u,a,s,c,l,"throw",r)}c(void 0)})}}function s(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function u(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
1n%2?s(Object(i),!0).forEach(function(n){c(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function c(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var l=i(329).F.ERR_INVALID_ARG_TYPE;r.exports=function(r,n,i){if(n&&"function"==typeof n.next)o=n;else if(n&&n[Symbol.asyncIterator])o=n[Symbol.asyncIterator]();else if(n&&n[Symbol.iterator])o=n[Symbol.iterator]();else throw new l("iterable",["Iterable"],n);var o,s=new r(u({objectMode:!0},i)),c=!1;function d(){return f.apply(this,arguments)}function f(){return(f=a(function*(){try{var r=yield o.next(),n=r.value;r.done?s.push(null):s.push((yield n))?d():c=!1}catch(r){s.destroy(r)}})).apply(this,arguments)}return s._read=function(){c||(c=!0,d())},s}},694:function(r,n,i){"use strict";function o(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var a,s=i(329).F,u=s.ERR_MISSING_ARGS,c=s.ERR_STREAM_DESTROYED;function l(r){if(r)throw r}function d(r){return r.setHeader&&"function"==typeof r.abort}function f(r,n,s,u){u=o(u);var l=!1;r.on("close",function(){l=!0}),void 0===a&&(a=i(134)),a(r,{readable:n,writable:s},function(r){if(r)return u(r);l=!0,u()});var f=!1;return function(n){if(!l&&!f){if(f=!0,d(r))return r.abort();if("function"==typeof r.destroy)return r.destroy();u(n||new c("pipe"))}}}function p(r){r()}function h(r,n){return r.pipe(n)}function y(r){return r.length&&"function"==typeof r[r.length-1]?r.pop():l}r.exports=function(){for(var r,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=y(i);if(Array.isArray(i[0])&&(i=i[0]),i.length<2)throw new u("streams");var s=i.map(function(n,o){var u=o<i.length-1;return f(n,u,o>0,function(n){r||(r=n),n&&s.forEach(p),u||(s.forEach(p),a(r))})});return i.reduce(h)}},771:function(r,n,i){"use strict";var o=i(329).F.ERR_INVALID_OPT_VALUE;function a(r,n,i){return null!=r.highWaterMark?r.highWaterMark:n?r[i]:null}r.exports={getHighWaterMark:function(r,n,i,s){var u=a(n,s,i);if(null!=u){if(!(isFinite(u)&&Math.floor(u)===u)||u<0)throw new o(s?i:"highWaterMark",u);return Math.floor(u)}return r.objectMode?16:16384}}},120:function(r,n,i){r.exports=i(203)},486:function(r,n,i){var o=i(203);"disable"===a.env.READABLE_STREAM&&o?(r.exports=o.Readable,Object.assign(r.exports,o),r.exports.Stream=o):((n=r.exports=i(276)).Stream=o||n,n.Readable=n,n.Writable=i(732),n.Duplex=i(686),n.Transform=i(586),n.PassThrough=i(512),n.finished=i(134),n.pipeline=i(694))},56:function(r,n,i){var o=i(181),a=o.Buffer;function s(r,n){for(var i in r)n[i]=r[i]}function u(r,n,i){return a(r,n,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=o:(s(o,n),n.Buffer=u),u.prototype=Object.create(a.prototype),s(a,u),u.from=function(r,n,i){if("number"==typeof r)throw TypeError("Argument must not be a number");return a(r,n,i)},u.alloc=function(r,n,i){if("number"!=typeof r)throw TypeError("Argument must be a number");var o=a(r);return void 0!==n?"string"==typeof i?o.fill(n,i):o.fill(n):o.fill(0),o},u.allocUnsafe=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return a(r)},u.allocUnsafeSlow=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return o.SlowBuffer(r)}},534:function(r,n,o){var a=o(291),s=o(935),u=o(663),c=o(514),l=o(16),d=n;d.request=function(r,n){r="string"==typeof r?l.parse(r):u(r);var o=-1===i.g.location.protocol.search(/^https?:$/)?"http:":"",s=r.protocol||o,c=r.hostname||r.host,d=r.port,f=r.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),r.url=(c?s+"//"+c:"")+(d?":"+d:"")+f,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var p=new a(r);return n&&p.on("response",n),p},d.get=function(r,n){var i=d.request(r,n);return i.end(),i},d.ClientRequest=a,d.IncomingMessage=s.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=c,d.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},102:function(r,n){var o;function a(){if(void 0!==o)return o;if(i.g.XMLHttpRequest){o=new i.g.XMLHttpRequest;try{o.open("GET",i.g.XDomainRequest?"/":"https://example.com")}catch(r){o=null}}else o=null;return o}function s(r){var n=a();if(!n)return!1;try{return n.responseType=r,n.responseType===r}catch(r){}return!1}function u(r){return"function"==typeof r}n.fetch=u(i.g.fetch)&&u(i.g.ReadableStream),n.writableStream=u(i.g.WritableStream),n.abortController=u(i.g.AbortController),n.arraybuffer=n.fetch||s("arraybuffer"),n.msstream=!n.fetch&&s("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&s("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!a()&&u(a().overrideMimeType),o=null},291:function(r,n,o){var u=o(102),c=o(638),l=o(935),d=o(486),f=l.IncomingMessage,p=l.readyStates;function h(r,n){return u.fetch&&n?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&r?"arraybuffer":"text"}var y=r.exports=function(r){var n,i=this;d.Writable.call(i),i._opts=r,i._body=[],i._headers={},r.auth&&i.setHeader("Authorization","Basic "+s.from(r.auth).toString("base64")),Object.keys(r.headers).forEac
1h(function(n){i.setHeader(n,r.headers[n])});var o=!0;if("disable-fetch"===r.mode||"requestTimeout"in r&&!u.abortController)o=!1,n=!0;else if("prefer-streaming"===r.mode)n=!1;else if("allow-wrong-content-type"===r.mode)n=!u.overrideMimeType;else if(r.mode&&"default"!==r.mode&&"prefer-fast"!==r.mode)throw Error("Invalid value for opts.mode");else n=!0;i._mode=h(n,o),i._fetchTimer=null,i.on("finish",function(){i._onFinish()})};function g(r){try{var n=r.status;return null!==n&&0!==n}catch(r){return!1}}c(y,d.Writable),y.prototype.setHeader=function(r,n){var i=this,o=r.toLowerCase();-1===m.indexOf(o)&&(i._headers[o]={name:r,value:n})},y.prototype.getHeader=function(r){var n=this._headers[r.toLowerCase()];return n?n.value:null},y.prototype.removeHeader=function(r){var n=this;delete n._headers[r.toLowerCase()]},y.prototype._onFinish=function(){var r=this;if(!r._destroyed){var n=r._opts,o=r._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=new Blob(r._body,{type:(o["content-type"]||{}).value||""}));var c=[];if(Object.keys(o).forEach(function(r){var n=o[r].name,i=o[r].value;Array.isArray(i)?i.forEach(function(r){c.push([n,r])}):c.push([n,i])}),"fetch"===r._mode){var l=null;if(u.abortController){var d=new AbortController;l=d.signal,r._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(r._fetchTimer=i.g.setTimeout(function(){r.emit("requestTimeout"),r._fetchAbortController&&r._fetchAbortController.abort()},n.requestTimeout))}i.g.fetch(r._opts.url,{method:r._opts.method,headers:c,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then(function(n){r._fetchResponse=n,r._connect()},function(n){i.g.clearTimeout(r._fetchTimer),r._destroyed||r.emit("error",n)})}else{var f=r._xhr=new i.g.XMLHttpRequest;try{f.open(r._opts.method,r._opts.url,!0)}catch(n){a.nextTick(function(){r.emit("error",n)});return}"responseType"in f&&(f.responseType=r._mode),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===r._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){r.emit("requestTimeout")}),c.forEach(function(r){f.setRequestHeader(r[0],r[1])}),r._response=null,f.onreadystatechange=function(){switch(f.readyState){case p.LOADING:case p.DONE:r._onXHRProgress()}},"moz-chunked-arraybuffer"===r._mode&&(f.onprogress=function(){r._onXHRProgress()}),f.onerror=function(){r._destroyed||r.emit("error",Error("XHR error"))};try{f.send(s)}catch(n){a.nextTick(function(){r.emit("error",n)});return}}}},y.prototype._onXHRProgress=function(){var r=this;g(r._xhr)&&!r._destroyed&&(r._response||r._connect(),r._response._onXHRProgress())},y.prototype._connect=function(){var r=this;r._destroyed||(r._response=new f(r._xhr,r._fetchResponse,r._mode,r._fetchTimer),r._response.on("error",function(n){r.emit("error",n)}),r.emit("response",r._response))},y.prototype._write=function(r,n,i){var o=this;o._body.push(r),i()},y.prototype.abort=y.prototype.destroy=function(){var r=this;r._destroyed=!0,i.g.clearTimeout(r._fetchTimer),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort()},y.prototype.end=function(r,n,i){var o=this;"function"==typeof r&&(i=r,r=void 0),d.Writable.prototype.end.call(o,r,n,i)},y.prototype.flushHeaders=function(){},y.prototype.setTimeout=function(){},y.prototype.setNoDelay=function(){},y.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},935:function(r,n,o){var u=o(102),c=o(638),l=o(486),d=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=n.IncomingMessage=function(r,n,o,c){var d=this;if(l.Readable.call(d),d._mode=o,d.headers={},d.rawHeaders=[],d.trailers={},d.rawTrailers=[],d.on("end",function(){a.nextTick(function(){d.emit("close")})}),"fetch"===o){if(d._fetchResponse=n,d.url=n.url,d.statusCode=n.status,d.statusMessage=n.statusText,n.headers.forEac
1h(function(r,n){d.headers[n.toLowerCase()]=r,d.rawHeaders.push(n,r)}),u.writableStream){var f=new WritableStream({write:function(r){return new Promise(function(n,i){d._destroyed?i():d.push(s.from(r))?n():d._resumeFetch=n})},close:function(){i.g.clearTimeout(c),d._destroyed||d.push(null)},abort:function(r){d._destroyed||d.emit("error",r)}});try{n.body.pipeTo(f).catch(function(r){i.g.clearTimeout(c),d._destroyed||d.emit("error",r)});return}catch(r){}}var p=n.body.getReader();function h(){p.read().then(function(r){if(!d._destroyed){if(r.done){i.g.clearTimeout(c),d.push(null);return}d.push(s.from(r.value)),h()}}).catch(function(r){i.g.clearTimeout(c),d._destroyed||d.emit("error",r)})}h()}else if(d._xhr=r,d._pos=0,d.url=r.responseURL,d.statusCode=r.status,d.statusMessage=r.statusText,r.getAllResponseHeaders().split(/\r?\n/).forEach(function(r){var n=r.match(/^([^:]+):\s*(.*)/);if(n){var i=n[1].toLowerCase();"set-cookie"===i?(void 0===d.headers[i]&&(d.headers[i]=[]),d.headers[i].push(n[2])):void 0!==d.headers[i]?d.headers[i]+=", "+n[2]:d.headers[i]=n[2],d.rawHeaders.push(n[1],n[2])}}),d._charset="x-user-defined",!u.overrideMimeType){var y=d.rawHeaders["mime-type"];if(y){var g=y.match(/;\s*charset=([^;])(;|$)/);g&&(d._charset=g[1].toLowerCase())}d._charset||(d._charset="utf-8")}};c(f,l.Readable),f.prototype._read=function(){var r=this,n=r._resumeFetch;n&&(r._resumeFetch=null,n())},f.prototype._onXHRProgress=function(){var r=this,n=r._xhr,o=null;switch(r._mode){case"text":if((o=n.responseText).length>r._pos){var a=o.substr(r._pos);if("x-user-defined"===r._charset){for(var u=s.alloc(a.length),c=0;c<a.length;c++)u[c]=255&a.charCodeAt(c);r.push(u)}else r.push(a,r._charset);r._pos=o.length}break;case"arraybuffer":if(n.readyState!==d.DONE||!n.response)break;o=n.response,r.push(s.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=n.response,n.readyState!==d.LOADING||!o)break;r.push(s.from(new Uint8Array(o)));break;case"ms-stream":if(o=n.response,n.readyState!==d.LOADING)break;var l=new i.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>r._pos&&(r.push(s.from(new Uint8Array(l.result.slice(r._pos)))),r._pos=l.result.byteLength)},l.onload=function(){r.push(null)},l.readAsArrayBuffer(o)}r._xhr.readyState===d.DONE&&"ms-stream"!==r._mode&&r.push(null)}},319:function(r,n,i){"use strict";var o=i(56).Buffer,a=o.isEncoding||function(r){switch((r=""+r)&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(r){var n;if(!r)return"utf8";for(;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(n)return;r=(""+r).toLowerCase(),n=!0}}function u(r){var n=s(r);if("string"!=typeof n&&(o.isEncoding===a||!a(r)))throw Error("Unknown encoding: "+r);return n||r}function c(r){var n;switch(this.encoding=u(r),this.encoding){case"utf16le":this.text=g,this.end=m,n=4;break;case"utf8":this.fillLast=p,n=4;break;case"base64":this.text=b,this.end=w,n=3;break;default:this.write=v,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(n)}function l(r){return r<=127?0:r>>5==6?2:r>>4==14?3:r>>3==30?4:r>>6==2?-1:-2}function d(r,n,i){var o=n.length-1;if(o<i)return 0;var a=l(n[o]);return a>=0?(a>0&&(r.lastNeed=a-1),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(r.lastNeed=a-2),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(2===a?a=0:r.lastNeed=a-3),a):0}function f(r,n,i){if((192&n[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&n.length>1){if((192&n[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&n.length>2&&(192&n[2])!=128)return r.lastNeed=2,"�"}}function p(r){var n=this.lastTotal-this.lastNeed,i=f(this,r,n);return void 0!==i?i:this.lastNeed<=r.length?(r.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(r.copy(this.lastChar,n,0,r.length),this.lastNeed-=r.length)}function h(r,n){var i=d(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=i;var o=r.length-(i-this.lastNeed);return r.copy(this.lastChar,0,o),r.toString("utf8",n,o)}function y(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+"�":n}function g(r,n){if((r.length-n)%2==0){var i=r.toString("utf16le",n);if(i){var o=i.charCodeAt(i.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",n,r.length-1)}function m(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,i)}return n}function b(r,n){var i=(r.length-n)%3;return 0===i?r.toString("base64",n):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",n,r.length-i))}function w(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function v(r){return r.toString(this.encoding)}function _(r){return r&&r.length?this.write(r):""}
1n.I=c,c.prototype.write=function(r){var n,i;if(0===r.length)return"";if(this.lastNeed){if(void 0===(n=this.fillLast(r)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<r.length?n?n+this.text(r,i):this.text(r,i):n||""},c.prototype.end=y,c.prototype.text=h,c.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length}},774:function(r){function n(r){try{if(!i.g.localStorage)return!1}catch(r){return!1}var n=i.g.localStorage[r];return null!=n&&"true"===String(n).toLowerCase()}r.exports=function r(r,i){if(n("noDeprecation"))return r;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw Error(i);n("traceDeprecation")?console.trace(i):console.warn(i),o=!0}return r.apply(this,arguments)}}},663:function(r){r.exports=i;var n=Object.prototype.hasOwnProperty;function i(){for(var r={},i=0;i<arguments.length;i++){var o=arguments[i];for(var a in o)n.call(o,a)&&(r[a]=o[a])}return r}},181:function(r){"use strict";r.exports=i(84890)},434:function(r){"use strict";r.exports=i(27146)},203:function(r){"use strict";r.exports=i(77319)},16:function(r){"use strict";r.exports=i(82475)},23:function(r){"use strict";r.exports=i(81664)}},c={};function l(r){var n=c[r];if(void 0!==n)return n.exports;var i=c[r]={exports:{}},o=!0;try{u[r](i,i.exports,l),o=!1}finally{o&&delete c[r]}return i.exports}l.ab=o+"/",r.exports=l(534)},2344:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{DynamicServerError:function(){return o},isDynamicServerError:function(){return a}});let i="DYNAMIC_SERVER_USAGE";class o extends Error{constructor(r){super(`Dynamic server usage: ${r}`),this.description=r,this.digest=i}}function a(r){return"object"==typeof r&&null!==r&&"digest"in r&&"string"==typeof r.digest&&r.digest===i}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},3330:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{getCacheSignal:function(){return y},getDraftModeProviderForCacheScope:function(){return p},getHmrRefreshHash:function(){return l},getResumeDataCache:function(){return c},getServerComponentsHmrCache:function(){return f},getStagedRenderingController:function(){return h},getVaryParamsAccumulator:function(){return g},isHmrRefresh:function(){return d},throwForMissingRequestStore:function(){return s},throwInvariantForMissingStore:function(){return u},workUnitAsyncStorage:function(){return o.workUnitAsyncStorageInstance}});let o=i(48877),a=i(79782);function s(r){throw Object.defineProperty(Error(`\`${r}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function u(){throw Object.defineProperty(new a.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function c(r){switch(r.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":case"prerender-ppr":return r.resumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return r}}function l(r){}function d(r){return!1}function f(r){}function p(r,n){if(r.isDraftMode)switch(n.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return n.draftMode}}function h(r){switch(r.type){case"request":case"prerender-runtime":case"prerender":return r.stagedRendering??null;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return r}}function y(r){switch(r.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return r.cacheSignal;case"request":if(r.cacheSignal)return r.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return r}}function g(r){switch(r.type){case"prerender":case"prerender-runtime":case"request":return r.varyParamsAccumulator??null;default:return null}}},4546:(r,n)=>{"use strict";var i;i={value:!0},Object.defineProperty(n,"I",{enumerable:!0,get:function(){return o}});let o="u"<typeof URLPattern?void 0:URLPattern},4677:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{HeadersAdapter:function(){return c},ReadonlyHeadersError:function(){return a}});
1let o=i(6986);class a extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1176",enumerable:!1,configurable:!0})}static callable(){throw new a}}function s(r,n){return{get:r.get.bind(r),has:r.has.bind(r),getSetCookie:r.getSetCookie.bind(r),keys:r.keys.bind(r),values:r.values.bind(r),entries:r.entries.bind(r),[Symbol.iterator]:r[Symbol.iterator].bind(r),forEach(i,o){for(let[a,s]of r.entries())i.call(o,s,a,n)}}}function u(r,n,i){function*o(){for(let n of r.entries())i(n[0])||(yield n)}return{entries:o,[Symbol.iterator]:o,get:n=>i(n)?null:r.get(n),has:n=>!i(n)&&r.has(n),getSetCookie:()=>i("set-cookie")?[]:r.getSetCookie(),*keys(){for(let n of r.keys())i(n)||(yield n)},*values(){for(let[,r]of o())yield r},forEach(r,i){for(let[a,s]of o())r.call(i,s,a,n)}}}class c extends Headers{constructor(r){super(),this.headers=new Proxy(r,{get(n,i,a){if("symbol"==typeof i)return o.ReflectAdapter.get(n,i,a);let s=i.toLowerCase(),u=Object.keys(r).find(r=>r.toLowerCase()===s);if(void 0!==u)return o.ReflectAdapter.get(n,u,a)},set(n,i,a,s){if("symbol"==typeof i)return o.ReflectAdapter.set(n,i,a,s);let u=i.toLowerCase(),c=Object.keys(r).find(r=>r.toLowerCase()===u);return o.ReflectAdapter.set(n,c??i,a,s)},has(n,i){if("symbol"==typeof i)return o.ReflectAdapter.has(n,i);let a=i.toLowerCase(),s=Object.keys(r).find(r=>r.toLowerCase()===a);return void 0!==s&&o.ReflectAdapter.has(n,s)}
1,deleteProperty(n,i){if("symbol"==typeof i)return o.ReflectAdapter.deleteProperty(n,i);let a=i.toLowerCase(),s=Object.keys(r).find(r=>r.toLowerCase()===a);return void 0===s||o.ReflectAdapter.deleteProperty(n,s)}})}static seal(r,n){let i,c=n&&n.size>0?r=>n.has(r.toLowerCase()):null,l=new Proxy(r,{get(r,n,s){switch(n){case"append":case"delete":case"set":return a.callable;case Symbol.iterator:return i[Symbol.iterator];case"get":case"has":case"getSetCookie":case"keys":case"values":case"entries":case"forEach":return i[n];default:return o.ReflectAdapter.get(r,n,s)}}});return i=c?u(r,l,c):s(r,l),l}static fresh(r){return new Proxy(r,{get:(r,n,i)=>o.ReflectAdapter.get(r,n,i)})}merge(r){return Array.isArray(r)?r.join(", "):r}static from(r){return r instanceof Headers?r:new c(r)}append(r,n){let i=this.headers[r];"string"==typeof i?this.headers[r]=[i,n]:Array.isArray(i)?i.push(n):this.headers[r]=n}delete(r){delete this.headers[r]}get(r){let n=this.headers[r];return void 0!==n?this.merge(n):null}has(r){return void 0!==this.headers[r]}set(r,n){this.headers[r]=n}forEach(r,n){for(let[i,o]of this.entries())r.call(n,o,i,this)}*entries(){for(let r of Object.keys(this.headers)){let n=r.toLowerCase(),i=this.get(n);yield[n,i]}}*keys(){for(let r of Object.keys(this.headers)){let n=r.toLowerCase();yield n}}*values(){for(let r of Object.keys(this.headers)){let n=this.get(r);yield n}}[Symbol.iterator](){return this.entries()}}},4877:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Credentials=void 0;let o=i(62789),a=i(77005),s=i(68809),u=i(45547),c=i(58130),l=i(49291),d=i(51383);class f{static init(r,n=o.default){return new f(r.credentials,n,r.telemetry,r.baseOptions)}constructor(r,n=o.default,i,a){this.authConfig=r,this.axios=n,this.telemetryConfig=i,this.baseOptions=a,this.initConfig(),this.isValid()}initConfig(){switch(this.authConfig?.method){case c.CredentialsMethod.ApiToken:this.authConfig.config&&(this.authConfig.config.headerName||(this.authConfig.config.headerName="Authorization"),this.authConfig.config.headerValuePrefix||(this.authConfig.config.headerValuePrefix="Bearer"));case c.CredentialsMethod.None:}}isValid(){let{authConfig:r}=this;switch(r?.method){case c.CredentialsMethod.None:break;case c.CredentialsMethod.ApiToken:(0,a.assertParamExists)("Credentials","config.token",r.config?.token),(0,a.assertParamExists)("Credentials","config.headerName",r.config?.headerName),(0,a.assertParamExists)("Credentials","config.headerName",r.config?.headerName);break;case c.CredentialsMethod.ClientCredentials:if((0,a.assertParamExists)("Credentials","config.clientId",r.config?.clientId),(0,a.assertParamExists)("Credentials","config.clientSecret",r.config?.clientSecret),(0,a.assertParamExists)("Credentials","config.apiTokenIssuer",r.config?.apiTokenIssuer),(0,a.assertParamExists)("Credentials","config.apiAudience",r.config?.apiAudience),!(0,a.isWellFormedUriString)(`https://${r.config?.apiTokenIssuer}`))throw new s.FgaValidationError(`Configuration.apiTokenIssuer does not form a valid URI (https://${r.config?.apiTokenIssuer})`)}}async getAccessTokenHeader(){let r=await this.getAccessTokenValue();switch(this.authConfig?.method){case c.CredentialsMethod.None:return;case c.CredentialsMethod.ApiToken:return{name:this.authConfig.config.headerName,value:`${this.authConfig.config.headerValuePrefix?`${this.authConfig.config.headerValuePrefix} `:""}${r}`};case c.CredentialsMethod.ClientCredentials:return{name:"Authorization",value:`Bearer ${r}`}}}async getAccessTokenValue(){switch(this.authConfig?.method){case c.CredentialsMethod.None:return;case c.CredentialsMethod.ApiToken:return this.authConfig.config.token;case c.CredentialsMethod.ClientCredentials:if(this.accessToken&&(!this.accessTokenExpiryDate||this.accessTokenExpiryDate>new Date))return this.accessToken;return this.refreshAccessToken()}}async refreshAccessToken(){let r=this.authConfig?.config,n=`https://${r.apiTokenIssuer}/oauth/token`;try{let i=await (0,u.attemptHttpRequest)({url:n,method:"POST",data:{client_id:r.clientId,client_secret:r.clientSecret,audience:r.apiAudience,grant_type:"client_credentials"},headers:{"Content-Type":"application/x-www-form-urlencoded"}},{maxRetry:3,minWaitInMs:100},this.axios),o=i?.response;
1if(o&&(this.accessToken=o.data.access_token,this.accessTokenExpiryDate=new Date(Date.now()+1e3*o.data.expires_in)),this.telemetryConfig?.metrics?.counterCredentialsRequest?.attributes){let a={};a=l.TelemetryAttributes.fromRequest({userAgent:this.baseOptions?.headers["User-Agent"],fgaMethod:"TokenExchange",url:n,resendCount:i?.retries,httpMethod:"POST",credentials:r,start:performance.now(),attributes:a}),a=l.TelemetryAttributes.fromResponse({response:o,attributes:a}),a=l.TelemetryAttributes.prepare(a,this.telemetryConfig.metrics?.counterCredentialsRequest?.attributes),this.telemetryConfig.recorder.counter(d.TelemetryCounters.credentialsRequest,1,a)}return this.accessToken}catch(n){throw n instanceof s.FgaApiError&&(n.constructor=s.FgaApiAuthenticationError,n.name="FgaApiAuthenticationError",n.clientId=r.clientId,n.audience=r.apiAudience,n.grantType="client_credentials"),n}}}n.Credentials=f},6986:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ReflectAdapter",{enumerable:!0,get:function(){return i}});
1class i{static get(r,n,i){let o=Reflect.get(r,n,i);return"function"==typeof o?o.bind(r):o}static set(r,n,i,o){return Reflect.set(r,n,i,o)}static has(r,n){return Reflect.has(r,n)}static deleteProperty(r,n){return Reflect.deleteProperty(r,n)}}},7188:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{MutableRequestCookiesAdapter:function(){return h},ReadonlyRequestCookiesError:function(){return c},RequestCookiesAdapter:function(){return l},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return y},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return b}});let o=i(95019),a=i(6986),s=i(21989),u=i(57675);class c extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1180",enumerable:!1,configurable:!0})}static callable(){throw new c}}class l{static seal(r){return new Proxy(r,{get(r,n,i){switch(n){case"clear":case"delete":case"set":return c.callable;default:return a.ReflectAdapter.get(r,n,i)}}})}static fresh(r){return new Proxy(r,{get:(r,n,i)=>a.ReflectAdapter.get(r,n,i)})}}let d=Symbol.for("next.mutated.cookies");function f(r){let n=r[d];return n&&Array.isArray(n)&&0!==n.length?n:[]}function p(r,n){let i=f(n);if(0===i.length)return!1;let a=new o.ResponseCookies(r),s=a.getAll();for(let r of i)a.set(r);for(let r of s)a.set(r);return!0}class h{static wrap(r,n){let i=new o.ResponseCookies(new Headers);for(let n of r.getAll())i.set(n);let c=[],l=new Set,f=()=>{let r=s.workAsyncStorage.getStore();if(r&&(r.pathWasRevalidated=u.ActionDidRevalidateStaticAndDynamic),c=i.getAll().filter(r=>l.has(r.name)),n){let r=[];for(let n of c){let i=new o.ResponseCookies(new Headers);i.set(n),r.push(i.toString())}n(r)}},p=new Proxy(i,{get(r,n,i){switch(n){case d:return c;case"delete":return function(...n){l.add("string"==typeof n[0]?n[0]:n[0].name);try{return r.delete(...n),p}finally{f()}};case"set":return function(...n){l.add("string"==typeof n[0]?n[0]:n[0].name);try{return r.set(...n),p}finally{f()}};default:return a.ReflectAdapter.get(r,n,i)}}});return p}}function y(r){let n=new Proxy(r.mutableCookies,{get(i,o,s){switch(o){case"delete":return function(...o){return m(r,"cookies().delete"),i.delete(...o),n};case"set":return function(...o){return m(r,"cookies().set"),i.set(...o),n};default:return a.ReflectAdapter.get(i,o,s)}}});return n}function g(r){return"action"===r.phase}function m(r,n){if(!g(r))throw new c}function b(r){let n=new o.RequestCookies(new Headers);for(let i of r.getAll())n.set(i);return n}},7897:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return o}});let o=(0,i(76840).createAsyncLocalStorage)()},10643:(r,n,i)=>{"use strict";i.d(n,{l:()=>o});class o extends Error{constructor(r){super(r),this.name="AbortError"}}},13537:(r,n,i)=>{r.exports.cookies=i(52348).cookies,r.exports.headers=i(98693).headers,i(69720)},18504:(r,n,i)=>{"use strict";i.d(n,{l:()=>o});class o extends Error{constructor(r){super(r),this.name="AbortError"}}},19831:(r,n,i)=>{"use strict";i.d(n,{r:()=>u});var o=i(79384),a=i(99634);let s="logPolicy";function u(r={}){let n=r.logger??o.v.info,i=new a.I({additionalAllowedHeaderNames:r.additionalAllowedHeaderNames,additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});return{name:s,async sendRequest(r,o){if(!n.enabled)return o(r);n(`Request: ${i.sanitize(r)}`);let a=await o(r);return n(`Response status code: ${a.status}`),n(`Headers: ${i.sanitize(a.headers)}`),a}}}},20050:(r,n,i)=>{"use strict";i.d(n,{KV:()=>a});let o=(0,i(33325).MX)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});function a(r){return o.createClientLogger(r)}o.logger},21989:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return o.workAsyncStorageInstance}});let o=i(24502)},23219:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return d}});let o=s(i(36439));function a(r){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(a=function(r){return r?i:n})(r)}function s(r,n){if(!n&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var i=a(n);if(i&&i.has(r))return i.get(r);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if("default"!==u&&Object.prototype.hasOwnProperty.call(r,u)){var c=s?Object.getOwnPropertyDescriptor(r,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=r[u]}return o.default=r,i&&i.set(r,o),o}let u={current:null},c="function"==typeof o.cache?o.cache:r=>r,l=console.warn;function d(r){return function(...n){l(r(...n))}}c(r=>{try{l(u.current)}finally{u.current=null}})},23873:(r,n,i)=>{"use strict";function o(r){return{id:"auth0",name:"Auth0",type:"oidc",style:{text:"#fff",bg:"#EB5424"},options:r}}i.d(n,{A:()=>o})},24502:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return o}});let o=(0,i(76840).createAsyncLocalStorage)()},24674:(r,n,i)=>{"use strict";var o,a,s=i(49914);Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{DynamicHoleKind:function(){return ec},Postpone:function(){return D},PreludeState:function(){return eg},abortAndThrowOnSynchronousRequestDataAccess:function(){return I}
1,abortOnSynchronousPlatformIOAccess:function(){return j},accessedDynamicData:function(){return F},annotateDynamicAccess:function(){return G},consumeDynamicAccess:function(){return H},createDynamicTrackingState:function(){return R},createDynamicValidationState:function(){return A},createHangingInputAbortSignal:function(){return K},createInstantValidationState:function(){return el},createRenderInBrowserAbortSignal:function(){return V},formatDynamicAPIAccesses:function(){return W},getFirstDynamicReason:function(){return O},getNavigationDisallowedDynamicReasons:function(){return e_},getStaticShellDisallowedDynamicReasons:function(){return ev},isDynamicPostpone:function(){return M},isPrerenderInterruptedError:function(){return B},logDisallowedDynamicError:function(){return em},markCurrentScopeAsDynamic:function(){return x},postponeWithTracking:function(){return U},throwIfDisallowedDynamic:function(){return ew},throwIfSyncIOUsed:function(){return eb},throwToInterruptStaticGeneration:function(){return T},trackAllowedDynamicAccess:function(){return eu},trackDynamicDataInDynamicRender:function(){return P},trackDynamicHoleInNavigation:function(){return ed},trackDynamicHoleInRuntimeShell:function(){return ep},trackDynamicHoleInStaticShell:function(){return eh},trackThrownErrorInNavigation:function(){return ef},useDynamicRouteParams:function(){return X},useDynamicSearchParams:function(){return Y}});let u=E(i(36439)),c=i(2344),l=i(70588),d=i(3330),f=i(21989),p=i(53665),h=i(36558),y=i(37826),g=i(429),m=i(40520),b=i(8634),w=i(67332),v=i(65934),_=i(51735);function E(r){return r&&r.__esModule?r:{default:r}}let S="function"==typeof u.default.unstable_postpone;function R(r){return{isDebugDynamicAccesses:r,dynamicAccesses:[],syncDynamicErrorWithStack:null,syncDynamicErrorWithStackPostMicrotask:!1}}function A(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function k(r){return r.syncDynamicErrorWithStackPostMicrotask?null:r.syncDynamicErrorWithStack}function O(r){var n;return null==(n=r.dynamicAccesses[0])?void 0:n.expression}function x(r,n,i){if(n)switch(n.type){case"cache":case"unstable-cache":case"private-cache":return}if(!r.forceDynamic&&!r.forceStatic){if(r.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${i}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(n)switch(n.type){case"prerender-ppr":return U(r.route,i,n.dynamicTracking);case"prerender-legacy":n.revalidate=0;let o=Object.defineProperty(new c.DynamicServerError(`Route ${r.route} couldn't be rendered statically because it used ${i}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw r.dynamicUsageDescription=i,r.dynamicUsageStack=o.stack,o}}}function T(r,n,i){let o=Object.defineProperty(new c.DynamicServerError(`Route ${n.route} couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw i.revalidate=0,n.dynamicUsageDescription=r,n.dynamicUsageStack=o.stack,o}function P(r){switch(r.type){case"cache":case"unstable-cache":case"private-cache":return}}function C(r,n,i){let o=q(`Route ${r} needs to bail out of prerendering at this point because it used ${n}.`);i.controller.abort(o);let a=i.dynamicTracking;a&&a.dynamicAccesses.push({stack:a.isDebugDynamicAccesses?Error().stack:void 0,expression:n})}function j(r,n,i,o){let a=o.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=i,queueMicrotask(()=>{a.syncDynamicErrorWithStackPostMicrotask=!0})),C(r,n,o)}function I(r,n,i,o){if((0,p.trackRuntimeDataAccessed)(o),!1===o.controller.signal.aborted){C(r,n,o);let a=o.dynamicTracking;a&&null===a.syncDynamicErrorWithStack&&(a.syncDynamicErrorWithStack=i)}throw q(`Route ${r} needs to bail out of prerendering at this point because it used ${n}.`)}function D({reason:r,route:n}){let i=d.workUnitAsyncStorage.getStore();U(n,r,i&&"prerender-ppr"===i.type?i.dynamicTracking:null)}function U(r,n,i){z(),i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:n}),u.default.unstable_postpone(N(r,n))}function N(r,n){return`Route ${r} needs to bail out of prerendering at this point because it used ${n}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function M(r){return"object"==typeof r&&null!==r&&"string"==typeof r.message&&L(r.message)}function L(r){return r.includes("needs to bail out of prerendering at this point because it used")&&r.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===L(N("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,
1configurable:!0});let $="NEXT_PRERENDER_INTERRUPTED";function q(r){let n=Object.defineProperty(Error(r),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.digest=$,n}function B(r){return"object"==typeof r&&null!==r&&r.digest===$&&"name"in r&&"message"in r&&r instanceof Error}function F(r){return r.length>0}function H(r,n){return r.dynamicAccesses.push(...n.dynamicAccesses),r.dynamicAccesses}function W(r){return r.filter(r=>"string"==typeof r.stack&&r.stack.length>0).map(({expression:r,stack:n})=>(n=n.split("\n").slice(4).filter(r=>!(r.includes("node_modules/next/")||r.includes(" (<anonymous>)")||r.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${r}:
2${n}`))}function z(){if(!S)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function V(){let r=new AbortController;return r.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),r.signal}function K(r){switch(r.type){case"prerender":case"prerender-runtime":let n=new AbortController;if(r.cacheSignal)r.cacheSignal.inputReady().then(()=>{n.abort()});else{let i=(0,d.getStagedRenderingController)(r);i&&null!==i.finalStage?i.waitForStage(i.finalStage).then(()=>(0,y.scheduleOnNextTick)(()=>n.abort()),J):(0,y.scheduleOnNextTick)(()=>n.abort())}return n.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function J(){}function G(r,n){let i=n.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:r})}function X(r){let n=f.workAsyncStorage.getStore(),i=d.workUnitAsyncStorage.getStore();if(n&&i)switch(i.type){case"prerender-client":{let o=i.fallbackRouteParams;o&&o.size>0&&u.default.use((0,p.makeClientHookHangingPromise)(i.renderSignal,new p.ClientHookDynamicError(n.route,r)));break}case"prerender":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called from a Server Component. Next.js should be preventing ${r} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"prerender-ppr":{let o=i.fallbackRouteParams;if(o&&o.size>0)return U(n.route,r,i.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called during a runtime prerender. Next.js should be preventing ${r} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called inside a cache scope. Next.js should be preventing ${r} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called in \`generateStaticParams\`. Next.js should be preventing ${r} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function Y(r){let n=f.workAsyncStorage.getStore(),i=d.workUnitAsyncStorage.getStore();if(n)switch(!i&&(0,d.throwForMissingRequestStore)(r),i.type){case"validation-client":case"request":return;case"prerender-client":u.default.use((0,p.makeClientHookHangingPromise)(i.renderSignal,new p.ClientHookDynamicError(n.route,r)));break;case"prerender-legacy":case"prerender-ppr":if(n.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(r),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called from a Server Component. Next.js should be preventing ${r} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,
2configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called inside a cache scope. Next.js should be preventing ${r} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new b.InvariantError(`\`${r}\` was called in \`generateStaticParams\`. Next.js should be preventing ${r} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let Q=/\n\s+at Suspense \(<anonymous>\)/,Z="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",ee=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${Z}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${h.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),et=RegExp(`\\n\\s+at ${h.METADATA_BOUNDARY_NAME}[\\n\\s]`),er=RegExp(`\\n\\s+at ${h.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),en=RegExp(`\\n\\s+at ${h.OUTLET_BOUNDARY_NAME}[\\n\\s]`),ei=RegExp(`\\n\\s+at ${w.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`),eo=RegExp(`\\n\\s+at ${w.INSTANT_SLOT_MARKER_PREFIX}(\\d+)${w.INSTANT_SLOT_MARKER_SUFFIX}[\\n\\s]`);function ea(r,n){let{slotStacks:i}=n;if(i.length>1){let n=eo.exec(r);if(n){let r=i[parseInt(n[1],10)+1];if(null!=r)return r}}return i[0]??null}function es(r,n){ee.test(r)&&(n.hasSuspenseAboveBody=!0)}function eu(r,n,i,o,a){let s=k(a);if(en.test(i))return void es(i,o);if(et.test(i)){o.hasDynamicMetadata=!0;return}if(er.test(i)){o.hasDynamicViewport=!0;return}if(ee.test(i)){o.hasAllowedDynamic=!0,o.hasSuspenseAboveBody=!0;return}if(Q.test(i)){o.hasAllowedDynamic=!0;return}else if(s)return void o.dynamicErrors.push(s);if((0,p.isClientHookDynamicError)(r))return void o.dynamicErrors.push(ey(r,i,null));let u=ey((0,m.createDynamicOrRuntimeBodyError)(n.route),i,null);o.dynamicErrors.push(u)}var ec=((o={})[o.Link=1]="Link",o[o.Runtime=2]="Runtime",o[o.Dynamic=3]="Dynamic",o);function el(r){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],slotStacks:r}}function ed(r,n,i,o,a,s,u){let c=k(a);if(en.test(i))return;let l=ea(i,o);if(et.test(i)){o.dynamicMetadata=ey(1===s?(0,m.createLinkMetadataError)(n.route):2===s?(0,m.createRuntimeMetadataError)(n.route):(0,m.createDynamicMetadataError)(n.route),i,l);return}if(er.test(i)){let r=ey(1===s?(0,m.createLinkViewportError)(n.route):2===s?(0,m.createRuntimeViewportError)(n.route):(0,m.createDynamicViewportError)(n.route),i,l);o.dynamicErrors.push(r);return}let d=ei.exec(i);if(d){let r=Q.exec(i);if(r&&r.index<d.index){o.hasAllowedDynamic=!0;return}}else if((0,v.allRequiredBoundariesRendered)(u)){o.hasAllowedClientDynamicAboveBoundary=!0,o.hasAllowedDynamic=!0;return}else{let r=ey(Object.defineProperty(Error(`Route "${n.route}": Could not validate \`instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1331",enumerable:!1,configurable:!0}),i,l);o.validationPreventingErrors.push(r);return}if(c){null!==l&&void 0===c.cause&&(c.cause=l()),o.dynamicErrors.push(c);return}if((0,p.isClientHookDynamicError)(r))return void o.dynamicErrors.push(ey(r,i,l));let f=ey(1===s?(0,m.createLinkBodyErrorInNavigation)(n.route):2===s?(0,m.createRuntimeBodyErrorInNavigation)(n.route):(0,m.createDynamicBodyErrorInNavigation)(n.route),i,l);o.dynamicErrors.push(f)}function ef(r,n,i,o){let a=ei.exec(o);if(a){let s=Q.exec(o);if(s&&s.index<a.index)return;let u=ey(Object.defineProperty(Error(`Route "${r.route}": Could not validate \`instant\` because an error prevented the target segment from rendering.`,{cause:i}),"__NEXT_ERROR_CODE",{value:"E1338",enumerable:!1,configurable:!0}),o,null);n.validationPreventingErrors.push(u)}else{let r=ey(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:i}
2),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),o,null);n.thrownErrorsOutsideBoundary.push(r)}}function ep(r,n,i,o,a){let s=k(a);if(en.test(i))return void es(i,o);if(et.test(i)){o.dynamicMetadata=ey((0,m.createDynamicMetadataError)(n.route),i,null);return}if(er.test(i)){let r=ey((0,m.createDynamicViewportError)(n.route),i,null);o.dynamicErrors.push(r);return}if(ee.test(i)){o.hasAllowedDynamic=!0,o.hasSuspenseAboveBody=!0;return}if(Q.test(i)){o.hasAllowedDynamic=!0;return}else if(s)return void o.dynamicErrors.push(s);if((0,p.isClientHookDynamicError)(r))return void o.dynamicErrors.push(ey(r,i,null));let u=ey((0,m.createDynamicBodyError)(n.route),i,null);o.dynamicErrors.push(u)}function eh(r,n,i,o,a){let s=k(a);if(en.test(i))return void es(i,o);if(et.test(i)){o.dynamicMetadata=ey((0,m.createRuntimeMetadataError)(n.route),i,null);return}if(er.test(i)){let r=ey((0,m.createRuntimeViewportError)(n.route),i,null);o.dynamicErrors.push(r);return}if(ee.test(i)){o.hasAllowedDynamic=!0,o.hasSuspenseAboveBody=!0;return}if(Q.test(i)){o.hasAllowedDynamic=!0;return}else if(s)return void o.dynamicErrors.push(s);if((0,p.isClientHookDynamicError)(r))return void o.dynamicErrors.push(ey(r,i,null));let u=ey((0,m.createRuntimeBodyError)(n.route),i,null);o.dynamicErrors.push(u)}function ey(r,n,i){let o=null;return null!==i&&(r.cause=i()),r.stack=r.name+": "+r.message+(o||n),r}var eg=((a={})[a.Full=0]="Full",a[a.Empty=1]="Empty",a[a.Errored=2]="Errored",a);function em(r,n){console.error(n),(0,m.logBuildDebugHint)(r.route)}function eb(r,n){if(n.syncDynamicErrorWithStack)throw em(r,n.syncDynamicErrorWithStack),new l.StaticGenBailoutError}function ew(r,n,i,o,a){if(eb(r,o),0===n&&!1===i.hasAllowedDynamic&&i.hasDynamicMetadata)throw console.error((0,m.createDynamicOrRuntimeMetadataError)(r.route).message),new l.StaticGenBailoutError;if(!a&&!i.hasSuspenseAboveBody&&0!==n){let o=i.dynamicErrors;if(o.length>0){for(let n=0;n<o.length;n++)em(r,o[n]);throw new l.StaticGenBailoutError}if(i.hasDynamicViewport)throw console.error((0,m.createDynamicOrRuntimeViewportError)(r.route).message),new l.StaticGenBailoutError;if(1===n)throw console.error(`Route "${r.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new l.StaticGenBailoutError}}function ev(r,n,i,o){if(0===n&&!1===i.hasAllowedDynamic&&0===i.dynamicErrors.length&&i.dynamicMetadata)return[i.dynamicMetadata];if(o||i.hasSuspenseAboveBody)return[];if(0!==n){let o=i.dynamicErrors;if(o.length>0)return o;if(1===n)return[Object.defineProperty(new b.InvariantError(`Route "${r.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}return[]}function e_(r,n,i,o,a,u){if(o){let{missingSampleErrors:r}=o;if(r.length>0)return r}let{validationPreventingErrors:c}=i;if(c.length>0)return c;if(0!==n){let o=i.dynamicErrors;if(o.length>0)return o;if(1===n&&!i.hasAllowedClientDynamicAboveBoundary&&(0,v.allRequiredBoundariesRendered)(a))return Object.defineProperty(new b.InvariantError(`Route "${r.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})}else{let r=i.dynamicErrors;if(r.length>0)return r;if(!1===i.hasAllowedDynamic&&i.dynamicMetadata)return[i.dynamicMetadata]}if(!(0,v.allRequiredBoundariesRendered)(a)){let{thrownErrorsOutsideBoundary:n}=i,o=i.slotStacks[0];if(0===n.length){let n=[];for(let[r,i]of a.requiredIds)if(!a.renderedIds.has(r))for(let r of i){let i=r.replace(/^\[project\][\\/]?/,"").replace(s.cwd()+"/","").replace(s.cwd()+"\\","");n.push(i)}return n.sort(),(0,_.createUnrenderedSegmentError)(r.route,n)}if(1===n.length){let i=`Route "${r.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to the following error.`,a=null!==o?o():Error();return a.name="Error",a.message=i,AggregateError([a,n[0]])}{let i=`Route "${r.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,a=null!==o?o():Error();return a.name="Error",a.message=i,AggregateError([a,...n])}}return[]}},24930:r=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(r,s,u,c)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of o(s))a.call(r,l)||l===u||n(r,l,{get:()=>s[l],enumerable:!(c=i(s,l))||c.enumerable});return r},u=r=>s(n({},"__esModule",{value:!0}),r),c={};function l(r){var n;let i=["path"in r&&r.path&&`Path=${r.path}`,"expires"in r&&(r.expires||0===r.expires)&&`Expires=${("number"==typeof r.expires?new Date(r.expires):r.expires).toUTCString()}`,"maxAge"in r&&"number"==typeof r.maxAge&&`Max-Age=${r.maxAge}`,"domain"in r&&r.domain&&`Domain=${r.domain}`,"secure"in r&&r.secure&&"Secure","httpOnly"in r&&r.httpOnly&&"HttpOnly","sameSite"in r&&r.sameSite&&`SameSite=${r.sameSite}`,"partitioned"in r&&r.partitioned&&"Partitioned","priority"in r&&r.priority&&`Priority=${r.priority}
2`].filter(Boolean),o=`${r.name}=${encodeURIComponent(null!=(n=r.value)?n:"")}`;return 0===i.length?o:`${o}; ${i.join("; ")}`}function d(r){let n=new Map;for(let i of r.split(/; */)){if(!i)continue;let r=i.indexOf("=");if(-1===r){n.set(i,"true");continue}let[o,a]=[i.slice(0,r),i.slice(r+1)];try{n.set(o,decodeURIComponent(null!=a?a:"true"))}catch{}}return n}function f(r){if(!r)return;let[[n,i],...o]=d(r),{domain:a,expires:s,httponly:u,maxage:c,path:l,samesite:f,secure:h,partitioned:g,priority:b}=Object.fromEntries(o.map(([r,n])=>[r.toLowerCase().replace(/-/g,""),n]));return p({name:n,value:decodeURIComponent(i),domain:a,...s&&{expires:new Date(s)},...u&&{httpOnly:!0},..."string"==typeof c&&{maxAge:Number(c)},path:l,...f&&{sameSite:y(f)},...h&&{secure:!0},...b&&{priority:m(b)},...g&&{partitioned:!0}})}function p(r){let n={};for(let i in r)r[i]&&(n[i]=r[i]);return n}((r,i)=>{for(var o in i)n(r,o,{get:i[o],enumerable:!0})})(c,{RequestCookies:()=>w,ResponseCookies:()=>v,parseCookie:()=>d,parseSetCookie:()=>f,stringifyCookie:()=>l}),r.exports=u(c);var h=["strict","lax","none"];function y(r){return r=r.toLowerCase(),h.includes(r)?r:void 0}var g=["low","medium","high"];function m(r){return r=r.toLowerCase(),g.includes(r)?r:void 0}function b(r){if(!r)return[];var n,i,o,a,s,u=[],c=0;function l(){for(;c<r.length&&/\s/.test(r.charAt(c));)c+=1;return c<r.length}function d(){return"="!==(i=r.charAt(c))&&";"!==i&&","!==i}for(;c<r.length;){for(n=c,s=!1;l();)if(","===(i=r.charAt(c))){for(o=c,c+=1,l(),a=c;c<r.length&&d();)c+=1;c<r.length&&"="===r.charAt(c)?(s=!0,c=a,u.push(r.substring(n,o)),n=c):c=o+1}else c+=1;(!s||c>=r.length)&&u.push(r.substring(n,r.length))}return u}var w=class{constructor(r){this._parsed=new Map,this._headers=r;const n=r.get("cookie");if(n)for(const[r,i]of d(n))this._parsed.set(r,{name:r,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...r){let n="string"==typeof r[0]?r[0]:r[0].name;return this._parsed.get(n)}getAll(...r){var n;let i=Array.from(this._parsed);if(!r.length)return i.map(([r,n])=>n);let o="string"==typeof r[0]?r[0]:null==(n=r[0])?void 0:n.name;return i.filter(([r])=>r===o).map(([r,n])=>n)}has(r){return this._parsed.has(r)}set(...r){let[n,i]=1===r.length?[r[0].name,r[0].value]:r,o=this._parsed;return o.set(n,{name:n,value:i}),this._headers.set("cookie",Array.from(o).map(([r,n])=>l(n)).join("; ")),this}delete(r){let n=this._parsed,i=Array.isArray(r)?r.map(r=>n.delete(r)):n.delete(r);return this._headers.set("cookie",Array.from(n).map(([r,n])=>l(n)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(r=>`${r.name}=${encodeURIComponent(r.value)}`).join("; ")}},v=class{constructor(r){var n,i,o;this._parsed=new Map,this._headers=r;const a=null!=(o=null!=(i=null==(n=r.getSetCookie)?void 0:n.call(r))?i:r.get("set-cookie"))?o:[];for(const r of Array.isArray(a)?a:b(a)){const n=f(r);n&&this._parsed.set(n.name,n)}}get(...r){let n="string"==typeof r[0]?r[0]:r[0].name;return this._parsed.get(n)}getAll(...r){var n;let i=Array.from(this._parsed.values());if(!r.length)return i;let o="string"==typeof r[0]?r[0]:null==(n=r[0])?void 0:n.name;return i.filter(r=>r.name===o)}has(r){return this._parsed.has(r)}set(...r){let[n,i,o]=1===r.length?[r[0].name,r[0].value,r[0]]:r,a=this._parsed;return a.set(n,E({name:n,value:i,...o})),_(a,this._headers),this}delete(...r){let[n,i]="string"==typeof r[0]?[r[0]]:[r[0].name,r[0]];return this.set({...i,name:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(l).join("; ")}};function _(r,n){for(let[,i]of(n.delete("set-cookie"),r)){let r=l(i);n.append("set-cookie",r)}}function E(r={name:"",value:""}){return"number"==typeof r.expires&&(r.expires=new Date(r.expires)),r.maxAge&&(r.expires=new Date(Date.now()+1e3*r.maxAge)),(null===r.path||void 0===r.path)&&(r.path="/"),r}},25127:(r,n,i)=>{"use strict";i.d(n,{J:()=>_,u:()=>m});var o=i(71971),a=i(93073),s=i(81998);function u(r){return new Response(r).blob()}async function c(r){if(r instanceof Blob||r instanceof Uint8Array)return r;if((0,a.xU)(r))return u(r);throw Error("Unsupported source type. Only Blob, Uint8Array, and ReadableStream are supported in browser.")}function l(r){return"resize"in r.buffer?r:r.map(r=>r)}async function d(r){let n=[];for(let i of r){let r=await c("function"==typeof i?i():i);r instanceof Blob?n.push(r):n.push(new Blob([l(r)]))}return new Blob(n)}
2function f(){return`----AzSDKFormBoundary${(0,s.N)()}`}function p(r){let n="";for(let[i,o]of r)n+=`${i}: ${o}\r
3`;return n}function h(r){return r instanceof Uint8Array?r.byteLength:(0,a.qf)(r)?-1===r.size?void 0:r.size:void 0}function y(r){let n=0;for(let i of r){let r=h(i);if(void 0===r)return;n+=r}return n}async function g(r,n,i){let a=[(0,o.Al)(`--${i}`,"utf-8"),...n.flatMap(r=>[(0,o.Al)("\r\n","utf-8"),(0,o.Al)(p(r.headers),"utf-8"),(0,o.Al)("\r\n","utf-8"),r.body,(0,o.Al)(`\r
4--${i}`,"utf-8")]),(0,o.Al)("--\r\n\r\n","utf-8")],s=y(a);s&&r.headers.set("Content-Length",s),r.body=await d(a)}let m="multipartPolicy",b=70,w=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function v(r){if(r.length>b)throw Error(`Multipart boundary "${r}" exceeds maximum length of 70 characters`);if(Array.from(r).some(r=>!w.has(r)))throw Error(`Multipart boundary "${r}" contains invalid characters`)}function _(){return{name:m,async sendRequest(r,n){if(!r.multipartBody)return n(r);if(r.body)throw Error("multipartBody and regular body cannot be set at the same time");let i=r.multipartBody.boundary,o=r.headers.get("Content-Type")??"multipart/mixed",a=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!a)throw Error(`Got multipart request body, but content-type header was not multipart: ${o}`);let[,s,u]=a;if(u&&i&&u!==i)throw Error(`Multipart boundary was specified as ${u} in the header, but got ${i} in the request body`);return(i??=u)?v(i):i=f(),r.headers.set("Content-Type",`${s}; boundary=${i}`),await g(r,r.multipartBody.parts,i),r.multipartBody=void 0,n(r)}}}},25425:(r,n)=>{"use strict";function i(){let r,n,i=new Promise((i,o)=>{r=i,n=o});return{resolve:r,reject:n,promise:i}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"createPromiseWithResolvers",{enumerable:!0,get:function(){return i}})},27146:r=>{var n="/";!function(){"use strict";var i={294:function(r){var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(r,n,i){return Function.prototype.apply.call(r,n,i)};function a(r){console&&console.warn&&console.warn(r)}n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:function(r){return Object.getOwnPropertyNames(r)};var s=Number.isNaN||function(r){return r!=r};function u(){u.init.call(this)}r.exports=u,r.exports.once=v,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(r){if("function"!=typeof r)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}function d(r){return void 0===r._maxListeners?u.defaultMaxListeners:r._maxListeners}function f(r,n,i,o){if(l(i),void 0===(u=r._events)?(u=r._events=Object.create(null),r._eventsCount=0):(void 0!==u.newListener&&(r.emit("newListener",n,i.listener?i.listener:i),u=r._events),c=u[n]),void 0===c)c=u[n]=i,++r._eventsCount;else if("function"==typeof c?c=u[n]=o?[i,c]:[c,i]:o?c.unshift(i):c.push(i),(s=d(r))>0&&c.length>s&&!c.warned){c.warned=!0;var s,u,c,f=Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=r,f.type=n,f.count=c.length,a(f)}return r}function p(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(r,n,i){var o={fired:!1,wrapFn:void 0,target:r,type:n,listener:i},a=p.bind(o);return a.listener=i,o.wrapFn=a,a}function y(r,n,i){var o=r._events;if(void 0===o)return[];var a=o[n];return void 0===a?[]:"function"==typeof a?i?[a.listener||a]:[a]:i?w(a):m(a,a.length)}function g(r){var n=this._events;if(void 0!==n){var i=n[r];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function m(r,n){for(var i=Array(n),o=0;o<n;++o)i[o]=r[o];return i}function b(r,n){for(;n+1<r.length;n++)r[n]=r[n+1];r.pop()}function w(r){for(var n=Array(r.length),i=0;i<n.length;++i)n[i]=r[i].listener||r[i];return n}function v(r,n){return new Promise(function(i,o){function a(i){r.removeListener(n,s),o(i)}function s(){"function"==typeof r.removeListener&&r.removeListener("error",a),i([].slice.call(arguments))}E(r,n,s,{once:!0}),"error"!==n&&_(r,a,{once:!0})})}function _(r,n,i){"function"==typeof r.on&&E(r,"error",n,i)}function E(r,n,i,o){if("function"==typeof r.on)o.once?r.once(n,i):r.on(n,i);else if("function"==typeof r.addEventListener)r.addEventListener(n,function a(s){o.once&&r.removeEventListener(n,a),i(s)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(r){if("number"!=typeof r||r<0||s(r))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");c=r}}),u.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(r){if("number"!=typeof r||r<0||s(r))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this},u.prototype.getMaxListeners=function(){return d(this)},u.prototype.emit=function(r){for(var n=[],i=1;i<arguments.length;i++)n.push(arguments[i]);var a="error"===r,s=this._events;if(void 0!==s)a=a&&void 0===s.error;else if(!a)return!1;if(a){if(n.length>0&&(u=n[0]),u instanceof Error)throw u;var u,c=Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var l=s[r];if(void 0===l)return!1;if("function"==typeof l)o(l,this,n);else for(var d=l.length,f=m(l,d),i=0;i<d;++i)o(f[i],this,n);return!0},u.prototype.addListener=function(r,n){return f(this,r,n,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(r,n){return f(this,r,n,!0)},u.prototype.once=function(r,n){return l(n),this.on(r,h(this,r,n)),this},u.prototype.prependOnceListener=function(r,n){return l(n),this.prependListener(r,h(this,r,n)),this},u.prototype.removeListener=function(r,n){var i,o,a,s,u;if(l(n),void 0===(o=this._events)||void 0===(i=o[r]))return this;if(i===n||i.listener===n)0==--this._eventsCount?this._events=Object.create(null):(delete o[r],o.removeListener&&this.emit
4("removeListener",r,i.listener||n));else if("function"!=typeof i){for(a=-1,s=i.length-1;s>=0;s--)if(i[s]===n||i[s].listener===n){u=i[s].listener,a=s;break}if(a<0)return this;0===a?i.shift():b(i,a),1===i.length&&(o[r]=i[0]),void 0!==o.removeListener&&this.emit("removeListener",r,u||n)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(r){var n,i,o;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[r]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[r]),this;if(0==arguments.length){var a,s=Object.keys(i);for(o=0;o<s.length;++o)"removeListener"!==(a=s[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(n=i[r]))this.removeListener(r,n);else if(void 0!==n)for(o=n.length-1;o>=0;o--)this.removeListener(r,n[o]);return this},u.prototype.listeners=function(r){return y(this,r,!0)},u.prototype.rawListeners=function(r){return y(this,r,!1)},u.listenerCount=function(r,n){return"function"==typeof r.listenerCount?r.listenerCount(n):g.call(r,n)},u.prototype.listenerCount=g,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}}},o={};function a(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}},u=!0;try{i[r](s,s.exports,a),u=!1}finally{u&&delete o[r]}return s.exports}a.ab=n+"/",r.exports=a(294)}()},28603:(r,n,i)=>{"use strict";i.d(n,{M:()=>o,o:()=>a});let o="0.3.5",a=3},31849:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{INTERNALS:function(){return c},NextRequest:function(){return l}});let o=i(55917),a=i(84165),s=i(99826),u=i(95019),c=Symbol("internal request");class l extends Request{constructor(r,n={}){const i="string"!=typeof r&&"url"in r?r.url:String(r);(0,a.validateURL)(i),n.body&&"half"!==n.duplex&&(n.duplex="half"),r instanceof Request?super(r,n):super(i,n);const s=new o.NextURL(i,{headers:(0,a.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:n.nextConfig});this[c]={cookies:new u.RequestCookies(this.headers),nextUrl:s,url:s.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[c].cookies}get nextUrl(){return this[c].nextUrl}get page(){throw new s.RemovedPageError}get ua(){throw new s.RemovedUAError}get url(){return this[c].url}}},33325:(r,n,i)=>{"use strict";let o;function a(...r){if(r.length>0){let n=String(r[0]);n.includes(":error")?console.error(...r):n.includes(":warning")?console.warn(...r):n.includes(":info")?console.info(...r):(n.includes(":verbose"),console.debug(...r))}}i.d(n,{KV:()=>x,MX:()=>k});var s=i(49914);let u=void 0!==s&&s.env&&s.env.DEBUG||void 0,c=[],l=[],d=[];u&&p(u);let f=Object.assign(r=>m(r),{enable:p,enabled:h,disable:g,log:a});function p(r){for(let n of(o=r,c=[],l=[],r.split(",").map(r=>r.trim())))n.startsWith("-")?l.push(n.substring(1)):c.push(n);for(let r of d)r.enabled=h(r.namespace)}function h(r){if(r.endsWith("*"))return!0;for(let n of l)if(y(r,n))return!1;for(let n of c)if(y(r,n))return!0;return!1}function y(r,n){if(-1===n.indexOf("*"))return r===n;let i=n;if(-1!==n.indexOf("**")){let r=[],o="";for(let i of n)if("*"===i&&"*"===o)continue;else o=i,r.push(i);i=r.join("")}let o=0,a=0,s=i.length,u=r.length,c=-1,l=-1;for(;o<u&&a<s;)if("*"===i[a]){if(c=a,++a===s)return!0;for(;r[o]!==i[a];)if(++o===u)return!1;l=o,o++,a++;continue}else if(i[a]===r[o])a++,o++;else{if(!(c>=0)||(a=c+1,(o=l+1)===u))return!1;for(;r[o]!==i[a];)if(++o===u)return!1;l=o,o++,a++;continue}let d=o===r.length,f=a===i.length,p=a===i.length-1&&"*"===i[a];return d&&(f||p)}function g(){let r=o||"";return p(""),r}function m(r){let n=Object.assign(i,{enabled:h(r),destroy:b,log:f.log,namespace:r,extend:w});function i(...o){n.enabled&&(o.length>0&&(o[0]=`${r} ${o[0]}`),n.log(...o))}return d.push(n),n}function b(){let r=d.indexOf(this);return r>=0&&(d.splice(r,1),!0)}function w(r){let n=m(`${this.namespace}:${r}`);return n.log=this.log,n}let v=f;var _=i(49914);let E=["verbose","info","warning","error"],S={verbose:400,info:300,warning:200,error:100};function R(r,n){n.log=(...n)=>{r.log(...n)}}function A(r){return E.includes(r)}function k(r){let n,i=new Set,o=void 0!==_&&_.env&&_.env[r.logLevelEnvVarName]||void 0,a=v(r.namespace);function s(r){if(r&&!A(r))throw Error(`Unknown log level '${r}'. Acceptable values: ${E.join(",")}`);n=r;let o=[];for(let r of i)u(r)&&o.push(r.namespace);v.enable(o.join(","))}function u(r){return!!(n&&S[r.level]<=S[n])}function c(r,n){let o=Object.assign(r.extend(n),{level:n});if(R(r,o),u(o)){let r=v.disable();v.enable(r+","+o.namespace)}return i.add(o),o}return a.log=(...r)=>{v.log(...r)},o&&(A(o)?s(o):console.error(`${r.logLevelEnvVarName} set to unknown log level '${o}'; logging is not enabled. Acceptable values: ${E.join(", ")}.`)),{setLogLevel:s,getLogLevel:function(){return n},createClientLogger:function(r){let n=a.extend(r);return R(a,n),{error:c(n,"error"),warning:c(n,"warning"),info:c(n,"info"),verbose
4:c(n,"verbose")}},logger:a}}let O=k({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});function x(r){return O.createClientLogger(r)}O.logger},33708:(r,n,i)=>{"use strict";function o(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}i.d(n,{G:()=>o})},35748:(r,n,i)=>{"use strict";var o,a,s,u,c,l,d,f,p,h,y,g;i.r(n),i.d(n,{DiagConsoleLogger:()=>B,DiagLogLevel:()=>o,INVALID_SPANID:()=>ep,INVALID_SPAN_CONTEXT:()=>ey,INVALID_TRACEID:()=>eh,ProxyTracer:()=>eD,ProxyTracerProvider:()=>eM,ROOT_CONTEXT:()=>L,SamplingDecision:()=>u,SpanKind:()=>c,SpanStatusCode:()=>l,TraceFlags:()=>s,ValueType:()=>a,baggageEntryMetadataFromString:()=>U,context:()=>eQ,createContextKey:()=>N,createNoopMeter:()=>ea,createTraceState:()=>eY,default:()=>tu,defaultTextMapGetter:()=>es,defaultTextMapSetter:()=>eu,diag:()=>eZ,isSpanContextValid:()=>ex,isValidSpanId:()=>eO,isValidTraceId:()=>ek,metrics:()=>e8,propagation:()=>ti,trace:()=>ts});let m="1.9.1",b=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,w=function(r){let n=new Set([r]),i=new Set,o=r.match(b);if(!o)return()=>!1;let a={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};if(null!=a.prerelease)return function(n){return n===r};function s(r){return i.add(r),!1}function u(r){return n.add(r),!0}return function(r){if(n.has(r))return!0;if(i.has(r))return!1;let o=r.match(b);if(!o)return s(r);let c={major:+o[1],minor:+o[2],patch:+o[3],prerelease:o[4]};return null!=c.prerelease||a.major!==c.major?s(r):0===a.major?a.minor===c.minor&&a.patch<=c.patch?u(r):s(r):a.minor<=c.minor?u(r):s(r)}}(m),v=m.split(".")[0],_=Symbol.for(`opentelemetry.js.api.${v}`),E="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof i.g?i.g:{};function S(r,n,i,o=!1){var a;let s=E[_]=null!=(a=E[_])?a:{version:m};if(!o&&s[r]){let n=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${r}`);return i.error(n.stack||n.message),!1}if(s.version!==m){let n=Error(`@opentelemetry/api: Registration of version v${s.version} for ${r} does not match previously registered API v${m}`);return i.error(n.stack||n.message),!1}return s[r]=n,i.debug(`@opentelemetry/api: Registered a global for ${r} v${m}.`),!0}function R(r){var n,i;let o=null==(n=E[_])?void 0:n.version;if(o&&w(o))return null==(i=E[_])?void 0:i[r]}function A(r,n){n.debug(`@opentelemetry/api: Unregistering a global for ${r} v${m}.`);let i=E[_];i&&delete i[r]}class k{constructor(r){this._namespace=r.namespace||"DiagComponentLogger"}debug(...r){return O("debug",this._namespace,r)}error(...r){return O("error",this._namespace,r)}info(...r){return O("info",this._namespace,r)}warn(...r){return O("warn",this._namespace,r)}verbose(...r){return O("verbose",this._namespace,r)}}function O(r,n,i){let o=R("diag");if(o)return o[r](n,...i)}function x(r,n){function i(i,o){let a=n[i];return"function"==typeof a&&r>=o?a.bind(n):function(){}}return r<o.NONE?r=o.NONE:r>o.ALL&&(r=o.ALL),n=n||{},{error:i("error",o.ERROR),warn:i("warn",o.WARN),info:i("info",o.INFO),debug:i("debug",o.DEBUG),verbose:i("verbose",o.VERBOSE)}}(d=o||(o={}))[d.NONE=0]="NONE",d[d.ERROR=30]="ERROR",d[d.WARN=50]="WARN",d[d.INFO=60]="INFO",d[d.DEBUG=70]="DEBUG",d[d.VERBOSE=80]="VERBOSE",d[d.ALL=9999]="ALL";let T="diag";class P{static instance(){return this._instance||(this._instance=new P),this._instance}constructor(){function r(r){return function(...n){let i=R("diag");if(i)return i[r](...n)}}const n=this,i=(r,i={logLevel:o.INFO})=>{var a,s,u;if(r===n){let r=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error(null!=(a=r.stack)?a:r.message),!1}"number"==typeof i&&(i={logLevel:i});let c=R("diag"),l=x(null!=(s=i.logLevel)?s:o.INFO,r);if(c&&!i.suppressOverrideMessage){let r=null!=(u=Error().stack)?u:"<failed to generate stacktrace>";c.warn(`Current logger will be overwritten from ${r}
4`),l.warn(`Current logger will overwrite one already registered from ${r}`)}return S("diag",l,n,!0)};n.setLogger=i,n.disable=()=>{A(T,n)},n.createComponentLogger=r=>new k(r),n.verbose=r("verbose"),n.debug=r("debug"),n.info=r("info"),n.warn=r("warn"),n.error=r("error")}}class C{constructor(r){this._entries=r?new Map(r):new Map}getEntry(r){let n=this._entries.get(r);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(r,n){let i=new C(this._entries);return i._entries.set(r,n),i}removeEntry(r){let n=new C(this._entries);return n._entries.delete(r),n}removeEntries(...r){let n=new C(this._entries);for(let i of r)n._entries.delete(i);return n}clear(){return new C}}let j=Symbol("BaggageEntryMetadata"),I=P.instance();function D(r={}){return new C(new Map(Object.entries(r)))}function U(r){return"string"!=typeof r&&(I.error(`Cannot create baggage metadata from unknown type: ${typeof r}`),r=""),{__TYPE__:j,toString:()=>r}}function N(r){return Symbol.for(r)}class M{constructor(r){const n=this;n._currentContext=r?new Map(r):new Map,n.getValue=r=>n._currentContext.get(r),n.setValue=(r,i)=>{let o=new M(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=r=>{let i=new M(n._currentContext);return i._currentContext.delete(r),i}}}let L=new M,$=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],q={};if("u">typeof console)for(let r of["error","warn","info","debug","trace","log"])"function"==typeof console[r]&&(q[r]=console[r]);class B{constructor(){function r(r){return function(...n){let i=q[r];if("function"!=typeof i&&(i=q.log),"function"!=typeof i&&console&&"function"!=typeof(i=console[r])&&(i=console.log),"function"==typeof i)return i.apply(console,n)}}for(let n=0;n<$.length;n++)this[$[n].n]=r($[n].c)}}class F{createGauge(r,n){return ee}createHistogram(r,n){return et}createCounter(r,n){return Z}createUpDownCounter(r,n){return er}createObservableGauge(r,n){return ei}createObservableCounter(r,n){return en}createObservableUpDownCounter(r,n){return eo}addBatchObservableCallback(r,n){}removeBatchObservableCallback(r){}}class H{}class W extends H{add(r,n){}}class z extends H{add(r,n){}}class V extends H{record(r,n){}}class K extends H{record(r,n){}}class J{addCallback(r){}removeCallback(r){}}class G extends J{}class X extends J{}class Y extends J{}let Q=new F,Z=new W,ee=new V,et=new K,er=new z,en=new G,ei=new X,eo=new Y;function ea(){return Q}(f=a||(a={}))[f.INT=0]="INT",f[f.DOUBLE=1]="DOUBLE";let es={get(r,n){if(null!=r)return r[n]},keys:r=>null==r?[]:Object.keys(r)},eu={set(r,n,i){null!=r&&(r[n]=i)}};class ec{active(){return L}with(r,n,i,...o){return n.call(i,...o)}bind(r,n){return n}enable(){return this}disable(){return this}}let el="context",ed=new ec;class ef{static getInstance(){return this._instance||(this._instance=new ef),this._instance}setGlobalContextManager(r){return S(el,r,P.instance())}active(){return this._getContextManager().active()}with(r,n,i,...o){return this._getContextManager().with(r,n,i,...o)}bind(r,n){return this._getContextManager().bind(r,n)}_getContextManager(){return R(el)||ed}
4disable(){this._getContextManager().disable(),A(el,P.instance())}}(p=s||(s={}))[p.NONE=0]="NONE",p[p.SAMPLED=1]="SAMPLED";let ep="0000000000000000",eh="00000000000000000000000000000000",ey={traceId:eh,spanId:ep,traceFlags:s.NONE};class eg{constructor(r=ey){this._spanContext=r}spanContext(){return this._spanContext}setAttribute(r,n){return this}setAttributes(r){return this}addEvent(r,n){return this}addLink(r){return this}addLinks(r){return this}setStatus(r){return this}updateName(r){return this}end(r){}isRecording(){return!1}recordException(r,n){}}let em=N("OpenTelemetry Context Key SPAN");function eb(r){return r.getValue(em)||void 0}function ew(){return eb(ef.getInstance().active())}function ev(r,n){return r.setValue(em,n)}function e_(r){return r.deleteValue(em)}function eE(r,n){return ev(r,new eg(n))}function eS(r){var n;return null==(n=eb(r))?void 0:n.spanContext()}let eR=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function eA(r,n){if("string"!=typeof r||r.length!==n)return!1;let i=0;for(let n=0;n<r.length;n+=4)i+=(0|eR[r.charCodeAt(n)])+(0|eR[r.charCodeAt(n+1)])+(0|eR[r.charCodeAt(n+2)])+(0|eR[r.charCodeAt(n+3)]);return i===n}function ek(r){return eA(r,32)&&r!==eh}function eO(r){return eA(r,16)&&r!==ep}function ex(r){return ek(r.traceId)&&eO(r.spanId)}function eT(r){return new eg(r)}let eP=ef.getInstance();class eC{startSpan(r,n,i=eP.active()){if(null==n?void 0:n.root)return new eg;let o=i&&eS(i);return ej(o)&&ex(o)?new eg(o):new eg}startActiveSpan(r,n,i,o){let a,s,u;if(arguments.length<2)return;2==arguments.length?u=n:3==arguments.length?(a=n,u=i):(a=n,s=i,u=o);let c=null!=s?s:eP.active(),l=this.startSpan(r,a,c),d=ev(c,l);return eP.with(d,u,void 0,l)}}function ej(r){return null!==r&&"object"==typeof r&&"spanId"in r&&"string"==typeof r.spanId&&"traceId"in r&&"string"==typeof r.traceId&&"traceFlags"in r&&"number"==typeof r.traceFlags}let eI=new eC;class eD{constructor(r,n,i,o){this._provider=r,this.name=n,this.version=i,this.options=o}startSpan(r,n,i){return this._getTracer().startSpan(r,n,i)}startActiveSpan(r,n,i,o){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):eI}}class eU{getTracer(r,n,i){return new eC}}let eN=new eU;class eM{getTracer(r,n,i){var o;return null!=(o=this.getDelegateTracer(r,n,i))?o:new eD(this,r,n,i)}getDelegate(){var r;return null!=(r=this._delegate)?r:eN}setDelegate(r){this._delegate=r}getDelegateTracer(r,n,i){var o;return null==(o=this._delegate)?void 0:o.getTracer(r,n,i)}}(h=u||(u={}))[h.NOT_RECORD=0]="NOT_RECORD",h[h.RECORD=1]="RECORD",h[h.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",(y=c||(c={}))[y.INTERNAL=0]="INTERNAL",y[y.SERVER=1]="SERVER",y[y.CLIENT=2]="CLIENT",y[y.PRODUCER=3]="PRODUCER",y[y.CONSUMER=4]="CONSUMER",(g=l||(l={}))[g.UNSET=0]="UNSET",g[g.OK=1]="OK",g[g.ERROR=2]="ERROR";let eL="[_0-9a-z-*/]",e$=`[a-z]${eL}{0,255}`,eq=`[a-z0-9]${eL}{0,240}@[a-z]${eL}{0,13}`,eB=RegExp(`^(?:${e$}|${eq})$`),eF=/^[ -~]{0,255}[!-~]$/,eH=/,|=/;function eW(r){return eB.test(r)}function ez(r){return eF.test(r)&&!eH.test(r)}let eV=32,eK=512,eJ=",",eG="=";class eX{constructor(r){this._internalState=new Map,r&&this._parse(r)}set(r,n){let i=this._clone();return i._internalState.has(r)&&i._internalState.delete(r),i._internalState.set(r,n),i}unset(r){let n=this._clone();return n._internalState.delete(r),n}get(r){return this._internalState.get(r)}serialize(){return Array.from(this._internalState.keys()).reduceRight((r,n)=>(r.push(n+eG+this.get(n)),r),[]).join(eJ)}_parse(r){!(r.length>eK)&&(this._internalState=r.split(eJ).reduceRight((r,n)=>{let i=n.trim(),o=i.indexOf(eG);if(-1!==o){let a=i.slice(0,o),s=i.slice(o+1,n.length);eW(a)&&ez(s)&&r.set(a,s)}return r},new Map),this._internalState.size>eV&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,eV))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let r=new eX;return r._internalState=new Map(this._internalState),r}}function eY(r){return new eX(r)}let eQ=ef.getInstance(),eZ=P.instance();class e0{getMeter(r,n,i){return Q}}let e1=new e0,e2="metrics";class e3{static getInstance(){return this._instance||(this._instance=new e3),this._instance}setGlobalMeterProvider(r){return S(e2,r,P.instance())}getMeterProvider(){return R(e2)||e1}getMeter(r,n,i){return this.getMeterProvider().getMeter(r,n,i)}disable(){A(e2,P.instance())}}let e8=e3.getInstance();class e6{inject(r,n){}extract(r,n){return r}fields(){return[]}}let e4=N("OpenTelemetry Baggage Key");function e5(r){return r.getValue(e4)||void 0}function e9(){return e5(ef.getInstance().active())}function e7(r,n){return r.setValue(e4,n)}function te(r){return r.deleteValue(e4)}let tt="propagation",tr=new e6;class tn{constructor(){this.createBaggage=D,this.getBaggage=e5,this.getActiveBaggage=e9,this.setBaggage=e7,this.deleteBaggage=te}static getInstance(){return this._instance||(this._instance=new tn),this._instance}setGlobalPropagator(r){return S(tt,r,P.instance())}inject(r,n,i=eu){return this._getGlobalPropagator().inject(r,n,i)}extract(r,n,i=es){return this._getGlobalPropagator().extract(r,n,i)}fields(){return this._getGlobalPropagator().fields()}disable(){A(tt,P.instance())}_getGlobalPropagator(){return R(tt)||tr}}let ti=tn.getInstance(),to="trace";class ta{constructor(){this._proxyTracerProvider=new eM,this.wrapSpanContext=eT,this.isSpanContextValid=ex,this.deleteSpan=e_,this.get
4Span=eb,this.getActiveSpan=ew,this.getSpanContext=eS,this.setSpan=ev,this.setSpanContext=eE}static getInstance(){return this._instance||(this._instance=new ta),this._instance}setGlobalTracerProvider(r){let n=S(to,this._proxyTracerProvider,P.instance());return n&&this._proxyTracerProvider.setDelegate(r),n}getTracerProvider(){return R(to)||this._proxyTracerProvider}getTracer(r,n){return this.getTracerProvider().getTracer(r,n)}disable(){A(to,P.instance()),this._proxyTracerProvider=new eM}}let ts=ta.getInstance(),tu={context:eQ,diag:eZ,metrics:e8,propagation:ti,trace:ts}},36071:(r,n)=>{"use strict";function i(r,n,i){!r[n]&&i&&(r[n]=i)}Object.defineProperty(n,"__esModule",{value:!0}),n.setHeaderIfNotSet=i},36558:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{METADATA_BOUNDARY_NAME:function(){return i},OUTLET_BOUNDARY_NAME:function(){return a},ROOT_LAYOUT_BOUNDARY_NAME:function(){return s},VIEWPORT_BOUNDARY_NAME:function(){return o}});let i="__next_metadata_boundary__",o="__next_viewport_boundary__",a="__next_outlet_boundary__",s="__next_root_layout_boundary__"},37826:(r,n,i)=>{"use strict";var o=i(49914);Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{atLeastOneTask:function(){return u},scheduleImmediate:function(){return s},scheduleOnNextTick:function(){return a},waitAtLeastOneReactRenderTask:function(){return c}});let a=r=>{Promise.resolve().then(()=>{o.nextTick(r)})},s=r=>{setImmediate(r)};function u(){return new Promise(r=>s(r))}function c(){return new Promise(r=>setImmediate(r))}},38973:(r,n,i)=>{"use strict";i.d(n,{gv:()=>S});var o,a,s=i(20050);i(49914);let u=(0,s.KV)("identity");function c(r){return`SUCCESS. Scopes: ${Array.isArray(r)?r.join(", "):r}.`}function l(r,n){let i="ERROR.";return r?.length&&(i+=` Scopes: ${Array.isArray(r)?r.join(", "):r}.`),`${i} Error message: ${"string"==typeof n?n:n.message}.`}function d(r,n,i=u){let o=n?`${n.fullTitle} ${r}`:r;function a(r){i.info(`${o} =>`,r)}function s(r){i.warning(`${o} =>`,r)}function c(r){i.verbose(`${o} =>`,r)}function l(r){i.error(`${o} =>`,r)}return{title:r,fullTitle:o,info:a,warning:s,verbose:c,error:l}}function f(r,n=u){let i=d(r,void 0,n);return{...i,parent:n,getToken:d("=> getToken()",i,n)}}let p="CredentialUnavailableError";
4class h extends Error{constructor(r,n){super(r,n),this.name=p}}let y="AggregateAuthenticationError";class g extends Error{errors;constructor(r,n){const i=r.join("\n");super(`${n}
5${i}`),this.errors=r,this.name=y}}let m="4.13.1";(o=a||(a={})).AzureChina="https://login.chinacloudapi.cn",o.AzureGermany="https://login.microsoftonline.de",o.AzureGovernment="https://login.microsoftonline.us",o.AzurePublicCloud="https://login.microsoftonline.com",a.AzurePublicCloud;let b=(0,i(86178).y)({namespace:"Microsoft.AAD",packageName:"@azure/identity",packageVersion:m}),w=f("ChainedTokenCredential");class v{_sources=[];constructor(...r){this._sources=r}async getToken(r,n={}){let{token:i}=await this.getTokenInternal(r,n);return i}async getTokenInternal(r,n={}){let i,o=null,a=[];return b.withSpan("ChainedTokenCredential.getToken",n,async n=>{for(let s=0;s<this._sources.length&&null===o;s++)try{o=await this._sources[s].getToken(r,n),i=this._sources[s]}catch(n){if("CredentialUnavailableError"===n.name||"AuthenticationRequiredError"===n.name)a.push(n);else throw w.getToken.info(l(r,n)),n}if(!o&&a.length>0){let n=new g(a,"ChainedTokenCredential authentication failed.");throw w.getToken.info(l(r,n)),n}if(w.getToken.info(`Result for ${i.constructor.name}: ${c(r)}`),null===o)throw new h("Failed to retrieve a valid token");return{token:o,successfulCredential:i}})}}let _=Error("DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead."),E=f("DefaultAzureCredential");class S extends v{constructor(r){throw super(),E.info(l("",_)),_}getToken(){throw E.getToken.info(l("",_)),_}}i(51043),i(10643),i(49914),f("IdentityUtils"),i(67072),new WeakMap,Symbol.for("@azure/core-client original request"),(0,s.KV)("core-client"),i(49914),i(84890).Buffer,f("ClientSecretCredential"),Error("EnvironmentCredential is not supported in the browser."),f("EnvironmentCredential"),Error("ClientCertificateCredential is not supported in the browser."),f("ClientCertificateCredential"),Error("ClientAssertionCredential is not supported in the browser."),f("ClientAssertionCredential"),Error("AzureCliCredential is not supported in the browser."),f("AzureCliCredential"),Error("AzureDeveloperCliCredential is not supported in the browser."),f("AzureDeveloperCliCredential"),"u">typeof self&&void 0!==self.location&&self.location.hash,f("InteractiveBrowserCredential"),Error("ManagedIdentityCredential is not supported in the browser."),f("ManagedIdentityCredential"),Error("DeviceCodeCredential is not supported in the browser."),f("DeviceCodeCredential"),Error("AzurePipelinesCredential is not supported in the browser."),f("AzurePipelinesCredential"),Error("AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case."),f("AuthorizationCodeCredential"),Error("AzurePowerShellCredential is not supported in the browser."),f("AzurePowerShellCredential"),f("UsernamePasswordCredential"),Error("VisualStudioCodeCredential is not supported in the browser."),f("VisualStudioCodeCredential");let R="OnBehalfOfCredential";Error(`${R}: Not supported in the browser.`),f(R),Error("WorkloadIdentityCredential is not supported in the browser."),f("WorkloadIdentityCredential")},40520:(r,n)=>{"use strict";function i(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered runtime data during prerendering.
6
7\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
8
9Ways to fix this:
10  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
11  - [block] Set \`export const instant = false\` to allow a blocking route
12
13Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1427",enumerable:!1,configurable:!0})}function o(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached data during prerendering.
14
15\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
16
17Ways to fix this:
18  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
19  - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`)
20  - [block] Set \`export const instant = false\` to allow a blocking route
21
22Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1440",enumerable:!1,configurable:!0})}function a(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered runtime data during prerendering or a navigation.
23
24\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.
25
26Ways to fix this:
27  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
28  - [block] Set \`export const instant = false\` to allow a blocking route
29
30Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1430",enumerable:!1,configurable:!0})}function s(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered URL data during prerendering or a navigation.
31
32\`params\` or \`searchParams\` accessed outside of \`<Suspense>\` may prevent the navigation from being instant, leading to a slower user experience.
33
34Ways to fix this:
35  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
36  - [block] Set \`export const instant = false\` to allow a blocking route
37
38Learn more: https://nextjs.org/docs/messages/instant-shell-url-data`),"__NEXT_ERROR_CODE",{value:"E1439",enumerable:!1,configurable:!0})}function u(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached data during prerendering or a navigation.
39
40\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience.
41
42Ways to fix this:
43  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
44  - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`)
45  - [block] Set \`export const instant = false\` to allow a blocking route
46
47Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1437",enumerable:!1,configurable:!0})}function c(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached or runtime data during prerendering.
48
49\`fetch(...)\`, \`cookies()\`, \`headers()\`, \`params\`, \`searchParams\`, or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience.
50
51Ways to fix this:
52  - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access
53  - [cache] For uncached data (\`fetch\`, database calls): cache the access with \`"use cache"\` (does not apply to \`connection()\`)
54  - [block] Set \`export const instant = false\` to allow a blocking route
55
56Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1428",enumerable:!1,configurable:!0})}function l(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered URL data in \`generateMetadata()\`.
57
58This route's metadata is blocked, but the rest of its content can be prefetched. \`params\` or \`searchParams\` accessed in \`generateMetadata()\` prevent it from being prefetched.
59
60Ways to fix this:
61  - [static] Use a static metadata export instead of \`generateMetadata()\`
62  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
63
64Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1429",enumerable:!1,
64configurable:!0})}function d(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered runtime data in \`generateMetadata()\`.
65
66This route's metadata is blocked, but the rest of its content can be prerendered. \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed in \`generateMetadata()\` cause it to run dynamically.
67
68Ways to fix this:
69  - [static] Use a static metadata export instead of \`generateMetadata()\`
70  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
71
72Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1423",enumerable:!1,configurable:!0})}function f(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached data in \`generateMetadata()\`.
73
74This route's metadata is blocked, but the rest of its content can be prerendered. \`fetch(...)\` or \`connection()\` accessed in \`generateMetadata()\` cause it to run dynamically.
75
76Ways to fix this:
77  - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`)
78  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
79
80Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-dynamic`),"__NEXT_ERROR_CODE",{value:"E1425",enumerable:!1,configurable:!0})}function p(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered URL data in \`generateViewport()\`.
81
82\`params\` or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
83
84Ways to fix this:
85  - [static] Use a static viewport export instead of \`generateViewport()\`
86  - [block] Set \`export const instant = false\` to allow a blocking route
87
88Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1431",enumerable:!1,configurable:!0})}function h(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered runtime data in \`generateViewport()\`.
89
90\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
91
92Ways to fix this:
93  - [static] Use a static viewport export instead of \`generateViewport()\`
94  - [block] Set \`export const instant = false\` to allow a blocking route
95
96Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1424",enumerable:!1,configurable:!0})}function y(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached data in \`generateViewport()\`.
97
98\`fetch(...)\` or \`connection()\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience.
99
100Ways to fix this:
101  - [cache] Cache the viewport data with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`)
102  - [block] Set \`export const instant = false\` to allow a blocking route
103
104Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-dynamic`),"__NEXT_ERROR_CODE",{value:"E1438",enumerable:!1,configurable:!0})}function g(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached or runtime data in \`generateViewport()\`.
105
106This prevents the page from being prerendered, leading to a slower user experience. Unlike metadata, viewport cannot be streamed behind \`<Suspense>\` because it affects the initial page load.
107
108Ways to fix this:
109  - [static] Use a static viewport export instead of \`generateViewport()\`
110  - [cache] For uncached data (\`fetch\`, database calls): cache the viewport with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`)
111  - [block] Set \`export const instant = false\` to allow a blocking route
112
113Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1436",enumerable:!1,configurable:!0})}function m(r){return Object.defineProperty(Error(`Route "${r}": Next.js encountered uncached or runtime data in \`generateMetadata()\`.
114
115This route's metadata is blocked, but the rest of its content can be prerendered.
116
117Ways to fix this:
118  - [static] Use a static metadata export instead of \`generateMetadata()\`
119  - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`)
120  - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page
121
122Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1426",enumerable:!1,
122configurable:!0})}function b(r){console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
123  - Start the app in development mode by running \`next dev\`, then open "${r}" in your browser to investigate the error.
124  - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{createDynamicBodyError:function(){return o},createDynamicBodyErrorInNavigation:function(){return u},createDynamicMetadataError:function(){return f},createDynamicOrRuntimeBodyError:function(){return c},createDynamicOrRuntimeMetadataError:function(){return m},createDynamicOrRuntimeViewportError:function(){return g},createDynamicViewportError:function(){return y},createLinkBodyErrorInNavigation:function(){return s},createLinkMetadataError:function(){return l},createLinkViewportError:function(){return p},createRuntimeBodyError:function(){return i},createRuntimeBodyErrorInNavigation:function(){return a}
124,createRuntimeMetadataError:function(){return d},createRuntimeViewportError:function(){return h},logBuildDebugHint:function(){return b}})},40696:module=>{var __dirname="/";!function(){var __webpack_modules__={285:function(__unused_webpack_module,exports){var indexOf=function(r,n){if(r.indexOf)return r.indexOf(n);for(var i=0;i<r.length;i++)if(r[i]===n)return i;return -1},Object_keys=function(r){if(Object.keys)return Object.keys(r);var n=[];for(var i in r)n.push(i);return n},forEach=function(r,n){if(r.forEach)return r.forEach(n);for(var i=0;i<r.length;i++)n(r[i],i,r)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(r,n,i){Object.defineProperty(r,n,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(r){return function(r,n,i){r[n]=i}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(r){if(!(this instanceof Script))return new Script(r);this.code=r};Script.prototype.runInContext=function(r){if(!(r instanceof Context))throw TypeError("needs a 'context' argument.");var n=document.createElement("iframe");n.style||(n.style={}),n.style.display="none",document.body.appendChild(n);var i=n.contentWindow,o=i.eval,a=i.execScript;!o&&a&&(a.call(i,"null"),o=i.eval),forEach(Object_keys(r),function(n){i[n]=r[n]}),forEach(globals,function(n){r[n]&&(i[n]=r[n])});var s=Object_keys(i),u=o.call(i,this.code);return forEach(Object_keys(i),function(n){(n in r||-1===indexOf(s,n))&&(r[n]=i[n])}),forEach(globals,function(n){n in r||defineProp(r,n,i[n])}),document.body.removeChild(n),u},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(r){var n=Script.createContext(r),i=this.runInContext(n);return r&&forEach(Object_keys(n),function(i){r[i]=n[i]}),i},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(n){var i=Script(n);return i[r].apply(i,[].slice.call(arguments,1))}}),exports.isContext=function(r){return r instanceof Context},exports.createScript=function(r){return exports.Script(r)},exports.createContext=Script.createContext=function(r){var n=new Context;return"object"==typeof r&&forEach(Object_keys(r),function(i){n[i]=r[i]}),n}}};"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[285](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},40804:(r,n,i)=>{"use strict";i.d(n,{e:()=>a});let o="agentPolicy";function a(r){return{name:o,sendRequest:async(n,i)=>(n.agent||(n.agent=r),i(n))}}},41299:function(r,n,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(r,n,i,o){void 0===o&&(o=i);var a=Object.getOwnPropertyDescriptor(n,i);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,a)}:function(r,n,i,o){void 0===o&&(o=i),r[o]=n[i]}),a=this&&this.__exportStar||function(r,n){for(var i in r)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||o(n,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),a(i(4877),n),a(i(58130),n)},42164:function(r,n,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(r,n,i,o){void 0===o&&(o=i);var a=Object.getOwnPropertyDescriptor(n,i);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,a)}:function(r,n,i,o){void 0===o&&(o=i),r[o]=n[i]}),a=this&&this.__exportStar||function(r,n){for(var i in r)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||o(n,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),a(i(67577),n),a(i(47397),n),a(i(85673),n),a(i(36071),n),a(i(65445),n)},42311:(r,n,i)=>{"use strict";function o(){throw Error("decompressResponsePolicy is not supported in browser environment")}i.d(n,{r:()=>o})},43076:(r,n,i)=>{"use strict";function o(r,n){return Object.keys(r).forEach(function(i){"default"===i||Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:function(){return r[i]}})}),r}Object.defineProperty(n,"__esModule",{value:!0}),o(i(62990),n)},43574:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"actionAsyncStorage",{enumerable:!0,get:function(){return o.actionAsyncStorageInstance}});let o=i(7897)},43749:(r,n,i)=>{"use strict";i.d(n,{_V:()=>tu});var o,a,s,u,c,l,d=i(20050);let f=(0,d.KV)("keyvault-secrets");var p=i(56623);function h(r,n){return"string"==typeof r?(0,p.t$)(r,n):(0,p.t$)(r)}var y=i(67072),g=i(51043);function m(r){return(0,g.TA)(r,["key"])&&"string"==typeof r.key}function b(r){let n=r;return n&&"function"==typeof n.getToken&&(void 0===n.signRequest||n.getToken.length>0)}let w="ApiVersionPolicy";function v(r){return{name:w,sendRequest:(n,i)=>{let o=new URL(n.url);return!o.searchParams.get("api-version")&&r.apiVersion&&(n.url=`${n.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${r.apiVersion}`),i(n)}}}let _="keyCredentialAuthenticationPolicy";function E(r,n){return{name:_,sendRequest:async(i,o)=>(i.headers.set(n,r.key),o(i))}}function S(r,n,i={}){let{credential:o,clientOptions:a}=i;if(o){if(b(o)){let i=(0,y.N$)({credential:o,scopes:a?.credentials?.scopes??`${n}/.default`});r.addPolicy(i)}else if(A(o)){if(!a?.credentials?.apiKeyHeaderName)throw Error("Missing API Key Header Name");let n=E(o,a?.credentials?.apiKeyHeaderName);r.addPolicy(n)}}}function R(r,n,i={}){let o=(0,y.Fp)(i);return o.addPolicy(v(i)),S(o,r,{credential:n,clientOptions:i}),o}function A(r){return void 0!==r.key}function k(r){return(0,p.Iq)(r)}function O(r){return r.onResponse?{...r,onResponse(n,i){r.onResponse?.(n,i,i)}}:r}function x(r,n,i={}){let o;n&&(T(n)?o=n:i=n??{});let a=i.pipeline??R(r,o,i),s=(0,p.KU)(r,{...i,pipeline:a}),u=(r,...n)=>({get:(i={})=>s.path(r,...n).get(O(i)),post:(i={})=>s.path(r,...n).post(O(i)),put:(i={})=>s.path(r,...n).put(O(i)),patch:(i={})=>s.path(r,...n).patch(O(i)),delete:(i={})=>s.path(r,...n).delete(O(i)),head:(i={})=>s.path(r,...n).head(O(i)),options:(i={})=>s.path(r,...n).options(O(i)),trace:(i={})=>s.path(r,...n).trace(O(i))});return{path:u,pathUnchecked:u,pipeline:s.pipeline}}function T(r){return m(r)||b(r)}let P="4.11.1";function C(r,n,i={}){let o=i.endpoint??i.baseUrl??String(r),a=i?.userAgentOptions?.userAgentPrefix,s=`azsdk-js-keyvault-secrets/${P}`,u=a?`${a} azsdk-js-api ${s}`:`azsdk-js-api ${s}`,{apiVersion:c,...l}={...i,userAgentOptions:{userAgentPrefix:u},loggingOptions:{logger:i.loggingOptions?.logger??f.info},credentials:{scopes:i.credentials?.scopes??["https://vault.azure.net/.default"]}},d=x(o,n,l);
124d.pipeline.removePolicy({name:"ApiVersionPolicy"});let p=i.apiVersion??"2025-07-01";return d.pipeline.addPolicy({name:"ClientApiVersionPolicy",sendRequest:(r,n)=>{let i=new URL(r.url);return i.searchParams.get("api-version")||(r.url=`${r.url}${Array.from(i.searchParams.keys()).length>0?"&":"?"}api-version=${p}`),n(r)}}),{...d,apiVersion:p}}function j(r){return{value:r.value,tags:r.tags,contentType:r.contentType,attributes:r.secretAttributes?I(r.secretAttributes):r.secretAttributes}}function I(r){return{enabled:r.enabled,nbf:r.notBefore?r.notBefore.getTime()/1e3|0:r.notBefore,exp:r.expires?r.expires.getTime()/1e3|0:r.expires}}function D(r){return{enabled:r.enabled,notBefore:r.nbf?new Date(1e3*r.nbf):r.nbf,expires:r.exp?new Date(1e3*r.exp):r.exp,created:r.created?new Date(1e3*r.created):r.created,updated:r.updated?new Date(1e3*r.updated):r.updated,recoverableDays:r.recoverableDays,recoveryLevel:r.recoveryLevel}}function U(r){return{value:r.value,id:r.id,contentType:r.contentType,attributes:r.attributes?D(r.attributes):r.attributes,tags:r.tags,kid:r.kid,managed:r.managed,previousVersion:r.previousVersion}}function N(r){return{error:r.error?M(r.error):r.error}}function M(r){return{code:r.code,message:r.message,innerError:r.innererror?M(r.innererror):r.innererror}}function L(r){return{value:r.value,id:r.id,contentType:r.contentType,attributes:r.attributes?D(r.attributes):r.attributes,tags:r.tags,kid:r.kid,managed:r.managed,previousVersion:r.previousVersion,recoveryId:r.recoveryId,scheduledPurgeDate:r.scheduledPurgeDate?new Date(1e3*r.scheduledPurgeDate):r.scheduledPurgeDate,deletedDate:r.deletedDate?new Date(1e3*r.deletedDate):r.deletedDate}}function $(r){return{contentType:r.contentType,attributes:r.secretAttributes?I(r.secretAttributes):r.secretAttributes,tags:r.tags}}function q(r){return{value:r.value?B(r.value):r.value,nextLink:r.nextLink}}function B(r){return r.map(r=>F(r))}function F(r){return{id:r.id,attributes:r.attributes?D(r.attributes):r.attributes,tags:r.tags,contentType:r.contentType,managed:r.managed}}function H(r){return{value:r.value?W(r.value):r.value,nextLink:r.nextLink}}function W(r){return r.map(r=>z(r))}function z(r){return{id:r.id,attributes:r.attributes?D(r.attributes):r.attributes,tags:r.tags,contentType:r.contentType,managed:r.managed,recoveryId:r.recoveryId,scheduledPurgeDate:r.scheduledPurgeDate?new Date(1e3*r.scheduledPurgeDate):r.scheduledPurgeDate,deletedDate:r.deletedDate?new Date(1e3*r.deletedDate):r.deletedDate}}function V(r){return{value:r.value&&"string"==typeof r.value?(0,g.Al)(r.value,"base64url"):r.value}}function K(r){return{value:(0,g.SW)(r.secretBundleBackup,"base64url")}}function J(r,n,i,o,a={}){let s=a.itemName??"value",u=a.nextLinkName??"nextLink",c={getPage:async a=>{let c=void 0===a?await n():await r.pathUnchecked(a).get();ee(c,o);let l=await i(c),d=Q(l,u);return{page:Z(l,s),nextPageLink:d}},byPage:r=>{let{continuationToken:n}=r??{};return Y(c,{pageLink:n})}};return G(c)}function G(r){let n=X(r);return{next:()=>n.next(),[Symbol.asyncIterator](){return this},byPage:r?.byPage??(n=>{let{continuationToken:i}=n??{};return Y(r,{pageLink:i})})}}async function*X(r){for await(let n of Y(r))yield*n}async function*Y(r,n={}){let{pageLink:i}=n,o=await r.getPage(i??r.firstPageLink);if(!o)return;let a=o.page;for(a.continuationToken=o.nextPageLink,yield a;o.nextPageLink;){if(!(o=await r.getPage(o.nextPageLink)))return;(a=o.page).continuationToken=o.nextPageLink,yield a}}function Q(r,n){if(!n)return;let i=r[n];if("string"!=typeof i&&null!=i)throw new y.pj(`Body Property ${n} should be a string or undefined or null but got ${typeof i}`);if(null!==i)return i}function Z(r,n){let i=r[n];if(!Array.isArray(i))throw new y.pj(`Couldn't paginate response
125 Body doesn't contain an array property with name: ${n}`);return i??[]}function ee(r,n){if(!n.includes(r.status))throw h(`Pagination failed with unexpected statusCode ${r.status}`,r)}function et(r,n,i){return(n??"+"===i)||"#"===i?er(r):en(r)}function er(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map(r=>/%[0-9A-Fa-f]/.test(r)?r:encodeURI(r)).join("")}function en(r){return encodeURIComponent(r).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)}function ei(r){return null!=r}function eo(r){return[!!r&&[";","?","&"].includes(r),r&&["?","&"].includes(r)?"=":""]}
125function ea(r,n=!1){return n?r&&"+"!==r?r:"":r&&"+"!==r&&"#"!==r?"?"===r?"&":r:","}function es(r){let n=r.isFirst,{op:i,varName:o,varValue:a,reserved:s}=r,u=[],[c,l]=eo(i);if(Array.isArray(a))for(let r of a.filter(ei))u.push(`${ea(i,n)}`),c&&o&&(u.push(`${encodeURIComponent(o)}`),""===r?u.push(l):u.push("=")),u.push(et(r,s,i)),n=!1;else if("object"==typeof a)for(let r of Object.keys(a)){let o=a[r];ei(o)&&(u.push(`${ea(i,n)}`),r&&(u.push(`${encodeURIComponent(r)}`),c&&""===o?u.push(l):u.push("=")),u.push(et(o,s,i)),n=!1)}return u.join("")}function eu(r){let{op:n,varName:i,varValue:o,isFirst:a,reserved:s}=r,u=[],c=ea(n,a),[l,d]=eo(n);if(l&&i){if(u.push(et(i,s,n)),""===o)return d||u.push(d),u.join("")?`${c}${u.join("")}`:void 0;u.push("=")}let f=[];if(Array.isArray(o))for(let r of o.filter(ei))f.push(et(r,s,n));else if("object"==typeof o)for(let r of Object.keys(o))ei(o[r])&&(f.push(en(r)),f.push(et(o[r],s,n)));return u.push(f.join(",")),u.join(",")?`${c}${u.join("")}`:void 0}function ec(r){let{op:n,varName:i,modifier:o,isFirst:a,reserved:s,varValue:u}=r;if(ei(u)){if(["string","number","boolean"].includes(typeof u)){let r=u.toString(),[c,l]=eo(n),d=[ea(n,a)];return c&&i&&(d.push(i),""===r?d.push(l):d.push("=")),o&&"*"!==o&&(r=r.substring(0,parseInt(o,10))),d.push(et(r,s,n)),d.join("")}return"*"===o?es(r):eu(r)}}function el(r,n,i){return r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(r,o,a)=>{let s;if(!o)return er(a);["+","#",".","/",";","?","&"].includes(o[0])&&(s=o[0],o=o.slice(1));let u=o.split(/,/g),c=[];for(let r of u){let o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);if(!o||!o[1])continue;let a=ec({isFirst:0===c.length,op:s,varValue:n[o[1]],varName:o[1],modifier:o[2]||o[3],reserved:i?.allowReserved});a&&c.push(a)}return c.join("")})}function ed(r,n,i={requestOptions:{}}){let o=el("/secrets/restore{?api%2Dversion}",{"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).post({...k(i),contentType:"application/json",headers:{accept:"application/json",...i.requestOptions?.headers},body:K(n)})}async function ef(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return U(r.body)}async function ep(r,n,i={requestOptions:{}}){return ef(await ed(r,n,i))}function eh(r,n,i={requestOptions:{}}){let o=el("/secrets/{secret-name}/backup{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).post({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function ey(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return V(r.body)}async function eg(r,n,i={requestOptions:{}}){return ey(await eh(r,n,i))}function em(r,n,i={requestOptions:{}}){let o=el("/deletedsecrets/{secret-name}/recover{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).post({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function eb(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return U(r.body)}async function ew(r,n,i={requestOptions:{}}){return eb(await em(r,n,i))}function ev(r,n,i={requestOptions:{}}){let o=el("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).delete({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function e_(r){if(!["204"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}}async function eE(r,n,i={requestOptions:{}}){return e_(await ev(r,n,i))}function eS(r,n,i={requestOptions:{}}){let o=el("/deletedsecrets/{secret-name}{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).get({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function eR(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return L(r.body)}async function eA(r,n,i={requestOptions:{}}){return eR(await eS(r,n,i))}function ek(r,n={requestOptions:{}}){let i=el("/deletedsecrets{?api%2Dversion,maxresults}",{"api%2Dversion":r.apiVersion,maxresults:n?.maxresults},{allowReserved:n?.requestOptions?.skipUrlEncoding});return r.path(i).get({...k(n),headers:{accept:"application/json",...n.requestOptions?.headers}})}async function eO(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return H(r.body)}function ex(r,n={requestOptions:{}}){return J(r,()=>ek(r,n),eO,["200"],{itemName:"value",nextLinkName:"nextLink"})}function eT(r,n,i={requestOptions:{}}
125){let o=el("/secrets/{secret-name}/versions{?api%2Dversion,maxresults}",{"secret-name":n,"api%2Dversion":r.apiVersion,maxresults:i?.maxresults},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).get({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function eP(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return q(r.body)}function eC(r,n,i={requestOptions:{}}){return J(r,()=>eT(r,n,i),eP,["200"],{itemName:"value",nextLinkName:"nextLink"})}function ej(r,n={requestOptions:{}}){let i=el("/secrets{?api%2Dversion,maxresults}",{"api%2Dversion":r.apiVersion,maxresults:n?.maxresults},{allowReserved:n?.requestOptions?.skipUrlEncoding});return r.path(i).get({...k(n),headers:{accept:"application/json",...n.requestOptions?.headers}})}async function eI(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return q(r.body)}function eD(r,n={requestOptions:{}}){return J(r,()=>ej(r,n),eI,["200"],{itemName:"value",nextLinkName:"nextLink"})}function eU(r,n,i,o={requestOptions:{}}){let a=el("/secrets/{secret-name}/{secret-version}{?api%2Dversion,outContentType}",{"secret-name":n,"secret-version":i,"api%2Dversion":r.apiVersion,outContentType:o?.outContentType},{allowReserved:o?.requestOptions?.skipUrlEncoding});return r.path(a).get({...k(o),headers:{accept:"application/json",...o.requestOptions?.headers}})}async function eN(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return U(r.body)}async function eM(r,n,i,o={requestOptions:{}}){return eN(await eU(r,n,i,o))}function eL(r,n,i,o,a={requestOptions:{}}){let s=el("/secrets/{secret-name}/{secret-version}{?api%2Dversion}",{"secret-name":n,"secret-version":i,"api%2Dversion":r.apiVersion},{allowReserved:a?.requestOptions?.skipUrlEncoding});
125return r.path(s).patch({...k(a),contentType:"application/json",headers:{accept:"application/json",...a.requestOptions?.headers},body:$(o)})}async function e$(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return U(r.body)}async function eq(r,n,i,o,a={requestOptions:{}}){return e$(await eL(r,n,i,o,a))}function eB(r,n,i={requestOptions:{}}){let o=el("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:i?.requestOptions?.skipUrlEncoding});return r.path(o).delete({...k(i),headers:{accept:"application/json",...i.requestOptions?.headers}})}async function eF(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return L(r.body)}async function eH(r,n,i={requestOptions:{}}){return eF(await eB(r,n,i))}function eW(r,n,i,o={requestOptions:{}}){let a=el("/secrets/{secret-name}{?api%2Dversion}",{"secret-name":n,"api%2Dversion":r.apiVersion},{allowReserved:o?.requestOptions?.skipUrlEncoding});return r.path(a).put({...k(o),contentType:"application/json",headers:{accept:"application/json",...o.requestOptions?.headers},body:j(i)})}async function ez(r){if(!["200"].includes(r.status)){let n=h(r);throw n.details=N(r.body),n}return U(r.body)}async function eV(r,n,i,o={requestOptions:{}}){return ez(await eW(r,n,i,o))}(o=u||(u={})).Purgeable="Purgeable",o.RecoverablePurgeable="Recoverable+Purgeable",o.Recoverable="Recoverable",o.RecoverableProtectedSubscription="Recoverable+ProtectedSubscription",o.CustomizedRecoverablePurgeable="CustomizedRecoverable+Purgeable",o.CustomizedRecoverable="CustomizedRecoverable",o.CustomizedRecoverableProtectedSubscription="CustomizedRecoverable+ProtectedSubscription",(a=c||(c={})).PFX="application/x-pkcs12",a.PEM="application/x-pem-file",(s=l||(l={})).V75="7.5",s.V76Preview2="7.6-preview.2",s.V76="7.6",s.V20250701="2025-07-01";class eK{_client;pipeline;constructor(r,n,i={}){const o=i?.userAgentOptions?.userAgentPrefix,a=o?`${o} azsdk-js-client`:"azsdk-js-client";this._client=C(r,n,{...i,userAgentOptions:{userAgentPrefix:a}}),this.pipeline=this._client.pipeline}restoreSecret(r,n={requestOptions:{}}){return ep(this._client,r,n)}backupSecret(r,n={requestOptions:{}}){return eg(this._client,r,n)}recoverDeletedSecret(r,n={requestOptions:{}}){return ew(this._client,r,n)}purgeDeletedSecret(r,n={requestOptions:{}}){return eE(this._client,r,n)}getDeletedSecret(r,n={requestOptions:{}}){return eA(this._client,r,n)}getDeletedSecrets(r={requestOptions:{}}){return ex(this._client,r)}getSecretVersions(r,n={requestOptions:{}}){return eC(this._client,r,n)}getSecrets(r={requestOptions:{}}){return eD(this._client,r)}getSecret(r,n,i={requestOptions:{}}){return eM(this._client,r,n,i)}updateSecret(r,n,i,o={requestOptions:{}}){return eq(this._client,r,n,i,o)}deleteSecret(r,n={requestOptions:{}}){return eH(this._client,r,n)}setSecret(r,n,i={requestOptions:{}}){return eV(this._client,r,n,i)}}let eJ=["authorization","authorization_url","resource","scope","tenantId","claims","error"];function eG(r){let n=/,? +/,i=r.split(n).reduce((r,n)=>{if(n.match(/\w="/)){let[i,...o]=n.split("=");if(eJ.includes(i))return{...r,[i]:o.join("=").slice(1,-1)}}return r},{});if(i.authorization)try{let r=new URL(i.authorization).pathname.substring(1);r&&(i.tenantId=r)}catch(r){throw Error(`The challenge authorization URI '${i.authorization}' is invalid.`)}return i}let eX={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};async function eY(r,n,i){async function o(){if(Date.now()<i)try{return await r()}catch{return null}{let n=await r();if(null===n)throw Error("Failed to refresh access token.");return n}}let a=await o();for(;null===a;)await (0,g.cb)(n),a=await o();return a}function eQ(r,n){let i,o=null,a=null,s={...eX,...n},u={get isRefreshing(){return null!==o},get shouldRefresh(){if(u.isRefreshing)return!1;if(a?.refreshAfterTimestamp&&a.refreshAfterTimestamp<Date.now())return!0;return(a?.expiresOnTimestamp??0)-s.refreshWindowInMs<Date.now()},get mustRefresh(){return null===a||a.expiresOnTimestamp-s.forcedRefreshWindowInMs<Date.now()}};function c(n,c){return u.isRefreshing||(o=eY(()=>r.getToken(n,c),s.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then(r=>(o=null,a=r,i=c.tenantId,a)).catch(r=>{throw o=null,a=null,i=void 0,r})),o}return async(r,n)=>{let o=!!n.claims,s=i!==n.tenantId;return(o&&(a=null),s||o||u.mustRefresh)?c(r,n):(u.shouldRefresh&&c(r,n),a)}}let eZ=(0,d.KV)("keyvault-common");function e0(r,n){let i;try{i=new URL(r)}
125catch(n){throw Error(`The challenge contains invalid scope '${r}'`)}if(!new URL(n.url).hostname.endsWith(`.${i.hostname}`))throw Error(`The challenge resource '${i.hostname}' does not match the requested domain. Set disableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information.`)}let e1="keyVaultAuthenticationPolicy";function e2(r,n={}){let{disableChallengeResourceVerification:i}=n,o={status:"none"},a=eQ(r);function s(r){return{abortSignal:r.abortSignal,requestOptions:{timeout:r.timeout>0?r.timeout:void 0},tracingOptions:r.tracingOptions}}async function u(r){let n=s(r);switch(o.status){case"none":o={status:"started",originalBody:r.body},r.body=null;break;case"started":break;case"complete":{let i=await a(o.scopes,{...n,enableCae:!0,tenantId:o.tenantId});i&&r.headers.set("authorization",`Bearer ${i.token}`)}}}async function c(r,n,u){if(401!==n.status)return n;null===r.body&&"started"===o.status&&(r.body=o.originalBody);let c=s(r),l=n.headers.get("WWW-Authenticate");if(!l)return eZ.warning("keyVaultAuthentication policy encountered a 401 response without a corresponding WWW-Authenticate header. This is unexpected. Not handling the 401 response."),n;let d=eG(l),f=d.resource?d.resource+"/.default":d.scope;if(!f)return n;i||e0(f,r);let p=await a([f],{...c,enableCae:!0,tenantId:d.tenantId});return p?(r.headers.set("Authorization",`Bearer ${p.token}`),o={status:"complete",scopes:[f],tenantId:d.tenantId},u(r)):n}async function l(r,n,i){if("complete"!==o.status||401!==n.status)return n;let u=s(r),c=n.headers.get("WWW-Authenticate");if(!c)return n;let{claims:l,error:d}=eG(c);if("insufficient_claims"!==d||void 0===l)return n;let f=atob(l),p=await a(o.scopes,{...u,enableCae:!0,tenantId:o.tenantId,claims:f});return r.headers.set("Authorization",`Bearer ${p.token}`),i(r)}return{name:e1,sendRequest:async function(r,n){await u(r);let i=await n(r);return i=await c(r,i,n),i=await l(r,i,n)}}}function e3(r,n){let i;if("string"!=typeof r||!(r=r.trim()))throw Error("Invalid collection argument");if("string"!=typeof n||!(n=n.trim()))throw Error("Invalid identifier argument");try{i=new URL(n)}catch(i){throw Error(`Invalid ${r} identifier: ${n}. Not a valid URI`)}let o=(i.pathname||"").split("/");if(3!==o.length&&4!==o.length)throw Error(`Invalid ${r} identifier: ${n}. Bad number of segments: ${o.length}`);if(r!==o[1])throw Error(`Invalid ${r} identifier: ${n}. segment [1] should be "${r}", found "${o[1]}"`);let a=`${i.protocol}//${i.host}`;return{vaultUrl:a,name:o[2],version:4===o.length?o[3]:void 0}}let e8="2025-07-01";function e6(r){let n=r.split("/")[3];return{sourceId:r,...e3(n,r)}}function e4(r){let n=r,i=r,o=e6(n.id),a=n.attributes;delete n.attributes;let s={value:n.value,name:o.name,properties:{expiresOn:a?.expires,createdOn:a?.created,updatedOn:a?.updated,enabled:a?.enabled,notBefore:a?.notBefore,recoverableDays:a?.recoverableDays,recoveryLevel:a?.recoveryLevel,id:n.id,contentType:n.contentType,tags:n.tags,managed:n.managed,previousVersion:n.previousVersion,vaultUrl:o.vaultUrl,version:o.version,name:o.name,certificateKeyId:n.kid}};return i.recoveryId&&(s.properties.recoveryId=i.recoveryId,s.properties.scheduledPurgeDate=i.scheduledPurgeDate,s.properties.deletedOn=i.deletedDate,s.recoveryId=i.recoveryId,s.scheduledPurgeDate=i.scheduledPurgeDate,s.deletedOn=i.deletedDate),a&&(a.vaultUrl&&delete s.properties.vaultUrl,a.expires&&delete s.properties.expires,a.created&&delete s.properties.created,a.updated&&delete s.properties.updated),s}function e5(r,n,i){let o;return{async next(){o??=r({...n,maxresults:void 0});let a=await o.next();return{...a,value:a.value&&i(a.value)}},[Symbol.asyncIterator](){return this},async *byPage(o){for await(let a of r({...n,maxresults:o?.maxPageSize}).byPage(o))yield a.map(i)}}}let e9=(0,i(86178).y)({namespace:"Microsoft.KeyVault",packageName:"@azure/keyvault-secrets",packageVersion:P});(0,d.KV)("core-lro");class e7 extends Error{constructor(r){super(r),this.name="PollerStoppedError",Object.setPrototypeOf(this,e7.prototype)}}
125class te extends Error{constructor(r){super(r),this.name="PollerCancelledError",Object.setPrototypeOf(this,te.prototype)}}class tt{constructor(r){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=r,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(r={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(r),await this.delay()}async pollOnce(r={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(r){for(let n of this.pollProgressCallbacks)n(r)}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);let n=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(n,n).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let r=new te("Operation was canceled");throw this.reject(r),r}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(r={}){return this.stopped&&this.startPolling(r).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(r){return this.pollProgressCallbacks.push(r),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(n=>n!==r)}}isDone(){let r=this.operation.state;return!!(r.isCompleted||r.isCancelled||r.error)}stopPolling(){!this.stopped&&(this.stopped=!0,this.reject&&this.reject(new e7("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(r={}){if(this.cancelPromise){if(r.abortSignal)throw Error("A cancel request is currently pending")}else this.cancelPromise=this.cancelOnce(r);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}}class tr extends tt{intervalInMs=2e3;async delay(){return(0,g.cb)(this.intervalInMs)}}class tn{state;cancelMessage="";constructor(r,n={}){this.state=r,n.cancelMessage&&(this.cancelMessage=n.cancelMessage)}async update(){throw Error("Operation not supported.")}async cancel(){throw Error(this.cancelMessage)}toString(){return JSON.stringify({state:this.state})}}class ti extends tn{state;client;operationOptions;constructor(r,n,i={}){super(r,{cancelMessage:"Canceling the deletion of a secret is not supported."}),this.state=r,this.client=n,this.operationOptions=i}deleteSecret(r,n={}){return e9.withSpan("DeleteSecretPoller.deleteSecret",n,async n=>e4(await this.client.deleteSecret(r,n)))}getDeletedSecret(r,n={}){return e9.withSpan("DeleteSecretPoller.getDeletedSecret",n,async n=>e4(await this.client.getDeletedSecret(r,n)))}async update(r={}){let n=this.state,{name:i}=n;if(r.abortSignal&&(this.operationOptions.abortSignal=r.abortSignal),!n.isStarted){let r=await this.deleteSecret(i,this.operationOptions);n.isStarted=!0,n.result=r,r.properties.recoveryId||(n.isCompleted=!0)}if(!n.isCompleted)try{n.result=await this.getDeletedSecret(i,this.operationOptions),n.isCompleted=!0}catch(r){if(403===r.statusCode)n.isCompleted=!0;else if(404!==r.statusCode)throw n.error=r,n.isCompleted=!0,r}return this}}class to extends tr{constructor(r){let n;const{client:i,name:o,operationOptions:a,intervalInMs:s=2e3,resumeFrom:u}=r;u&&(n=JSON.parse(u).state),super(new ti({...n,name:o},i,a)),this.intervalInMs=s}}class ta extends tn{state;client;options;constructor(r,n,i={}){super(r,{cancelMessage:"Canceling the recovery of a deleted secret is not supported."}),this.state=r,this.client=n,this.options=i}getSecret(r,n={}){return e9.withSpan("RecoverDeletedSecretPoller.getSecret",n,async i=>e4(await this.client.getSecret(r,n&&n.version?n.version:"",i)))}recoverDeletedSecret(r,n={}){return e9.withSpan("RecoverDeletedSecretPoller.recoverDeletedSecret",n,async n=>
125e4(await this.client.recoverDeletedSecret(r,n)))}async update(r={}){let n=this.state,{name:i}=n;if(r.abortSignal&&(this.options.abortSignal=r.abortSignal),!n.isStarted){try{n.result=(await this.getSecret(i,this.options)).properties,n.isCompleted=!0}catch{}n.isCompleted||(n.result=(await this.recoverDeletedSecret(i,this.options)).properties,n.isStarted=!0)}if(!n.isCompleted)try{n.result=(await this.getSecret(i,this.options)).properties,n.isCompleted=!0}catch(r){if(403===r.statusCode)n.isCompleted=!0;else if(404!==r.statusCode)throw n.error=r,n.isCompleted=!0,r}return this}}class ts extends tr{constructor(r){let n;const{client:i,name:o,operationOptions:a,intervalInMs:s=2e3,resumeFrom:u}=r;u&&(n=JSON.parse(u).state),super(new ta({...n,name:o},i,a)),this.intervalInMs=s}}class tu{vaultUrl;client;constructor(r,n,i={}){this.vaultUrl=r;const o={...i,userAgentOptions:{userAgentPrefix:`${i.userAgentOptions?.userAgentPrefix??""} azsdk-js-keyvault-secrets/${P}`},apiVersion:i.serviceVersion||e8,loggingOptions:{logger:f.info,additionalAllowedHeaderNames:["x-ms-keyvault-region","x-ms-keyvault-network-info","x-ms-keyvault-service-version"]}};this.client=new eK(this.vaultUrl,n,o),this.client.pipeline.removePolicy({name:y.uQ}),this.client.pipeline.addPolicy(e2(n,i),{}),this.client.pipeline.addPolicy({name:"ContentTypePolicy",sendRequest:(r,n)=>((r.headers.get("Content-Type")??"").startsWith("application/json")&&r.headers.set("Content-Type","application/json"),n(r))})}setSecret(r,n,i={}){let{enabled:o,notBefore:a,expiresOn:s,tags:u,...c}=i;return e9.withSpan("SecretClient.setSecret",c,async i=>e4(await this.client.setSecret(r,{value:n,secretAttributes:{enabled:o,notBefore:a,expires:s},tags:u},i)))}async beginDeleteSecret(r,n={}){let i=new to({name:r,client:this.client,...n,operationOptions:n});return await i.poll(),i}async updateSecretProperties(r,n,i={}){let{enabled:o,notBefore:a,expiresOn:s,tags:u,...c}=i;return e9.withSpan("SecretClient.updateSecretProperties",c,async i=>e4(await this.client.updateSecret(r,n,{secretAttributes:{enabled:o,notBefore:a,expires:s},tags:u},i)).properties)}getSecret(r,n={}){return e9.withSpan("SecretClient.getSecret",n,async i=>e4(await this.client.getSecret(r,n&&n.version?n.version:"",i)))}getDeletedSecret(r,n={}){return e9.withSpan("SecretClient.getDeletedSecret",n,async n=>e4(await this.client.getDeletedSecret(r,n)))}purgeDeletedSecret(r,n={}){return e9.withSpan("SecretClient.purgeDeletedSecret",n,async n=>{await this.client.purgeDeletedSecret(r,n)})}async beginRecoverDeletedSecret(r,n={}){let i=new ts({name:r,client:this.client,...n,operationOptions:n});return await i.poll(),i}backupSecret(r,n={}){return e9.withSpan("SecretClient.backupSecret",n,async n=>(await this.client.backupSecret(r,n)).value)}restoreSecretBackup(r,n={}){return e9.withSpan("SecretClient.restoreSecretBackup",n,async n=>e4(await this.client.restoreSecret({secretBundleBackup:r},n)).properties)}listPropertiesOfSecretVersions(r,n={}){return e5(n=>this.client.getSecretVersions(r,n),n,r=>e4(r).properties)}listPropertiesOfSecrets(r={}){return e5(this.client.getSecrets.bind(this.client),r,r=>e4(r).properties)}listDeletedSecrets(r={}){return e5(this.client.getDeletedSecrets.bind(this.client),r,e4)}}},43769:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{getClientReact:function(){return a},getServerReact:function(){return c},registerClientReact:function(){return o},registerServerReact:function(){return u}});let i=null;function o(r){i=r}function a(){return i}let s=null;function u(r){s=r}function c(){return s}},45547:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createRequestFunction=n.toPathString=n.serializeDataIfNeeded=n.setSearchParams=n.setBearerAuthToObject=n.DUMMY_BASE_URL=void 0,n.attemptHttpRequest=f;let o=i(68809),a=i(42164),s=i(49291),u=i(69405);n.DUMMY_BASE_URL="https://example.com",n.setBearerAuthToObject=async function(r,n){let i=await n.getAccessTokenHeader();i&&!r[i.name]&&(r[i.name]=i.value)},n.setSearchParams=function(r,...n){let i=new URLSearchParams(r.
125search);for(let r of n)for(let n in r)if(Array.isArray(r[n]))for(let o of(i.delete(n),r[n]))i.append(n,o);else i.set(n,r[n]);r.search=i.toString()};let c=r=>{let n=RegExp("^(application/json|[^;/ 	]+/[^;/ 	]+[+]json)[ 	]*(;.*)?$","i");return null!==r&&(n.test(r)||"application/json-patch+json"===r.toLowerCase())};function l(r){return r&&"object"==typeof r&&!0===r.isAxiosError}function d(r,n){let i=Math.ceil(2**r*n);return Math.floor(Math.random()*(Math.ceil(2**(r+1)*n)-i)+i)}async function f(r,n,i){let a=0;do{a++;try{return{response:await i(r),retries:a-1}}catch(i){if(!l(i))throw new o.FgaError(i);let r=i?.response?.status;if(400===r||422===r)throw new o.FgaApiValidationError(i);if(401===r||403===r)throw new o.FgaApiAuthenticationError(i);if(404===r)throw new o.FgaApiNotFoundError(i);else if(429===r||r>=500){if(a>=n.maxRetry)if(429===r)throw new o.FgaApiRateLimitExceededError(i);else throw new o.FgaApiInternalError(i);await new Promise(r=>setTimeout(r,d(a,n.minWaitInMs)))}else throw new o.FgaApiError(i)}}while(a<n.maxRetry+1)}n.serializeDataIfNeeded=function(r,n){let i="string"!=typeof r;return(i?c(n.headers["Content-Type"]):i)?JSON.stringify(void 0!==r?r:{}):r||""},n.toPathString=function(r){return r.pathname+r.search+r.hash};let p=function(r,i,o,c,l={}){o.isValid();let d=r.options?.retryParams?r.options?.retryParams:o.retryParams,p=d?d.maxRetry:0,h=d?d.minWaitInMs:0,y=performance.now();return async(d=i)=>{await (0,n.setBearerAuthToObject)(r.options.headers,c);let g=o.getBasePath()+r.url,m={...r.options,url:g},b=await f(m,{maxRetry:p,minWaitInMs:h},d),w=b?.response,v={...void 0===w?.data?{}:w?.data};(0,a.setNotEnumerableProperty)(v,"$response",w);let _={};_=s.TelemetryAttributes.fromRequest({userAgent:o.baseOptions?.headers["User-Agent"],httpMethod:r.options?.method,url:g,resendCount:b?.retries,start:y,credentials:c,attributes:l});let E=(_=s.TelemetryAttributes.fromResponse({response:w,attributes:_}))[s.TelemetryAttribute.HttpServerRequestDuration];return o.telemetry?.metrics?.histogramQueryDuration&&void 0!==E&&o.telemetry.recorder.histogram(u.TelemetryHistograms.queryDuration,parseInt(_[s.TelemetryAttribute.HttpServerRequestDuration],10),s.TelemetryAttributes.prepare(_,o.telemetry.metrics.histogramQueryDuration.attributes)),o.telemetry?.metrics?.histogramRequestDuration&&o.telemetry.recorder.histogram(u.TelemetryHistograms.requestDuration,_[s.TelemetryAttribute.HttpClientRequestDuration],s.TelemetryAttributes.prepare(_,o.telemetry.metrics.histogramRequestDuration.attributes)),v}};n.createRequestFunction=p},45836:(r,n,i)=>{"use strict";i.d(n,{i:()=>a});let o="tlsPolicy";function a(r){return{name:o,sendRequest:async(n,i)=>(n.tlsSettings||(n.tlsSettings=r),i(n))}}},47397:(r,n)=>{"use strict";function i(r,n){let i=[],o=[...r];for(;o.length>0;)i.push(o.splice(0,n));return i}Object.defineProperty(n,"__esModule",{value:!0}),n.chunkArray=i},47475:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{isBot:function(){return s},userAgent:function(){return c},userAgentFromString:function(){return u}});let o=a(i(58268));function a(r){return r&&r.__esModule?r:{default:r}}function s(r){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver|GPTBot/i.test(r)}function u(r){return{...(0,o.default)(r),isBot:void 0!==r&&s(r)}}function c({headers:r}){return u(r.get("user-agent")||void 0)}},48877:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return o}});let o=(0,i(76840).createAsyncLocalStorage)()},49291:(r,n,i)=>{"use strict";var o,a;Object.defineProperty(n,"__esModule",{value:!0}),n.TelemetryAttributes=n.TelemetryAttribute=void 0;let s=i(82475);(a=o||(n.TelemetryAttribute=o={})).FgaClientRequestClientId="fga-client.request.client_id",a.FgaClientRequestMethod="fga-client.request.method",a.FgaClientRequestModelId="fga-client.request.model_id",a.FgaClientRequestStoreId="fga-client.request.store_id",a.FgaClientResponseModelId="fga-client.response.model_id",a.FgaClientUser="fga-client.user",a.HttpClientRequestDuration="http.client.request.duration",a.FgaClientRequestBatchCheckSize="fga-client.request.batch_check_size",a.HttpHost="http.host",a.HttpRequestMethod="http.request.method",a.HttpRequestResendCount="http.request.resend_count",a.HttpResponseStatusCode="http.response.status_code",a.HttpServerRequestDuration="http.server.request.duration",a.UrlScheme="url.scheme",a.UrlFull="url.full",a.UserAgentOriginal="user_agent.original";class u{static prepare(r,n){r=r||{},n=new Set(n);let i={};for(let o in r)n.has(o)&&(i[o]=r[o]);return i}
125static fromRequest({userAgent:r,fgaMethod:n,httpMethod:i,url:a,resendCount:u,start:c,credentials:l,attributes:d={}}){if(n&&(d[o.FgaClientRequestMethod]=n),r&&(d[o.UserAgentOriginal]=r),i&&(d[o.HttpRequestMethod]=i),a){let r=new s.URL(a);d[o.HttpHost]=r.hostname,d[o.UrlScheme]=r.protocol,d[o.UrlFull]=a}return c&&(d[o.HttpClientRequestDuration]=Math.round(performance.now()-c)),u&&(d[o.HttpRequestResendCount]=u),l&&"client_credentials"===l.method&&(d[o.FgaClientRequestClientId]=l.configuration.clientId),d}static fromResponse({response:r,attributes:n={}}){r?.status&&(n[o.HttpResponseStatusCode]=r.status);let i=r?.headers||{},a=i["openfga-authorization-model-id"],s=i["fga-query-duration-ms"]?parseInt(i["fga-query-duration-ms"],10):void 0;return a&&(n[o.FgaClientResponseModelId]=a),void 0!==s&&Number.isFinite(s)&&(n[o.HttpServerRequestDuration]=s),n}static fromRequestBody(r,n={}){return r?.authorization_model_id&&(n[o.FgaClientRequestModelId]=r.authorization_model_id),r?.tuple_key?.user&&(n[o.FgaClientUser]=r.tuple_key.user),r?.checks?.length&&(n[o.FgaClientRequestBatchCheckSize]=r.checks.length),n}}n.TelemetryAttributes=u},49344:(r,n,i)=>{"use strict";let o,a,s,u,c,l;i.d(n,{Ay:()=>sg});var d={};i.r(d),i.d(d,{q:()=>ro,l:()=>ru});var f=function(r,n,i,o,a){if("m"===o)throw TypeError("Private method is not writable");if("a"===o&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof n?r!==n||!a:!n.has(r))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(r,i):a?a.value=i:n.set(r,i),i},p=function(r,n,i,o){if("a"===i&&!o)throw TypeError("Private accessor was defined without a getter");if("function"==typeof n?r!==n||!o:!n.has(r))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(r):o?o.value:n.get(r)};let h=4096,y=160,g=3936;function m(r){let n=r?"__Secure-":"";return{sessionToken:{name:`${n}authjs.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r}},callbackUrl:{name:`${n}authjs.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r}},csrfToken:{name:`${r?"__Host-":""}authjs.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r}},pkceCodeVerifier:{name:`${n}authjs.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r,maxAge:900}},state:{name:`${n}authjs.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r,maxAge:900}},nonce:{name:`${n}authjs.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r}},webauthnChallenge:{name:`${n}authjs.challenge`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:r,maxAge:900}}}}class b{constructor(r,n,i){if(r2.add(this),r3.set(this,{}),r8.set(this,void 0),r6.set(this,void 0),f(this,r6,i,"f"),f(this,r8,r,"f"),!n)return;const{name:o}=r;for(const[r,i]of Object.entries(n))r.startsWith(o)&&i&&(p(this,r3,"f")[r]=i)}get value(){return Object.keys(p(this,r3,"f")).sort((r,n)=>parseInt(r.split(".").pop()||"0")-parseInt(n.split(".").pop()||"0")).map(r=>p(this,r3,"f")[r]).join("")}chunk(r,n){let i=p(this,r2,"m",r5).call(this);for(let o of p(this,r2,"m",r4).call(this,{name:p(this,r8,"f").name,value:r,options:{...p(this,r8,"f").options,...n}}))i[o.name]=o;return Object.values(i)}clean(){return Object.values(p(this,r2,"m",r5).call(this))}}r3=new WeakMap,r8=new WeakMap,r6=new WeakMap,r2=new WeakSet,r4=function(r){let n=Math.ceil(r.value.length/g);if(1===n)return p(this,r3,"f")[r.name]=r.value,[r];let i=[];for(let o=0;o<n;o++){let n=`${r.name}.${o}`,a=r.value.substr(o*g,g);i.push({...r,name:n,value:a}),p(this,r3,"f")[n]=a}return p(this,r6,"f").debug("CHUNKING_SESSION_COOKIE",{message:`Session cookie exceeds allowed ${h} bytes.`,emptyCookieSize:y,valueSize:r.value.length,chunks:i.map(r=>r.value.length+y)}),i},r5=function(){let r={};for(let n in p(this,r3,"f"))delete p(this,r3,"f")?.[n],r[n]={name:n,value:"",options:{...p(this,r8,"f").options,maxAge:0}};return r};var w=i(87829);let v=!1;function _(r,n){try{return/^https?:/.test(new URL(r,r.startsWith("/")?n:void 0).protocol)}catch{return!1}}function E(r){return/^v\d+(?:\.\d+){0,2}$/.test(r)}let S=!1,R=!1,A=!1,k=["createVerificationToken","useVerificationToken","getUserByEmail"],O=["createUser","getUser","getUserByEmail","getUserByAccount","updateUser","linkAccount","createSession","getSessionAndUser","updateSession","deleteSession"],x=["createUser","getUser","linkAccount","getAccount","getAuthenticator","createAuthenticator","listAuthenticatorsByUserId","updateAuthenticatorCounter"];function T(r,n){let{url:i}=r,o=[];if(!v&&n.debug&&o.push("debug-enabled"),!n.trustHost)return new w.tP(`Host must be trusted. URL was: ${r.url}`);if(!n.secret?.length)return new w.jo("Please define a `secret`");let a=r.query?.callbackUrl;if(a&&!_(a,i.origin))return new w.me(`Invalid callback URL. Received: ${a}`);let{callbackUrl:s}=m(n.useSecureCookies??"https:"===i.protocol),u=r.cookies?.[n.cookies?.callbackUrl?.name??s.name];if(u&&!_(u,i.origin))return new w.me(`Invalid callback URL. Received: ${u}`);let c=!1;for(let r of n.providers){let n="function"==typeof r?r():r;if(("oauth"===n.type||"oidc"===n.type)&&!(n.issuer??n.options?.issuer)){let r,{authorization:i,token:o,userinfo:a}=n;if("string"==typeof i||i?.url?"string"==typeof o||o?.url?"string"==typeof a||a?.url||(r="userinfo"):r="token":r="authorization",r)return new w.gs(`Provider "${n.id}" is missing both \`issuer\` and \`${r}\` endpoint config. At least one of them is required`)}if("credentials"===n.type)S=!0;else if("email"===n.type)R=!0;else if("webauthn"===n.type){if(A=!0,n.simpleWebAuthnBrowserVersion&&!E(n.simpleWebAuthnBrowserVersion))return new w.lR(`Invalid provider config for "${n.id}": simpleWebAuthnBrowserVersion "${n.simpleWebAuthnBrowserVersion}" must be a valid semver string.`);if(n.enableConditionalUI){if(c)return new w.s5("Multiple webauthn providers have 'enableConditionalUI' set to True. Only one provider can have this option enabled at a time");if(c=!0,!Object.values(n.formFields).some(r=>r.autocomplete&&r.autocomplete.toString().indexOf("webauthn")>-1))return new w.nd(`Provider "${n.id}" has 'enableConditionalUI' set to True, but none of its formFields have 'webauthn' in their autocomplete param`)}}}if(S){let r=n.session?.strategy==="database",i=!n.providers.some(r=>
125"credentials"!==("function"==typeof r?r():r).type);if(r&&i)return new w.Lx("Signing in with credentials only supported if JWT strategy is enabled");if(n.providers.some(r=>{let n="function"==typeof r?r():r;return"credentials"===n.type&&!n.authorize}))return new w.u$("Must define an authorize() handler to use credentials authentication provider")}let{adapter:l,session:d}=n,f=[];if(R||d?.strategy==="database"||!d?.strategy&&l)if(R){if(!l)return new w.OZ("Email login requires an adapter");f.push(...k)}else{if(!l)return new w.OZ("Database session requires an adapter");f.push(...O)}if(A){if(!n.experimental?.enableWebAuthn)return new w.xm("WebAuthn is an experimental feature. To enable it, set `experimental.enableWebAuthn` to `true` in your config");if(o.push("experimental-webauthn"),!l)return new w.OZ("WebAuthn requires an adapter");f.push(...x)}if(l){let r=f.filter(r=>!(r in l));if(r.length)return new w.i8(`Required adapter methods were missing: ${r.join(", ")}`)}return v||(v=!0),o}let P=()=>{if("u">typeof globalThis)return globalThis;if("u">typeof self)return self;if("u">typeof window)return window;throw Error("unable to locate global object")},C=async(r,n,i,o,a)=>{let{crypto:{subtle:s}}=P();return new Uint8Array(await s.deriveBits({name:"HKDF",hash:`SHA-${r.substr(3)}`,salt:i,info:o},await s.importKey("raw",n,"HKDF",!1,["deriveBits"]),a<<3))};function j(r){switch(r){case"sha256":case"sha384":case"sha512":case"sha1":return r;default:throw TypeError('unsupported "digest" value')}}function I(r,n){if("string"==typeof r)return new TextEncoder().encode(r);if(!(r instanceof Uint8Array))throw TypeError(`"${n}"" must be an instance of Uint8Array or a string`);return r}function D(r){let n=I(r,"ikm");if(!n.byteLength)throw TypeError('"ikm" must be at least one byte in length');return n}function U(r){let n=I(r,"info");if(n.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return n}function N(r,n){if("number"!=typeof r||!Number.isInteger(r)||r<1)throw TypeError('"keylen" must be a positive integer');if(r>255*(parseInt(n.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return r}async function M(r,n,i,o,a){return C(j(r),D(n),I(i,"salt"),U(o),N(a,r))}let L=new TextEncoder,$=new TextDecoder,q=new TextDecoder("utf-8",{fatal:!0}),B=0x100000000;function F(...r){let n=new Uint8Array(r.reduce((r,{length:n})=>r+n,0)),i=0;for(let o of r)n.set(o,i),i+=o.length;return n}function H(r,n,i){if(n<0||n>=B)throw RangeError(`value must be >= 0 and <= ${B-1}. Received ${n}`);r.set([n>>>24,n>>>16,n>>>8,255&n],i)}function W(r){let n=Math.floor(r/B),i=r%B,o=new Uint8Array(8);return H(o,n,0),H(o,i,4),o}function z(r){let n=new Uint8Array(4);return H(n,r),n}function V(r){let n=new Uint8Array(r.length);for(let i=0;i<r.length;i++){let o=r.charCodeAt(i);if(o>127)throw TypeError("non-ASCII string encountered in encode()");n[i]=o}return n}function K(r){if(Uint8Array.prototype.toBase64)return r.toBase64();let n=32768,i=[];for(let o=0;o<r.length;o+=n)i.push(String.fromCharCode.apply(null,r.subarray(o,o+n)));return btoa(i.join(""))}function J(r){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(r);let n=atob(r),i=new Uint8Array(n.length);for(let r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}let G="The input to be decoded is not correctly encoded.";function X(r){if(Uint8Array.fromBase64)try{return Uint8Array.fromBase64("string"==typeof r?r:$.decode(r),{alphabet:"base64url"})}catch(r){throw TypeError(G,{cause:r})}let n=r;if(n instanceof Uint8Array&&(n=$.decode(n)),n.includes("+")||n.includes("/"))throw TypeError(G);n=n.replace(/-/g,"+").replace(/_/g,"/");try{return J(n)}catch{throw TypeError(G)}}function Y(r){let n=r;return("string"==typeof n&&(n=L.encode(n)),Uint8Array.prototype.toBase64)?n.toBase64({alphabet:"base64url",omitPadding:!0}):K(n).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Q(r,n){if(!(r instanceof Uint8Array))throw TypeError(`${n} must be an instance of Uint8Array`)}function Z(r){if("object"!=typeof r||null===r||"[object Object]"!==Object.prototype.toString.call(r))return!1;let n=Object.getPrototypeOf(r);return null===n||null===Object.getPrototypeOf(n)}function ee(...r){let n=new Set;for(let i of r)if(i)for(let r of Object.keys(i)){if(n.has(r))return!1;n.add(r)}return!0}let et=Symbol();function er(r,n){if(void 0!==r)throw TypeError(`${n} can only be called once`)}function en(r,n,i){try{return X(r)}catch{throw new i(`Failed to base64url decode the ${n}`)}}async function ei(r,n){let i=`SHA-${r.slice(-3)}`;return new Uint8Array(await crypto.subtle.digest(i,n))}function eo(r,n,i){let o;try{o=JSON.parse(q.decode(X(r)))}catch{throw new n(i)}if(!Z(o))throw new n(i);return o}
125class ea extends Error{static code="ERR_JOSE_GENERIC";code="ERR_JOSE_GENERIC";constructor(r,n){super(r,n),this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}class es extends ea{static code="ERR_JWT_CLAIM_VALIDATION_FAILED";code="ERR_JWT_CLAIM_VALIDATION_FAILED";claim;reason;payload;constructor(r,n,i="unspecified",o="unspecified"){super(r,{cause:{claim:i,reason:o,payload:n}}),this.claim=i,this.reason=o,this.payload=n}}class eu extends ea{static code="ERR_JWT_EXPIRED";code="ERR_JWT_EXPIRED";claim;reason;payload;constructor(r,n,i="unspecified",o="unspecified"){super(r,{cause:{claim:i,reason:o,payload:n}}),this.claim=i,this.reason=o,this.payload=n}}class ec extends ea{static code="ERR_JOSE_ALG_NOT_ALLOWED";code="ERR_JOSE_ALG_NOT_ALLOWED"}class el extends ea{static code="ERR_JOSE_NOT_SUPPORTED";code="ERR_JOSE_NOT_SUPPORTED"}class ed extends ea{static code="ERR_JWE_DECRYPTION_FAILED";code="ERR_JWE_DECRYPTION_FAILED";constructor(r="decryption operation failed",n){super(r,n)}}class ef extends ea{static code="ERR_JWE_INVALID";code="ERR_JWE_INVALID"}class ep extends ea{static code="ERR_JWT_INVALID";code="ERR_JWT_INVALID"}class eh extends ea{static code="ERR_JWK_INVALID";code="ERR_JWK_INVALID"}function ey(r){if(!eg(r))throw Error("CryptoKey instance expected")}let eg=r=>{if(r?.[Symbol.toStringTag]==="CryptoKey")return!0;try{return r instanceof CryptoKey}catch{return!1}},em=r=>r?.[Symbol.toStringTag]==="KeyObject",eb=r=>eg(r)||em(r);function ew(r,n,...i){if(i.length>2){let n=i.pop();r+=`one of type ${i.join(", ")}, or ${n}.`}else 2===i.length?r+=`one of type ${i[0]} or ${i[1]}.`:r+=`of type ${i[0]}.`;return null==n?r+=` Received ${n}`:"function"==typeof n&&n.name?r+=` Received function ${n.name}`:"object"==typeof n&&null!=n&&n.constructor?.name&&(r+=` Received an instance of ${n.constructor.name}`),r}let ev=(r,...n)=>ew("Key must be ",r,...n),e_=(r,n,...i)=>ew(`Key for the ${r} algorithm must be `,n,...i);function eE(r){return Object.fromEntries(Object.entries(r).filter(([,r])=>void 0!==r))}async function eS(r){if(em(r))if("secret"!==r.type)return r.export({format:"jwk"});else r=r.export();if(r instanceof Uint8Array)return{kty:"oct",k:Y(r)};if(!eg(r))throw TypeError(ev(r,"CryptoKey","KeyObject","Uint8Array"));if(!r.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:n,key_ops:i,alg:o,use:a,...s}=eE(await crypto.subtle.exportKey("jwk",r));return"AKP"===s.kty&&(s.alg=o),s}function eR(r){return eS(r)}function eA(r){return{__proto__:null,...r}}function ek(r){let n=eA(r);if(void 0!==n.ext&&"boolean"!=typeof n.ext)throw TypeError('"ext" (Extractable) Parameter must be a boolean');if(void 0!==n.key_ops){let r=n.key_ops,i=Array.isArray(r)?[...r]:void 0;if(!i||i.some(r=>"string"!=typeof r)||new Set(i).size!==i.length)throw TypeError('"key_ops" (Key Operations) Parameter must be an array of unique strings');n.key_ops=i}return n}let eO=(r,n)=>{if("string"!=typeof r||!r)throw new eh(`${n} missing or invalid`)};async function ex(r,n){let i,o;if(Z(r)){if("string"!=typeof(i=eA(r)).kty)throw TypeError(ev(r,"CryptoKey","KeyObject","JSON Web Key"))}else if(eb(r))i=eA(await eR(r));else throw TypeError(ev(r,"CryptoKey","KeyObject","JSON Web Key"));if("sha256"!==(n??="sha256")&&"sha384"!==n&&"sha512"!==n)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(i.kty){case"AKP":eO(i.alg,'"alg" (Algorithm) Parameter'),eO(i.pub,'"pub" (Public key) Parameter'),o={alg:i.alg,kty:i.kty,pub:i.pub};break;case"EC":eO(i.crv,'"crv" (Curve) Parameter'),eO(i.x,'"x" (X Coordinate) Parameter'),eO(i.y,'"y" (Y Coordinate) Parameter'),o={crv:i.crv,kty:i.kty,x:i.x,y:i.y};break;case"OKP":eO(i.crv,'"crv" (Subtype of Key Pair) Parameter'),eO(i.x,'"x" (Public Key) Parameter'),o={crv:i.crv,kty:i.kty,x:i.x};break;case"RSA":eO(i.e,'"e" (Exponent) Parameter'),eO(i.n,'"n" (Modulus) Parameter'),o={e:i.e,kty:i.kty,n:i.n};break;case"oct":if("string"!=typeof i.k)throw new eh('"k" (Key Value) Parameter missing or invalid');o={k:i.k,kty:i.kty};break;default:throw new el('"kty" (Key Type) Parameter missing or unsupported')}let a=V(JSON.stringify(o));return Y(await ei(n,a))}let eT=(r,n="algorithm.name")=>TypeError(`CryptoKey does not support this operation, its ${n} must be ${r}`);function eP(r,n){if(n&&!r.usages.includes(n))throw TypeError(`CryptoKey does not support this operation, its usages must include ${n}.`)}function eC(r,n){let{modulusLength:i}=n.algorithm;if("number"!=typeof i||i<2048)throw TypeError(`${r}
125 requires key modulusLength to be 2048 bits or larger`)}function ej(r,n,i){let o=r.algorithm;if(o.name!==n.name)throw eT(n.name);if(n.hash&&o.hash?.name!==n.hash)throw eT(n.hash,"algorithm.hash");if(n.namedCurve&&o.namedCurve!==n.namedCurve)throw eT(n.namedCurve,"algorithm.namedCurve");if(void 0!==n.length&&o.length!==n.length)throw eT(n.length,"algorithm.length");eP(r,i)}let eI=r=>crypto.getRandomValues(new Uint8Array(r.cekBits>>3));function eD(r,n){let i=r.byteLength<<3;if(i!==n)throw new ef(`Invalid Content Encryption Key length. Expected ${n} bits, got ${i} bits`)}let eU=r=>crypto.getRandomValues(new Uint8Array(r.ivBits>>3));function eN(r,n){if(n.length<<3!==r.ivBits)throw new ef("Invalid Initialization Vector length")}async function eM(r,n,i){if(!(n instanceof Uint8Array))throw TypeError(ev(n,"Uint8Array"));let o=r.cekBits>>1;return[await crypto.subtle.importKey("raw",n.subarray(o>>3),"AES-CBC",!1,[i]),await crypto.subtle.importKey("raw",n.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),o]}async function eL(r,n,i){return new Uint8Array((await crypto.subtle.sign("HMAC",r,n)).slice(0,i>>3))}async function e$(r,n,i,o,a){let[s,u,c]=await eM(r,i,"encrypt"),l=new Uint8Array(await crypto.subtle.encrypt({iv:o,name:"AES-CBC"},s,n)),d=F(a,o,l,W(8*a.length));return{ciphertext:l,tag:await eL(u,d,c),iv:o}}async function eq(r,n){let i={name:"HMAC",hash:"SHA-256"},o=await crypto.subtle.generateKey(i,!1,["sign","verify"]),a=await crypto.subtle.sign(i,o,r);return crypto.subtle.verify(i,o,a,n)}async function eB(r,n,i,o,a,s){let[u,c,l]=await eM(r,n,"decrypt"),d=F(s,o,i,W(8*s.length)),f=await eL(c,d,l);try{if(await eq(a,f))return new Uint8Array(await crypto.subtle.decrypt({iv:o,name:"AES-CBC"},u,i))}catch{}throw new ed}async function eF(r,n,i,o,a){let s=i instanceof Uint8Array?await crypto.subtle.importKey("raw",i,"AES-GCM",!1,["encrypt"]):(ej(i,r.subtle,"encrypt"),i),u=new Uint8Array(await crypto.subtle.encrypt({additionalData:a,iv:o,name:"AES-GCM",tagLength:128},s,n)),c=u.slice(-16);return{ciphertext:u.slice(0,-16),tag:c,iv:o}}async function eH(r,n,i,o,a,s){let u=n instanceof Uint8Array?await crypto.subtle.importKey("raw",n,"AES-GCM",!1,["decrypt"]):(ej(n,r.subtle,"decrypt"),n);try{return new Uint8Array(await crypto.subtle.decrypt({additionalData:s,iv:o,name:"AES-GCM",tagLength:128},u,F(i,a)))}catch{throw new ed}}async function eW(r,n,i,o,a){if(!eg(i)&&!(i instanceof Uint8Array))throw TypeError(ev(i,"CryptoKey","KeyObject","Uint8Array","JSON Web Key"));return o?eN(r,o):o=eU(r),i instanceof Uint8Array&&eD(i,r.cekBits),r.cbc?e$(r,n,i,o,a):eF(r,n,i,o,a)}async function ez(r,n,i,o,a,s){if(!eg(n)&&!(n instanceof Uint8Array))throw TypeError(ev(n,"CryptoKey","KeyObject","Uint8Array","JSON Web Key"));if(!o)throw new ef("JWE Initialization Vector missing");if(!a)throw new ef("JWE Authentication Tag missing");if(!r.cbc&&16!==a.length)throw new ef("Invalid Authentication Tag length");return eN(r,o),n instanceof Uint8Array&&eD(n,r.cekBits),r.cbc?eB(r,n,i,o,a,s):eH(r,n,i,o,a,s)}async function eV(r,n){if("RSA"===n.kty&&"oth"in n&&void 0!==n.oth)throw new el('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');if(!r.kty.includes(n.kty))throw new el('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');let i=r.resolve?.({kty:n.kty,crv:n.crv})??r.subtle,o=!!(n.d||n.priv),a={...n};return"AKP"!==a.kty&&delete a.alg,delete a.use,crypto.subtle.importKey("jwk",a,i,n.ext??!o,n.key_ops??r.usages[+!!o])}let eK=r=>r[Symbol.toStringTag],eJ=(r,n,i)=>{let{alg:o}=r;if(void 0!==n.use){let r="sign"===i||"verify"===i?"sig":"enc";if(n.use!==r)throw TypeError(`Invalid key for this operation, its "use" must be "${r}" when present`)}if(void 0!==n.alg&&n.alg!==o)throw TypeError(`Invalid key for this operation, its "alg" must be "${o}" when present`);if(Array.isArray(n.key_ops)){let o="encrypt"===i||"decrypt"===i?r.ops?.[+("encrypt"!==i)]:i;if(o&&!n.key_ops.includes(o))throw TypeError(`Invalid key for this operation, its "key_ops" must include "${o}" when present`)}};function eG(r,n,i){let{alg:o,secret:a}=r,s="decrypt"===i||"sign"===i;if(a&&n instanceof Uint8Array)return[eX,n];if(Z(n)){let u=ek(n);if("string"!=typeof u.kty)throw TypeError(a?e_(o,n,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):e_(o,n,"CryptoKey","KeyObject","JSON Web Key"));if(!(a?"oct"===u.kty&&"string"==typeof u.k:"oct"!==u.kty&&(s?"AKP"===u.kty&&"string"==typeof u.priv||"string"==typeof u.d:void 0===u.d&&void 0===u.priv)))throw TypeError(a?'JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present':`JSON Web Key for this operation must be a ${s?"private":"public"} JWK`);return eJ(r,u,i),[eZ,n,u]}if(!eb(n))throw TypeError(a?e_(o,n,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"):e_(o,n,"CryptoKey","KeyObject","JSON Web Key"));if(a){if("secret"!==n.type)throw TypeError(`${eK(n)} instances for symmetric algorithms must be of type "secret"`)}else{if("secret"===n.type)throw TypeError(`${eK(n)} instances for asymmetric algorithms must not be of type "secret"`);let r=s?"private":"public";if(("public"===n.type||"private"===n.type)&&n.type!==r){let o="sign"===i?"signing":"verify"===i?"verifying":`${i.slice(0,-1)}tion`;throw TypeError(`${eK(n)} instances for asymmetric algorithm ${o} must be of type "${r}"`)}}return eg(n)?[eY,n]:[eQ,n]}let eX=0,eY=1,eQ=2,eZ=3,e0={__proto__:null,prime256v1:"P-256",secp384r1:"P-384",secp521r1:"P-521"};
125function e1(r,n,i){let a=(o||=new WeakMap).get(r);return i&&(a?a[n]=i:o.set(r,{[n]:i})),i??a?.[n]}let e2=async(r,n,i)=>e1(r,i.alg)??e1(r,i.alg,await eV(i,{...n,alg:i.alg})),e3=(r,n)=>{let i=e1(r,n.alg);if(i)return i;let o="public"===r.type,a=n.usages[+!o],{asymmetricKeyType:s}=r,u=e0[r.asymmetricKeyDetails?.namedCurve],c=n.resolve?.({crv:u,asymmetricKeyType:s})??n.subtle;return e1(r,n.alg,r.toCryptoKey(c,o,a))};async function e8(r,n,i){let o=eG(r,n,i);switch(o[0]){case eX:case eY:return o[1];case eZ:{let n=o[1],i=o[2];if("oct"===i.kty)return X(i.k);if(!Object.isFrozen(n)){let{key_ops:r}=n;Array.isArray(r)&&Object.freeze(r),Object.freeze(n)}return e2(n,i,r)}case eQ:{let n=o[1];if("secret"===n.type)return n.export();if("toCryptoKey"in n&&"function"==typeof n.toCryptoKey)return e3(n,r);return e2(n,n.export({format:"jwk"}),r)}}}function e6(r){let n={__proto__:null};for(let i in r)n[i]={...r[i],alg:i};return n}let e4=[["encrypt","wrapKey"],["decrypt","unwrapKey"]],e5=[[],["deriveBits"]],e9=[[],[]];function e7(r){return{kty:["RSA"],subtle:{name:"RSA-OAEP",hash:`SHA-${r}`},usages:e4,ops:["wrapKey","unwrapKey"]}}function te(){return{kty:["EC","OKP"],subtle:{name:"ECDH"},resolve:({kty:r,crv:n,asymmetricKeyType:i})=>{if("X25519"===n||"x25519"===i)return{name:"X25519"};if("OKP"===r)throw new el('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');return{name:"ECDH",namedCurve:n}},usages:e5,ops:[void 0,"deriveBits"]}}function tt(r,n=!1){return{kty:["oct"],secret:!0,subtle:{name:n?"AES-GCM":"AES-KW",length:r},usages:e9,ops:n?["encrypt","decrypt"]:["wrapKey","unwrapKey"]}}function tr(){return{kty:["oct"],secret:!0,subtle:{name:"PBKDF2"},usages:e9,ops:["deriveBits","deriveBits"]}}let tn=e6({dir:{kty:["oct"],secret:!0,subtle:{name:"AES-GCM"},usages:e9,ops:["encrypt","decrypt"]},"RSA-OAEP":e7(1),"RSA-OAEP-256":e7(256),"RSA-OAEP-384":e7(384),"RSA-OAEP-512":e7(512),"ECDH-ES":te(),"ECDH-ES+A128KW":te(),"ECDH-ES+A192KW":te(),"ECDH-ES+A256KW":te(),A128KW:tt(128),A192KW:tt(192),A256KW:tt(256),A128GCMKW:tt(128,!0),A192GCMKW:tt(192,!0),A256GCMKW:tt(256,!0),"PBES2-HS256+A128KW":tr(),"PBES2-HS384+A192KW":tr(),"PBES2-HS512+A256KW":tr()}),ti=["encrypt","decrypt"];function to(r,n=!1){return{kty:["oct"],secret:!0,subtle:{name:n?"AES-CBC":"AES-GCM",length:r},usages:e9,ops:ti,cekBits:r,ivBits:n?128:96,cbc:n}}let ta=e6({A128GCM:to(128),A192GCM:to(192),A256GCM:to(256),"A128CBC-HS256":to(256,!0),"A192CBC-HS384":to(384,!0),"A256CBC-HS512":to(512,!0)});function ts(r,n){throw new el(`Invalid or unsupported "${r}" (JWE ${n}) header value`)}function tu(r){return("string"==typeof r?tn[r]:void 0)??ts("alg","Algorithm")}function tc(r){return("string"==typeof r?ta[r]:void 0)??ts("enc","Encryption Algorithm")}function tl(r,n){if("ECDH"!==r.algorithm.name&&"X25519"!==r.algorithm.name)throw TypeError("CryptoKey does not support this operation, its algorithm.name must be ECDH or X25519");eP(r,n)}async function td(r,n,i){let o=tu(n).subtle,a=r instanceof Uint8Array?await crypto.subtle.importKey("raw",r,"AES-KW",!0,[i]):r;return ej(a,o,i),a}async function tf(r,n,i){let o=await td(n,r,"wrapKey"),a=await crypto.subtle.importKey("raw",i,{hash:"SHA-256",name:"HMAC"},!0,["sign"]);return new Uint8Array(await crypto.subtle.wrapKey("raw",a,o,"AES-KW"))}async function tp(r,n,i){let o=await td(n,r,"unwrapKey"),a=await crypto.subtle.unwrapKey("raw",i,o,"AES-KW",{hash:"SHA-256",name:"HMAC"},!0,["sign"]);return new Uint8Array(await crypto.subtle.exportKey("raw",a))}function th(r,n,i){ej(n,tu(r).subtle,i),eC(r,n)}function ty(r,n){return r instanceof Uint8Array?crypto.subtle.importKey("raw",r,"PBKDF2",!1,["deriveBits"]):(ej(r,tu(n).subtle,"deriveBits"),r)}async function tg(r,n,i,o){if(!(r instanceof Uint8Array)||r.length<8)throw new ef("PBES2 Salt Input must be 8 or more octets");if(!Number.isSafeInteger(i)||1!==Math.sign(i))throw new ef("PBES2 Count Input must be a positive integer");let a=F(V(n),Uint8Array.of(0),r),s=parseInt(n.slice(13,16),10),u={hash:`SHA-${n.slice(8,11)}`,iterations:i,name:"PBKDF2",salt:a},c=await ty(o,n);return new Uint8Array(await crypto.subtle.deriveBits(u,c,s))}function tm(r){return F(z(r.length),r)}async function tb(r,n,i){let o=n>>3,a=32,s=Math.ceil(o/32),u=new Uint8Array(32*s);for(let n=1;n<=s;n++){let o=await ei("sha256",F(z(n),r,i));u.set(o,(n-1)*a)}return u.slice(0,o)}async function tw(r,n,i,o,a=new Uint8Array,s=new Uint8Array){tl(r),tl(n,"deriveBits");let u=F(tm(V(i)),tm(a),tm(s),z(o));return tb(new Uint8Array(await crypto.subtle.deriveBits({name:r.algorithm.name,public:r},n,"X25519"===r.algorithm.name?256:Math.ceil(parseInt(r.algorithm.namedCurve.slice(-3),10)/8)<<3)),o,u)}function tv(r){ey(r);let n=r.algorithm.namedCurve;if("P-256"!==n&&"P-384"!==n&&"P-521"!==n&&"X25519"!==r.algorithm.name)throw new el("ECDH with the provided key is not allowed or not supported by your javascript runtime")}function t_(r){if(void 0===r)throw new ef("JWE Encrypted Key missing")}function tE(r){if(void 0!==r)throw new ef("Encountered unexpected JWE Encrypted Key")}async function tS(r,n,i,o,a,s){let u=tu(r);if("dir"===r)return tE(o),i;switch(u.subtle.name){case"ECDH":{let s,c;if("ECDH-ES"===r&&tE(o),!Z(a.epk))throw new ef('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');tv(i);let l=await eV(u,a.epk);if(void 0!==a.apu){if("string"!=typeof a.apu)throw new ef('JOSE Header "apu" (Agreement PartyUInfo) invalid');s=en(a.apu,"apu",ef)}if(void 0!==a.apv){if("string"!=typeof a.apv)throw new ef('JOSE Header "apv" (Agreement PartyVInfo) invalid');c=en(a.apv,"apv",ef)}let d=await tw(l,i,"ECDH-ES"===r?n.alg:r,"ECDH-ES"===r?n.cekBits:parseInt(r.slice(-5,-2),10),s,c);if("ECDH-ES"===r)return d;return t_(o),tp(r.slice(-6),d,o)}case"RSA-OAEP":return t_(o),ey(i),th(r,i,"decrypt"),new Uint8Array(await crypto.subtle.decrypt("RSA-OAEP",i,o));case"PBKDF2":{if(t_(o),"number"!=typeof a.p2c)throw new ef('JOSE Header "p2c" (PBES2 Count) missing or invalid');let n=s||1e4;if(a.p2c>n)throw new ef('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof a.p2s)throw new ef('JOSE Header "p2s" (PBES2 Salt) missing or invalid');let u=en(a.p2s,"p2s",ef),c=await tg(u,r,a.p2c,i);return tp(r.slice(-6),c,o)}case"AES-KW":return t_(o),tp(r,i,o);case"AES-GCM":{let n,s;if(t_(o),"string"!=typeof a.iv)throw new ef('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof a.tag)throw new ef('JOSE Header "tag" (Authentication Tag) missing or invalid');return n=en(a.iv,"iv",ef),s=en(a.tag,"tag",ef),ez(tc(r.slice(0,-2)),i,o,n,s,new Uint8Array)}}}async function tR(r,n,i,o,a={}){let s,u,c,l=tu(r);if("dir"===r)return[i,void 0,void 0];switch(l.subtle.name){case"ECDH":{let d;tv(i);let{apu:f,apv:p}=a;void 0!==f&&Q(f,'"apu"'),void 0!==p&&Q(p,'"apv"'),d=void 0!==a.epk?await e8(l,a.epk,"decrypt"):(await crypto.subtle.generateKey(i.algorithm,!0,["deriveBits"])).privateKey;let h=crypto.subtle,y=d;if(!y.extractable){if("function"!=typeof h.getPublicKey)throw TypeError('CryptoKey for "epk" must be extractable');y=await h.getPublicKey(d,[])}let{x:g,y:m,crv:b,kty:w}=await h.exportKey("jwk",y),v=await tw(i,d,"ECDH-ES"===r?n.alg:r,"ECDH-ES"===r?n.cekBits:parseInt(r.slice(-5,-2),10),f,p);if(u={epk:{x:g,crv:b,kty:w}},"EC"===w&&(u.epk.y=m),f&&(u.apu=Y(f)),p&&(u.apv=Y(p)),"ECDH-ES"===r){c=v;break}c=o||eI(n);let _=r.slice(-6);s=await tf(_,v,c);break}case"RSA-OAEP":c=o||eI(n),ey(i),th(r,i,"encrypt"),s=new Uint8Array(await crypto.subtle.encrypt("RSA-OAEP",i,c));break;case"PBKDF2":{c=o||eI(n);let{p2c:l=2048,p2s:d=crypto.getRandomValues(new Uint8Array(16))}=a,f=await tg(d,r,l,i);s=await tf(r.slice(-6),f,c),u={p2c:l,p2s:Y(d)};break}case"AES-KW":c=o||eI(n),s=await tf(r,i,c);break;case"AES-GCM":{c=o||eI(n);let{iv:l}=a,d=await eW(tc(r.slice(0,-2)),c,i,l,new Uint8Array);s=d.ciphertext,u={iv:Y(d.iv),tag:Y(d.tag)}}}return[c,s,u]}let tA={__proto__:null};function tk(r,n){if(void 0!==n&&(!Array.isArray(n)||n.some(r=>"string"!=typeof r)))throw TypeError(`"${r}
125" option must be an array of strings`);if(n)return new Set(n)}function tO(r,n){let{crit:i}=n??{};if(Array.isArray(i)&&new Set(i).size!==i.length)throw new r('"crit" (Critical) Header Parameter MUST NOT contain duplicate values')}function tx(r,n,i,o,a){if(void 0!==a.crit&&o?.crit===void 0)throw new r('"crit" (Critical) Header Parameter MUST be integrity protected');if(!o||void 0===o.crit)return[];if(!Array.isArray(o.crit)||0===o.crit.length||o.crit.some(r=>"string"!=typeof r||0===r.length))throw new r('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s=void 0===i?n:{__proto__:null,...i,...n};for(let n of o.crit){if(!(n in s))throw new el(`Extension Header Parameter "${n}" is not recognized`);if(!Object.hasOwn(a,n)||void 0===a[n])throw new r(`Extension Header Parameter "${n}" is missing`);if(s[n]&&(!Object.hasOwn(o,n)||void 0===o[n]))throw new r(`Extension Header Parameter "${n}" MUST be integrity protected`)}return o.crit}function tT(r,n){let i,o;try{i=JSON.stringify(n),o=JSON.parse(i)}catch(n){throw new r("JOSE Header is not valid JSON",{cause:n})}if(!Z(o))throw new r("JOSE Header is not a JSON object");return[o,i]}function tP(r,n){if(void 0!==r.zip&&"DEF"!==r.zip)throw new el('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value.');if(void 0!==r.zip&&!n?.zip)throw new ef('JWE "zip" (Compression Algorithm) Header Parameter MUST be in a protected header.')}function tC(r){if(void 0===globalThis[r])throw new el(`JWE "zip" (Compression Algorithm) Header Parameter requires the ${r} API.`)}async function tj(r){tC("CompressionStream");let n=new CompressionStream("deflate-raw"),i=n.writable.getWriter();i.write(r).catch(()=>{}),i.close().catch(()=>{});let o=[],a=n.readable.getReader();for(;;){let{value:r,done:n}=await a.read();if(n)break;o.push(r)}return F(...o)}async function tI(r,n){tC("DecompressionStream");let i=new DecompressionStream("deflate-raw"),o=i.writable.getWriter();o.write(r).catch(()=>{}),o.close().catch(()=>{});let a=[],s=0,u=i.readable.getReader();for(;;){let{value:r,done:i}=await u.read();if(i)break;if(a.push(r),s+=r.byteLength,n!==1/0&&s>n)throw new ef("Decompressed plaintext exceeded the configured limit")}return F(...a)}function tD(r,n,i){if(!ee(r,n,i))throw new ef("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}function tU(r){let[,n,i,o,a,s,u,c,l]=r;if(void 0!==a&&Q(a,"JWE Additional Authenticated Data"),void 0!==s&&Q(s,"JWE Content Encryption Key"),void 0!==u&&Q(u,"JWE Initialization Vector"),void 0!==n&&(n=tT(ef,n)[0],r[1]=n),void 0!==i&&(i=tT(ef,i)[0],r[2]=i),void 0!==o&&(o=tT(ef,o)[0],r[3]=o),void 0!==c&&!Z(c))throw TypeError("JWE Key Management Parameters must be an object");tD(n,i,o);let d={...n,...i,...o};tO(ef,n),tx(ef,tA,l,n,d),tP(d,n);let{alg:f,enc:p}=d;if("string"!=typeof f||!f)throw new ef('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof p||!p)throw new ef('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');return[d,f,p,tc(p)]}async function tN(r,n,i){let o,a,s,u,[c,l,,d]=n,[f,p,h,y,g,m,b,w,,v]=r,_=p,E=h;if(m&&("dir"===l||"ECDH-ES"===l))throw TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${l}`);let S=tu(l),R=await e8("dir"===l?d:S,i,"encrypt"),[A,k,O]=await tR(l,d,R,m,w);O&&(v?E=E?{...E,...O}:O:_=_?{..._,...O}:O,tD(_,E,y)),_?a=V(o=Y(JSON.stringify(_))):(o="",a=new Uint8Array),g?.byteLength?(u=Y(g),s=F(a,V("."),V(u))):s=a;let x=f;"DEF"===c.zip&&(x=await tj(x).catch(r=>{throw new ef("Failed to compress plaintext",{cause:r})}));let{ciphertext:T,tag:P,iv:C}=await eW(d,x,A,b,s),j={ciphertext:Y(T)};return C&&(j.iv=Y(C)),P&&(j.tag=Y(P)),k&&(j.encrypted_key=Y(k)),u&&(j.aad=u),_&&(j.protected=o),y&&(j.unprotected=y),E&&(j.header=E),j}async function tM(r,n,i){if(!r[1]&&!r[2]&&!r[3])throw new ef("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");
125return void 0!==i&&(r[8]=i?.crit,r[9]=!!i&&et in i),tN(r,tU(r),n)}let tL=r=>Math.floor(r.getTime()/1e3),t$={s:1,m:60,h:3600,d:86400,w:604800,y:0x1e187e0},tq=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,tB="check_failed";function tF(){throw TypeError("Invalid time period format")}function tH(r){"string"!=typeof r&&tF();let n=tq.exec(r);(!n||n[4]&&n[1])&&tF();let i=Math.round(parseFloat(n[2])*t$[n[3][0].toLowerCase()]);return(Number.isFinite(i)||tF(),"-"===n[1]||"ago"===n[4])?-i:i}function tW(r,n){if(!Number.isFinite(n))throw TypeError(`Invalid ${r} input`);return n}function tz(r,n){if("string"!=typeof n)throw TypeError(`"${r}" claim must be a string`)}function tV(r){if("string"!=typeof r&&(!Array.isArray(r)||Array.from(r).some(r=>"string"!=typeof r)))throw TypeError('"aud" claim must be a string or an array of strings')}function tK(r,n){return"number"==typeof r?tW(n,r):r instanceof Date?tW(n,tL(r)):tL(new Date)+tH(r)}let tJ=r=>{let n=r.toLowerCase();return r.includes("/")?n:`application/${n}`},tG=(r,n)=>"string"==typeof r?n.includes(r):!!Array.isArray(r)&&n.some(n=>r.includes(n));function tX(r,n,i=!1){let o=r[n];if(void 0!==o||i){if("number"!=typeof o)throw new es(`"${n}" claim must be a number`,r,n,"invalid");return o}}function tY(r,n){throw new es(`unexpected "${n}" claim value`,r,n,tB)}function tQ(r,n,i={}){let o;try{o=JSON.parse(q.decode(n))}catch{}if(!Z(o))throw new ep("JWT Claims Set must be a top-level JSON object");let{typ:a}=i;if(void 0!==a&&("string"!=typeof r.typ||tJ(r.typ)!==tJ(a)))throw new es('unexpected "typ" JWT header value',o,"typ",tB);let{requiredClaims:s=[],issuer:u,subject:c,audience:l,maxTokenAge:d}=i,f=[...s];for(let r of(void 0!==d&&f.push("iat"),void 0!==l&&f.push("aud"),void 0!==c&&f.push("sub"),void 0!==u&&f.push("iss"),new Set(f.reverse())))if(!Object.hasOwn(o,r))throw new es(`missing required "${r}" claim`,o,r,"missing");void 0===u||(Array.isArray(u)?u:[u]).includes(o.iss)||tY(o,"iss"),void 0!==c&&o.sub!==c&&tY(o,"sub"),void 0===l||tG(o.aud,"string"==typeof l?[l]:l)||tY(o,"aud");let{clockTolerance:p}=i,h=0;if("string"==typeof p)h=tH(p);else if(void 0!==p){if("number"!=typeof p)throw TypeError("Invalid clockTolerance option type");h=p}tW("clockTolerance option",h);let{currentDate:y}=i,g=tW("currentDate option",tL(void 0===y?new Date:y)),m=tX(o,"iat",void 0!==d),b=tX(o,"nbf");if(void 0!==b&&b>g+h)throw new es('"nbf" claim timestamp check failed',o,"nbf",tB);let w=tX(o,"exp");if(void 0!==w&&w<=g-h)throw new eu('"exp" claim timestamp check failed',o,"exp",tB);if(void 0!==d){let r=g-m;if(r-h>tW("maxTokenAge option","number"==typeof d?d:tH(d)))throw new eu('"iat" claim timestamp check failed (too far in the past)',o,"iat",tB);if(r<-h)throw new es('"iat" claim timestamp check failed (it should be in the past)',o,"iat",tB)}return o}function tZ(r){return a.get(r)}function t0(r){let n=tZ(r);for(let r of["iat","nbf","exp"]){let i=n[r];if("number"==typeof i&&!Number.isFinite(i))throw TypeError(`"${r}" claim must be a finite number`)}return L.encode(JSON.stringify(n))}function t1(r,n){return tZ(r)[n]}class t2{constructor(r={}){if(!Z(r))throw TypeError("JWT Claims Set MUST be an object");(a||=new WeakMap).set(this,structuredClone(r))}setIssuer(r){return tz("iss",r),tZ(this).iss=r,this}setSubject(r){return tz("sub",r),tZ(this).sub=r,this}setAudience(r){return tV(r),tZ(this).aud=r,this}setJti(r){return tz("jti",r),tZ(this).jti=r,this}setNotBefore(r){return tZ(this).nbf=tK(r,"setNotBefore"),this}setExpirationTime(r){return tZ(this).exp=tK(r,"setExpirationTime"),this}setIssuedAt(r){let n=tZ(this);return void 0===r?n.iat=tL(new Date):"string"==typeof r?n.iat=tW("setIssuedAt",tL(new Date)+tH(r)):n.iat=tK(r,"setIssuedAt"),this}}let t3=t2;class t8 extends t3{#e;#t;#r;#n;#i;#o;#a;setProtectedHeader(r){return er(this.#n,"setProtectedHeader"),this.#n=r,this}setKeyManagementParameters(r){return er(this.#r,"setKeyManagementParameters"),this.#r=r,this}setContentEncryptionKey(r){return er(this.#e,"setContentEncryptionKey"),this.#e=r,this}setInitializationVector(r){return er(this.#t,"setInitializationVector"),this.#t=r,this}replicateIssuerAsHeader(){return this.#i=!0,this}replicateSubjectAsHeader(){return this.#o=!0,this}replicateAudienceAsHeader(){return this.#a=!0,this}
125async encrypt(r,n){let i=t0(this);this.#n&&(this.#i||this.#o||this.#a)&&(this.#n={...this.#n,iss:this.#i?t1(this,"iss"):void 0,sub:this.#o?t1(this,"sub"):void 0,aud:this.#a?t1(this,"aud"):void 0});let o=await tM([i,this.#n,void 0,void 0,void 0,this.#e,this.#t,this.#r,void 0,!1],r,n);return[o.protected,o.encrypted_key,o.iv,o.ciphertext,o.tag].join(".")}}function t6(r){return[r&&tk("keyManagementAlgorithms",r.keyManagementAlgorithms),r&&tk("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms),r?.crit,r?.maxPBES2Count,r?.maxDecompressedLength]}async function t4(r,n,i,o,a){let s,u,[c,l,d,f,p]=i,[h,y,g,m,b]=n,{encrypted_key:w}=r;tx(ef,tA,d,h,a),tP(a,h);let{alg:v,enc:_}=a;if("string"!=typeof v||!v)throw new ef("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof _||!_)throw new ef("missing JWE Encryption Algorithm (enc) in JWE Header");if(c&&!c.has(v)||!c&&v.startsWith("PBES2"))throw new ec('"alg" (Algorithm) Header Parameter value not allowed');if(l&&!l.has(_))throw new ec('"enc" (Encryption Algorithm) Header Parameter value not allowed');let E=tc(_);void 0!==w&&(s=en(w,"encrypted_key",ef));let S=!1;"function"==typeof o&&(o=await o(h,r),S=!0);let R=tu(v),A=await e8("dir"===v?E:R,o,"decrypt");try{u=await tS(v,E,A,s,a,f),void 0!==w&&u instanceof Uint8Array&&u.byteLength<<3!==E.cekBits&&(u=eI(E))}catch(r){if(r instanceof TypeError||r instanceof ef||r instanceof el)throw r;u=eI(E)}let k=await ez(E,u,y,g,m,b);if("DEF"===a.zip){let r=p??25e4;if(0===r)throw new el('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');if(r!==1/0&&(!Number.isSafeInteger(r)||r<1))throw TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");k=await tI(k,r).catch(r=>{if(r instanceof ef)throw r;throw new ef("Failed to decompress plaintext",{cause:r})})}return[k,h,A,S]}async function t5(r,n,i){if(r instanceof Uint8Array&&(r=$.decode(r)),"string"!=typeof r)throw new ef("Compact JWE must be a string or Uint8Array");let{0:o,1:a,2:s,3:u,4:c,length:l}=r.split(".");if(5!==l)throw new ef("Invalid Compact JWE");let d={ciphertext:u,iv:s||void 0,protected:o,tag:c||void 0,encrypted_key:a||void 0},f=eo(o,ef,"JWE Protected Header is invalid"),p=V(o);return t4(d,[f,en(u,"ciphertext",ef),s?en(s,"iv",ef):void 0,c?en(c,"tag",ef):void 0,p],n,i,f)}async function t9(r,n,i){let o=await t5(r,t6(i),n),a=o[1],s=tQ(a,o[0],i);for(let r of["iss","sub","aud"])if(void 0!==a[r]&&("aud"===r?JSON.stringify(a.aud)!==JSON.stringify(s.aud):a[r]!==s[r]))throw new es(`replicated "${r}" claim header parameter mismatch`,s,r,"mismatch");let u={payload:s,protectedHeader:a};return"function"==typeof n?{...u,key:o[2]}:u}let t7=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,re=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,rt=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,rr=/^[\u0020-\u003A\u003D-\u007E]*$/,rn=Object.prototype.toString,ri=((l=function(){}).prototype=Object.create(null),l);function ro(r,n){let i=new ri,o=r.length;if(o<2)return i;let a=n?.decode||rc,s=0;do{let n=r.indexOf("=",s);if(-1===n)break;let u=r.indexOf(";",s),c=-1===u?o:u;if(n>c){s=r.lastIndexOf(";",n-1)+1;continue}let l=ra(r,s,n),d=rs(r,n,l),f=r.slice(l,d);if(void 0===i[f]){let o=ra(r,n+1,c),s=rs(r,c,o),u=a(r.slice(o,s));i[f]=u}s=c+1}while(s<o);return i}function ra(r,n,i){do{let i=r.charCodeAt(n);if(32!==i&&9!==i)return n}while(++n<i);return i}function rs(r,n,i){for(;n>i;){let i=r.charCodeAt(--n);if(32!==i&&9!==i)return n+1}return i}function ru(r,n,i){let o=i?.encode||encodeURIComponent;if(!t7.test(r))throw TypeError(`argument name is invalid: ${r}`);let a=o(n);if(!re.test(a))throw TypeError(`argument val is invalid: ${n}`);let s=r+"="+a;if(!i)return s;if(void 0!==i.maxAge){if(!Number.isInteger(i.maxAge))throw TypeError(`option maxAge is invalid: ${i.maxAge}`);s+="; Max-Age="+i.maxAge}if(i.domain){if(!rt.test(i.domain))throw TypeError(`option domain is invalid: ${i.domain}`);s+="; Domain="+i.domain}if(i.path){if(!rr.test(i.path))throw TypeError(`option path is invalid: ${i.path}`);s+="; Path="+i.path}if(i.expires){if(!rl(i.expires)||!Number.isFinite(i.expires.valueOf()))throw TypeError(`option expires is invali
125d: ${i.expires}`);s+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.partitioned&&(s+="; Partitioned"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():void 0){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw TypeError(`option priority is invalid: ${i.priority}`)}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"none":s+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${i.sameSite}`)}return s}function rc(r){if(-1===r.indexOf("%"))return r;try{return decodeURIComponent(r)}catch(n){return r}}function rl(r){return"[object Date]"===rn.call(r)}let{q:rd}=d,rf=2592e3,rp=()=>Date.now()/1e3|0,rh="dir",ry="A256CBC-HS512";async function rg(r){let{token:n={},secret:i,maxAge:o=rf,salt:a}=r,s=Array.isArray(i)?i:[i],u=await rb(ry,s[0],a),c=await ex({kty:"oct",k:Y(u)},`sha${u.byteLength<<3}`);return await new t8(n).setProtectedHeader({alg:rh,enc:ry,kid:c}).setIssuedAt().setExpirationTime(rp()+o).setJti(crypto.randomUUID()).encrypt(u)}async function rm(r){let{token:n,secret:i,salt:o}=r,a=Array.isArray(i)?i:[i];if(!n)return null;let{payload:s}=await t9(n,async({kid:r,enc:n})=>{for(let i of a){let a=await rb(n,i,o);if(void 0===r||r===await ex({kty:"oct",k:Y(a)},`sha${a.byteLength<<3}`))return a}throw Error("no matching decryption secret")},{clockTolerance:15,keyManagementAlgorithms:[rh],contentEncryptionAlgorithms:[ry,"A256GCM"]});return s}async function rb(r,n,i){let o;switch(r){case"A256CBC-HS512":o=64;break;case"A256GCM":o=32;break;default:throw Error("Unsupported JWT Content Encryption Algorithm")}return await M("sha256",n,i,`Auth.js Generated Encryption Key (${i})`,o)}async function rw({options:r,paramValue:n,cookieValue:i}){let{url:o,callbacks:a}=r,s=o.origin;return n?s=await a.redirect({url:n,baseUrl:o.origin}):i&&(s=await a.redirect({url:i,baseUrl:o.origin})),{callbackUrl:s,callbackUrlCookie:s!==i?s:void 0}}let rv="\x1b[31m",r_="\x1b[33m",rE="\x1b[90m",rS="\x1b[0m",rR={error(r){let n=r instanceof w.lR?r.type:r.name;if(console.error(`${rv}[auth][error]${rS} ${n}: ${r.message}`),r.cause&&"object"==typeof r.cause&&"err"in r.cause&&r.cause.err instanceof Error){let{err:n,...i}=r.cause;console.error(`${rv}[auth][cause]${rS}:`,n.stack),i&&console.error(`${rv}[auth][details]${rS}:`,JSON.stringify(i,null,2))}else r.stack&&console.error(r.stack.replace(/.*/,"").substring(1))},warn(r){let n="https://warnings.authjs.dev";console.warn(`${r_}[auth][warn][${r}]${rS}`,`Read more: ${n}`)},debug(r,n){console.log(`${rE}[auth][debug]:${rS} ${r}`,JSON.stringify(n,null,2))}};function rA(r){let n={...rR};return r.debug||(n.debug=()=>{}),r.logger?.error&&(n.error=r.logger.error),r.logger?.warn&&(n.warn=r.logger.warn),r.logger?.debug&&(n.debug=r.logger.debug),r.logger??(r.logger=n),n}let rk=["providers","session","csrf","signin","signout","callback","verify-request","error","webauthn-options"];function rO(r){return rk.includes(r)}let{q:rx,l:rT}=d;async function rP(r){if(!("body"in r)||!r.body||"POST"!==r.method)return;let n=r.headers.get("content-type");return n?.includes("application/json")?await r.json():n?.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await r.text())):void 0}async function rC(r,n){try{if("GET"!==r.method&&"POST"!==r.method)throw new w.P8("Only GET and POST requests are supported");n.basePath??(n.basePath="/auth");let i=new URL(r.url),{action:o,providerId:a}=rN(i.pathname,n.basePath);return{url:i,action:o,providerId:a,method:r.method,headers:Object.fromEntries(r.headers),body:r.body?await rP(r):void 0,cookies:rx(r.headers.get("cookie")??"")??{},error:i.searchParams.get("error")??void 0,query:Object.fromEntries(i.searchParams)}}catch(o){let i=rA(n);i.error(o),i.debug("request",r)}}function rj(r){return new Request(r.url,{headers:r.headers,method:r.method,body:"POST"===r.method?JSON.stringify(r.body??{}):void 0})}function rI(r){let n=new Headers(r.headers);
125r.cookies?.forEach(r=>{let{name:i,value:o,options:a}=r,s=rT(i,o,a);n.has("Set-Cookie")?n.append("Set-Cookie",s):n.set("Set-Cookie",s)});let i=r.body;"application/json"===n.get("content-type")?i=JSON.stringify(r.body):"application/x-www-form-urlencoded"===n.get("content-type")&&(i=new URLSearchParams(r.body).toString());let o=new Response(i,{headers:n,status:r.redirect?302:r.status??200});return r.redirect&&o.headers.set("Location",r.redirect),o}async function rD(r){let n=new TextEncoder().encode(r);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n))).map(r=>r.toString(16).padStart(2,"0")).join("").toString()}function rU(r){let n=r=>("0"+r.toString(16)).slice(-2),i=(r,i)=>r+n(i);return Array.from(crypto.getRandomValues(new Uint8Array(r))).reduce(i,"")}function rN(r,n){let i=r.match(RegExp(`^${n}(.+)`));if(null===i)throw new w.P8(`Cannot parse action at ${r}`);let o=i.at(-1).replace(/^\//,"").split("/").filter(Boolean);if(1!==o.length&&2!==o.length)throw new w.P8(`Cannot parse action at ${r}`);let[a,s]=o;if(!rO(a)||s&&!["signin","callback","webauthn-options"].includes(a))throw new w.P8(`Cannot parse action at ${r}`);return{action:a,providerId:"undefined"==s?void 0:s}}async function rM({options:r,cookieValue:n,isPost:i,bodyValue:o}){if(n){let[a,s]=n.split("|");if(s===await rD(`${a}${r.secret}`))return{csrfTokenVerified:i&&a===o,csrfToken:a}}let a=rU(32),s=await rD(`${a}${r.secret}`);return{cookie:`${a}|${s}`,csrfToken:a}}function rL(r,n){if(!n)throw new w.dy(`CSRF token was missing during an action ${r}`)}function r$(r){return null!==r&&"object"==typeof r}function rq(r,...n){if(!n.length)return r;let i=n.shift();if(r$(r)&&r$(i))for(let n in i)r$(i[n])?(r$(r[n])||(r[n]=Array.isArray(i[n])?[]:{}),rq(r[n],i[n])):void 0!==i[n]&&(r[n]=i[n]);return rq(r,...n)}let rB=Symbol("skip-csrf-check"),rF=Symbol("return-type-raw"),rH=Symbol("custom-fetch"),rW=Symbol("conform-internal");function rz(r){let{providerId:n,config:i}=r,o=new URL(i.basePath??"/auth",r.url.origin),a=i.providers.map(r=>{let n="function"==typeof r?r():r,{options:a,...s}=n,u=a?.id??s.id,c=rq(s,a,{signinUrl:`${o}/signin/${u}`,callbackUrl:`${o}/callback/${u}`});if("oauth"===n.type||"oidc"===n.type){c.redirectProxyUrl??(c.redirectProxyUrl=a?.redirectProxyUrl??i.redirectProxyUrl);let r=rV(c);return r.authorization?.url.searchParams.get("response_mode")==="form_post"&&delete r.redirectProxyUrl,r[rH]??(r[rH]=a?.[rH]),r}return c}),s=a.find(({id:r})=>r===n);if(n&&!s){let r=a.map(r=>r.id).join(", ");throw Error(`Provider with id "${n}" not found. Available providers: [${r}].`)}return{providers:a,provider:s}}function rV(r){r.issuer&&(r.wellKnown??(r.wellKnown=`${r.issuer}/.well-known/openid-configuration`));let n=rX(r.authorization,r.issuer);n&&!n.url?.searchParams.has("scope")&&n.url.searchParams.set("scope","openid profile email");let i=rX(r.token,r.issuer),o=rX(r.userinfo,r.issuer),a=r.checks??["pkce"];return r.redirectProxyUrl&&(a.includes("state")||a.push("state"),r.redirectProxyUrl=`${r.redirectProxyUrl}/callback/${r.id}`),{...r,authorization:n,token:i,checks:a,userinfo:o,profile:r.profile??rK,account:r.account??rJ}}let rK=r=>rG({id:r.sub??r.id??crypto.randomUUID(),name:r.name??r.nickname??r.preferred_username,email:r.email,image:r.picture}),rJ=r=>rG({access_token:r.access_token,id_token:r.id_token,refresh_token:r.refresh_token,expires_at:r.expires_at,scope:r.scope,token_type:r.token_type,session_state:r.session_state});function rG(r){let n={};for(let[i,o]of Object.entries(r))void 0!==o&&(n[i]=o);return n}function rX(r,n){if(!r&&n)return;if("string"==typeof r)return{url:new URL(r)};let i=new URL(r?.url??"https://authjs.dev");if(r?.params!=null)for(let[n,o]of Object.entries(r.params))"claims"===n&&(o=JSON.stringify(o)),i.searchParams.set(n,String(o));return{url:i,request:r?.request,conform:r?.conform,...r?.clientPrivateKey?{clientPrivateKey:r?.clientPrivateKey}:null}}function rY(r){return"oidc"===r.type}let rQ={signIn:()=>!0,redirect:({url:r,baseUrl:n})=>r.startsWith("/")?`${n}${r}`:new URL(r).origin===n?r:n,session:({session:r})=>({user:{name:r.user?.name,email:r.user?.email,image:r.user?.image},expires:r.expires?.toISOString?.()??r.expires}),jwt:({token:r})=>r};async function rZ({authOptions:r,providerId:n,action:i,url:o,cookies:a,callbackUrl:s,csrfToken:u,csrfDisabled:c,isPost:l}){let d=rA(r),{providers:f,provider:p}=rz({url:o,providerId:n,config:r}),h=2592e3,y=!1;if((p?.type==="oauth"||p?.type==="oidc")&&p.redirectProxyUrl)try{y=new URL(p.redirectProxyUrl).origin===o.origin}catch{throw TypeError(`redirectProxyUrl must be a valid URL. Received: ${p.redirectProxyUrl}`)}let g={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...r,url:o,action:i,provider:p,cookies:rq(m(r.useSecureCookies??"https:"===o.protocol),r.cookies),providers:f,session:{strategy:r.adapter?"database":"jwt",maxAge:h,updateAge:86400,generateSessionToken:()=>crypto.randomUUID(),...r.session},jwt:{secret:r.secret,maxAge:r.session?.maxAge??h,encode:rg,decode:rm,...r.jwt},events:r0(r.events??{},d),adapter:r1(r.adapter,d),callbacks:{...rQ,...r.callbacks},logger:d,callbackUrl:o.origin,isOnRedirectProxy:y,experimental:{...r.experimental}},b=[];if(c)g.csrfTokenVerified=!0;else{let{csrfToken:r,cookie:n,csrfTokenVerified:i}=await rM({options:g,cookieValue:a?.[g.cookies.csrfToken.name],isPost:l,bodyValue:u});g.csrfToken=r,g.csrfTokenVerified=i,n&&b.push({name:g.cookies.csrfToken.name,value:n,options:g.cookies.csrfToken.options})}
vendor: 5,016 bytes, line 125
125let{callbackUrl:w,callbackUrlCookie:v}=await rw({options:g,cookieValue:a?.[g.cookies.callbackUrl.name],paramValue:s});return g.callbackUrl=w,v&&b.push({name:g.cookies.callbackUrl.name,value:v,options:g.cookies.callbackUrl.options}),{options:g,cookies:b}}function r0(r,n){return Object.keys(r).reduce((i,o)=>(i[o]=async(...i)=>{try{let n=r[o];return await n(...i)}catch(r){n.error(new w.PM(r))}},i),{})}function r1(r,n){if(r)return Object.keys(r).reduce((i,o)=>(i[o]=async(...i)=>{try{n.debug(`adapter_${o}`,{args:i});let a=r[o];return await a(...i)}catch(i){let r=new w.om(i);throw n.error(r),r}},i),{})}var r2,r3,r8,r6,r4,r5,r9,r7,ne,nt,nr,nn,ni,no,na,ns,nu,nc,nl={},nd=[],nf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,np=Array.isArray;function nh(r,n){for(var i in n)r[i]=n[i];return r}function ny(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function ng(r,n,i){var o,a,s,u={};for(s in n)"key"==s?o=n[s]:"ref"==s?a=n[s]:u[s]=n[s];if(arguments.length>2&&(u.children=arguments.length>3?r9.call(arguments,2):i),"function"==typeof r&&null!=r.defaultProps)for(s in r.defaultProps)void 0===u[s]&&(u[s]=r.defaultProps[s]);return nm(r,u,o,a,null)}function nm(r,n,i,o,a){var s={type:r,props:n,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++ne:a,__i:-1,__u:0};return null==a&&null!=r7.vnode&&r7.vnode(s),s}function nb(r){return r.children}function nw(r,n){this.props=r,this.context=n}function nv(r,n){if(null==n)return r.__?nv(r.__,r.__i+1):null;for(var i;n<r.__k.length;n++)if(null!=(i=r.__k[n])&&null!=i.__e)return i.__e;return"function"==typeof r.type?nv(r):null}function n_(r){var n,i;if(null!=(r=r.__)&&null!=r.__c){for(r.__e=r.__c.base=null,n=0;n<r.__k.length;n++)if(null!=(i=r.__k[n])&&null!=i.__e){r.__e=r.__c.base=i.__e;break}return n_(r)}}function nE(r){(!r.__d&&(r.__d=!0)&&nr.push(r)&&!nS.__r++||nn!==r7.debounceRendering)&&((nn=r7.debounceRendering)||ni)(nS)}function nS(){var r,n,i,o,a,s,u,c;for(nr.sort(no);r=nr.shift();)r.__d&&(n=nr.length,o=void 0,s=(a=(i=r).__v).__e,u=[],c=[],i.__P&&((o=nh({},a)).__v=a.__v+1,r7.vnode&&r7.vnode(o),nC(i.__P,o,a,i.__n,i.__P.namespaceURI,32&a.__u?[s]:null,u,null==s?nv(a):s,!!(32&a.__u),c),o.__v=a.__v,o.__.__k[o.__i]=o,nj(u,o,c),o.__e!=s&&n_(o)),nr.length>n&&nr.sort(no));nS.__r=0}function nR(r,n,i,o,a,s,u,c,l,d,f){var p,h,y,g,m,b=o&&o.__k||nd,w=n.length;for(i.__d=l,nA(i,n,b),l=i.__d,p=0;p<w;p++)null!=(y=i.__k[p])&&(h=-1===y.__i?nl:b[y.__i]||nl,y.__i=p,nC(r,y,h,a,s,u,c,l,d,f),g=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&nD(h.ref,null,y),f.push(y.ref,y.__c||g,y)),null==m&&null!=g&&(m=g),65536&y.__u||h.__k===y.__k?l=nk(y,l,r):"function"==typeof y.type&&void 0!==y.__d?l=y.__d:g&&(l=g.nextSibling),y.__d=void 0,y.__u&=-196609);i.__d=l,i.__e=m}function nA(r,n,i){var o,a,s,u,c,l=n.length,d=i.length,f=d,p=0;for(r.__k=[],o=0;o<l;o++)null!=(a=n[o])&&"boolean"!=typeof a&&"function"!=typeof a?(u=o+p,(a=r.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?nm(null,a,null,null,null):np(a)?nm(nb,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?nm(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=r,a.__b=r.__b+1,s=null,-1!==(c=a.__i=nO(a,i,u,f))&&(f--,(s=i[c])&&(s.__u|=131072)),null==s||null===s.__v?(-1==c&&p--,"function"!=typeof a.type&&(a.__u|=65536)):c!==u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,a.__u|=65536))):a=r.__k[o]=null;if(f)for(o=0;o<d;o++)null!=(s=i[o])&&0==(131072&s.__u)&&(s.__e==r.__d&&(r.__d=nv(s)),nU(s,s))}function nk(r,n,i){var o,a;if("function"==typeof r.type){for(o=r.__k,a=0;o&&a<o.length;a++)o[a]&&(o[a].__=r,n=nk(o[a],n,i));return n}r.__e!=n&&(n&&r.type&&!i.contains(n)&&(n=nv(r)),i.insertBefore(r.__e,n||null),n=r.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}function nO(r,n,i,o){var a=r.key,s=r.type,u=i-1,c=i+1,l=n[i];if(null===l||l&&a==l.key&&s===l.type&&0==(131072&l.__u))return i;if(o>+(null!=l&&0==(131072&l.__u)))for(;u>=0||c<n.length;){if(u>=0){if((l=n[u])&&0==(131072&l.__u)&&a==l.key&&s===l.type)return u;u--}if(c<n.length){if((l=n[c])&&0==(131072&l.__u)&&a==l.key&&s===l.type)return c;c++}}return -1}function nx(r,n,i){"-"===n[0]?r.setProperty(n,null==i?"":i):r[n]=null==i?"":"number"!=typeof i||nf.test(n)?i:i+"px"}function nT(r,n,i,o,a){var s;e:if("style"===n)if("string"==typeof i)r.style.cssText=i;else{if("string"==typeof o&&(r.style.cssText=o=""),o)for(n in o)i&&n in i||nx(r.style,n,"");if(i)for(n in i)o&&i[n]===o[n]||nx(r.style,n,i[n])}else if("o"===n[0]&&"n"===n[1])s=n!==(n=n.replace(/(PointerCapture)$|Capture$/i,"$1")),n=n.toLowerCase()in r||"onFocusOut"===n||"onFocusIn"===n?n.toLowerCase().slice(2):n.slice(2),r.l||(r.l={}),r.l[n+s]=i,i?o?i.u=o.u:(i.u=na,r.addEventListener(n,s?nu:ns,s)):r.removeEventListener(n,s?nu:ns,s);else{if("http://www.w3.org/2000/svg"==a)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in r)try{r[
vendor: 5,573 bytes, line 125
125n]=null==i?"":i;break e}catch(r){}"function"==typeof i||(null==i||!1===i&&"-"!==n[4]?r.removeAttribute(n):r.setAttribute(n,"popover"==n&&1==i?"":i))}}function nP(r){return function(n){if(this.l){var i=this.l[n.type+r];if(null==n.t)n.t=na++;else if(n.t<i.u)return;return i(r7.event?r7.event(n):n)}}}function nC(r,n,i,o,a,s,u,c,l,d){var f,p,h,y,g,m,b,w,v,_,E,S,R,A,k,O,x=n.type;if(void 0!==n.constructor)return null;128&i.__u&&(l=!!(32&i.__u),s=[c=n.__e=i.__e]),(f=r7.__b)&&f(n);e:if("function"==typeof x)try{if(w=n.props,v="prototype"in x&&x.prototype.render,_=(f=x.contextType)&&o[f.__c],E=f?_?_.props.value:f.__:o,i.__c?b=(p=n.__c=i.__c).__=p.__E:(v?n.__c=p=new x(w,E):(n.__c=p=new nw(w,E),p.constructor=x,p.render=nN),_&&_.sub(p),p.props=w,p.state||(p.state={}),p.context=E,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),v&&null==p.__s&&(p.__s=p.state),v&&null!=x.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=nh({},p.__s)),nh(p.__s,x.getDerivedStateFromProps(w,p.__s))),y=p.props,g=p.state,p.__v=n,h)v&&null==x.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),v&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(v&&null==x.getDerivedStateFromProps&&w!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,E),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,E)||n.__v===i.__v)){for(n.__v!==i.__v&&(p.props=w,p.state=p.__s,p.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(r){r&&(r.__=n)}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&u.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,E),v&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(y,g,m)})}if(p.context=E,p.props=w,p.__P=r,p.__e=!1,R=r7.__r,A=0,v){for(p.state=p.__s,p.__d=!1,R&&R(n),f=p.render(p.props,p.state,p.context),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[]}else do p.__d=!1,R&&R(n),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(o=nh(nh({},o),p.getChildContext())),v&&!h&&null!=p.getSnapshotBeforeUpdate&&(m=p.getSnapshotBeforeUpdate(y,g)),nR(r,np(O=null!=f&&f.type===nb&&null==f.key?f.props.children:f)?O:[O],n,i,o,a,s,u,c,l,d),p.base=n.__e,n.__u&=-161,p.__h.length&&u.push(p),b&&(p.__E=p.__=null)}catch(r){if(n.__v=null,l||null!=s){for(n.__u|=l?160:128;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,n.__e=c}else n.__e=i.__e,n.__k=i.__k;r7.__e(r,n,i)}else null==s&&n.__v===i.__v?(n.__k=i.__k,n.__e=i.__e):n.__e=nI(i.__e,n,i,o,a,s,u,l,d);(f=r7.diffed)&&f(n)}function nj(r,n,i){n.__d=void 0;for(var o=0;o<i.length;o++)nD(i[o],i[++o],i[++o]);r7.__c&&r7.__c(n,r),r.some(function(n){try{r=n.__h,n.__h=[],r.some(function(r){r.call(n)})}catch(r){r7.__e(r,n.__v)}})}function nI(r,n,i,o,a,s,u,c,l){var d,f,p,h,y,g,m,b=i.props,w=n.props,v=n.type;if("svg"===v?a="http://www.w3.org/2000/svg":"math"===v?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s){for(d=0;d<s.length;d++)if((y=s[d])&&"setAttribute"in y==!!v&&(v?y.localName===v:3===y.nodeType)){r=y,s[d]=null;break}}if(null==r){if(null===v)return document.createTextNode(w);r=document.createElementNS(a,v,w.is&&w),c&&(r7.__m&&r7.__m(n,s),c=!1),s=null}if(null===v)b===w||c&&r.data===w||(r.data=w);else{if(s=s&&r9.call(r.childNodes),b=i.props||nl,!c&&null!=s)for(b={},d=0;d<r.attributes.length;d++)b[(y=r.attributes[d]).name]=y.value;for(d in b)if(y=b[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=y;else if(!(d in w)){if("value"==d&&"defaultValue"in w||"checked"==d&&"defaultChecked"in w)continue;nT(r,d,null,y,a)}for(d in w)y=w[d],"children"==d?h=y:"dangerouslySetInnerHTML"==d?f=y:"value"==d?g=y:"checked"==d?m=y:c&&"function"!=typeof y||b[d]===y||nT(r,d,y,b[d],a);if(f)c||p&&(f.__html===p.__html||f.__html===r.innerHTML)||(r.innerHTML=f.__html),n.__k=[];else if(p&&(r.innerHTML=""),nR(r,np(h)?h:[h],n,i,o,"foreignObject"===v?"http://www.w3.org/1999/xhtml":a,s,u,s?s[0]:i.__k&&nv(i,0),c,l),null!=s)for(d=s.length;d--;)ny(s[d]);c||(d="value","progress"===v&&null==g?r.removeAttribute("value"):void 0===g||g===r[d]&&("progress"!==v||g)&&("option"!==v||g===b[d])||nT(r,d,g,b[d],a),d="checked",void 0!==m&&m!==r[d]&&nT(r,d,m,b[d],a))}return r}function nD(r,n,i){try{if("function"==typeof r){var o="function"==typeof r.__u;o&&r.__u(),o&&null==n||(r.__u=r(n))}else r.current=n}catch(r){r7.__e(r,i)}}function nU(r,n,i){var o,a;if(r7.unmount&&r7.unmount(r),(o=r.ref)&&(o.current&&o.current!==r.__e||nD(o,null,n)),null!=(o=r.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){r7.__e(r,n)}o.base=o.__P=null}if(o=r.__k)for(a=0;a<o.length;a++)o[a]&&nU(o[a],n,i||"function"!=typeof r.type);i||ny(r.__e),r.__c=r.__=r.__e=r.__d=void 0}function nN(r,n,i){return this.constructor(r,i)}r9=nd.slice,r7={__e:function(r,n,i,o){for(var a,s,u;n=n.__;)if((a=n.__c)&&!a.__)try{if((s=a.constructor)&&null!=s.getDerivedStateFromError&&(a.setState(s.getDerivedStateFromError(r)),u=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(r,o||{}),u=a.__d),u)return a.__E=a}catch(n){r=n}throw r}},ne=0,nt=function(r){return null!=r&&null==r.constructor},nw.prototype.setState=function(r,n){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nh({},this.state),"function"==typeof r&&(r=r(nh({},i),this.props)),r&&nh(i,r),null!=r&&this.__v&&(n&&this._sb.push(n),nE(this))},nw.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),nE(this))},nw.prototype.render=nb,nr=[],ni="function"==typeof Promise?Promise.prototype.then.bind(Prom
125ise.resolve()):setTimeout,no=function(r,n){return r.__v.__b-n.__v.__b},nS.__r=0,na=0,ns=nP(!1),nu=nP(!0),nc=0;var nM=/[\s\n\\/='"\0<>]/,nL=/^(xlink|xmlns|xml)([A-Z])/,n$=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z]/,nq=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,nB=new Set(["draggable","spellcheck"]),nF=/["&<]/;function nH(r){if(0===r.length||!1===nF.test(r))return r;for(var n=0,i=0,o="",a="";i<r.length;i++){switch(r.charCodeAt(i)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 60:a="&lt;";break;default:continue}i!==n&&(o+=r.slice(n,i)),o+=a,n=i+1}return i!==n&&(o+=r.slice(n,i)),o}var nW={},nz=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),nV=/[A-Z]/g;function nK(r){var n="";for(var i in r){var o=r[i];if(null!=o&&""!==o){var a="-"==i[0]?i:nW[i]||(nW[i]=i.replace(nV,"-$&").toLowerCase()),s=";";"number"!=typeof o||a.startsWith("--")||nz.has(a)||(s="px;"),n=n+a+":"+o+s}}return n||void 0}function nJ(){this.__d=!0}function nG(r,n){return{__v:r,context:n,props:r.props,setState:nJ,forceUpdate:nJ,__d:!0,__h:[]}}var nX,nY,nQ,nZ,n0={},n1=[],n2=Array.isArray,n3=Object.assign,n8="";function n6(r,n,i){var o=r7.__s;r7.__s=!0,nX=r7.__b,nY=r7.diffed,nQ=r7.__r,nZ=r7.unmount;var a=ng(nb,null);a.__k=[r];try{var s=n5(r,n||n0,!1,void 0,a,!1,i);return n2(s)?s.join(n8):s}catch(r){if(r.then)throw Error('Use "renderToStringAsync" for suspenseful rendering.');throw r}finally{r7.__c&&r7.__c(r,n1),r7.__s=o,n1.length=0}}function n4(r,n){var i,o=r.type,a=!0;return r.__c?(a=!1,(i=r.__c).state=i.__s):i=new o(r.props,n),r.__c=i,i.__v=r,i.props=r.props,i.context=n,i.__d=!0,null==i.state&&(i.state=n0),null==i.__s&&(i.__s=i.state),o.getDerivedStateFromProps?i.state=n3({},i.state,o.getDerivedStateFromProps(i.props,i.state)):a&&i.componentWillMount?(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state):!a&&i.componentWillUpdate&&i.componentWillUpdate(),nQ&&nQ(r),i.render(i.props,i.state,n)}function n5(r,n,i,o,a,s,u){if(null==r||!0===r||!1===r||r===n8)return n8;var c=typeof r;if("object"!=c)return"function"==c?n8:"string"==c?nH(r):r+n8;if(n2(r)){var l,d=n8;a.__k=r;for(var f=0;f<r.length;f++){var p=r[f];if(null!=p&&"boolean"!=typeof p){var h,y=n5(p,n,i,o,a,s,u);"string"==typeof y?d+=y:(l||(l=[]),d&&l.push(d),d=n8,n2(y)?(h=l).push.apply(h,y):l.push(y))}}return l?(d&&l.push(d),l):d}if(void 0!==r.constructor)return n8;r.__=a,nX&&nX(r);var g=r.type,m=r.props;if("function"==typeof g){var b,w,v,_=n;if(g===nb){if("tpl"in m){for(var E=n8,S=0;S<m.tpl.length;S++)if(E+=m.tpl[S],m.exprs&&S<m.exprs.length){var R=m.exprs[S];if(null==R)continue;"object"==typeof R&&(void 0===R.constructor||n2(R))?E+=n5(R,n,i,o,r,s,u):E+=R}return E}if("UNSTABLE_comment"in m)return"\x3c!--"+nH(m.UNSTABLE_comment)+"--\x3e";w=m.children}else{if(null!=(b=g.contextType)){var A=n[b.__c];_=A?A.props.value:b.__}var k=g.prototype&&"function"==typeof g.prototype.render;if(k)w=n4(r,_),v=r.__c;else{r.__c=v=nG(r,_);for(var O=0;v.__d&&O++<25;)v.__d=!1,nQ&&nQ(r),w=g.call(v,m,_);v.__d=!0}if(null!=v.getChildContext&&(n=n3({},n,v.getChildContext())),k&&r7.errorBoundaries&&(g.getDerivedStateFromError||v.componentDidCatch)){w=null!=w&&w.type===nb&&null==w.key&&null==w.props.tpl?w.props.children:w;try{return n5(w,n,i,o,r,s,u)}catch(a){return g.getDerivedStateFromError&&(v.__s=g.getDerivedStateFromError(a)),v.componentDidCatch&&v.componentDidCatch(a,n0),v.__d?(w=n4(r,n),null!=(v=r.__c).getChildContext&&(n=n3({},n,v.getChildContext())),n5(w=null!=w&&w.type===nb&&null==w.key&&null==w.props.tpl?w.props.children:w,n,i,o,r,s,u)):n8}finally{nY&&nY(r),r.__=null,nZ&&nZ(r)}}}w=null!=w&&w.type===nb&&null==w.key&&null==w.props.tpl?w.props.children:w;try{var x=n5(w,n,i,o,r,s,u);return nY&&nY(r),r.__=null,r7.unmount&&r7.unmount(r),x}catch(a){if(!s&&u&&u.onError){var T=u.onError(a,r,function(a){return n5(a,n,i,o,r,s,u)});if(void 0!==T)return T;var P=r7.__e;return P&&P(a,r),n8}if(!s||!a||"function"!=typeof a.then)throw a;return a.then(function a(){try{return n5(w,n,i,o,r,s,u)}catch(c){if(!c||"function"!=typeof c.then)throw c;return c.then(function(){return n5(w,n,i,o,r,s,u)},a)}})}}var C,j="<"+g,I=n8;for(var D in m){var U=m[D];if("function"!=typeof U||"class"===D||"className"===D){switch(D){case"children":C=U;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in m)continue;D="for";break;case"className":if("class"in m)continue;D="class";break;case"defaultChecked":D="checked";break;case"defaultSelected":D="selected";break;case"defaultValue":case"value":switch(D="value",g){case"textarea":C=U;continue;case"select":o=U;continue;case"option":o!=U||"selected"in m||(j+=" selected")}break;case"dangerouslySetInnerHTML":I=U&&U.__html;continue;case"style":"object"==typeof U&&(U=nK(U));break;case"acceptCharset":D="accept-charset";break;case"httpEquiv":D="http-equiv";break;default:if(nL.test(D))D=D.replace(nL,"$1:$2").toLowerCase();else{if(nM.test(D))continue;("-"===D[4]||nB.has(D))&&null!=U?U+=n8:i?nq.test(D)&&(D="panose1"===D?"panose-1":D.replace(/([A-Z])/g,"-$1").toLowerCase()):n$.test(D)&&(D=D.toLowerCase())}}null!=U&&!1!==U&&(j=!0===U||U===n8?j+" "+D:j+" "+D+'="'+("string"==typeof U?nH(U):U+n8)+'"')}}if(nM.test(g))throw Error(g+" is not a valid HTML tag name in "+j+">");if(I||("string"==typeof C?I=nH(C):null!=C&&!1!==C&&!0!==C&&(I=n5(C,n,"svg"===g||"foreignObject"!==g&&i,o,r,s,u))),nY&&nY(r),r.__=null,nZ&&nZ(r),!I&&n9.has(g))return j+"/>";var N="</"+g+">",M=j+">";return n2(I)?[M].concat(I,[N]):"string"!=typeof I?[M,I,N]:M+I+N}var n9=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n7=0;function ie(r,n,i,o,a,s){n||(n={});var u,c,l=n;"ref"in n&&(u=n.ref,delete n.ref);var d={type:r,props:l,key:i,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--n7,__i:-1,__u:0,__source:a,__self:s};if("function"==typeof r&&(u=r.defaultProps))for(c in u)void 0===l[c]&&(l[c]=u[c]);return r7.vnode&&r7.vnode(d),d}function it(r){let{url:n,error:i="default",theme:o}=r,a=`${n}/signin`,s={default:{status:200,heading:"Error",message:ie("p",{children:ie("a",{className:"site",href:n?.origin,children:n?.host})})},Configuration:{status:500,heading:"Server error",message:ie("div",{children:[ie("p",{children:"There is a problem with the server configuration."}),ie("p",{children:"Check the server logs for more information."})]})},AccessDenied:{status:403,heading:"Access Denied",message:ie("div",{children:[ie("p",{children:"You do not have permission to sign in."}),ie("p",{children:ie("a",{className:"button",href:a,children:"Sign in"})})]})},Verification:{status:403,heading:"Unable to sign in",message:ie("div",{children:[ie("p",{children:"The sign in link is no longer valid."}),ie("p",{children:"It may have been used already or it may have expired."})]}),signin:ie("a",{className:"button",href:a,children:"Sign in"})}},{status:u,heading:c,message:l,signin:d}=s[i]??s.default;return{status:u,html:ie("div",{className:"error",children:[o?.brandColor&&ie("style",{dangerouslySetInnerHTML:{__html:`
126        :root {
127          --brand-color: ${o?.brandColor}
128        }
129      `}}),ie("div",{className:"card",children:[o?.logo&&ie("img",{src:o?.logo,alt:"Logo",className:"logo"}),ie("h1",{children:c}),ie("div",{className:"message",children:l}),d]})]})}}async function ir(r,n){let i=window.SimpleWebAuthnBrowser;async function o(i){let o=new URL(`${r}/webauthn-options/${n}`);
129i&&o.searchParams.append("action",i),s().forEach(r=>{o.searchParams.append(r.name,r.value)});let a=await fetch(o);return a.ok?a.json():void console.error("Failed to fetch options",a)}function a(){let r=`#${n}-form`,i=document.querySelector(r);if(!i)throw Error(`Form '${r}' not found`);return i}function s(){return Array.from(a().querySelectorAll("input[data-form-field]"))}async function u(r,n){let i=a();if(r){let n=document.createElement("input");n.type="hidden",n.name="action",n.value=r,i.appendChild(n)}if(n){let r=document.createElement("input");r.type="hidden",r.name="data",r.value=JSON.stringify(n),i.appendChild(r)}return i.submit()}async function c(r,n){let o=await i.startAuthentication(r,n);return await u("authenticate",o)}async function l(r){s().forEach(r=>{if(r.required&&!r.value)throw Error(`Missing required field: ${r.name}`)});let n=await i.startRegistration(r);return await u("register",n)}async function d(){if(!i.browserSupportsWebAuthnAutofill())return;let r=await o("authenticate");if(!r)return void console.error("Failed to fetch option for autofill authentication");try{await c(r.options,!0)}catch(r){console.error(r)}}(async function(){let r=a();if(!i.browserSupportsWebAuthn()){r.style.display="none";return}r&&r.addEventListener("submit",async r=>{r.preventDefault();let n=await o(void 0);if(!n)return void console.error("Failed to fetch options for form submission");if("authenticate"===n.action)try{await c(n.options,!1)}catch(r){console.error(r)}else if("register"===n.action)try{await l(n.options)}catch(r){console.error(r)}})})(),d()}let ii={default:"Unable to sign in.",Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallbackError:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page."};function io(r){return ie(nb,{children:ie("script",{dangerouslySetInnerHTML:{__html:`
130const currentURL = window.location.href;
131const authURL = currentURL.substring(0, currentURL.lastIndexOf('/'));
132(${ir})(authURL, "${r}");
133`}})})}function ia(r){let{csrfToken:n,providers:i=[],callbackUrl:o,theme:a,email:s,error:u}=r;"u">typeof document&&a?.brandColor&&document.documentElement.style.setProperty("--brand-color",a.brandColor),"u">typeof document&&a?.buttonText&&document.documentElement.style.setProperty("--button-text-color",a.buttonText);let c=u&&(ii[u]??ii.default),l="https://authjs.dev/img/providers",d=i.find(r=>"webauthn"===r.type&&r.enableConditionalUI)?.id;return ie("div",{className:"signin",children:[a?.brandColor&&ie("style",{dangerouslySetInnerHTML:{__html:`:root {--brand-color: ${a.brandColor}}`}}),a?.buttonText&&ie("style",{dangerouslySetInnerHTML:{__html:`
134        :root {
135          --button-text-color: ${a.buttonText}
136        }
137      `}}),ie("div",{className:"card",children:[c&&ie("div",{className:"error",children:ie("p",{children:c})}),a?.logo&&ie("img",{src:a.logo,alt:"Logo",className:"logo"}),i.map((r,a)=>{let u,c,d;("oauth"===r.type||"oidc"===r.type)&&({bg:u="#fff",brandColor:c,logo:d=`${l}/${r.id}.svg`}=r.style??{});let f=c??u??"#fff";return ie("div",{className:"provider",children:["oauth"===r.type||"oidc"===r.type?ie("form",{action:r.signinUrl,method:"POST",children:[ie("input",{type:"hidden",name:"csrfToken",value:n}),o&&ie("input",{type:"hidden",name:"callbackUrl",value:o}),ie("button",{type:"submit",className:"button",style:{"--provider-brand-color":f},tabIndex:0,children:[ie("span",{style:{filter:"invert(1) grayscale(1) brightness(1.3) contrast(9000)","mix-blend-mode":"luminosity",opacity:.95},children:["Sign in with ",r.name]}),d&&ie("img",{loading:"lazy",height:24,src:d})]})]}):null,("email"===r.type||"credentials"===r.type||"webauthn"===r.type)&&a>
1370&&"email"!==i[a-1].type&&"credentials"!==i[a-1].type&&"webauthn"!==i[a-1].type&&ie("hr",{}),"email"===r.type&&ie("form",{action:r.signinUrl,method:"POST",children:[ie("input",{type:"hidden",name:"csrfToken",value:n}),ie("label",{className:"section-header",htmlFor:`input-email-for-${r.id}-provider`,children:"Email"}),ie("input",{id:`input-email-for-${r.id}-provider`,autoFocus:!0,type:"email",name:"email",value:s,placeholder:"[email protected]",required:!0}),ie("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",r.name]})]}),"credentials"===r.type&&ie("form",{action:r.callbackUrl,method:"POST",children:[ie("input",{type:"hidden",name:"csrfToken",value:n}),Object.keys(r.credentials).map(n=>ie("div",{children:[ie("label",{className:"section-header",htmlFor:`input-${n}-for-${r.id}-provider`,children:r.credentials[n].label??n}),ie("input",{name:n,id:`input-${n}-for-${r.id}-provider`,type:r.credentials[n].type??"text",placeholder:r.credentials[n].placeholder??"",...r.credentials[n]})]},`input-group-${r.id}`)),ie("button",{id:"submitButton",type:"submit",tabIndex:0,children:["Sign in with ",r.name]})]}),"webauthn"===r.type&&ie("form",{action:r.callbackUrl,method:"POST",id:`${r.id}-form`,children:[ie("input",{type:"hidden",name:"csrfToken",value:n}),Object.keys(r.formFields).map(n=>ie("div",{children:[ie("label",{className:"section-header",htmlFor:`input-${n}-for-${r.id}-provider`,children:r.formFields[n].label??n}),ie("input",{name:n,"data-form-field":!0,id:`input-${n}-for-${r.id}-provider`,type:r.formFields[n].type??"text",placeholder:r.formFields[n].placeholder??"",...r.formFields[n]})]},`input-group-${r.id}`)),ie("button",{id:`submitButton-${r.id}`,type:"submit",tabIndex:0,children:["Sign in with ",r.name]})]}),("email"===r.type||"credentials"===r.type||"webauthn"===r.type)&&a+1<i.length&&ie("hr",{})]},r.id)})]}),d&&io(d)]})}function is(r){let{url:n,csrfToken:i,theme:o}=r;return ie("div",{className:"signout",children:[o?.brandColor&&ie("style",{dangerouslySetInnerHTML:{__html:`
138        :root {
139          --brand-color: ${o.brandColor}
140        }
141      `}}),o?.buttonText&&ie("style",{dangerouslySetInnerHTML:{__html:`
142        :root {
143          --button-text-color: ${o.buttonText}
144        }
145      `}}),ie("div",{className:"card",children:[o?.logo&&ie("img",{src:o.logo,alt:"Logo",className:"logo"}),ie("h1",{children:"Signout"}),ie("p",{children:"Are you sure you want to sign out?"}),ie("form",{action:n?.toString(),method:"POST",children:[ie("input",{type:"hidden",name:"csrfToken",value:i}),ie("button",{id:"submitButton",type:"submit",children:"Sign out"})]})]})]})}let iu=`:root {
146  --border-width: 1px;
147  --border-radius: 0.5rem;
148  --color-error: #c94b4b;
149  --color-info: #157efb;
150  --color-info-hover: #0f6ddb;
151  --color-info-text: #fff;
152}
153
154.__next-auth-theme-auto,
155.__next-auth-theme-light {
156  --color-background: #ececec;
157  --color-background-hover: rgba(236, 236, 236, 0.8);
158  --color-background-card: #fff;
159  --color-text: #000;
160  --color-primary: #444;
161  --color-control-border: #bbb;
162  --color-button-active-background: #f9f9f9;
163  --color-button-active-border: #aaa;
164  --color-separator: #ccc;
165  --provider-bg: #fff;
166  --provider-bg-hover: color-mix(
167    in srgb,
168    var(--provider-brand-color) 30%,
169    #fff
170  );
171}
172
173.__next-auth-theme-dark {
174  --color-background: #161b22;
175  --color-background-hover: rgba(22, 27, 34, 0.8);
176  --color-background-card: #0d1117;
177  --color-text: #fff;
178  --color-primary: #ccc;
179  --color-control-border: #555;
180  --color-button-active-background: #060606;
181  --color-button-active-border: #666;
182  --color-separator: #444;
183  --provider-bg: #161b22;
184  --provider-bg-hover: color-mix(
185    in srgb,
186    var(--provider-brand-color) 30%,
187    #000
188  );
189}
190
191.__next-auth-theme-dark img[src$="42-school.svg"],
192  .__next-auth-theme-dark img[src$="apple.svg"],
193  .__next-auth-theme-dark img[src$="boxyhq-saml.svg"],
194  .__next-auth-theme-dark img[src$="eveonline.svg"],
195  .__next-auth-theme-dark img[src$="github.svg"],
196  .__next-auth-theme-dark img[src$="mailchimp.svg"],
197  .__next-auth-theme-dark img[src$="medium.svg"],
198  .__next-auth-theme-dark img[src$="okta.svg"],
199  .__next-auth-theme-dark img[src$="patreon.svg"],
200  .__next-auth-theme-dark img[src$="ping-id.svg"],
201  .__next-auth-theme-dark img[src$="roblox.svg"],
202  .__next-auth-theme-dark img[src$="threads.svg"],
203  .__next-auth-theme-dark img[src$="wikimedia.svg"] {
204    filter: invert(1);
205  }
206
207.__next-auth-theme-dark #submitButton {
208    background-color: var(--provider-bg, var(--color-info));
209  }
210
211@media (prefers-color-scheme: dark) {
212  .__next-auth-theme-auto {
213    --color-background: #161b22;
214    --color-background-hover: rgba(22, 27, 34, 0.8);
215    --color-background-card: #0d1117;
216    --color-text: #fff;
217    --color-primary: #ccc;
218    --color-control-border: #555;
219    --color-button-active-background: #060606;
220    --color-button-active-border: #666;
221    --color-separator: #444;
222    --provider-bg: #161b22;
223    --provider-bg-hover: color-mix(
224      in srgb,
225      var(--provider-brand-color) 30%,
226      #000
227    );
228  }
229    .__next-auth-theme-auto img[src$="42-school.svg"],
230    .__next-auth-theme-auto img[src$="apple.svg"],
231    .__next-auth-theme-auto img[src$="boxyhq-saml.svg"],
232    .__next-auth-theme-auto img[src$="eveonline.svg"],
233    .__next-auth-theme-auto img[src$="github.svg"],
234    .__next-auth-theme-auto img[src$="mailchimp.svg"],
235    .__next-auth-theme-auto img[src$="medium.svg"],
236    .__next-auth-theme-auto img[src$="okta.svg"],
237    .__next-auth-theme-auto img[src$="patreon.svg"],
238    .__next-auth-theme-auto img[src$="ping-id.svg"],
239    .__next-auth-theme-auto img[src$="roblox.svg"],
240    .__next-auth-theme-auto img[src$="threads.svg"],
241    .__next-auth-theme-auto img[src$="wikimedia.svg"] {
242      filter: invert(1);
243    }
244    .__next-auth-theme-auto #submitButton {
245      background-color: var(--provider-bg, var(--color-info));
246    }
247}
248
249html {
250  box-sizing: border-box;
251}
252
253*,
254*:before,
255*:after {
256  box-sizing: inherit;
257  margin: 0;
258  padding: 0;
259}
260
261body {
262  background-color: var(--color-background);
263  margin: 0;
264  padding: 0;
265  font-family:
266    ui-sans-serif,
267    system-ui,
268    -apple-system,
269    BlinkMacSystemFont,
270    "Segoe UI",
271    Roboto,
272    "Helvetica Neue",
273    Arial,
274    "Noto Sans",
275    sans-serif,
276    "Apple Color Emoji",
277    "Segoe UI Emoji",
278    "Segoe UI Symbol",
279    "Noto Color Emoji";
280}
281
282h1 {
283  margin-bottom: 1.5rem;
284  padding: 0 1rem;
285  font-weight: 400;
286  color: var(--color-text);
287}
288
289p {
290  margin-bottom: 1.5rem;
291  padding: 0 1rem;
292  color: var(--color-text);
293}
294
295form {
296  margin: 0;
297  padding: 0;
298}
299
300label {
301  font-weight: 500;
302  text-align: left;
303  margin-bottom: 0.25rem;
304  display: block;
305  color: var(--color-text);
306}
307
308input[type] {
309  box-sizing: border-box;
310  display: block;
311  width: 100%;
312  padding: 0.5rem 1rem;
313  border: var(--border-width) solid var(--color-control-border);
314  background: var(--color-background-card);
315  font-size: 1rem;
316  border-radius: var(--border-radius);
317  color: var(--color-text);
318}
319
320p {
321  font-size: 1.1rem;
322  line-height: 2rem;
323}
324
325a.button {
326  text-decoration: none;
327  line-height: 1rem;
328}
329
330a.button:link,
331  a.button:visited {
332    background-color: var(--color-background);
333    color: var(--color-primary);
334  }
335
336button,
337a.button {
338  padding: 0.75rem 1rem;
339  color: var(--provider-color, var(--color-primary));
340  background-color: var(--provider-bg, var(--color-background));
341  border: 1px solid #00000031;
342  font-size: 0.9rem;
343  height: 50px;
344  border-radius: var(--border-radius);
345  transition: background-color 250ms ease-in-out;
346  font-weight: 300;
347  position: relative;
348  display: flex;
349  align-items: center;
350  justify-content: space-between;
351}
352
353:is(button,a.button):hover {
354    background-color: var(--provider-bg-hover, var(--color-background-hover));
355    cursor: pointer;
356  }
357
358:is(button,a.button):active {
359    cursor: pointer;
360  }
361
362:is(button,a.button) span {
363    color: var(--provider-bg);
364  }
365
366#submitButton {
367  color: var(--button-text-color, var(--color-info-text));
368  background-color: var(--brand-color, var(--color-info));
369  width: 100%;
370}
371
372#submitButton:hover {
373    background-color: var(
374      --button-hover-bg,
375      var(--color-info-hover)
376    ) !important;
377  }
378
379a.site {
380  color: var(--color-primary);
381  text-decoration: none;
382  font-size: 1rem;
383  line-height: 2rem;
384}
385
386a.site:hover {
387    text-decoration: underline;
388  }
389
390.page {
391  position: absolute;
392  width: 100%;
393  height: 100%;
394  display: grid;
395  place-items: center;
396  margin: 0;
397  padding: 0;
398  box-sizing: border-box;
399}
400
401.page > div {
402    text-align: center;
403  }
404
405.error a.button {
406    padding-left: 2rem;
407    padding-right: 2rem;
408    margin-top: 0.5rem;
409  }
410
411.error .message {
412    margin-bottom: 1.5rem;
413  }
414
415.signin input[type="text"] {
416    margin-left: auto;
417    margin-right: auto;
418    display: block;
419  }
420
421.signin hr {
422    display: block;
423    border: 0;
424    border-top: 1px solid var(--color-separator);
425    margin: 2rem auto 1rem auto;
426    overflow: visible;
427  }
428
429.signin hr::before {
430      content: "or";
431      background: var(--color-background-card);
432      color: #888;
433      padding: 0 0.4rem;
434      position: relative;
435      top: -0.7rem;
436    }
437
438.signin .error {
439    background: #f5f5f5;
440    font-weight: 500;
441    border-radius: 0.3rem;
442    background: var(--color-error);
443  }
444
445.signin .error p {
446      text-align: left;
447      padding: 0.5rem 1rem;
448      font-size: 0.9rem;
449      line-height: 1.2rem;
450      color: var(--color-info-text);
451    }
452
453.signin > div,
454  .signin form {
455    display: block;
456  }
457
458.signin > div input[type], .signin form input[type] {
459      margin-bottom: 0.5rem;
460    }
461
462.signin > div button, .signin form button {
463      width: 100%;
464    }
465
466.signin .provider + .provider {
467    margin-top: 1rem;
468  }
469
470.logo {
471  display: inline-block;
472  max-width: 150px;
473  margin: 1.25rem 0;
474  max-height: 70px;
475}
476
477.card {
478  background-color: var(--color-background-card);
479  border-radius: 1rem;
480  padding: 1.25rem 2rem;
481}
482
483.card .header {
484    color: var(--color-primary);
485  }
486
487.card input[type]::-moz-placeholder {
488    color: color-mix(
489      in srgb,
490      var(--color-text) 20%,
491      var(--color-button-active-background)
492    );
493  }
494
495.card input[type]::placeholder {
496    color: color-mix(
497      in srgb,
498      var(--color-text) 20%,
499      var(--color-button-active-background)
500    );
501  }
502
503.card input[type] {
504    background: color-mix(in srgb, var(--color-background-card) 95%, black);
505  }
506
507.section-header {
508  color: var(--color-text);
509}
510
511@media screen and (min-width: 450px) {
512  .card {
513    margin: 2rem 0;
514    width: 368px;
515  }
516}
517
518@media screen and (max-width: 450px) {
519  .card {
520    margin: 1rem 0;
521    width: 343px;
522  }
523}
524`;function ic(r){let{url:n,theme:i}=r;return ie("div",{className:"verify-request",children:[i.brandColor&&ie("style",{dangerouslySetInnerHTML:{__html:`
525        :root {
526          --brand-color: ${i.brandColor}
527        }
528      `}}),ie("div",{className:"card",children:[i.logo&&ie("img",{src:i.logo,alt:"Logo",className:"logo"}),ie("h1",{children:"Check your email"}),ie("p",{children:"A sign in link has been sent to your email address."}),ie("p",{children:ie("a",{className:"site",href:n.origin,children:n.host})})]})]})}function il({html:r,title:n,status:i,cookies:o,theme:a,headTags:s}){return{cookies:o,status:i,headers:{"Content-Type":"text/html"},body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${iu}</style><title>${n}</title>${s??""}</head><body class="__next-auth-theme-${a?.colorScheme??"auto"}"><div class="page">${n6(r)}</div></body></html>`}}function id(r){let{url:n,theme:i,query:o,cookies:a,pages:s,providers:u}=r;return{csrf:(r,n,i)=>r?(n.logger.warn("csrf-disabled"),i.push({name:n.cookies.csrfToken.name,value:"",options:{...n.cookies.csrfToken.options,maxAge:0}}),{status:404,cookies:i}
528):{headers:{"Content-Type":"application/json","Cache-Control":"private, no-cache, no-store",Expires:"0",Pragma:"no-cache"},body:{csrfToken:n.csrfToken},cookies:i},providers:r=>({headers:{"Content-Type":"application/json"},body:r.reduce((r,{id:n,name:i,type:o,signinUrl:a,callbackUrl:s})=>(r[n]={id:n,name:i,type:o,signinUrl:a,callbackUrl:s},r),{})}),signin(n,c){if(n)throw new w.P8("Unsupported action");if(s?.signIn){let n=`${s.signIn}${s.signIn.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:r.callbackUrl??"/"})}`;return c&&(n=`${n}&${new URLSearchParams({error:c})}`),{redirect:n,cookies:a}}let l=u?.find(r=>"webauthn"===r.type&&r.enableConditionalUI&&!!r.simpleWebAuthnBrowserVersion),d="";if(l){let{simpleWebAuthnBrowserVersion:r}=l;d=`<script src="https://unpkg.com/@simplewebauthn/browser@${r}/dist/bundle/index.umd.min.js" crossorigin="anonymous"></script>`}return il({cookies:a,theme:i,html:ia({csrfToken:r.csrfToken,providers:r.providers?.filter(r=>["email","oauth","oidc"].includes(r.type)||"credentials"===r.type&&r.credentials||"webauthn"===r.type&&r.formFields||!1),callbackUrl:r.callbackUrl,theme:r.theme,error:c,...o}),title:"Sign In",headTags:d})},signout:()=>s?.signOut?{redirect:s.signOut,cookies:a}:il({cookies:a,theme:i,html:is({csrfToken:r.csrfToken,url:n,theme:i}),title:"Sign Out"}),verifyRequest:r=>s?.verifyRequest?{redirect:`${s.verifyRequest}${n?.search??""}`,cookies:a}:il({cookies:a,theme:i,html:ic({url:n,theme:i,...r}),title:"Verify Request"}),error:r=>s?.error?{redirect:`${s.error}${s.error.includes("?")?"&":"?"}error=${r}`,cookies:a}:il({cookies:a,theme:i,...it({url:n,theme:i,error:r}),title:"Error"})}}function ip(r,n=Date.now()){return new Date(n+1e3*r)}async function ih(r,n,i,o){if(!i?.providerAccountId||!i.type)throw Error("Missing or invalid provider account");if(!["email","oauth","oidc","webauthn"].includes(i.type))throw Error("Provider not supported");let{adapter:a,jwt:s,events:u,session:{strategy:c,generateSessionToken:l}}=o;if(!a)return{user:n,account:i};let d=n,f=i,{createUser:p,updateUser:h,getUser:y,getUserByAccount:g,getUserByEmail:m,linkAccount:b,createSession:v,getSessionAndUser:_,deleteSession:E}=a,S=null,R=null,A=!1,k="jwt"===c;if(r)if(k)try{let n=o.cookies.sessionToken.name;(S=await s.decode({...s,token:r,salt:n}))&&"sub"in S&&S.sub&&(R=await y(S.sub))}catch{}else{let n=await _(r);n&&(S=n.session,R=n.user)}if("email"===f.type){let n=await m(d.email);return n?(R?.id!==n.id&&!k&&r&&await E(r),R=await h({id:n.id,emailVerified:new Date}),await u.updateUser?.({user:R})):(R=await p({...d,emailVerified:new Date}),await u.createUser?.({user:R}),A=!0),{session:S=k?{}:await v({sessionToken:l(),userId:R.id,expires:ip(o.session.maxAge)}),user:R,isNewUser:A}}if("webauthn"===f.type){let r=await g({providerAccountId:f.providerAccountId,provider:f.provider});if(r){if(R){if(r.id===R.id){let r={...f,userId:R.id};return{session:S,user:R,isNewUser:A,account:r}}throw new w.WS("The account is already associated with another user",{provider:f.provider})}S=k?{}:await v({sessionToken:l(),userId:r.id,expires:ip(o.session.maxAge)});let n={...f,userId:r.id};return{session:S,user:r,isNewUser:A,account:n}}{if(R){await b({...f,userId:R.id}),await u.linkAccount?.({user:R,account:f,profile:d});let r={...f,userId:R.id};return{session:S,user:R,isNewUser:A,account:r}}if(d.email?await m(d.email):null)throw new w.WS("Another account already exists with the same e-mail address",{provider:f.provider});R=await p({...d}),await u.createUser?.({user:R}),await b({...f,userId:R.id}),await u.linkAccount?.({user:R,account:f,profile:d}),S=k?{}:await v({sessionToken:l(),userId:R.id,expires:ip(o.session.maxAge)});let r={...f,userId:R.id};return{session:S,user:R,isNewUser:!0,account:r}}}let O=await g({providerAccountId:f.providerAccountId,provider:f.provider});if(O){if(R){if(O.id===R.id)return{session:S,user:R,isNewUser:A};throw new w.XP("The account is already associated with another user",{provider:f.provider})}return{session:S=k?{}:await v({sessionToken:l(),userId:O.id,expires:ip(o.session.maxAge)}),user:O,isNewUser:A}}{let{provider:r}=o,{type:n,provider:i,providerAccountId:a,userId:s,...c}=f,h={providerAccountId:a,provider:i,type:n,userId:s};if(f=Object.assign(r.account(c)??{},h),R)return await b({...f,userId:R.id}),await u.linkAccount?.({user:R,account:f,profile:d}),{session:S,user:R,isNewUser:A};let y=d.email?await m(d.email):null;if(y){let r=o.provider;
528if(r?.allowDangerousEmailAccountLinking)R=y,A=!1;else throw new w.XP("Another account already exists with the same e-mail address",{provider:f.provider})}else R=await p({...d,emailVerified:null}),A=!0;return await u.createUser?.({user:R}),await b({...f,userId:R.id}),await u.linkAccount?.({user:R,account:f,profile:d}),{session:S=k?{}:await v({sessionToken:l(),userId:R.id,expires:ip(o.session.maxAge)}),user:R,isNewUser:A}}}if("u"<typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){let r="oauth4webapi",n="v3.8.6";s=`${r}/${n}`}function iy(r,n){if(null==r)return!1;try{return r instanceof n||Object.getPrototypeOf(r)[Symbol.toStringTag]===n.prototype[Symbol.toStringTag]}catch{return!1}}let ig="ERR_INVALID_ARG_VALUE",im="ERR_INVALID_ARG_TYPE";function ib(r,n,i){let o=TypeError(r,{cause:i});return Object.assign(o,{code:n}),o}let iw=Symbol(),iv=Symbol(),i_=Symbol(),iE=Symbol(),iS=Symbol(),iR=Symbol();Symbol();let iA=new TextEncoder,ik=new TextDecoder;function iO(r){return"string"==typeof r?iA.encode(r):ik.decode(r)}if(Uint8Array.prototype.toBase64)u=r=>(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),r.toBase64({alphabet:"base64url",omitPadding:!0}));else{let r=32768;u=n=>{n instanceof ArrayBuffer&&(n=new Uint8Array(n));let i=[];for(let o=0;o<n.byteLength;o+=r)i.push(String.fromCharCode.apply(null,n.subarray(o,o+r)));return btoa(i.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}function ix(r){return"string"==typeof r?c(r):u(r)}c=Uint8Array.fromBase64?r=>{try{return Uint8Array.fromBase64(r,{alphabet:"base64url"})}catch(r){throw ib("The input to be decoded is not correctly encoded.",ig,r)}}:r=>{try{let n=atob(r.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),i=new Uint8Array(n.length);for(let r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}catch(r){throw ib("The input to be decoded is not correctly encoded.",ig,r)}};class iT extends Error{code;constructor(r,n){super(r,n),this.name=this.constructor.name,this.code=oZ,Error.captureStackTrace?.(this,this.constructor)}}class iP extends Error{code;constructor(r,n){super(r,n),this.name=this.constructor.name,n?.code&&(this.code=n?.code),Error.captureStackTrace?.(this,this.constructor)}}function iC(r,n,i){return new iP(r,{code:n,cause:i})}function ij(r,n){if(!(r instanceof CryptoKey))throw ib(`${n} must be a CryptoKey`,im)}function iI(r,n){if(ij(r,n),"private"!==r.type)throw ib(`${n} must be a private CryptoKey`,ig)}function iD(r){return!(null===r||"object"!=typeof r||Array.isArray(r))}function iU(r){iy(r,Headers)&&(r=Object.fromEntries(r.entries()));let n=new Headers(r??{});if(s&&!n.has("user-agent")&&n.set("user-agent",s),n.has("authorization"))throw ib('"options.headers" must not include the "authorization" header name',ig);return n}function iN(r,n){if(void 0!==n){if("function"==typeof n&&(n=n(r.href)),!(n instanceof AbortSignal))throw ib('"options.signal" must return or be an instance of AbortSignal',im);return n}}function iM(r){return r.includes("//")?r.replace("//","/"):r}function iL(r,n,i=!1){return"/"===r.pathname?r.pathname=n:r.pathname=iM(`${n}/${i?r.pathname:r.pathname.replace(/(\/)$/,"")}`),r}function i$(r,n){return r.pathname=iM(`${r.pathname}/${n}`),r}async function iq(r,n,i,o){if(!(r instanceof URL))throw ib(`"${n}" must be an instance of URL`,im);oa(r,o?.[iw]!==!0);let a=i(new URL(r.href)),s=iU(o?.headers);return s.set("accept","application/json"),(o?.[iE]||fetch)(a.href,{body:void 0,headers:Object.fromEntries(s.entries()),method:"GET",redirect:"manual",signal:iN(a,o?.signal)})}async function iB(r,n){return iq(r,"issuerIdentifier",r=>{switch(n?.algorithm){case void 0:case"oidc":i$(r,".well-known/openid-configuration");break;case"oauth2":iL(r,".well-known/oauth-authorization-server");break;default:throw ib('"options.algorithm" must be "oidc" (default), or "oauth2"',ig)}return r},n)}function iF(r,n,i,o,a){try{if("number"!=typeof r||!Number.isFinite(r))throw ib(`${i} must be a number`,im,a);if(r>0)return;if(n){if(0!==r)throw ib(`${i} must be a non-negative number`,ig,a);return}throw ib(`${i} must be a positive number`,ig,a)}catch(r){if(o)throw iC(r.message,o,a);throw r}}function iH(r,n,i,o){try{if("string"!=typeof r)throw ib(`${n} must be a string`,im,o);if(0===r.length)throw ib(`${n} must not be empty`,ig,o)}catch(r){if(i)throw iC(r.message,i,o);throw r}}async function iW(r,n){let i=r;if(!(i instanceof URL)&&i!==ah)throw ib('"expectedIssuerIdentifier" must be an instance of URL',im);if(!iy(n,Response))throw ib('"response" must be an instance of Response',im);
528if(200!==n.status)throw iC('"response" is not a conform Authorization Server Metadata response (unexpected HTTP status code)',o6,n);an(n);let o=await ap(n);if(iH(o.issuer,'"response" body "issuer" property',o3,{body:o}),i!==ah&&new URL(o.issuer).href!==i.href)throw iC('"response" body "issuer" property does not match the expected value',ae,{expected:i.href,body:o,attribute:"issuer"});return o}function iz(r){iK(r,"application/json")}function iV(r,...n){let i='"response" content-type must be ';if(n.length>2){let r=n.pop();i+=`${n.join(", ")}, or ${r}`}else 2===n.length?i+=`${n[0]} or ${n[1]}`:i+=n[0];return iC(i,o8,r)}function iK(r,n){if(oO(r)!==n)throw iV(r,n)}function iJ(){return ix(crypto.getRandomValues(new Uint8Array(32)))}function iG(){return iJ()}function iX(){return iJ()}function iY(){return iJ()}async function iQ(r){return iH(r,"codeVerifier"),ix(await crypto.subtle.digest("SHA-256",iO(r)))}function iZ(r){return r instanceof CryptoKey?{key:r}:r?.key instanceof CryptoKey?(void 0!==r.kid&&iH(r.kid,'"kid"'),{key:r.key,kid:r.kid}):{}}function i0(r){switch(r.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new iT("unsupported RsaHashedKeyAlgorithm hash name",{cause:r})}}function i1(r){switch(r.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new iT("unsupported RsaHashedKeyAlgorithm hash name",{cause:r})}}function i2(r){switch(r.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new iT("unsupported EcKeyAlgorithm namedCurve",{cause:r})}}function i3(r){switch(r.algorithm.name){case"RSA-PSS":return i0(r);case"RSASSA-PKCS1-v1_5":return i1(r);case"ECDSA":return i2(r);case"Ed25519":case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return r.algorithm.name;case"EdDSA":return"Ed25519";default:throw new iT("unsupported CryptoKey algorithm name",{cause:r})}}function i8(r){let n=r?.[iv];return"number"==typeof n&&Number.isFinite(n)?n:0}function i6(r){let n=r?.[i_];return"number"==typeof n&&Number.isFinite(n)&&-1!==Math.sign(n)?n:30}function i4(){return Math.floor(Date.now()/1e3)}function i5(r){if("object"!=typeof r||null===r)throw ib('"as" must be an object',im);iH(r.issuer,'"as.issuer"')}function i9(r){if("object"!=typeof r||null===r)throw ib('"client" must be an object',im);iH(r.client_id,'"client.client_id"')}function i7(r){return iH(r,'"clientSecret"'),(n,i,o,a)=>{o.set("client_id",i.client_id),o.set("client_secret",r)}}function oe(r,n){let i=i4()+i8(n);return{jti:iJ(),aud:r.issuer,exp:i+60,iat:i,nbf:i,iss:n.client_id,sub:n.client_id}}function ot(r,n){let{key:i,kid:o}=iZ(r);return iI(i,'"clientPrivateKey.key"'),async(r,a,s,u)=>{let c={alg:i3(i),kid:o},l=oe(r,a);n?.[iS]?.(c,l),s.set("client_id",a.client_id),s.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),s.set("client_assertion",await oi(c,l,i))}}function or(r,n){let i;iH(r,'"clientSecret"');let o=n?.[iS];return async(n,a,s,u)=>{i||=await crypto.subtle.importKey("raw",iO(r),{hash:"SHA-256",name:"HMAC"},!1,["sign"]);let c={alg:"HS256"},l=oe(n,a);o?.(c,l);let d=`${ix(iO(JSON.stringify(c)))}.${ix(iO(JSON.stringify(l)))}`,f=await crypto.subtle.sign(i.algorithm,i,iO(d));s.set("client_id",a.client_id),s.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),s.set("client_assertion",`${d}.${ix(new Uint8Array(f))}`)}}function on(){return(r,n,i,o)=>{i.set("client_id",n.client_id)}}async function oi(r,n,i){if(!i.usages.includes("sign"))throw ib('CryptoKey instances used for signing assertions must include "sign" in their "usages"',ig);let o=`${ix(iO(JSON.stringify(r)))}.${ix(iO(JSON.stringify(n)))}`,a=ix(await crypto.subtle.sign(aa(i),i,iO(o)));return`${o}.${a}`}let oo=URL.parse?(r,n)=>URL.parse(r,n):(r,n)=>{try{return new URL(r,n)}catch{return null}};function oa(r,n){if(n&&"https:"!==r.protocol)throw iC("only requests to HTTPS are allowed",o4,r);if("https:"!==r.protocol&&"http:"!==r.protocol)throw iC("only HTTP and HTTPS requests are allowed",o5,r)}function os(r,n,i,o){let a;if("string"!=typeof r||!(a=oo(r)))throw iC(`authorization server metadata does not contain a valid ${i?`"as.mtls_endpoint_aliases.${n}"`:`"as.${n}"`}`,void 0===r?at:ar,{attribute:i?`mtls_endpoint_aliases.${n}`:n});return oa(a,o),a}function ou(r,n,i,o){return i&&r.mtls_endpoint_aliases&&n in r.mtls_endpoint_aliases?os(r.mtls_endpoint_aliases[n],n,i,o):os(r[n],n,i,o)}
528class oc extends Error{cause;code;error;status;error_description;response;constructor(r,n){super(r,n),this.name=this.constructor.name,this.code=oQ,this.cause=n.cause,this.error=n.cause.error,this.status=n.response.status,this.error_description=n.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:n.response}),Error.captureStackTrace?.(this,this.constructor)}}class ol extends Error{cause;code;error;error_description;constructor(r,n){super(r,n),this.name=this.constructor.name,this.code=o0,this.cause=n.cause,this.error=n.cause.get("error"),this.error_description=n.cause.get("error_description")??void 0,Error.captureStackTrace?.(this,this.constructor)}}class od extends Error{cause;code;response;status;constructor(r,n){super(r,n),this.name=this.constructor.name,this.code=oY,this.cause=n.cause,this.status=n.response.status,this.response=n.response,Object.defineProperty(this,"response",{enumerable:!1}),Error.captureStackTrace?.(this,this.constructor)}}let of="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",op="[a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2}",oh="("+of+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',oy="("+of+")\\s*=\\s*("+of+")",og=RegExp("^[,\\s]*("+of+")"),om=RegExp("^[,\\s]*"+oh+"[,\\s]*(.*)"),ob=RegExp("^[,\\s]*"+oy+"[,\\s]*(.*)"),ow=RegExp("^("+op+")(?:$|[,\\s])(.*)");function ov(r){if(!iy(r,Response))throw ib('"response" must be an instance of Response',im);let n=r.headers.get("www-authenticate");if(null===n)return;let i=[],o=n;for(;o;){let r,n=o.match(og),a=n?.["1"].toLowerCase();if(!a)return;let s=o.substring(n[0].length);if(s&&!s.match(/^[\s,]/))return;let u=s.match(/^\s+(.*)$/),c=!!u;o=u?u[1]:void 0;let l={};if(c)for(;o;){let i,a;if(n=o.match(om)){if([,i,a,o]=n,a.includes("\\"))try{a=JSON.parse(`"${a}"`)}catch{}l[i.toLowerCase()]=a;continue}if(n=o.match(ob)){[,i,a,o]=n,l[i.toLowerCase()]=a;continue}if(n=o.match(ow)){if(Object.keys(l).length)break;[,r,o]=n;break}return}else o=s||void 0;let d={scheme:a,parameters:l};r&&(d.token68=r),i.push(d)}if(i.length)return i}async function o_(r){if(r.status>399&&r.status<500){an(r),iz(r);try{let n=await r.clone().json();if(iD(n)&&"string"==typeof n.error&&n.error.length)return n}catch{}}}async function oE(r,n,i){if(r.status!==n){let n;if(oU(r),n=await o_(r))throw await r.body?.cancel(),new oc("server responded with an error in the response body",{cause:n,response:r});throw iC(`"response" is not a conform ${i} response (unexpected HTTP status code)`,o6,r)}}function oS(r){if(!oq.has(r))throw ib('"options.DPoP" is not a valid DPoPHandle',ig)}async function oR(r,n,i,o,a,s){if(iH(r,'"accessToken"'),!(i instanceof URL))throw ib('"url" must be an instance of URL',im);oa(i,s?.[iw]!==!0),o=iU(o),s?.DPoP&&(oS(s.DPoP),await s.DPoP.addProof(i,o,n.toUpperCase(),r)),o.set("authorization",`${o.has("dpop")?"DPoP":"Bearer"} ${r}`);let u=await (s?.[iE]||fetch)(i.href,{duplex:iy(a,ReadableStream)?"half":void 0,body:a,headers:Object.fromEntries(o.entries()),method:n,redirect:"manual",signal:iN(i,s?.signal)});return s?.DPoP?.cacheNonce(u,i),u}async function oA(r,n,i,o){i5(r),i9(n);let a=ou(r,"userinfo_endpoint",n.use_mtls_endpoint_aliases,o?.[iw]!==!0),s=iU(o?.headers);return n.userinfo_signed_response_alg?s.set("accept","application/jwt"):(s.set("accept","application/json"),s.append("accept","application/jwt")),oR(i,"GET",a,s,null,{...o,[iv]:i8(n)})}let ok=Symbol();function oO(r){return r.headers.get("content-type")?.split(";")[0]}async function ox(r,n,i,o,a){let s;if(i5(r),i9(n),!iy(o,Response))throw ib('"response" must be an instance of Response',im);if(oU(o),200!==o.status)throw iC('"response" is not a conform UserInfo Endpoint response (unexpected HTTP status code)',o6,o);if(an(o),"application/jwt"===oO(o)){let{claims:i,jwt:u}=await as(await o.text(),au.bind(void 0,n.userinfo_signed_response_alg,r.userinfo_signing_alg_values_supported,void 0),i8(n),i6(n),a?.[iR]).then(oN.bind(void 0,n.client_id)).then(oL.bind(void 0,r));oj.set(o,u),s=i}else{if(n.userinfo_signed_response_alg)throw iC("JWT UserInfo Response expected",o1,o);s=await ap(o)}if(iH(s.sub,'"response" body "sub" property',o3,{body:s}),i===ok);else if(iH(i,'"expectedSubject"'),s.sub!==i)throw iC('unexpected "response" body "sub" property value',ae,{expected:i,body:s,attribute:"sub"});return s}async function oT(r,n,i,o,a,s,u){return await i(r,n,a,s),s.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(u?.[iE]||fetch)(o.href,{body:a,headers:Object.fromEntries(s.entries()),method:"POST",redirect:"manual",signal:iN(o,u?.signal)}
528)}async function oP(r,n,i,o,a,s){let u=ou(r,"token_endpoint",n.use_mtls_endpoint_aliases,s?.[iw]!==!0);a.set("grant_type",o);let c=iU(s?.headers);c.set("accept","application/json"),s?.DPoP!==void 0&&(oS(s.DPoP),await s.DPoP.addProof(u,c,"POST"));let l=await oT(r,n,i,u,a,c,s);return s?.DPoP?.cacheNonce(l,u),l}let oC=new WeakMap,oj=new WeakMap;function oI(r){if(!r.id_token)return;let n=oC.get(r);if(!n)throw ib('"ref" was already garbage collected or did not resolve from the proper sources',ig);return n}async function oD(r,n,i,o,a,s){if(i5(r),i9(n),!iy(i,Response))throw ib('"response" must be an instance of Response',im);await oE(i,200,"Token Endpoint"),an(i);let u=await ap(i);if(iH(u.access_token,'"response" body "access_token" property',o3,{body:u}),iH(u.token_type,'"response" body "token_type" property',o3,{body:u}),u.token_type=u.token_type.toLowerCase(),void 0!==u.expires_in){let r="number"!=typeof u.expires_in?parseFloat(u.expires_in):u.expires_in;iF(r,!0,'"response" body "expires_in" property',o3,{body:u}),u.expires_in=r}if(void 0!==u.refresh_token&&iH(u.refresh_token,'"response" body "refresh_token" property',o3,{body:u}),void 0!==u.scope&&"string"!=typeof u.scope)throw iC('"response" body "scope" property must be a string',o3,{body:u});if(void 0!==u.id_token){iH(u.id_token,'"response" body "id_token" property',o3,{body:u});let s=["aud","exp","iat","iss","sub"];!0===n.require_auth_time&&s.push("auth_time"),void 0!==n.default_max_age&&(iF(n.default_max_age,!0,'"client.default_max_age"'),s.push("auth_time")),o?.length&&s.push(...o);let{claims:c,jwt:l}=await as(u.id_token,au.bind(void 0,n.id_token_signed_response_alg,r.id_token_signing_alg_values_supported,"RS256"),i8(n),i6(n),a).then(oz.bind(void 0,s)).then(o$.bind(void 0,r)).then(oM.bind(void 0,n.client_id));if(Array.isArray(c.aud)&&1!==c.aud.length){if(void 0===c.azp)throw iC('ID Token "aud" (audience) claim includes additional untrusted audiences',o7,{claims:c,claim:"aud"});if(c.azp!==n.client_id)throw iC('unexpected ID Token "azp" (authorized party) claim value',o7,{expected:n.client_id,claims:c,claim:"azp"})}void 0!==c.auth_time&&iF(c.auth_time,!0,'ID Token "auth_time" (authentication time)',o3,{claims:c}),oj.set(i,l),oC.set(u,c)}if(s?.[u.token_type]!==void 0)s[u.token_type](i,u);else if("dpop"!==u.token_type&&"bearer"!==u.token_type)throw new iT("unsupported `token_type` value",{cause:{body:u}});return u}function oU(r){let n;if(n=ov(r))throw new od("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:n,response:r})}function oN(r,n){return void 0!==n.claims.aud?oM(r,n):n}function oM(r,n){if(Array.isArray(n.claims.aud)){if(!n.claims.aud.includes(r))throw iC('unexpected JWT "aud" (audience) claim value',o7,{expected:r,claims:n.claims,claim:"aud"})}else if(n.claims.aud!==r)throw iC('unexpected JWT "aud" (audience) claim value',o7,{expected:r,claims:n.claims,claim:"aud"});return n}function oL(r,n){return void 0!==n.claims.iss?o$(r,n):n}function o$(r,n){let i=r[ay]?.(n)??r.issuer;if(n.claims.iss!==i)throw iC('unexpected JWT "iss" (issuer) claim value',o7,{expected:i,claims:n.claims,claim:"iss"});return n}let oq=new WeakSet;function oB(r){return oq.add(r),r}let oF=Symbol();async function oH(r,n,i,o,a,s,u){if(i5(r),i9(n),!oq.has(o))throw ib('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',ig);iH(a,'"redirectUri"');let c=ac(o,"code");if(!c)throw iC('no authorization code in "callbackParameters"',o3);let l=new URLSearchParams(u?.additionalParameters);return l.set("redirect_uri",a),l.set("code",c),s!==oF&&(iH(s,'"codeVerifier"'),l.set("code_verifier",s)),oP(r,n,i,"authorization_code",l,u)}let oW={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function oz(r,n){for(let i of r)if(void 0===n.claims[i])throw iC(`JWT "${i}" (${oW[i]}
528) claim missing`,o3,{claims:n.claims});return n}let oV=Symbol(),oK=Symbol();async function oJ(r,n,i,o){return"string"==typeof o?.expectedNonce||"number"==typeof o?.maxAge||o?.requireIdToken?oG(r,n,i,o.expectedNonce,o.maxAge,o[iR],o.recognizedTokenTypes):oX(r,n,i,o?.[iR],o?.recognizedTokenTypes)}async function oG(r,n,i,o,a,s,u){let c=[];switch(o){case void 0:o=oV;break;case oV:break;default:iH(o,'"expectedNonce" argument'),c.push("nonce")}switch(a??=n.default_max_age){case void 0:a=oK;break;case oK:break;default:iF(a,!0,'"maxAge" argument'),c.push("auth_time")}let l=await oD(r,n,i,c,s,u);iH(l.id_token,'"response" body "id_token" property',o3,{body:l});let d=oI(l);if(a!==oK){let r=i4()+i8(n),i=i6(n);if(d.auth_time+a<r-i)throw iC("too much time has elapsed since the last End-User authentication",o9,{claims:d,now:r,tolerance:i,claim:"auth_time"})}if(o===oV){if(void 0!==d.nonce)throw iC('unexpected ID Token "nonce" claim value',o7,{expected:void 0,claims:d,claim:"nonce"})}else if(d.nonce!==o)throw iC('unexpected ID Token "nonce" claim value',o7,{expected:o,claims:d,claim:"nonce"});return l}async function oX(r,n,i,o,a){let s=await oD(r,n,i,void 0,o,a),u=oI(s);if(u){if(void 0!==n.default_max_age){iF(n.default_max_age,!0,'"client.default_max_age"');let r=i4()+i8(n),i=i6(n);if(u.auth_time+n.default_max_age<r-i)throw iC("too much time has elapsed since the last End-User authentication",o9,{claims:u,now:r,tolerance:i,claim:"auth_time"})}if(void 0!==u.nonce)throw iC('unexpected ID Token "nonce" claim value',o7,{expected:void 0,claims:u,claim:"nonce"})}return s}let oY="OAUTH_WWW_AUTHENTICATE_CHALLENGE",oQ="OAUTH_RESPONSE_BODY_ERROR",oZ="OAUTH_UNSUPPORTED_OPERATION",o0="OAUTH_AUTHORIZATION_RESPONSE_ERROR",o1="OAUTH_JWT_USERINFO_EXPECTED",o2="OAUTH_PARSE_ERROR",o3="OAUTH_INVALID_RESPONSE",o8="OAUTH_RESPONSE_IS_NOT_JSON",o6="OAUTH_RESPONSE_IS_NOT_CONFORM",o4="OAUTH_HTTP_REQUEST_FORBIDDEN",o5="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",o9="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",o7="OAUTH_JWT_CLAIM_COMPARISON_FAILED",ae="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",at="OAUTH_MISSING_SERVER_METADATA",ar="OAUTH_INVALID_SERVER_METADATA";function an(r){if(r.bodyUsed)throw ib('"response" body has been used already',ig)}function ai(r){let{algorithm:n}=r;if("number"!=typeof n.modulusLength||n.modulusLength<2048)throw new iT(`unsupported ${n.name} modulusLength`,{cause:r})}function ao(r){let{algorithm:n}=r;switch(n.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new iT("unsupported ECDSA namedCurve",{cause:r})}}function aa(r){switch(r.algorithm.name){case"ECDSA":return{name:r.algorithm.name,hash:ao(r)};case"RSA-PSS":switch(ai(r),r.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:r.algorithm.name,saltLength:parseInt(r.algorithm.hash.name.slice(-3),10)>>3};default:throw new iT("unsupported RSA-PSS hash name",{cause:r})}case"RSASSA-PKCS1-v1_5":return ai(r),r.algorithm.name;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":case"Ed25519":return r.algorithm.name}throw new iT("unsupported CryptoKey algorithm name",{cause:r})}async function as(r,n,i,o,a){let s,u,{0:c,1:l,length:d}=r.split(".");if(5===d)if(void 0!==a)r=await a(r),{0:c,1:l,length:d}=r.split(".");else throw new iT("JWE decryption is not configured",{cause:r});if(3!==d)throw iC("Invalid JWT",o3,r);try{s=JSON.parse(iO(ix(c)))}catch(r){throw iC("failed to parse JWT Header body as base64url encoded JSON",o2,r)}if(!iD(s))throw iC("JWT Header must be a top level object",o3,r);if(n(s),void 0!==s.crit)throw new iT('no JWT "crit" header parameter extensions are supported',{cause:{header:s}});try{u=JSON.parse(iO(ix(l)))}catch(r){throw iC("failed to parse JWT Payload body as base64url encoded JSON",o2,r)}if(!iD(u))throw iC("JWT Payload must be a top level object",o3,r);let f=i4()+i;if(void 0!==u.exp){if("number"!=typeof u.exp)throw iC('unexpected JWT "exp" (expiration time) claim type',o3,{claims:u});if(u.exp<=f-o)throw iC('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',o9,{claims:u,now:f,tolerance:o,claim:"exp"})}if(void 0!==u.iat&&"number"!=typeof u.iat)throw iC('unexpected JWT "iat" (issued at) claim type',o3,{claims:u});if(void 0!==u.iss&&"string"!=typeof u.iss)throw iC('unexpected JWT "iss" (issuer) claim type',o3,{claims:u});if(void 0!==u.nbf){if("number"!=typeof u.nbf)throw iC('unexpected JWT "nbf" (not before) claim type',o3,{claims:u});if(u.nbf>f+o)throw iC('unexpected JWT "nbf" (not before) claim value',o9,{claims:u,now:f,tolerance:o,claim:"nbf"})}if(void 0!==u.aud&&"string"!=typeof u.aud&&!Array.isArray(u.aud))throw iC('unexpected JWT "aud" (audience) claim type',o3,{claims:u});return{header:s,claims:u,jwt:r}}function au(r,n,i,o){if(void 0!==r){if("string"==typeof r?o.alg!==r:!r.includes(o.alg))throw iC('unexpected JWT "alg" header parameter',o3,{header:o,expected:r,reason:"client configuration"});return}if(Array.isArray(n)){if(!n.includes(o.alg))throw iC('unexpected JWT "alg" header parameter',o3,{header:o,expected:n,reason:"authorization server metadata"});return}if(void 0!==i){if("string"==typeof i?o.alg!==i:"function"==typeof i?!i(o.alg):!i.includes(o.alg))throw iC('unexpected JWT "alg" header parameter',o3,{header:o,expected:i,reason:"default value"});return}throw iC('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:r,issuer:n,fallback:i})}function ac(r,n){let{0:i,length:o}=r.getAll(n);if(o>1)throw iC(`"${n}" parameter must be provided only once`,o3);return i}let al=Symbol(),ad=Symbol();function af(r,n,i,o){if(i5(r),i9(n),i instanceof URL&&(i=i.searchParams),!(i instanceof URLSearchParams))throw ib('"parameters" must be an instance of URLSearchParams, or URL',im);if(ac(i,"response"))throw iC('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',o3,{parameters:i});let a=ac(i,"iss"),s=ac(i,"state");if(!a&&r.authorization_response_iss_parameter_supported)throw iC('response parameter "iss" (issuer) missing',o3,{parameters:i});if(a&&a!==r.issuer)throw iC('unexpected "iss" (issuer) response parameter value',o3,{expected:r.issuer,parameters:i});switch(o){case void 0:case ad:if(void 0!==s)throw iC('unexpected "state" response parameter encountered',o3,{expected:void 0,parameters:i});break;case al:break;default:if(iH(o,'"expectedState" argument'),s!==o)throw iC(void 0===s?'response parameter "state" missing':'unexpected "state" response parameter value',o3,{expected:o,parameters:i})}if(ac(i,"error"))throw new ol("authorization response from the server is an error",{cause:i});let u=ac(i,"id_token"),c=ac(i,"token");if(void 0!==u||void 0!==c)throw new iT("implicit and hybrid flows are not supported");return oB(new URLSearchParams(i))}async function ap(r,n=iz){let i;try{i=await r.json()}catch(i){throw n(r),iC('failed to parse "response" body as JSON',o2,i)}if(!iD(i))throw iC('"response" body must be a top level object',o3,{body:i});return i}let ah=Symbol(),ay=Symbol(),ag=900;async function am(r,n,i){let{cookies:o,logger:a}=i,s=o[r],u=new Date;u.setTime(u.getTime()+1e3*ag),a.debug(`CREATE_${r.toUpperCase()}`,{name:s.name,payload:n,COOKIE_TTL:ag,expires:u});let c=await rg({...i.jwt,maxAge:ag,token:{value:n,provider:i.provider.id},salt:s.name}),l={...s.options,expires:u};return{name:s.name,value:c,options:l}}async function ab(r,n,i){try{let{logger:o,cookies:a,jwt:s}=i;if(o.debug(`PARSE_${r.toUpperCase()}`,{cookie:n}),!n)throw new w.k9(`${r} cookie was missing`);let u=await rm({...s,token:n,salt:a[r].name});if(!u?.value)throw Error("Invalid cookie");if(u.provider!==i.provider?.id)throw Error(`${r} cookie was created for a different provider than the one handling the callback`);return u.value}catch(n){throw new w.k9(`${r} value could not be parsed`,{cause:n})}}function aw(r,n,i){let{logger:o,cookies:a}=n,s=a[r];o.debug(`CLEAR_${r.toUpperCase()}`,{cookie:s}),i.push({name:s.name,value:"",options:{...a[r].options,maxAge:0}})}function av(r,n){return async function(i,o,a){let{provider:s,logger:u}=a;if(!s?.checks?.includes(r))return;let c=i?.[a.cookies[n].name];u.debug(`USE_${n.toUpperCase()}`,{value:c});let l=await ab(n,c,a);return aw(n,a,o),l}}let a_={async create(r){let n=iG(),i=await iQ(n);return{cookie:await am("pkceCodeVerifier",n,r),value:i}},use:av("pkce","pkceCodeVerifier")},aE=900,aS="encodedState",aR={async create(r,n){let{provider:i}=r;if(!i.checks.includes("state")){if(n)throw new w.k9("State data was provided but the provider is not configured to use state");return}let o={origin:n,random:iX()},a=await rg({secret:r.jwt.secret,token:o,salt:aS,maxAge:aE});return{cookie:await am("state",a,r),value:a}},use:av("state","state"),async decode(r,n){try{n.logger.debug("DECODE_STATE",{state:r});let i=await rm({secret:n.jwt.secret,token:r,salt:aS});if(i)return i;throw Error("Invalid state")}catch(r){throw new w.k9("State could not be decoded",{cause:r})}}},aA={async create(r){if(!r.provider.checks.includes("nonce"))return;let n=iY();return{cookie:await am("nonce",n,r),value:n}},use:av("nonce","nonce")},ak=900,aO="encodedWebauthnChallenge",ax={create:async(r,n,i)=>({cookie:await am("webauthnChallenge",await rg({secret:r.jwt.secret,token:{challenge:n,registerData:i},salt:aO,maxAge:ak}),r)}),async use(r,n,i){let o=n?.[r.cookies.webauthnChallenge.name],a=await ab("webauthnChallenge",o,r),s=await rm({secret:r.jwt.secret,token:a,salt:aO});if(aw("webauthnChallenge",r,i),!s)throw new w.k9("WebAuthn challenge was missing");return s}};function aT(r){let n,i;if("string"!=typeof r)throw new ep("JWTs must use Compact JWS serialization, JWT must be a string");let{1:o,length:a}=r.split(".");if(5===a)throw new ep("Only JWTs using Compact JWS serialization can be decoded");
528if(3!==a)throw new ep("Invalid JWT");if(!o)throw new ep("JWTs must contain a payload");try{n=X(o)}catch{throw new ep("Failed to base64url decode the payload")}try{i=JSON.parse(q.decode(n))}catch{throw new ep("Failed to parse the decoded payload as JSON")}if(!Z(i))throw new ep("Invalid JWT Claims Set");return i}function aP(r){return encodeURIComponent(r).replace(/%20/g,"+")}function aC(r,n){let i=aP(r),o=aP(n),a=btoa(`${i}:${o}`);return`Basic ${a}`}async function aj(r,n,i){let o,a,s,{logger:u,provider:c}=i,{token:l,userinfo:d}=c;if(l?.url&&"authjs.dev"!==l.url.host||d?.url&&"authjs.dev"!==d.url.host)o={issuer:c.issuer??"https://authjs.dev",token_endpoint:l?.url.toString(),userinfo_endpoint:d?.url.toString()};else{let r=new URL(c.issuer),n=await iB(r,{[iw]:!0,[iE]:c[rH]});if(!(o=await iW(r,n)).token_endpoint)throw TypeError("TODO: Authorization server did not provide a token endpoint.");if(!o.userinfo_endpoint)throw TypeError("TODO: Authorization server did not provide a userinfo endpoint.")}let f={client_id:c.clientId,...c.client};switch(f.token_endpoint_auth_method){case void 0:case"client_secret_basic":a=(r,n,i,o)=>{o.set("authorization",aC(c.clientId,c.clientSecret))};break;case"client_secret_post":a=i7(c.clientSecret);break;case"client_secret_jwt":a=or(c.clientSecret);break;case"private_key_jwt":a=ot(c.token.clientPrivateKey,{[iS](r,n){n.aud=[o.issuer,o.token_endpoint]}});break;case"none":a=on();break;default:throw Error("unsupported client authentication method")}let p=[],h=await aR.use(n,p,i);try{s=af(o,f,new URLSearchParams(r),c.checks.includes("state")?h:al)}catch(r){if(r instanceof ol){let n={providerId:c.id,...Object.fromEntries(r.cause.entries())};throw u.debug("OAuthCallbackError",n),new w.rk("OAuth Provider returned an error",n)}throw r}let y=await a_.use(n,p,i),g=c.callbackUrl;!i.isOnRedirectProxy&&c.redirectProxyUrl&&(g=c.redirectProxyUrl);let m=await oH(o,f,a,s,g,y??"decoy",{[iw]:!0,[iE]:(...r)=>(c.checks.includes("pkce")||r[1].body.delete("code_verifier"),(c[rH]??fetch)(...r))});c.token?.conform&&(m=await c.token.conform(m.clone())??m);let b={},v=rY(c);if(c[rW])switch(c.id){case"microsoft-entra-id":case"azure-ad":{let r=await m.clone().json();if(r.error){let n={providerId:c.id,...r};throw new w.rk(`OAuth Provider returned an error: ${r.error}`,n)}let{tid:n}=aT(r.id_token);if("string"==typeof n){let r=/microsoftonline\.com\/(\w+)\/v2\.0/,i=o.issuer?.match(r)?.[1]??"common",a=new URL(o.issuer.replace(i,n)),s=await iB(a,{[iE]:c[rH]});o=await iW(a,s)}}}let _=await oJ(o,f,m,{expectedNonce:await aA.use(n,p,i),requireIdToken:v}),E=_;if(v){let n=oI(_);if(b=n,c[rW]&&"apple"===c.id)try{b.user=JSON.parse(r?.user)}catch{}if(!1===c.idToken){let r=await oA(o,f,_.access_token,{[iE]:c[rH],[iw]:!0});b=await ox(o,f,n.sub,r)}}else if(d?.request){let r=await d.request({tokens:E,provider:c});r instanceof Object&&(b=r)}else if(d?.url){let r=await oA(o,f,_.access_token,{[iE]:c[rH],[iw]:!0});b=await r.json()}else throw TypeError("No userinfo endpoint configured");return E.expires_in&&(E.expires_at=Math.floor(Date.now()/1e3)+Number(E.expires_in)),{...await aI(b,c,E,u),profile:b,cookies:p}}async function aI(r,n,i,o){try{let o=await n.profile(r,i);return{user:{...o,id:crypto.randomUUID(),email:o.email?.toLowerCase()},account:{...i,provider:n.id,type:n.type,providerAccountId:o.id??crypto.randomUUID()}}}catch(i){o.debug("getProfile error details",r),o.error(new w._z(i,{provider:n.id}))}}var aD=i(84890).Buffer;function aU(r,n,i){let{user:o,exists:a=!1}=i??{};switch(r){case"authenticate":return"authenticate";case"register":if(o&&n===a)return"register";break;case void 0:if(!n)if(!o)return"authenticate";else if(a)return"authenticate";else return"register"}return null}async function aN(r,n,i,o){let a=await aB(r,n,i),{cookie:s}=await ax.create(r,a.challenge,i);return{status:200,cookies:[...o??[],s],body:{action:"register",options:a},headers:{"Content-Type":"application/json"}}}async function aM(r,n,i,o){let a=await aq(r,n,i),{cookie:s}=await ax.create(r,a.challenge);return{status:200,cookies:[...o??[],s],body:{action:"authenticate",options:a},headers:{"Content-Type":"application/json"}}}async function aL(r,n,i){let o,{adapter:a,provider:s}=r,u=n.body&&"string"==typeof n.body.data?JSON.parse(n.body.data):void 0;if(!u||"object"!=typeof u||!("id"in u)||"string"!=typeof u.id)throw new w.lR("Invalid WebAuthn Authentication response");let c=az(aW(u.id)),l=await a.getAuthenticator(c);if(!l)throw new w.lR(`WebAuthn authenticator not found in database: ${JSON.stringify({credentialID:c})}`);let{challenge:d}=await ax.use(r,n.cookies,i);try{let i=s.getRelayingParty(r,n);o=await s.simpleWebAuthn.verifyAuthenticationResponse({...s.verifyAuthenticationOptions,expectedChallenge:d,response:u,authenticator:aH(l),expectedOrigin:i.origin,expectedRPID:i.id})}catch(r){throw new w.w2(r)}let{verified:f,authenticationInfo:p}=o;if(!f)throw new w.w2("WebAuthn authentication response could not be verified");try{let{newCounter:r}=p;await a.updateAuthenticatorCounter(l.credentialID,r)}catch(r){throw new w.om(`Failed to update authenticator counter. This may cause future authentication attempts to fail. ${JSON.stringify({credentialID:c,oldCounter:l.counter,newCounter:p.newCounter})}`,r)}let h=await a.getAccount(l.providerAccountId,s.id);if(!h)throw new w.lR(`WebAuthn account not found in database: ${JSON.stringify({credentialID:c,providerAccountId:l.providerAccountId})}`);let y=await a.getUser(h.userId);if(!y)throw new w.lR(`WebAuthn user not found in database: ${JSON.stringify({credentialID:c,providerAccountId:l.providerAccountId,userID:h.userId})}`);return{account:h,user:y}}async function a$(r,n,i){let o,{provider:a}=r,s=n.body&&"string"==typeof n.body.data?JSON.parse(n.body.data):void 0;if(!s||"object"!=typeof s||!("id"in s)||"string"!=typeof s.id)throw new w.lR("Invalid WebAuthn Registration response");let{challenge:u,registerData:c}=await ax.use(r,n.cookies,i);if(!c)throw new w.lR("Missing user registration data in WebAuthn challenge cookie");try{let i=a.getRelayingParty(r,n);o=await a.simpleWebAuthn.verifyRegistrationResponse({...a.verifyRegistrationOptions,expectedChallenge:u,response:s,expectedOrigin:i.origin,expectedRPID:i.id})}catch(r){throw new w.w2(r)}if(!o.verified||!o.registrationInfo)throw new w.w2("WebAuthn registration response could not be verified");let l={providerAccountId:az(o.registrationInfo.credentialID),provider:r.provider.id,type:a.type},d={providerAccountId:l.providerAccountId,counter:o.registrationInfo.counter,credentialID:az(o.registrationInfo.credentialID),credentialPublicKey:az(o.registrationInfo.credentialPublicKey),credentialBackedUp:o.registrationInfo.credentialBackedUp,credentialDeviceType:o.registrationInfo.credentialDeviceType,transports:aV(s.response.transports)};return{user:c,account:l,authenticator:d}}async function aq(r,n,i){let{provider:o,adapter:a}
528=r,s=i&&i.id?await a.listAuthenticatorsByUserId(i.id):null,u=o.getRelayingParty(r,n);return await o.simpleWebAuthn.generateAuthenticationOptions({...o.authenticationOptions,rpID:u.id,allowCredentials:s?.map(r=>({id:aW(r.credentialID),type:"public-key",transports:aK(r.transports)}))})}async function aB(r,n,i){let{provider:o,adapter:a}=r,s=i.id?await a.listAuthenticatorsByUserId(i.id):null,u=rU(32),c=o.getRelayingParty(r,n);return await o.simpleWebAuthn.generateRegistrationOptions({...o.registrationOptions,userID:u,userName:i.email,userDisplayName:i.name??void 0,rpID:c.id,rpName:c.name,excludeCredentials:s?.map(r=>({id:aW(r.credentialID),type:"public-key",transports:aK(r.transports)}))})}function aF(r){let{provider:n,adapter:i}=r;if(!i)throw new w.OZ("An adapter is required for the WebAuthn provider");if(!n||"webauthn"!==n.type)throw new w.Hj("Provider must be WebAuthn");return{...r,provider:n,adapter:i}}function aH(r){return{...r,credentialDeviceType:r.credentialDeviceType,transports:aK(r.transports),credentialID:aW(r.credentialID),credentialPublicKey:aW(r.credentialPublicKey)}}function aW(r){return new Uint8Array(aD.from(r,"base64"))}function az(r){return aD.from(r).toString("base64")}function aV(r){return r?.join(",")}function aK(r){return r?r.split(","):void 0}async function aJ(r,n,i,o){if(!n.provider)throw new w.Hj("Callback route called without provider");let{query:a,body:s,method:u,headers:c}=r,{provider:l,adapter:d,url:f,callbackUrl:p,pages:h,jwt:y,events:g,callbacks:m,session:{strategy:b,maxAge:v},logger:_}=n,E="jwt"===b;try{if("oauth"===l.type||"oidc"===l.type){let u,c=l.authorization?.url.searchParams.get("response_mode")==="form_post"?s:a;if(n.isOnRedirectProxy&&c?.state){let r=await aR.decode(c.state,n);if(r?.origin&&new URL(r.origin).origin!==n.url.origin){let n=`${r.origin}?${new URLSearchParams(c)}`;return _.debug("Proxy redirecting to",n),{redirect:n,cookies:o}}}let b=await aj(c,r.cookies,n);b.cookies.length&&o.push(...b.cookies),_.debug("authorization result",b);let{user:w,account:S,profile:R}=b;if(!w||!S||!R)return{redirect:`${f}/signin`,cookies:o};if(d){let{getUserByAccount:r}=d;u=await r({providerAccountId:S.providerAccountId,provider:l.id})}let A=await aG({user:u??w,account:S,profile:R},n);if(A)return{redirect:A,cookies:o};let{user:k,session:O,isNewUser:x}=await ih(i.value,w,S,n);if(E){let r={name:k.name,email:k.email,picture:k.image,sub:k.id?.toString()},a=await m.jwt({token:r,user:k,account:S,profile:R,isNewUser:x,trigger:x?"signUp":"signIn"});if(null===a)o.push(...i.clean());else{let r=n.cookies.sessionToken.name,s=await y.encode({...y,token:a,salt:r}),u=new Date;u.setTime(u.getTime()+1e3*v);let c=i.chunk(s,{expires:u});o.push(...c)}}else o.push({name:n.cookies.sessionToken.name,value:O.sessionToken,options:{...n.cookies.sessionToken.options,expires:O.expires}});if(await g.signIn?.({user:k,account:S,profile:R,isNewUser:x}),x&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:p})}`,cookies:o};return{redirect:p,cookies:o}}if("email"===l.type){let r=a?.token,s=a?.email;if(!r){let n=TypeError("Missing token. The sign-in URL was manually opened without token or the link was not sent correctly in the email.",{cause:{hasToken:!!r}});throw n.name="Configuration",n}let u=l.secret??n.secret,c=await d.useVerificationToken({identifier:s,token:await rD(`${r}${u}`)}),f=!!c,b=f&&c.expires.valueOf()<Date.now();if(!f||b||s&&c.identifier!==s)throw new w.o6({hasInvite:f,expired:b});let{identifier:_}=c,S=await d.getUserByEmail(_)??{id:crypto.randomUUID(),email:_,emailVerified:null},R={providerAccountId:S.email,userId:S.id,type:"email",provider:l.id},A=await aG({user:S,account:R},n);if(A)return{redirect:A,cookies:o};let{user:k,session:O,isNewUser:x}=await ih(i.value,S,R,n);if(E){let r={name:k.name,email:k.email,picture:k.image,sub:k.id?.toString()},a=await m.jwt({token:r,user:k,account:R,isNewUser:x,trigger:x?"signUp":"signIn"});if(null===a)o.push(...i.clean());else{let r=n.cookies.sessionToken.name,s=await y.encode({...y,token:a,salt:r}),u=new Date;u.setTime(u.getTime()+1e3*v);let c=i.chunk(s,{expires:u});o.push(...c)}}else o.push({name:n.cookies.sessionToken.name,value:O.sessionToken,options:{...n.cookies.sessionToken.options,expires:O.expires}});if(await g.signIn?.({user:k,account:R,isNewUser:x}),x&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:p})}`,cookies:o};return{redirect:p,cookies:o}}if("credentials"===l.type&&"POST"===u){let r=s??{};Object.entries(a??{}
528).forEach(([r,n])=>f.searchParams.set(r,n));let d=await l.authorize(r,new Request(f,{headers:c,method:u,body:JSON.stringify(s)}));if(d)d.id=d.id?.toString()??crypto.randomUUID();else throw new w.xz;let h={providerAccountId:d.id,type:"credentials",provider:l.id},b=await aG({user:d,account:h,credentials:r},n);if(b)return{redirect:b,cookies:o};let _={name:d.name,email:d.email,picture:d.image,sub:d.id},E=await m.jwt({token:_,user:d,account:h,isNewUser:!1,trigger:"signIn"});if(null===E)o.push(...i.clean());else{let r=n.cookies.sessionToken.name,a=await y.encode({...y,token:E,salt:r}),s=new Date;s.setTime(s.getTime()+1e3*v);let u=i.chunk(a,{expires:s});o.push(...u)}return await g.signIn?.({user:d,account:h}),{redirect:p,cookies:o}}else if("webauthn"===l.type&&"POST"===u){let a,s,u,c=r.body?.action;if("string"!=typeof c||"authenticate"!==c&&"register"!==c)throw new w.lR("Invalid action parameter");let l=aF(n);switch(c){case"authenticate":{let n=await aL(l,r,o);a=n.user,s=n.account;break}case"register":{let i=await a$(n,r,o);a=i.user,s=i.account,u=i.authenticator}}await aG({user:a,account:s},n);let{user:d,isNewUser:f,session:b,account:_}=await ih(i.value,a,s,n);if(!_)throw new w.lR("Error creating or finding account");if(u&&d.id&&await l.adapter.createAuthenticator({...u,userId:d.id}),E){let r={name:d.name,email:d.email,picture:d.image,sub:d.id?.toString()},a=await m.jwt({token:r,user:d,account:_,isNewUser:f,trigger:f?"signUp":"signIn"});if(null===a)o.push(...i.clean());else{let r=n.cookies.sessionToken.name,s=await y.encode({...y,token:a,salt:r}),u=new Date;u.setTime(u.getTime()+1e3*v);let c=i.chunk(s,{expires:u});o.push(...c)}}else o.push({name:n.cookies.sessionToken.name,value:b.sessionToken,options:{...n.cookies.sessionToken.options,expires:b.expires}});if(await g.signIn?.({user:d,account:_,isNewUser:f}),f&&h.newUser)return{redirect:`${h.newUser}${h.newUser.includes("?")?"&":"?"}${new URLSearchParams({callbackUrl:p})}`,cookies:o};return{redirect:p,cookies:o}}throw new w.Hj(`Callback for provider type (${l.type}) is not supported`)}catch(n){if(n instanceof w.lR)throw n;let r=new w.t3(n,{provider:l.id});throw _.debug("callback route error details",{method:u,query:a,body:s}),r}}async function aG(r,n){let i,{signIn:o,redirect:a}=n.callbacks;try{i=await o(r)}catch(r){if(r instanceof w.lR)throw r;throw new w.Oy(r)}if(!i)throw new w.Oy("AccessDenied");if("string"==typeof i)return await a({url:i,baseUrl:n.url.origin})}async function aX(r,n,i,o,a){let{adapter:s,jwt:u,events:c,callbacks:l,logger:d,session:{strategy:f,maxAge:p}}=r,h={body:null,headers:{"Content-Type":"application/json",...!o&&{"Cache-Control":"private, no-cache, no-store",Expires:"0",Pragma:"no-cache"}},cookies:i},y=n.value;if(!y)return h;if("jwt"===f){try{let i=r.cookies.sessionToken.name,s=await u.decode({...u,token:y,salt:i});if(!s)throw Error("Invalid JWT");let d=await l.jwt({token:s,...o&&{trigger:"update"},session:a}),f=ip(p);if(null!==d){let r={user:{name:d.name,email:d.email,image:d.picture},expires:f.toISOString()},o=await l.session({session:r,token:d});h.body=o;let a=await u.encode({...u,token:d,salt:i}),s=n.chunk(a,{expires:f});h.cookies?.push(...s),await c.session?.({session:o,token:d})}else h.cookies?.push(...n.clean())}catch(r){d.error(new w.SW(r)),h.cookies?.push(...n.clean())}return h}try{let{getSessionAndUser:i,deleteSession:u,updateSession:d}=s,f=await i(y);if(f&&f.session.expires.valueOf()<Date.now()&&(await u(y),f=null),f){let{user:n,session:i}=f,s=r.session.updateAge,u=i.expires.valueOf()-1e3*p+1e3*s,g=ip(p);u<=Date.now()&&await d({sessionToken:y,expires:g});let m=await l.session({session:{...i,user:n},user:n,newSession:a,...o?{trigger:"update"}:{}});h.body=m,h.cookies?.push({name:r.cookies.sessionToken.name,value:y,options:{...r.cookies.sessionToken.options,expires:g}}),await c.session?.({session:m})}else y&&h.cookies?.push(...n.clean())}catch(r){d.error(new w.QU(r))}return h}async function aY(r,n){let i,o,{logger:a,provider:s}=n,u=s.authorization?.url;if(!u||"authjs.dev"===u.host){let r=new URL(s.issuer),n=await iB(r,{[iE]:s[rH],[iw]:!0}),i=await iW(r,n).catch(n=>{if(!(n instanceof TypeError)||"Invalid URL"!==n.message)throw n;
528throw TypeError(`Discovery request responded with an invalid issuer. expected: ${r}`)});if(!i.authorization_endpoint)throw TypeError("Authorization server did not provide an authorization endpoint.");u=new URL(i.authorization_endpoint)}let c=u.searchParams,l=s.callbackUrl;!n.isOnRedirectProxy&&s.redirectProxyUrl&&(l=s.redirectProxyUrl,o=s.callbackUrl,a.debug("using redirect proxy",{redirect_uri:l,data:o}));let d=Object.assign({response_type:"code",client_id:s.clientId,redirect_uri:l,...s.authorization?.params},Object.fromEntries(s.authorization?.url.searchParams??[]),r);for(let r in d)c.set(r,d[r]);let f=[];s.authorization?.url.searchParams.get("response_mode")==="form_post"&&(n.cookies.state.options.sameSite="none",n.cookies.state.options.secure=!0,n.cookies.nonce.options.sameSite="none",n.cookies.nonce.options.secure=!0);let p=await aR.create(n,o);if(p&&(c.set("state",p.value),f.push(p.cookie)),s.checks?.includes("pkce"))if(i&&!i.code_challenge_methods_supported?.includes("S256"))"oidc"===s.type&&(s.checks=["nonce"]);else{let{value:r,cookie:i}=await a_.create(n);c.set("code_challenge",r),c.set("code_challenge_method","S256"),f.push(i)}let h=await aA.create(n);return h&&(c.set("nonce",h.value),f.push(h.cookie)),"oidc"!==s.type||u.searchParams.has("scope")||u.searchParams.set("scope","openid profile email"),a.debug("authorization url is ready",{url:u,cookies:f,provider:s}),{redirect:u.toString(),cookies:f}}async function aQ(r,n){let i,{body:o}=r,{provider:a,callbacks:s,adapter:u}=n,c=(a.normalizeIdentifier??aZ)(o?.email),l={id:crypto.randomUUID(),email:c,emailVerified:null},d=await u.getUserByEmail(c)??l,f={providerAccountId:c,userId:d.id,type:"email",provider:a.id};try{i=await s.signIn({user:d,account:f,email:{verificationRequest:!0}})}catch(r){throw new w.Oy(r)}if(!i)throw new w.Oy("AccessDenied");if("string"==typeof i)return{redirect:await s.redirect({url:i,baseUrl:n.url.origin})};let{callbackUrl:p,theme:h}=n,y=await a.generateVerificationToken?.()??rU(32),g=86400,m=new Date(Date.now()+(a.maxAge??g)*1e3),b=a.secret??n.secret,v=new URL(n.basePath,n.url.origin),_=a.sendVerificationRequest({identifier:c,token:y,expires:m,url:`${v}/callback/${a.id}?${new URLSearchParams({callbackUrl:p,token:y,email:c})}`,provider:a,theme:h,request:rj(r)}),E=u.createVerificationToken?.({identifier:c,token:await rD(`${y}${b}`),expires:m});return await Promise.all([_,E]),{redirect:`${v}/verify-request?${new URLSearchParams({provider:a.id,type:a.type})}`}}function aZ(r){if(!r)throw Error("Missing email from request body.");let n=r.normalize("NFKC").toLowerCase().trim();if(n.includes('"'))throw Error("Invalid email address format.");let[i,o]=n.split("@");if(!i||!o||2!==n.split("@").length||!(o=o.split(",")[0]))throw Error("Invalid email address format.");return`${i}@${o}`}async function a0(r,n,i){let o=`${i.url.origin}${i.basePath}/signin`;if(!i.provider)return{redirect:o,cookies:n};switch(i.provider.type){case"oauth":case"oidc":{let{redirect:o,cookies:a}=await aY(r.query,i);return a&&n.push(...a),{redirect:o,cookies:n}}case"email":return{...await aQ(r,i),cookies:n};default:return{redirect:o,cookies:n}}}async function a1(r,n,i){let{jwt:o,events:a,callbackUrl:s,logger:u,session:c}=i,l=n.value;if(!l)return{redirect:s,cookies:r};try{if("jwt"===c.strategy){let r=i.cookies.sessionToken.name,n=await o.decode({...o,token:l,salt:r});await a.signOut?.({token:n})}else{let r=await i.adapter?.deleteSession(l);await a.signOut?.({session:r})}}catch(r){u.error(new w.eH(r))}return r.push(...n.clean()),{redirect:s,cookies:r}}async function a2(r,n){let{adapter:i,jwt:o,session:{strategy:a}}=r,s=n.value;if(!s)return null;if("jwt"===a){let n=r.cookies.sessionToken.name,i=await o.decode({...o,token:s,salt:n});if(i&&i.sub)return{id:i.sub,name:i.name,email:i.email,image:i.picture}}else{let r=await i?.getSessionAndUser(s);if(r)return r.user}return null}async function a3(r,n,i,o){let a=aF(n),{provider:s}=a,{action:u}=r.query??{};if("register"!==u&&"authenticate"!==u&&void 0!==u)return{status:400,body:{error:"Invalid action"},cookies:o,headers:{"Content-Type":"application/json"}};let c=await a2(n,i),l=c?{user:c,exists:!0}:await s.getUserInfo(n,r),d=l?.user;switch(aU(u,!!c,l)){case"authenticate":return aM(a,r,d,o);case"register":if("string"==typeof d?.email)return aN(a,r,d,o);break;default:return{status:400,body:{error:"Invalid request"},cookies:o,headers:{"Content-Type":"application/json"}}}}async function a8(r,n){let{action:i,providerId:o,error:a,method:s}=r,u=n.skipCSRFCheck===rB,{options:c,cookies:l}=await rZ({authOptions:n,action:i,providerId:o,url:r.url,callbackUrl:r.body?.callbackUrl??r.query?.callbackUrl,csrfToken:r.body?.csrfToken,cookies:r.cookies,isPost:"POST"===s,csrfDisabled:u}),d=new b(c.cookies.sessionToken,r.cookies,c.logger);if("GET"===s){let n=id({...c,query:r.query,cookies:l});switch(i){case"callback":return await aJ(r,c,d,l);case"csrf":return n.csrf(u,c,l);case"error":return n.error(a);case"providers":return n.providers(c.providers);case"session":return await aX(c,d,l);case"signin":return n.signin(o,a);case"signout":return n.signout();case"verify-request":return n.verifyRequest();case"webauthn-options":return await a3(r,c,d,l)}}else{let{csrfTokenVerified:n}=c;switch(i){case"callback":return"credentials"===c.provider.type&&rL(i,n),await aJ(r,c,d,l);case"session":return rL(i,n),await aX(c,d,l,!0,r.body?.data);case"signin":return rL(i,n),await a0(r,l,c);case"signout":return rL(i,n),await a1(l,d,c)}}throw new w.P8(`Cannot handle action: ${i}`)}function a6(r,n,i=!1){try{let o=r.AUTH_URL;o&&(n.basePath?i||rA(n).warn("env-url-basepath-redundant"):n.basePath=new URL(o).pathname)}catch{}finally{n.basePath??(n.basePath="/auth")}if(!n.secret?.length){n.secret=[];let i=r.AUTH_SECRET;for(let o of(i&&n.secret.push(i),[1,2,3])){let i=r[`AUTH_SECRET_${o}`];i&&n.secret.unshift(i)}}
528n.redirectProxyUrl??(n.redirectProxyUrl=r.AUTH_REDIRECT_PROXY_URL),n.trustHost??(n.trustHost=!!(r.AUTH_URL??r.AUTH_TRUST_HOST??r.VERCEL??r.CF_PAGES??"production"!==r.NODE_ENV)),n.providers=n.providers.map(n=>{let{id:i}="function"==typeof n?n({}):n,o=i.toUpperCase().replace(/-/g,"_"),a=r[`AUTH_${o}_ID`],s=r[`AUTH_${o}_SECRET`],u=r[`AUTH_${o}_ISSUER`],c=r[`AUTH_${o}_KEY`],l="function"==typeof n?n({clientId:a,clientSecret:s,issuer:u,apiKey:c}):n;return"oauth"===l.type||"oidc"===l.type?(l.clientId??(l.clientId=a),l.clientSecret??(l.clientSecret=s),l.issuer??(l.issuer=u)):"email"===l.type&&(l.apiKey??(l.apiKey=c)),l})}function a4(r,n,i,o,a){let s,u=a?.basePath,c=o.AUTH_URL??o.NEXTAUTH_URL;if(c)s=new URL(c),u&&"/"!==u&&"/"!==s.pathname&&(s.pathname!==u&&rA(a).warn("env-url-basepath-mismatch"),s.pathname="/");else{let r=i.get("x-forwarded-host")??i.get("host"),o=i.get("x-forwarded-proto")??n??"https",a=o.endsWith(":")?o:o+":";s=new URL(`${a}//${r}`)}let l=s.toString().replace(/\/$/,"");if(u){let n=u?.replace(/(^\/|\/$)/g,"")??"";return new URL(`${l}/${n}/${r}`)}return new URL(`${l}/${r}`)}async function a5(r,n){let i=rA(n),o=await rC(r,n);if(!o)return Response.json("Bad request.",{status:400});let a=T(o,n);if(Array.isArray(a))a.forEach(i.warn);else if(a){if(i.error(a),!new Set(["signin","signout","error","verify-request"]).has(o.action)||"GET"!==o.method){let r="There was a problem with the server configuration. Check the server logs for more information.";return Response.json({message:r},{status:500})}let{pages:r,theme:s}=n,u=r?.error&&o.url.searchParams.get("callbackUrl")?.startsWith(r.error);if(!r?.error||u)return u&&i.error(new w.CM(`The error page ${r?.error} should not require authentication`)),rI(id({theme:s}).error("Configuration"));let c=`${o.url.origin}${r.error}?error=Configuration`;return Response.redirect(c)}let s=r.headers?.has("X-Auth-Return-Redirect"),u=n.raw===rF;try{let r=await a8(o,n);if(u)return r;let i=rI(r),a=i.headers.get("Location");if(!s||!a)return i;return Response.json({url:a},{headers:i.headers})}catch(h){let a=h;i.error(a);let c=a instanceof w.lR;if(c&&u&&!s)throw a;if("POST"===r.method&&"session"===o.action)return Response.json(null,{status:400});let l=new URLSearchParams({error:(0,w._2)(a)?a.type:"Configuration"});a instanceof w.xz&&l.set("code",a.code);let d=c&&a.kind||"error",f=n.pages?.[d]??`${n.basePath}/${d.toLowerCase()}`,p=`${o.url.origin}${f}?${l}`;if(s)return Response.json({url:p});return Response.redirect(p)}}var a9=i(77155),a7=i(49914);function se(r){let n=a7.env.AUTH_URL??a7.env.NEXTAUTH_URL;if(!n)return r;let{origin:i}=new URL(n),{href:o,origin:a}=r.nextUrl;return new a9.NextRequest(o.replace(a,i),r)}function st(r){try{r.secret??(r.secret=a7.env.AUTH_SECRET??a7.env.NEXTAUTH_SECRET);let n=a7.env.AUTH_URL??a7.env.NEXTAUTH_URL;if(!n)return;let{pathname:i}=new URL(n);if("/"===i)return;r.basePath||(r.basePath=i)}catch{}finally{r.basePath||(r.basePath="/api/auth"),a6(a7.env,r,!0)}}var sr=i(13537),sn=i(49914);async function si(r,n){return a5(new Request(a4("session",r.get("x-forwarded-proto"),r,sn.env,n),{headers:{cookie:r.get("cookie")??""}}),{...n,callbacks:{...n.callbacks,async session(...r){let i=await n.callbacks?.session?.(...r)??{...r[0].session,expires:r[0].session.expires?.toISOString?.()??r[0].session.expires};return{user:r[0].user??r[0].token,...i}}}})}async function so(r){return r.ok?await r.json():null}function sa(r){return"function"==typeof r}function ss(r,n){return"function"==typeof r?async(...i)=>{if(!i.length){let i=await (0,sr.headers)(),o=await r(void 0);return n?.(o),si(i,o).then(so)}if(i[0]instanceof Request){let o=i[0],a=i[1],s=await r(o);return n?.(s),su([o,a],s)}if(sa(i[0])){let o=i[0];return async(...i)=>{let a=await r(i[0]);return n?.(a),su(i,a,o)}}let o="req"in i[0]?i[0].req:i[0],a="res"in i[0]?i[0].res:i[1],s=await r(o);return n?.(s),si(new Headers(o.headers),s).then(async r=>{let n=await so(r);for(let n of r.headers.getSetCookie())"headers"in a?a.headers.append("set-cookie",n):a.appendHeader("set-cookie",n);return n})}:(...n)=>{if(!n.length)return Promise.resolve((0,sr.headers)()).then(n=>si(n,r).then(so));if(n[0]instanceof Request)return su([n[0],n[1]],r);if(sa(n[0])){let i=n[0];return async(...n)=>su(n,r,i).then(r=>r)}let i="req"in n[0]?n[0].req:n[0],o="res"in n[0]?n[0].res:n[1];return si(new Headers(i.headers),r).then(async r=>{let n=await so(r);for(let n of r.headers.getSetCookie())"headers"in o?o.headers.append("set-cookie",n):o.appendHeader("set-cookie",n);return n})}}async function su(r,n,i){let o=se(r[0]),a=await si(o.headers,n),s=await so(a),u=!0;n.callbacks?.authorized&&(u=await n.callbacks.authorized({request:o,auth:s}));let c=a9.NextResponse.next?.();if(u instanceof Response){c=u;let r=u.headers.get("Location"),{pathname:i}=o.nextUrl;r&&sc(i,new URL(r).pathname,n)&&(u=!0)}else if(i){let n=o;n.auth=s,c=await i(n,r[1])??a9.NextResponse.next()}else if(!u){let r=n.pages?.signIn??`${n.basePath}/signin`;if(o.nextUrl.pathname!==r){let n=o.nextUrl.clone();n.pathname=r,n.searchParams.set("callbackUrl",o.nextUrl.href),c=a9.NextResponse.redirect(n)}}let l=new Response(c?.body,c);for(let r of a.headers.getSetCookie())l.headers.append("set-cookie",r);return l}function sc(r,n,i){let o=n.replace(`${r}/`,""),a=Object.values(i.pages??{});return(sl.has(o)||a.includes(n))&&n===r}let sl=new Set(["providers","session","csrf","signin","signout","callback","verify-request","error"]);var sd=i(28174),sf=i(49914);async function sp(r,n={},i,o){let a=new Headers(await (0,sr.headers)()),{redirect:s=!0,redirectTo:u,...c}=n instanceof FormData?Object.fromEntries(n):n,l=u?.toString()??a.get("Referer")??"/",d=a4("signin",a.get("x-forwarded-proto"),a,sf.env,o);if(!r)return d.searchParams.append("callbackUrl",l),s&&(0,sd.redirect)(d.toString()),d.toString();let f=`${d}/${r}?${new URLSearchParams(i)}`,p={};for(let n of o.providers){let{options:i,...o}="function"==typeof n?n():n,a=i?.id??o.id;if(a===r){p={id:a,type:i?.type??o.type};break}}if(!p.id){let r=`${d}?${new URLSearchParams({callbackUrl:l})}`;return s&&(0,sd.redirect)(r),r}"credentials"===p.type&&(f=f.replace("signin","callback")),a.set("Content-Type","application/x-www-form-urlencoded");
528let h=new Request(f,{method:"POST",headers:a,body:new URLSearchParams({...c,callbackUrl:l})}),y=await a5(h,{...o,raw:rF,skipCSRFCheck:rB}),g=await (0,sr.cookies)();for(let r of y?.cookies??[])g.set(r.name,r.value,r.options);let m=(y instanceof Response?y.headers.get("Location"):y.redirect)??f;return s?(0,sd.redirect)(m):m}async function sh(r,n){let i=new Headers(await (0,sr.headers)());i.set("Content-Type","application/x-www-form-urlencoded");let o=a4("signout",i.get("x-forwarded-proto"),i,sf.env,n),a=new URLSearchParams({callbackUrl:r?.redirectTo??i.get("Referer")??"/"}),s=new Request(o,{method:"POST",headers:i,body:a}),u=await a5(s,{...n,raw:rF,skipCSRFCheck:rB}),c=await (0,sr.cookies)();for(let r of u?.cookies??[])c.set(r.name,r.value,r.options);return r?.redirect??!0?(0,sd.redirect)(u.redirect):u}async function sy(r,n){let i=new Headers(await (0,sr.headers)());i.set("Content-Type","application/json");let o=new Request(a4("session",i.get("x-forwarded-proto"),i,sf.env,n),{method:"POST",headers:i,body:JSON.stringify({data:r})}),a=await a5(o,{...n,raw:rF,skipCSRFCheck:rB}),s=await (0,sr.cookies)();for(let r of a?.cookies??[])s.set(r.name,r.value,r.options);return a.body}function sg(r){if("function"==typeof r){let n=async n=>{let i=await r(n);return st(i),a5(se(n),i)};return{handlers:{GET:n,POST:n},auth:ss(r,r=>st(r)),signIn:async(n,i,o)=>{let a=await r(void 0);return st(a),sp(n,i,o,a)},signOut:async n=>{let i=await r(void 0);return st(i),sh(n,i)},unstable_update:async n=>{let i=await r(void 0);return st(i),sy(n,i)}}}st(r);let n=n=>a5(se(n),r);return{handlers:{GET:n,POST:n},auth:ss(r),signIn:(n,i,o)=>sp(n,i,o,r),signOut:n=>sh(n,r),unstable_update:n=>sy(n,r)}}},51043:(r,n,i)=>{"use strict";i.d(n,{cb:()=>c,u1:()=>l,bJ:()=>h,Ll:()=>y,qx:()=>g,TA:()=>f,Al:()=>b,SW:()=>m});var o=i(631),a=i(10643);function s(r,n){let{cleanupBeforeAbort:i,abortSignal:o,abortErrorMsg:s}=n??{};return new Promise((n,u)=>{function c(){u(new a.l(s??"The operation was aborted."))}function l(){o?.removeEventListener("abort",d)}function d(){i?.(),l(),c()}if(o?.aborted)return c();try{r(r=>{l(),n(r)},r=>{l(),u(r)})}catch(r){u(r)}o?.addEventListener("abort",d)})}let u="The delay was aborted.";function c(r,n){let i,{abortSignal:o,abortErrorMsg:a}=n??{};return s(n=>{i=setTimeout(n,r)},{cleanupBeforeAbort:()=>clearTimeout(i),abortSignal:o,abortErrorMsg:a??u})}function l(r){if((0,o.bJ)(r))return r.message;{let n;try{n="object"==typeof r&&r?JSON.stringify(r):String(r)}catch(r){n="[unable to stringify input]"}return`Unknown error ${n}`}}function d(r){return null!=r}function f(r,n){if(!d(r)||"object"!=typeof r)return!1;for(let i of n)if(!p(r,i))return!1;return!0}function p(r,n){return d(r)&&"object"==typeof r&&n in r}function h(r){return o.bJ(r)}o.Bd,o.Qg,o.N6;let y=o.qx,g=o.qx;function m(r,n){return o.SW(r,n)}function b(r,n){return o.Al(r,n)}o.tX,o.lV,o.p7},51168:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return o.afterTaskAsyncStorageInstance}});let o=i(57741)},51282:(r,n,i)=>{"use strict";i.d(n,{Bd:()=>o,N6:()=>s,Qg:()=>u,lV:()=>d,p7:()=>a,qx:()=>c,tX:()=>l});let o="u">typeof window&&void 0!==window.document,a="object"==typeof self&&"function"==typeof self?.importScripts&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),s="u">typeof Deno&&void 0!==Deno.version&&void 0!==Deno.version.deno,u="u">typeof Bun&&void 0!==Bun.version,c=void 0!==globalThis.process&&!!globalThis.process.version&&!!globalThis.process.versions?.node,l=c&&!u&&!s,d="u">typeof navigator&&navigator?.product==="ReactNative"},51383:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TelemetryCounters=void 0;class i{}n.TelemetryCounters=i,i.credentialsRequest={name:"fga-client.credentials.request",unit:"milliseconds",description:"The number of times an access token is requested."}},51735:(r,n)=>{"use strict";function i(r,n){let i=`Route "${r}
528": Could not validate that a segment in your UI has instant navigation.`;if(n.length>0){let r=1===n.length?"Dropped segment":"Dropped segments";i+=`
529
530This segment was dropped from rendering. Issues that would prevent instant navigation will go undetected.
531
532${r}:
533${n.map(r=>`  ${r}`).join("\n")}
534
535Ways to fix this:
536  - [render] Render the dropped segment
537  - [ignore] Set \`export const instant = false\` to opt the dropped segment out of instant-navigation validation
538
539Learn more: https://nextjs.org/docs/messages/instant-unrendered-segment`}return Object.defineProperty(Error(i),"__NEXT_ERROR_CODE",{value:"E1286",enumerable:!1,configurable:!0})}function o(r){return Object.defineProperty(Error(`Next.js encountered dynamic data during prefetching for "${r}".
540
541This will lead to slower, more expensive prefetches.
542
543Ways to fix this:
544  - [upgrade] Opt into Partial Prefetching by exporting \`const prefetch = 'partial'\` from the page or layout, or by setting \`partialPrefetching: true\` in next.config to opt the whole app in
545  - [disable] Remove \`prefetch={true}\` from the <Link> to use the default prefetch
546  - [ignore] Set \`export const instant = false\` to opt the route out of instant-navigation validation
547
548Learn more: https://nextjs.org/docs/messages/instant-link-prefetch-partial`),"__NEXT_ERROR_CODE",{value:"E1435",enumerable:!1,configurable:!0})}Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{createLinkPrefetchPartialError:function(){return o},createUnrenderedSegmentError:function(){return i}})},52109:(r,n,i)=>{"use strict";var o;o={value:!0},Object.defineProperty(n,"F",{enumerable:!0,get:function(){return p}});let a=i(21989),s=i(3330),u=i(24674),c=i(70588),l=i(53665),d=i(69030);i(86133);let f=i(8634);function p(){let r="connection",n=a.workAsyncStorage.getStore(),i=s.workUnitAsyncStorage.getStore();if(n){if(i&&!(0,d.isRequestApiAllowedInCurrentPhase)(i))throw Object.defineProperty(Error(`Route ${n.route} used \`connection()\` inside \`after()\` while rendering. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1377",enumerable:!1,configurable:!0});if(n.forceStatic)return Promise.resolve(void 0);if(n.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${n.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(i)switch(i.type){case"cache":{let r=Object.defineProperty(Error(`Route ${n.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,p),(0,l.applyOwnerStack)(r),n.invalidDynamicUsageError??=r,r}case"private-cache":{let r=Object.defineProperty(Error(`Route ${n.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,p),(0,l.applyOwnerStack)(r),n.invalidDynamicUsageError??=r,r}case"unstable-cache":throw Object.defineProperty(Error(`Route ${n.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,
548configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${n.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,l.makeDynamicHangingPromise)(i.renderSignal,n.route,"`connection()`");case"validation-client":{let r="`connection`";throw Object.defineProperty(new f.InvariantError(`${r} must not be used within a Client Component. Next.js should be preventing ${r} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,u.postponeWithTracking)(n.route,"connection",i.dynamicTracking);case"prerender-legacy":return(0,u.throwToInterruptStaticGeneration)("connection",n,i);case"request":if((0,u.trackDynamicDataInDynamicRender)(i),i.asyncApiPromises)return i.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,s.throwForMissingRequestStore)(r)}},52256:r=>{r.exports=async function*(r,n,i){let o=new Set;async function a(){let[r,n]=await Promise.race(o);return o.delete(r),n}for(let s of n){let u=(async()=>await i(s,n))().then(r=>[u,r]);o.add(u),o.size>=r&&(yield await a())}for(;o.size;)yield await a()}},52348:(r,n,i)=>{"use strict";var o;o={value:!0},Object.defineProperty(n,"cookies",{enumerable:!0,get:function(){return g}});let a=i(7188),s=i(95019),u=i(21989),c=i(3330),l=i(24674),d=i(70588),f=i(53665),p=i(23219),h=i(69030),y=i(8634);function g(){let r="cookies",n=u.workAsyncStorage.getStore(),i=c.workUnitAsyncStorage.getStore();if(n){if(i&&!(0,h.isRequestApiAllowedInCurrentPhase)(i))throw Object.defineProperty(Error(`Route ${n.route} used \`cookies()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1381",enumerable:!1,configurable:!0});if(n.forceStatic)return v(m());if(n.dynamicShouldError)throw Object.defineProperty(new d.StaticGenBailoutError(`Route ${n.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E849",enumerable:!1,configurable:!0});if(i)switch(i.type){case"cache":let o=Object.defineProperty(Error(`Route ${n.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E831",enumerable:!1,configurable:!0});throw Error.captureStackTrace(o,g),(0,f.applyOwnerStack)(o),n.invalidDynamicUsageError??=o,o;case"unstable-cache":throw Object.defineProperty(Error(`Route ${n.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E846",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${n.route} used \`cookies()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1123",enumerable:!1,
548configurable:!0});case"prerender":return w(n,i);case"prerender-client":case"validation-client":let s="`cookies`";throw Object.defineProperty(new y.InvariantError(`${s} must not be used within a Client Component. Next.js should be preventing ${s} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1037",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,l.postponeWithTracking)(n.route,r,i.dynamicTracking);case"prerender-legacy":return(0,l.throwToInterruptStaticGeneration)(r,n,i);case"prerender-runtime":{let{stagedRendering:r}=i;if(r)return r.delayUntilStage(f.RENDER_STAGES_BY_DATA_KIND.sessionData,"cookies",i.cookies);return v(i.cookies)}case"private-cache":return v(i.cookies);case"request":let u;if((0,l.trackDynamicDataInDynamicRender)(i),u=(0,a.areCookiesMutableInCurrentPhase)(i)?i.userspaceMutableCookies:i.cookies,!i.asyncApiPromises)return v(u);if(u===i.mutableCookies)return i.asyncApiPromises.mutableCookies;return i.asyncApiPromises.cookies}}(0,c.throwForMissingRequestStore)(r)}function m(){return a.RequestCookiesAdapter.seal(new s.RequestCookies(new Headers({})))}let b=new WeakMap;function w(r,n){let i=b.get(n);if(i)return i;let o=(0,f.makeRuntimeHangingPromise)(n.renderSignal,r.route,"`cookies()`",n);return b.set(n,o),o}function v(r){let n=b.get(r);if(n)return n;let i=Promise.resolve(r);return b.set(r,i),i}function _(r,n){let i=r?`Route "${r}" `:"This route ";return Object.defineProperty(Error(`${i}used ${n}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,configurable:!0})}(0,p.createDedupedByCallsiteServerErrorLoggerDev)(_)},53665:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{ClientHookDynamicError:function(){return l},RENDER_STAGES_BY_DATA_KIND:function(){return k},applyOwnerStack:function(){return O},isClientHookDynamicError:function(){return d},isHangingPromiseRejectionError:function(){return a},makeClientHookHangingPromise:function(){return _},makeDevtoolsIOAwarePromise:function(){return A},makeDynamicHangingPromise:function(){return p},makeFallbackParamsHangingPromise:function(){return g},makePromiseFromTrigger:function(){return R},makeRuntimeHangingPromise:function(){return y},makeStageHangingPromise:function(){return m},makeUntrackedHangingPromise:function(){return h},trackFallbackParamsAccessed:function(){return w},trackRuntimeDataAccessed:function(){return b}});let o=i(86133);function a(r){return"object"==typeof r&&null!==r&&"digest"in r&&r.digest===s}i(3330),i(43769);let s="HANGING_PROMISE_REJECTION";class u extends Error{constructor(r,n){super(`During prerendering, ${n} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${n} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${r}".`),this.route=r,this.expression=n,this.digest=s}}let c="CLIENT_HOOK_DYNAMIC";class l extends Error{constructor(r,n){super(`Route "${r}": Next.js encountered URL data \`${n}\` in a Client Component outside of \`<Suspense>\`.
549
550This blocks prerendering because the value is only available at runtime.
551
552Ways to fix this:
553  - [stream] Wrap the component in \`<Suspense fallback={...}>\` so the hook value streams in after prerendering
554  - [block] Set \`export const instant = false\` to allow a blocking route
555
556Learn more: https://nextjs.org/docs/messages/blocking-prerender-client-hook`),this.digest=c,Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1433",enumerable:!1,configurable:!0})}}function d(r){return"object"==typeof r&&null!==r&&"digest"in r&&r.digest===c}let f=new WeakMap;function p(r,n,i){return E(r,new u(n,i))}function h(r,n,i){return E(r,new u(n,i))}function y(r,n,i,o){return null!==o&&b(o),E(r,new u(n,i))}function g(r,n,i,o){return null!==o&&w(o),E(r,new u(n,i))}function m(r,n,i,o){return b(o),E(r,new u(n,i))}function b(r){v(r,!1)}function w(r){v(r,!0)}function v(r,n){if("prerender"===r.type){var i;null==(i=r.runtimeDataAccessed)||i.resolve(!0);let o=r.shouldAttemptStaticPrefetch;null===o||n&&r.isFallbackUpgradeable||(o.current=!1)}}function _(r,n){return E(r,n)}function E(r,n){if(r.aborted)return Promise.reject(n);{let i=new Promise((i,o)=>{let a=o.bind(null,n),s=f.get(r);if(s)s.push(a);else{let n=[a];f.set(r,n),r.addEventListener("abort",()=>{for(let r=0;r<n.length;r++)n[r]()},{once:!0})}});return i.catch(S),i}}function S(){}function R(r,n){let i=r.then(()=>n);return i.catch(S),i}function A(r,n,i){return n.stagedRendering?n.stagedRendering.delayUntil
556Stage(i,void 0,r):new Promise(n=>{setTimeout(()=>{n(r)},0)})}let k={sessionData:o.RenderStage.ShellRuntime,staticLinkData:o.RenderStage.Static,runtimeLinkData:o.RenderStage.Runtime};function O(r){return r}},55100:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c}});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class o{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(r){return r}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return a?new a:new o}function u(r){return a?a.bind(r):o.bind(r)}function c(){return a?a.snapshot():function(r,...n){return r(...n)}}},55917:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NextURL",{enumerable:!0,get:function(){return f}});let o=i(67959),a=i(314),s=i(56645),u=i(4761),c=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function l(r,n){let i=new URL(String(r),n&&String(n));return c.test(i.hostname)&&(i.hostname="localhost"),i}let d=Symbol("NextURLInternal");class f{constructor(r,n,i){let o,a;"object"==typeof n&&"pathname"in n||"string"==typeof n?(o=n,a=i||{}):a=i||n||{},this[d]={url:l(r,o??a.base),options:a,basePath:""},this.analyze()}analyze(){var r,n,i,a,c;let l=(0,u.getNextPathnameInfo)(this[d].url.pathname,{nextConfig:this[d].options.nextConfig,parseData:!0,i18nProvider:this[d].options.i18nProvider}),f=(0,s.getHostname)(this[d].url,this[d].options.headers);this[d].domainLocale=this[d].options.i18nProvider?this[d].options.i18nProvider.detectDomainLocale(f):(0,o.detectDomainLocale)(null==(n=this[d].options.nextConfig)||null==(r=n.i18n)?void 0:r.domains,f);let p=(null==(i=this[d].domainLocale)?void 0:i.defaultLocale)||(null==(c=this[d].options.nextConfig)||null==(a=c.i18n)?void 0:a.defaultLocale);this[d].url.pathname=l.pathname,this[d].defaultLocale=p,this[d].basePath=l.basePath??"",this[d].buildId=l.buildId,this[d].locale=l.locale??p,this[d].trailingSlash=l.trailingSlash}formatPathname(){return(0,a.formatNextPathnameInfo)({basePath:this[d].basePath,buildId:this[d].buildId,defaultLocale:this[d].options.forceLocale?void 0:this[d].defaultLocale,locale:this[d].locale,pathname:this[d].url.pathname,trailingSlash:this[d].trailingSlash})}formatSearch(){return this[d].url.search}get buildId(){return this[d].buildId}set buildId(r){this[d].buildId=r}get locale(){return this[d].locale??""}set locale(r){var n,i;if(!this[d].locale||!(null==(i=this[d].options.nextConfig)||null==(n=i.i18n)?void 0:n.locales.includes(r)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${r}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[d].locale=r}get defaultLocale(){return this[d].defaultLocale}get domainLocale(){return this[d].domainLocale}get searchParams(){return this[d].url.searchParams}get host(){return this[d].url.host}set host(r){this[d].url.host=r}get hostname(){return this[d].url.hostname}set hostname(r){this[d].url.hostname=r}get port(){return this[d].url.port}set port(r){this[d].url.port=r}get protocol(){return this[d].url.protocol}set protocol(r){this[d].url.protocol=r}get href(){let r=this.formatPathname(),n=this.formatSearch();return`${this.protocol}//${this.host}${r}${n}${this.hash}`}set href(r){this[d].url=l(r),this.analyze()}get origin(){return this[d].url.origin}get pathname(){return this[d].url.pathname}set pathname(r){this[d].url.pathname=r}get hash(){return this[d].url.hash}set hash(r){this[d].url.hash=r}get search(){return this[d].url.search}set search(r){this[d].url.search=r}get password(){return this[d].url.password}set password(r){this[d].url.password=r}get username(){return this[d].url.username}set username(r){this[d].url.username=r}get basePath(){return this[d].basePath}set basePath(r){this[d].basePath=r.startsWith("/")?r:`/${r}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new f(String(this),this[d].options)}}},56036:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TelemetryConfiguration=void 0;let o=i(68809),a=i(49291),s=i(87615);class u{constructor(r){this.metrics=r,this.recorder=new s.MetricRecorder,r?this.metrics={[s.TelemetryMetric.CounterCredentialsRequest]:r[s.TelemetryMetric.CounterCredentialsRequest]||void 0,[s.TelemetryMetric.HistogramRequestDuration]:r[s.TelemetryMetric.HistogramRequestDuration]||void 0,[s.TelemetryMetric.HistogramQueryDuration]:r[s.TelemetryMetric.HistogramQueryDuration]||void 0}:this.metrics={[s.TelemetryMetric.CounterCredentialsRequest]:{attributes:u.defaultAttributes},[s.TelemetryMetric.HistogramRequestDuration]:{attributes:u.defaultAttributes},[s.TelemetryMetric.HistogramQueryDuration]:{attributes:u.defaultAttributes}}}ensureValid(){let r=u.validAttributes;(this.metrics?.counterCredentialsRequest?.attributes||new Set).forEach(n=>{if(!r.has(n))throw new o.FgaValidationError(`Configuration.telemetry.metrics.counterCredentialsRequest attribute '${n}' is not a valid attribute`)}),(this.metrics?.histogramRequestDuration?.attributes||new Set).forEach(n=>{if(!r.has(n))throw new o.FgaValidationError(`Configuration.telemetry.metrics.histogramRequestDuration attribute '${n}' is not a valid attribute`)}),(this.metrics?.histogramQueryDuration?.attributes||new Set).forEach(n=>{if(!r.has(n))throw new o.FgaValidationError(`Configuration.telemetry.metrics.histogramQueryDuration attribute '${n}' is not a valid attribute`)})}}n.TelemetryConfiguration=u,u.defaultAttributes=new Set([a.TelemetryAttribute.HttpHost,a.TelemetryAttribute.HttpResponseStatusCode,a.TelemetryAttribute.UserAgentOriginal,a.TelemetryAttribute.FgaClientRequestMethod,a.TelemetryAttribute.FgaClientRequestClientId,a.TelemetryAttribute.FgaClientRequestStoreId,a.TelemetryAttribute.FgaClientRequestModelId,a.TelemetryAttribute.HttpRequestResendCount,a.TelemetryAttribute.FgaClientResponseModelId]),u.validAttributes=new Set([a.TelemetryAttribute.HttpHost,a.TelemetryAttribute.HttpResponseStatusCode,a.TelemetryAttribute.UserAgentOriginal,a.TelemetryAttribute.FgaClientRequestMethod,a.TelemetryAttribute.FgaClientRequestClientId,a.TelemetryAttribute.FgaClientRequestStoreId,a.TelemetryAttribute.FgaClientRequestModelId,a.TelemetryAttribute.HttpRequestResendCount,a.TelemetryAttribute.FgaClientResponseModelId,a.TelemetryAttribute.UrlScheme,a.TelemetryAttribute.HttpRequestMethod,a.TelemetryAttribute.UrlFull,a.TelemetryAttribute.HttpClientRequestDuration,a.TelemetryAttribute.HttpServerRequestDuration,a.TelemetryAttribute.FgaClientUser,a.TelemetryAttribute.FgaClientRequestBatchCheckSize])},56623:(r,n,i)=>{"use strict";let o;i.d(n,{pj:()=>h.p,fl:()=>P,O8:()=>p,Nc:()=>s.N,G6:()=>l,t$:()=>eM,KU:()=>eD,T0:()=>h.T,Iq:()=>eN});var a=i(18504);i(33325);var s=i(66184),u=i(81998);class c{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(r){this.url=r.url,this.body=r.body,this.headers=r.headers??(0,s.N)(),this.method=r.method??"GET",this.timeout=r.timeout??0,this.multipartBody=r.multipartBody,this.formData=r.formData,this.disableKeepAlive=r.disableKeepAlive??!1,this.proxySettings=r.proxySettings,this.streamResponseStatusCodes=r.streamResponseStatusCodes,this.withCredentials=r.withCredentials??!1,this.abort
556Signal=r.abortSignal,this.onUploadProgress=r.onUploadProgress,this.onDownloadProgress=r.onDownloadProgress,this.requestId=r.requestId||(0,u.N)(),this.allowInsecureConnection=r.allowInsecureConnection??!1,this.enableBrowserStreams=r.enableBrowserStreams??!1,this.requestOverrides=r.requestOverrides,this.authSchemes=r.authSchemes}}function l(r){return new c(r)}let d=new Set(["Deserialize","Serialize","Retry","Sign"]);class f{_policies=[];_orderedPolicies;constructor(r){this._policies=r?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(r,n={}){if(n.phase&&n.afterPhase)throw Error("Policies inside a phase cannot specify afterPhase.");if(n.phase&&!d.has(n.phase))throw Error(`Invalid phase name: ${n.phase}`);if(n.afterPhase&&!d.has(n.afterPhase))throw Error(`Invalid afterPhase name: ${n.afterPhase}`);this._policies.push({policy:r,options:n}),this._orderedPolicies=void 0}removePolicy(r){let n=[];return this._policies=this._policies.filter(i=>(!r.name||i.policy.name!==r.name)&&(!r.phase||i.options.phase!==r.phase)||(n.push(i.policy),!1)),this._orderedPolicies=void 0,n}sendRequest(r,n){return this.getOrderedPolicies().reduceRight((r,n)=>i=>n.sendRequest(i,r),n=>r.sendRequest(n))(n)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new f(this._policies)}static create(){return new f}orderPolicies(){let r=[],n=new Map;function i(r){return{name:r,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let o=i("Serialize"),a=i("None"),s=i("Deserialize"),u=i("Retry"),c=i("Sign"),l=[o,a,s,u,c];function d(r){return"Retry"===r?u:"Serialize"===r?o:"Deserialize"===r?s:"Sign"===r?c:a}for(let r of this._policies){let i=r.policy,o=r.options,a=i.name;if(n.has(a))throw Error("Duplicate policy names not allowed in pipeline");let s={policy:i,dependsOn:new Set,dependants:new Set};o.afterPhase&&(s.afterPhase=d(o.afterPhase),s.afterPhase.hasAfterPolicies=!0),n.set(a,s),d(o.phase).policies.add(s)}for(let r of this._policies){let{policy:i,options:o}=r,a=i.name,s=n.get(a);if(!s)throw Error(`Missing node for policy ${a}`);if(o.afterPolicies)for(let r of o.afterPolicies){let i=n.get(r);i&&(s.dependsOn.add(i),i.dependants.add(s))}if(o.beforePolicies)for(let r of o.beforePolicies){let i=n.get(r);i&&(i.dependsOn.add(s),s.dependants.add(i))}}function f(i){for(let o of(i.hasRun=!0,i.policies))if((!o.afterPhase||o.afterPhase.hasRun&&!o.afterPhase.policies.size)&&0===o.dependsOn.size){for(let n of(r.push(o.policy),o.dependants))n.dependsOn.delete(o);n.delete(o.policy.name),i.policies.delete(o)}}function p(){for(let r of l){if(f(r),r.policies.size>0&&r!==a){a.hasRun||f(a);return}r.hasAfterPolicies&&f(a)}}let h=0;for(;n.size>0;){h++;let n=r.length;if(p(),r.length<=n&&h>1)throw Error("Cannot satisfy policy dependencies due to requirements cycle.")}return r}}function p(){return f.create()}var h=i(68793),y=i(71971),g=i(93073);function m(r){if(r.buffer instanceof ArrayBuffer&&0===r.byteOffset&&r.byteLength===r.buffer.byteLength)return r.buffer;let n=new Uint8Array(new ArrayBuffer(r.byteLength)),i=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);return n.set(i),n.buffer}function b(r){return("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob}class w{async sendRequest(r){if("https:"!==new URL(r.url).protocol&&!r.allowInsecureConnection)throw Error(`Cannot connect to ${r.url} while allowInsecureConnection is false.`);if(r.proxySettings)throw Error("HTTP proxy is not supported in browser environment");try{return await v(r)}catch(n){throw S(n,r)}}}async function v(r){let{abortController:n,abortControllerCleanup:i}=E(r);try{let o=R(r.headers),{streaming:a,body:s}=k(r),u={body:s,method:r.method,headers:o,signal:n.signal,..."credentials"in Request.prototype?{credentials:r.withCredentials?"include":"same-origin"}:{},..."cache"in Request.prototype?{cache:"no-store"}:{}};a&&(u.duplex="half");let c=await fetch(r.url,{...u,...r.requestOverrides});return b(r.body)&&r.onUploadProgress&&r.onUploadProgress({loadedBytes:r.body.size}),_(c,r,i)}catch(r){throw i?.(),r}}async function _(r,n,i){let o={request:n,headers:A(r),status:r.status},a=(0,g.xU)(r.body)?O(r.body,{onProgress:n.onDownloadProgress,onEnd:i}):r.body;if(n.streamResponseStatusCodes?.has(1/0)||n.streamResponseStatusCodes?.has(o.status))n.enableBrowserStreams?o.browserStreamBody=a??void 0:(o.blobBody=new Response(a
556).blob(),i?.());else{let r=new Response(a);o.bodyAsText=await r.text(),i?.()}return o}function E(r){let n,i,o=new AbortController;if(r.abortSignal){if(r.abortSignal.aborted)throw new a.l("The operation was aborted. Request has already been canceled.");i=r=>{"abort"===r.type&&o.abort()},r.abortSignal.addEventListener("abort",i),n=()=>{i&&r.abortSignal?.removeEventListener("abort",i)}}return r.timeout>0&&setTimeout(()=>{o.abort()},r.timeout),{abortController:o,abortControllerCleanup:n}}function S(r,n){return r&&r?.name==="AbortError"?r:new h.p(`Error sending request: ${r.message}`,{code:r?.code??h.p.REQUEST_SEND_ERROR,request:n})}function R(r){let n=new Headers;for(let[i,o]of r)n.append(i,o);return n}function A(r){let n=(0,s.N)();for(let[i,o]of r.headers)n.set(i,o);return n}function k(r){let n="function"==typeof r.body?r.body():r.body;if((0,g.vB)(n))throw Error("Node streams are not supported in browser environment.");return(0,g.xU)(n)?{streaming:!0,body:O(n,{onProgress:r.onUploadProgress})}:"object"==typeof n&&n&&"buffer"in n?{streaming:!1,body:m(n)}:void 0===n?{streaming:!1}:{streaming:!1,body:n}}function O(r,n={}){let i=0,{onProgress:o,onEnd:a}=n;if(T(r))return r.pipeThrough(new TransformStream({transform(r,n){null===r?n.terminate():(n.enqueue(r),i+=r.length,o&&o({loadedBytes:i}))},flush(){a?.()}}));{let n=r.getReader();return new ReadableStream({async pull(r){let{done:s,value:u}=await n.read();if(s||!u){a?.(),r.close(),n.releaseLock();return}i+=u?.length??0,r.enqueue(u),o&&o({loadedBytes:i})},cancel:r=>(a?.(),n.cancel(r))})}}function x(){return new w}function T(r){return void 0!==r.pipeThrough&&void 0!==self.TransformStream}function P(){return x()}var C=i(19831),j=i(72023),I=i(80700),D=i(42311),U=i(98458),N=i(96517),M=i(51282),L=i(65140),$=i(40804),q=i(45836),B=i(25127);function F(r){let n=p();return M.qx&&(r.agent&&n.addPolicy((0,$.e)(r.agent)),r.tlsOptions&&n.addPolicy((0,q.i)(r.tlsOptions)),n.addPolicy((0,L.Ll)(r.proxyOptions)),n.addPolicy((0,D.r)())),n.addPolicy((0,N.j)(),{beforePolicies:[B.u]}),n.addPolicy((0,I.z)(r.userAgentOptions)),n.addPolicy((0,B.J)(),{afterPhase:"Deserialize"}),n.addPolicy((0,U.u)(r.retryOptions),{phase:"Retry"}),M.qx&&n.addPolicy((0,j.x)(r.redirectOptions),{afterPhase:"Retry"}),n.addPolicy((0,C.r)(r.loggingOptions),{afterPhase:"Sign"}),n}let H="ApiVersionPolicy";function W(r){return{name:H,sendRequest:(n,i)=>{let o=new URL(n.url);return!o.searchParams.get("api-version")&&r.apiVersion&&(n.url=`${n.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${r.apiVersion}`),i(n)}}}function z(r){return"getOAuth2Token"in r}function V(r){return"getBearerToken"in r}function K(r){return"username"in r&&"password"in r}function J(r){return"key"in r}var G=i(79384),X=i(49914);let Y=!1;function Q(r,n){if(n.allowInsecureConnection&&r.allowInsecureConnection){let n=new URL(r.url);if("localhost"===n.hostname||"127.0.0.1"===n.hostname)return!0}return!1}function Z(){let r="Sending token over insecure transport. Assume any token issued is compromised.";G.v.warning(r),"function"!=typeof X?.emitWarning||Y||(Y=!0,X.emitWarning(r))}function ee(r,n){if(!r.url.toLowerCase().startsWith("https://"))if(Q(r,n))Z();else throw Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}let et="apiKeyAuthenticationPolicy";function er(r){return{name:et,async sendRequest(n,i){ee(n,r);let o=(n.authSchemes??r.authSchemes)?.find(r=>"apiKey"===r.kind);if(!o)return i(n);if("header"!==o.apiKeyLocation)throw Error(`Unsupported API key location: ${o.apiKeyLocation}`);return n.headers.set(o.name,r.credential.key),i(n)}}}let en="bearerAuthenticationPolicy";function ei(r){return{name:en,async sendRequest(n,i){if(ee(n,r),!(n.authSchemes??r.authSchemes)?.find(r=>"http"===r.kind&&"basic"===r.scheme))return i(n);let{username:o,password:a}=r.credential,s=(0,y.SW)((0,y.Al)(`${o}:${a}`,"utf-8"),"base64");return n.headers.set("Authorization",`Basic ${s}`),i(n)}}}let eo="bearerAuthenticationPolicy";function ea(r){return{name:eo,async sendRequest(n,i){if(ee(n,r),!(n.authSchemes??r.authSchemes)?.find(r=>"http"===r.kind&&"bearer"===r.scheme))return i(n);let o=await r.credential.getBearerToken({abortSignal:n.abortSignal});return n.headers.set("Authorization",`Bearer ${o}`),i(n)}}}let es="oauth2AuthenticationPolicy";function eu(r){return{name:es,async sendRequest(n,i){ee(n,r);let o=(n.authSchemes??r.authSchemes)?.find(r=>"oauth2"===r.kind);if(!o)return i(n);let a=await r.credential.getOAuth2Token(o.flows,{abortSignal:n.abortSignal});return n.headers.set("Authorization",`Bearer ${a}`),i(n)}}}function ec(r={}){let n=F(r);n.addPolicy(W(r));let{credential:i,authSchemes:o,allowInsecureConnection:a}=r;return i&&(J(i)?n.addPolicy(er({authSchemes:o,credential:i,allowInsecureConnection:a})):K(i)?n.addPolicy(ei({authSchemes:o,credential:i,allowInsecureConnection:a})):V(i)?n.addPolicy(ea({authSchemes:o,credential:i,allowInsecureConnection:a})):z(i)&&n.addPolicy(eu({authSchemes:o,credential:i,allowInsecureConnection:a}))),n}function el(){return o||(o=P()),o}function ed(r,n){if(r.headers){let i=Object.keys(r.headers).find(r=>r.toLowerCase()===n.toLowerCase());if(i)return r.headers[i]}}function ef(r){let n=ed(r,"content-type");if(n)return n;if(null===r.contentType)return;if(r.contentType)return r.contentType;let{body:i}=r;if(null!=i)return"string"==typeof i||"number"==typeof i||"boolean"==typeof i?"text/plain; charset=UTF-8":i instanceof Blob?i.type||"application/octet-stream":(0,g.CY)(i)?"application/octet-stream":"application/json"}function ep(r){return JSON.stringify(r)}function eh(r){let n,i=ed(r,"content-disposition");if(i)return i;if(void 0===r.dispositionType&&void 0===r.name&&void 0===r.filename)return;let o=r.dispositionType??"form-data";if(r.name&&(o+=`; name=${ep(r.name)}`),r.filename)n=r.filename;else if("u">typeof File&&r.body instanceof File){let i=r.body.name;""!==i&&(n=i)}return n&&(o+=`; filename=${ep(n)}`),o}function ey(r,n){if(void 0===r)return new Uint8Array([]);if((0,g.CY)(r))return r;if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)return(0,y.Al)(String(r),"utf-8");if(n&&/application\/(.+\+)?json(;.+)?/i.test(String(n)))return(0,y.Al)(JSON.stringify(r),"utf-8");throw new h.p(`Unsupported body/content-type combination: ${r}, ${n}`)}function eg(r){let n=ef(r),i=eh(r),o=(0,s.N)(r.headers??{});return n&&o.set("content-type",n),i&&o.set("content-disposition",i),{headers:o,body:ey(r.body,n)}}function em(r){return{parts:r.map(eg)}}async function eb(r,n,i,o={},a){let s=a??el(),u=e_(r,n,o);try{let r=await i.sendRequest(s,u),n=r.headers.toJSON(),a=r.readableStreamBody??r.browserStreamBody,c=o.responseAsStream||void 0!==a?void 0:eS(r),l=a??c;return o?.onResponse&&o.onResponse({...r,request:u,rawHeaders:n,parsedBody:c}),{request:u,headers:n,status:`${r.status}`,body:l}}catch(r){if((0,h.T)(r)&&r.response&&o.onResponse){let{response:n}=r,i=n.headers.toJSON();o?.onResponse({...n,request:u,rawHeaders:i},r)}throw r}}function ew(r={}){if(r.contentType)return r.contentType;let n=r.headers?.["content-type"];return"string"==typeof n?n:ev(r.body)}function ev(r){if(void 0!==r){if(ArrayBuffer.isView(r))return"application/octet-stream";if((0,g.qf)(r)&&r.type)return r.type;if("string"==typeof r)try{JSON.parse(r)}catch(r){return}return"application/json"}}function e_(r,n,i={}){let o=ew(i),{body:a,multipartBody:u}=eE(i.body,o);return l({url:n,method:r,body:a,multipartBody:u,headers:(0,s.N)({...i.headers?i.headers:{},accept:i.accept??i.headers?.accept??"application/json",...o&&{"content-type":o}}
556),allowInsecureConnection:i.allowInsecureConnection,abortSignal:i.abortSignal,onUploadProgress:i.onUploadProgress,onDownloadProgress:i.onDownloadProgress,timeout:i.timeout,enableBrowserStreams:!0,streamResponseStatusCodes:i.responseAsStream?new Set([1/0]):void 0})}function eE(r,n=""){if(void 0===r)return{body:void 0};if("u">typeof FormData&&r instanceof FormData||(0,g.qf)(r)||(0,g.H1)(r))return{body:r};if("function"==typeof r)return{body:r};if(ArrayBuffer.isView(r))return{body:r instanceof Uint8Array?r:JSON.stringify(r)};switch(n.split(";")[0]){case"application/json":return{body:JSON.stringify(r)};case"multipart/form-data":if(Array.isArray(r))return{multipartBody:em(r)};return{body:JSON.stringify(r)};case"text/plain":return{body:String(r)};default:if("string"==typeof r)return{body:r};return{body:JSON.stringify(r)}}}function eS(r){let n=(r.headers.get("content-type")??"").split(";")[0],i=r.bodyAsText??"";if("text/plain"===n)return String(i);try{return i?JSON.parse(i):void 0}catch(o){if("application/json"===n)throw eR(r,o);return String(i)}}function eR(r,n){let i=`Error "${n}" occurred while parsing the response body - ${r.bodyAsText}.`,o=n.code??h.p.PARSE_ERROR;return new h.p(i,{code:o,statusCode:r.status,request:r.request,response:r})}function eA(r){if("object"!=typeof r||null===r||!Object.hasOwn(r,"value"))return!1;let n=r.value;return"function"==typeof n?.toString}function ek(r,n,i,o={}){return n.startsWith("https://")||n.startsWith("http://")?n:new URL(eP(eO(r=eC(r,o),ej(n,i,o)),o)).toString()}function eO(r,n){let i=r.indexOf("?"),o=n.indexOf("?"),a=-1!==i?[r.substring(0,i),r.substring(i+1)]:[r,""],s=-1!==o?[n.substring(0,o),n.substring(o+1)]:[n,""],u=[a[1],s[1].replaceAll("?","&")].filter(Boolean).join("&"),c=a[0].replace(/(^[^:]+:\/\/[^/]+)\/\/+/,"$1/"),l=s[0],d=c;return c.endsWith("/")||l.startsWith("/")||""===l?c.endsWith("/")&&l.startsWith("/")?d+=l.substring(1):d+=l:d+=`/${l}`,u&&(d+=`?${u}`),d}function ex(r,n,i,o){let a,s;a="pipeDelimited"===i?"|":"spaceDelimited"===i?"%20":",";let u=(s=Array.isArray(o)?o:"object"==typeof o&&o.toString===Object.prototype.toString?Object.entries(o).flat():[o]).map(i=>{if(null==i)return"";if(!i.toString||"function"!=typeof i.toString)throw Error(`Query parameters must be able to be represented as string, ${r} can't`);let o=void 0!==i.toISOString?i.toISOString():i.toString();return n?o:encodeURIComponent(o)}).join(a);return`${n?r:encodeURIComponent(r)}=${u}`}function eT(r){let n=new Map;if(!r||"?"!==r[0])return n;for(let i of(r=r.slice(1)).split("&")){let r=i.indexOf("="),o=-1===r?i:i.substring(0,r),a=-1===r?"":i.substring(r+1),s=n.get(o);void 0!==s?Array.isArray(s)?s.push(a):n.set(o,[s,a]):n.set(o,a)}return n}function eP(r,n={}){if(!n.queryParameters)return r;let i=new URL(r),o=n.queryParameters,a=eT(i.search),s=[];for(let r of Object.keys(o)){let i=o[r];if(null==i)continue;let a=eA(i),u=a?i.value:i,c=!!a&&(i.explode??!1),l=a&&i.style?i.style:"form";if(c)if(Array.isArray(u))for(let i of u)s.push(ex(r,n.skipUrlEncoding??!1,l,i));else if(null!==u&&"object"==typeof u)for(let[r,i]of Object.entries(u))s.push(ex(r,n.skipUrlEncoding??!1,l,i));else throw Error("explode can only be set to true for objects and arrays");else s.push(ex(r,n.skipUrlEncoding??!1,l,u))}for(let r of s){let n=r.indexOf("="),i=r.substring(0,n),o=r.substring(n+1),s=a.get(i);void 0!==s?Array.isArray(s)?s.includes(o)||s.push(o):s!==o&&a.set(i,[s,o]):a.set(i,o)}let u=[];for(let[r,n]of a)if(Array.isArray(n))for(let i of n)u.push(`${r}=${i}`);else u.push(`${r}=${n}`);return i.search=u.length?`?${u.join("&")}`:"",i.toString()}function eC(r,n){if(!n.pathParameters)return r;for(let[i,o]of Object.entries(n.pathParameters)){if(null==o)throw Error(`Path parameters ${i} must not be undefined or null`);if(!o.toString||"function"!=typeof o.toString)throw Error(`Path parameters must be able to be represented as string, ${i} can't`);let a=void 0!==o.toISOString?o.toISOString():String(o);n.skipUrlEncoding||(a=encodeURIComponent(o)),r=eI(r,`{${i}}`,a)??""}return r}function ej(r,n,i={}){for(let o of n){let n="object"==typeof o&&(o.allowReserved??!1),a="object"==typeof o?o.value:o;i.skipUrlEncoding||n||(a=encodeURIComponent(a)),r=r.replace(/\{[\w-]+\}/,String(a))}return r}function eI(r,n,i){return r&&n?r.split(n).join(i||""):r}function eD(r,n={}
556){let i=n.pipeline??ec(n);if(n.additionalPolicies?.length)for(let{policy:r,position:o}of n.additionalPolicies){let n="perRetry"===o?"Sign":void 0;i.addPolicy(r,{afterPhase:n})}let{allowInsecureConnection:o,httpClient:a}=n,s=n.endpoint??r,u=(r,...n)=>{let u=i=>ek(s,r,n,{allowInsecureConnection:o,...i});return{get:(r={})=>eU("GET",u(r),i,r,o,a),post:(r={})=>eU("POST",u(r),i,r,o,a),put:(r={})=>eU("PUT",u(r),i,r,o,a),patch:(r={})=>eU("PATCH",u(r),i,r,o,a),delete:(r={})=>eU("DELETE",u(r),i,r,o,a),head:(r={})=>eU("HEAD",u(r),i,r,o,a),options:(r={})=>eU("OPTIONS",u(r),i,r,o,a),trace:(r={})=>eU("TRACE",u(r),i,r,o,a)}};return{path:u,pathUnchecked:u,pipeline:i}}function eU(r,n,i,o,a,s){return a=o.allowInsecureConnection??a,{then:function(u,c){return eb(r,n,i,{...o,allowInsecureConnection:a},s).then(u,c)},async asBrowserStream(){if(!M.qx)return eb(r,n,i,{...o,allowInsecureConnection:a,responseAsStream:!0},s);throw Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")},async asNodeStream(){if(M.qx)return eb(r,n,i,{...o,allowInsecureConnection:a,responseAsStream:!0},s);throw Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}function eN(r){return{allowInsecureConnection:r.requestOptions?.allowInsecureConnection,timeout:r.requestOptions?.timeout,skipUrlEncoding:r.requestOptions?.skipUrlEncoding,abortSignal:r.abortSignal,onUploadProgress:r.requestOptions?.onUploadProgress,onDownloadProgress:r.requestOptions?.onDownloadProgress,headers:{...r.requestOptions?.headers},onResponse:r.onResponse}}function eM(r,n){let i="string"==typeof r?n:r,o=i.body?.error??i.body,a="string"==typeof r?r:o?.message??`Unexpected status code: ${i.status}`;return new h.p(a,{statusCode:e$(i.status),code:o?.code,request:i.request,response:eL(i)})}function eL(r){return{headers:(0,s.N)(r.headers),request:r.request,status:e$(r.status)??-1}}function e$(r){let n=Number.parseInt(r);return Number.isNaN(n)?void 0:n}},56645:(r,n)=>{"use strict";function i(r,n){let i;if(n?.host&&!Array.isArray(n.host))i=n.host.toString().split(":",1)[0];else{if(!r.hostname)return;i=r.hostname}return i.toLowerCase()}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getHostname",{enumerable:!0,get:function(){return i}})},57675:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{ActionDidNotRevalidate:function(){return i},ActionDidRevalidateDynamicOnly:function(){return a},ActionDidRevalidateStaticAndDynamic:function(){return o}});let i=0,o=1,a=2},57741:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return o}});let o=(0,i(55100).createAsyncLocalStorage)()},57959:(r,n,i)=>{"use strict";i.d(n,{J:()=>f});var o=i(75668),a=i(68793),s=i(18504),u=i(33325),c=i(28603);let l=(0,u.KV)("ts-http-runtime retryPolicy"),d="retryPolicy";function f(r,n={maxRetries:c.o}){let i=n.logger||l;return{name:d,async sendRequest(u,l){let d,f,p=-1;t:for(;;){p+=1,d=void 0,f=void 0;try{i.info(`Retry ${p}: Attempting to send request`,u.requestId),d=await l(u),i.info(`Retry ${p}: Received a response from request`,u.requestId)}catch(r){if(i.error(`Retry ${p}: Received an error from request`,u.requestId),!(0,a.T)(r))throw r;f=r,d=r.response}if(u.abortSignal?.aborted)throw i.error(`Retry ${p}: Request aborted.`),new s.l;if(p>=(n.maxRetries??c.o)){if(i.info(`Retry ${p}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),f)throw f;if(d)return d;throw Error("Maximum retries reached with no response or error to throw")}for(let n of(i.info(`Retry ${p}: Processing ${r.length} retry strategies.`),r)){let r=n.logger||i;r.info(`Retry ${p}: Processing retry strategy ${n.name}.`);let a=n.retry({retryCount:p,response:d,responseError:f});if(a.skipStrategy){r.info(`Retry ${p}
556: Skipped.`);continue}let{errorToThrow:s,retryAfterInMs:c,redirectTo:l}=a;if(s)throw r.error(`Retry ${p}: Retry strategy ${n.name} throws error:`,s),s;if(c||0===c){r.info(`Retry ${p}: Retry strategy ${n.name} retries after ${c}`),await (0,o.c)(c,void 0,{abortSignal:u.abortSignal});continue t}if(l){r.info(`Retry ${p}: Retry strategy ${n.name} redirects to ${l}`),u.url=l;continue t}}if(f)throw i.info("None of the retry strategies could work with the received error. Throwing it."),f;if(d)return i.info("None of the retry strategies could work with the received response. Returning it."),d}}}}},58130:(r,n)=>{"use strict";var i,o;Object.defineProperty(n,"__esModule",{value:!0}),n.CredentialsMethod=void 0,(o=i||(n.CredentialsMethod=i={})).None="none",o.ApiToken="api_token",o.ClientCredentials="client_credentials"},58268:(r,n,i)=>{var o,a={943:function(a,s){!function(u){"use strict";var c="",l="?",d="function",f="undefined",p="object",h="string",y="major",g="model",m="name",b="type",w="vendor",v="version",_="architecture",E="console",S="mobile",R="tablet",A="smarttv",k="wearable",O="embedded",x=350,T="Amazon",P="Apple",C="ASUS",j="BlackBerry",I="Browser",D="Chrome",U="Firefox",N="Google",M="Huawei",L="LG",$="Microsoft",q="Motorola",B="Opera",F="Samsung",H="Sharp",W="Sony",z="Xiaomi",V="Zebra",K="Facebook",J="Chromium OS",G="Mac OS",X=function(r,n){var i={};for(var o in r)n[o]&&n[o].length%2==0?i[o]=n[o].concat(r[o]):i[o]=r[o];return i},Y=function(r){for(var n={},i=0;i<r.length;i++)n[r[i].toUpperCase()]=r[i];return n},Q=function(r,n){return typeof r===h&&-1!==Z(n).indexOf(Z(r))},Z=function(r){return r.toLowerCase()},ee=function(r){return typeof r===h?r.replace(/[^\d\.]/g,c).split(".")[0]:void 0},et=function(r,n){if(typeof r===h)return r=r.replace(/^\s\s*/,c),typeof n===f?r:r.substring(0,x)},er=function(r,n){for(var i,o,a,s,u,c,l=0;l<n.length&&!u;){var f=n[l],h=n[l+1];for(i=o=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(r))for(a=0;a<h.length;a++)c=u[++o],typeof(s=h[a])===p&&s.length>0?2===s.length?typeof s[1]==d?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==d||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||void 0;l+=2}},en=function(r,n){for(var i in n)if(typeof n[i]===p&&n[i].length>0){for(var o=0;o<n[i].length;o++)if(Q(n[i][o],r))return i===l?void 0:i}else if(Q(n[i],r))return i===l?void 0:i;return r},ei={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},eo={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,v],[/opios[\/ ]+([\w\.]+)/i],[v,[m,B+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[m,B]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[m,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[m,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[m,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+
vendor: 6,124 bytes, line 556
556)/,"$1 Secure "+I],v],[/\bfocus\/([\w\.]+)/i],[v,[m,U+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[m,B+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[m,B+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[m,"MIUI "+I]],[/fxios\/([-\w\.]+)/i],[v,[m,U]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+I]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+I],v],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[m,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,K],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[m,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[m,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,D+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[m,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[v,en,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[m,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[m,U+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,v],[/(cobalt)\/([\w\.]+)/i],[m,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,Z]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,c,Z]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[w,F],[b,R]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[g,[w,F],[b,S]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[w,P],[b,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[w,P],[b,R]],[/(macintosh);/i],[g,[w,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[w,H],[b,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[g,[w,M],[b,R]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[w,M],[b,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[g,/_/g," "],[w,z],[b,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[g,/_/g," "],[w,z],[b,R]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[w,"OPPO"],[b,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[w,"Vivo"],[b,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[g,[w,"Realme"],[b,S]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[w,q],[b,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[w,q],[b,R]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[w,L],[b,R]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[w,L],[b,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[g,[w,"Lenovo"],[b,R]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[g,/_/g," "],[w,"Nokia"],[b,S]],[/(pixel c)\b/i],[g,[w,N],[b,R]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[w,N],[b,S]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[w,W],[b,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[w,W],[b,R]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[w,"OnePlus"],[b,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[w,T],[b,R]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[w,T],[b,S]],[/(playbook);[-\w\),; ]+(rim)/i],[g,w,[b,R]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[w,j],[b,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[w,C],[b,R]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[w,C],[b,S]],[/(nexus 9)/i],[g,[w,"HTC"],[b,R]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[g,/_/g," "],[b,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[w,"Acer"],[b,R]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[w,"Meizu"],[b,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,582 bytes, line 556
556s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,g,[b,S]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,g,[b,R]],[/(surface duo)/i],[g,[w,$],[b,R]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[w,"Fairphone"],[b,S]],[/(u304aa)/i],[g,[w,"AT&T"],[b,S]],[/\bsie-(\w*)/i],[g,[w,"Siemens"],[b,S]],[/\b(rct\w+) b/i],[g,[w,"RCA"],[b,R]],[/\b(venue[\d ]{2,7}) b/i],[g,[w,"Dell"],[b,R]],[/\b(q(?:mv|ta)\w+) b/i],[g,[w,"Verizon"],[b,R]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[w,"Barnes & Noble"],[b,R]],[/\b(tm\d{3}\w+) b/i],[g,[w,"NuVision"],[b,R]],[/\b(k88) b/i],[g,[w,"ZTE"],[b,R]],[/\b(nx\d{3}j) b/i],[g,[w,"ZTE"],[b,S]],[/\b(gen\d{3}) b.+49h/i],[g,[w,"Swiss"],[b,S]],[/\b(zur\d{3}) b/i],[g,[w,"Swiss"],[b,R]],[/\b((zeki)?tb.*\b) b/i],[g,[w,"Zeki"],[b,R]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],g,[b,R]],[/\b(ns-?\w{0,9}) b/i],[g,[w,"Insignia"],[b,R]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[w,"NextBook"],[b,R]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],g,[b,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],g,[b,S]],[/\b(ph-1) /i],[g,[w,"Essential"],[b,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[w,"Envizen"],[b,R]],[/\b(trio[-\w\. ]+) b/i],[g,[w,"MachSpeed"],[b,R]],[/\btu_(1491) b/i],[g,[w,"Rotor"],[b,R]],[/(shield[\w ]+) b/i],[g,[w,"Nvidia"],[b,R]],[/(sprint) (\w+)/i],[w,g,[b,S]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[w,$],[b,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[w,V],[b,R]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[w,V],[b,S]],[/smart-tv.+(samsung)/i],[w,[b,A]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[w,F],[b,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,L],[b,A]],[/(apple) ?tv/i],[w,[g,P+" TV"],[b,A]],[/crkey/i],[[g,D+"cast"],[w,N],[b,A]],[/droid.+aft(\w)( bui|\))/i],[g,[w,T],[b,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[w,H],[b,A]],[/(bravia[\w ]+)( bui|\))/i],[g,[w,W],[b,A]],[/(mitv-\w{5}) bui/i],[g,[w,z],[b,A]],[/Hbbtv.*(technisat) (.*);/i],[w,g,[b,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[w,et],[g,et],[b,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,g,[b,E]],[/droid.+; (shield) bui/i],[g,[w,"Nvidia"],[b,E]],[/(playstation [345portablevi]+)/i],[g,[w,W],[b,E]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[w,$],[b,E]],[/((pebble))app/i],[w,g,[b,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[w,P],[b,k]],[/droid.+; (glass) \d/i],[g,[w,N],[b,k]],[/droid.+; (wt63?0{2,3})\)/i],[g,[w,V],[b,k]],[/(quest( 2| pro)?)/i],[g,[w,K],[b,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[b,O]],[/(aeobc)\b/i],[g,[w,T],[b,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[g,[b,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[b,R]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,R]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,S]],[/(android[-\w\. ]{0,9});.+buil/i],[g,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[m,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[m,[v,en,ei]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,"Windows"],[v,en,ei]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,G],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,v],[/\(bb(10);/i],[v,[m,j]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
556 rv:.+ gecko\/([\w\.]+)/i],[v,[m,U+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[m,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,J],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,v],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,v]]},ea=function(r,n){if(typeof r===p&&(n=r,r=void 0),!(this instanceof ea))return new ea(r,n).getResult();var i=typeof u!==f&&u.navigator?u.navigator:void 0,o=r||(i&&i.userAgent?i.userAgent:c),a=i&&i.userAgentData?i.userAgentData:void 0,s=n?X(eo,n):eo,l=i&&i.userAgent==o;return this.getBrowser=function(){var r={};return r[m]=void 0,r[v]=void 0,er.call(r,o,s.browser),r[y]=ee(r[v]),l&&i&&i.brave&&typeof i.brave.isBrave==d&&(r[m]="Brave"),r},this.getCPU=function(){var r={};return r[_]=void 0,er.call(r,o,s.cpu),r},this.getDevice=function(){var r={};return r[w]=void 0,r[g]=void 0,r[b]=void 0,er.call(r,o,s.device),l&&!r[b]&&a&&a.mobile&&(r[b]=S),l&&"Macintosh"==r[g]&&i&&typeof i.standalone!==f&&i.maxTouchPoints&&i.maxTouchPoints>2&&(r[g]="iPad",r[b]=R),r},this.getEngine=function(){var r={};return r[m]=void 0,r[v]=void 0,er.call(r,o,s.engine),r},this.getOS=function(){var r={};return r[m]=void 0,r[v]=void 0,er.call(r,o,s.os),l&&!r[m]&&a&&"Unknown"!=a.platform&&(r[m]=a.platform.replace(/chrome os/i,J).replace(/macos/i,G)),r},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(r){return o=typeof r===h&&r.length>x?et(r,x):r,this},this.setUA(o),this};ea.VERSION="1.0.35",ea.BROWSER=Y([m,v,y]),ea.CPU=Y([_]),ea.DEVICE=Y([g,w,b,E,S,A,R,k,O]),ea.ENGINE=ea.OS=Y([m,v]),typeof s!==f?("object"!==f&&a.exports&&(s=a.exports=ea),s.UAParser=ea):"function"===d&&i.amdO?void 0===(o=(function(){return ea}).call(n,i,n,r))||(r.exports=o):typeof u!==f&&(u.UAParser=ea);var es=typeof u!==f&&(u.jQuery||u.Zepto);if(es&&!es.ua){var eu=new ea;es.ua=eu.getResult(),es.ua.get=function(){return eu.getUA()},es.ua.set=function(r){eu.setUA(r);var n=eu.getResult();for(var i in n)es.ua[i]=n[i]}}}("object"==typeof window?window:this)}},s={};function u(r){var n=s[r];if(void 0!==n)return n.exports;var i=s[r]={exports:{}},o=!0;try{a[r].call(i.exports,i,i.exports,u),o=!1}finally{o&&delete s[r]}return i.exports}u.ab="//",r.exports=u(943)},62789:(r,n,i)=>{"use strict";let o,a,s,u;var c,l,d,f,p=i(49914),h=i(84890).Buffer;function y(r,n){return function(){return r.apply(n,arguments)}}let{toString:g}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:b,toStringTag:w}=Symbol,v=(o=Object.create(null),r=>{let n=g.call(r);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())}),_=r=>(r=r.toLowerCase(),n=>v(n)===r),E=r=>n=>typeof n===r,{isArray:S}=Array,R=E("undefined");function A(r){return null!==r&&!R(r)&&null!==r.constructor&&!R(r.constructor)&&T(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}let k=_("ArrayBuffer");function O(r){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer&&k(r.buffer)}let x=E("string"),T=E("function"),P=E("number"),C=r=>null!==r&&"object"==typeof r,j=r=>!0===r||!1===r,I=r=>{if("object"!==v(r))return!1;let n=m(r);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(w in r)&&!(b in r)},D=r=>{if(!C(r)||A(r))return!1;try{return 0===Object.keys(r).length&&Object.getPrototypeOf(r)===Object.prototype}catch(r){return!1}},U=_("Date"),N=_("File"),M=r=>!!(r&&void 0!==r.uri),L=r=>r&&void 0!==r.getParts,$=_("Blob"),q=_("FileList"),B=r=>C(r)&&T(r.pipe),F="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:void 0!==i.g?i.g:{},H=void 0!==F.FormData?F.FormData:void 0,W=r=>{if(!r)return!1;if(H&&r instanceof H)return!0;let n=m(r);if(!n||n===Object.prototype||!T(r.append))return!1;let i=v(r);return"formdata"===i||"object"===i&&T(r.toString)&&"[object FormData]"===r.toString()},z=_("URLSearchParams"),[V,K,J,G]=["ReadableStream","Request","Response","Headers"].map(_),X=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(r,n,{allOwnKeys:i=!1}
556={}){let o,a;if(null!=r)if("object"!=typeof r&&(r=[r]),S(r))for(o=0,a=r.length;o<a;o++)n.call(null,r[o],o,r);else{let a;if(A(r))return;let s=i?Object.getOwnPropertyNames(r):Object.keys(r),u=s.length;for(o=0;o<u;o++)a=s[o],n.call(null,r[a],a,r)}}function Q(r,n){let i;if(A(r))return null;n=n.toLowerCase();let o=Object.keys(r),a=o.length;for(;a-- >0;)if(n===(i=o[a]).toLowerCase())return i;return null}let Z="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:i.g,ee=r=>!R(r)&&r!==Z;function et(...r){let{caseless:n,skipUndefined:i}=ee(this)&&this||{},o={},a=(r,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&Q(o,a)||a,u=ep(o,s)?o[s]:void 0;I(u)&&I(r)?o[s]=et(u,r):I(r)?o[s]=et({},r):S(r)?o[s]=r.slice():i&&R(r)||(o[s]=r)};for(let n=0,i=r.length;n<i;n++)r[n]&&Y(r[n],a);return o}let er=(r,n,i,{allOwnKeys:o}={})=>(Y(n,(n,o)=>{i&&T(n)?Object.defineProperty(r,o,{__proto__:null,value:y(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,o,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),r),en=r=>(65279===r.charCodeAt(0)&&(r=r.slice(1)),r),ei=(r,n,i,o)=>{r.prototype=Object.create(n.prototype,o),Object.defineProperty(r.prototype,"constructor",{__proto__:null,value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{__proto__:null,value:n.prototype}),i&&Object.assign(r.prototype,i)},eo=(r,n,i,o)=>{let a,s,u,c={};if(n=n||{},null==r)return n;do{for(s=(a=Object.getOwnPropertyNames(r)).length;s-- >0;)u=a[s],(!o||o(u,r,n))&&!c[u]&&(n[u]=r[u],c[u]=!0);r=!1!==i&&m(r)}while(r&&(!i||i(r,n))&&r!==Object.prototype);return n},ea=(r,n,i)=>{r=String(r),(void 0===i||i>r.length)&&(i=r.length),i-=n.length;let o=r.indexOf(n,i);return -1!==o&&o===i},es=r=>{if(!r)return null;if(S(r))return r;let n=r.length;if(!P(n))return null;let i=Array(n);for(;n-- >0;)i[n]=r[n];return i},eu=(a="u">typeof Uint8Array&&m(Uint8Array),r=>a&&r instanceof a),ec=(r,n)=>{let i,o=(r&&r[b]).call(r);for(;(i=o.next())&&!i.done;){let o=i.value;n.call(r,o[0],o[1])}},el=(r,n)=>{let i,o=[];for(;null!==(i=r.exec(n));)o.push(i);return o},ed=_("HTMLFormElement"),ef=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ep=(({hasOwnProperty:r})=>(n,i)=>r.call(n,i))(Object.prototype),eh=_("RegExp"),ey=(r,n)=>{let i=Object.getOwnPropertyDescriptors(r),o={};Y(i,(i,a)=>{let s;!1!==(s=n(i,a,r))&&(o[a]=s||i)}),Object.defineProperties(r,o)},eg=r=>{ey(r,(n,i)=>{if(T(r)&&["arguments","caller","callee"].includes(i))return!1;if(T(r[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},em=(r,n)=>{let i={};return(r=>{r.forEach(r=>{i[r]=!0})})(S(r)?r:String(r).split(n)),i},eb=()=>{},ew=(r,n)=>null!=r&&Number.isFinite(r*=1)?r:n;function ev(r){return!!(r&&T(r.append)&&"FormData"===r[w]&&r[b])}let e_=r=>{let n=Array(10),i=(r,o)=>{if(C(r)){if(n.indexOf(r)>=0)return;if(A(r))return r;if(!("toJSON"in r)){n[o]=r;let a=S(r)?[]:{};return Y(r,(r,n)=>{let s=i(r,o+1);R(s)||(a[n]=s)}),n[o]=void 0,a}}return r};return i(r,0)},eE=_("AsyncFunction"),eS=r=>r&&(C(r)||T(r))&&T(r.then)&&T(r.catch),eR=(c="function"==typeof setImmediate,l=T(Z.postMessage),c?setImmediate:l?(d=`axios@${Math.random()}`,f=[],Z.addEventListener("message",({source:r,data:n})=>{r===Z&&n===d&&f.length&&f.shift()()},!1),r=>{f.push(r),Z.postMessage(d,"*")}):r=>setTimeout(r)),eA="u">typeof queueMicrotask?queueMicrotask.bind(Z):void 0!==p&&p.nextTick||eR,ek=r=>null!=r&&T(r[b]);var eO={isArray:S,isArrayBuffer:k,isBuffer:A,isFormData:W,isArrayBufferView:O,isString:x,isNumber:P,isBoolean:j,isObject:C,isPlainObject:I,isEmptyObject:D,isReadableStream:V,isRequest:K,isResponse:J,isHeaders:G,isUndefined:R,isDate:U,isFile:N,isReactNativeBlob:M,isReactNative:L,isBlob:$,isRegExp:eh,isFunction:T,isStream:B,isURLSearchParams:z,isTypedArray:eu,isFileList:q,forEach:Y,merge:et,extend:er,trim:X,stripBOM:en,inherits:ei,toFlatObject:eo,kindOf:v,kindOfTest:_,endsWith:ea,toArray:es,forEachEntry:ec,matchAll:el,isHTMLForm:ed,hasOwnProperty:ep,hasOwnProp:ep,reduceDescriptors:ey,freezeMethods:eg,toObjectSet:em,toCamelCase:ef,noop:eb,toFiniteNumber:ew,findKey:Q,global:Z,isContextDefined:ee,isSpecCompliantForm:ev,toJSONObject:e_,isAsyncFn:eE,isThenable:eS,setImmediate:eR,asap:eA,isIterable:ek};let ex=eO.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eT=r=>{let n,i,o,a={};return r&&r.split("\n").forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),i=r.substring(o+1).trim(),!n||a[n]&&ex[n]||("set-cookie"===n?a[n]?a[n].push(i):a[n]=[i]:a[n]=a[n]?a[n]+", "+i:i)}),a};let eP=Symbol("internals"),eC=/[^\x09\x20-\x7E\x80-\xFF]/g;function ej(r){let n=0,i=r.length;for(;n<i;){let i=r.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=r.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===r.length?r:r.slice(n,i)}function eI(r){return r&&String(r).trim().toLowerCase()}function eD(r){return ej(r.replace(eC,""))}function eU(r){return!1===r||null==r?r:eO.isArray(r)?r.map(eU):eD(String(r))}function eN(r){let n,i=Object.create(null),o=/([^\s,;
556=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=o.exec(r);)i[n[1]]=n[2];return i}let eM=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function eL(r,n,i,o,a){if(eO.isFunction(o))return o.call(this,n,i);if(a&&(n=i),eO.isString(n)){if(eO.isString(o))return -1!==n.indexOf(o);if(eO.isRegExp(o))return o.test(n)}}function e$(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,i)=>n.toUpperCase()+i)}function eq(r,n){let i=eO.toCamelCase(" "+n);["get","set","has"].forEach(o=>{Object.defineProperty(r,o+i,{__proto__:null,value:function(r,i,a){return this[o].call(this,n,r,i,a)},configurable:!0})})}class eB{constructor(r){r&&this.set(r)}set(r,n,i){let o=this;function a(r,n,i){let a=eI(n);if(!a)throw Error("header name must be a non-empty string");let s=eO.findKey(o,a);s&&void 0!==o[s]&&!0!==i&&(void 0!==i||!1===o[s])||(o[s||n]=eU(r))}let s=(r,n)=>eO.forEach(r,(r,i)=>a(r,i,n));if(eO.isPlainObject(r)||r instanceof this.constructor)s(r,n);else if(eO.isString(r)&&(r=r.trim())&&!eM(r))s(eT(r),n);else if(eO.isObject(r)&&eO.isIterable(r)){let i={},o,a;for(let n of r){if(!eO.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[a=n[0]]=(o=i[a])?eO.isArray(o)?[...o,n[1]]:[o,n[1]]:n[1]}s(i,n)}else null!=r&&a(n,r,i);return this}get(r,n){if(r=eI(r)){let i=eO.findKey(this,r);if(i){let r=this[i];if(!n)return r;if(!0===n)return eN(r);if(eO.isFunction(n))return n.call(this,r,i);if(eO.isRegExp(n))return n.exec(r);throw TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=eI(r)){let i=eO.findKey(this,r);return!!(i&&void 0!==this[i]&&(!n||eL(this,this[i],i,n)))}return!1}delete(r,n){let i=this,o=!1;function a(r){if(r=eI(r)){let a=eO.findKey(i,r);a&&(!n||eL(i,i[a],a,n))&&(delete i[a],o=!0)}}return eO.isArray(r)?r.forEach(a):a(r),o}clear(r){let n=Object.keys(this),i=n.length,o=!1;for(;i--;){let a=n[i];(!r||eL(this,this[a],a,r,!0))&&(delete this[a],o=!0)}return o}normalize(r){let n=this,i={};return eO.forEach(this,(o,a)=>{let s=eO.findKey(i,a);if(s){n[s]=eU(o),delete n[a];return}let u=r?e$(a):String(a).trim();u!==a&&delete n[a],n[u]=eU(o),i[u]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){let n=Object.create(null);return eO.forEach(this,(i,o)=>{null!=i&&!1!==i&&(n[o]=r&&eO.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){let i=new this(r);return n.forEach(r=>i.set(r)),i}static accessor(r){let n=(this[eP]=this[eP]={accessors:{}}).accessors,i=this.prototype;function o(r){let o=eI(r);n[o]||(eq(i,r),n[o]=!0)}return eO.isArray(r)?r.forEach(o):o(r),this}}eB.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eO.reduceDescriptors(eB.prototype,({value:r},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>r,set(r){this[i]=r}}}),eO.freezeMethods(eB);let eF="[REDACTED ****]";function eH(r){if(eO.hasOwnProp(r,"toJSON"))return!0;let n=Object.getPrototypeOf(r);for(;n&&n!==Object.prototype;){if(eO.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}function eW(r,n){let i=new Set(n.map(r=>String(r).toLowerCase())),o=[],a=r=>{let n;if(null===r||"object"!=typeof r||eO.isBuffer(r))return r;if(-1===o.indexOf(r)){if(r instanceof eB&&(r=r.toJSON()),o.push(r),eO.isArray(r))n=[],r.forEach((r,i)=>{let o=a(r);eO.isUndefined(o)||(n[i]=o)});else{if(!eO.isPlainObject(r)&&eH(r))return o.pop(),r;for(let[o,s]of(n=Object.create(null),Object.entries(r))){let r=i.has(o.toLowerCase())?eF:a(s);eO.isUndefined(r)||(n[o]=r)}}return o.pop(),n}};return a(r)}class ez extends Error{static from(r,n,i,o,a,s){let u=new ez(r.message,n||r.code,i,o,a);return u.cause=r,u.name=r.name,null!=r.status&&null==u.status&&(u.status=r.status),s&&Object.assign(u,s),u}constructor(r,n,i,o,a){super(r),Object.defineProperty(this,"message",{__proto__:null,value:r,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){let r=this.config,n=r&&eO.hasOwnProp(r,"redact")?r.redact:void 0,i=eO.isArray(n)&&n.length>0?eW(r,n):eO.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}ez.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ez.ERR_BAD_OPTION="ERR_BAD_OPTION",ez.ECONNABORTED="ECONNABORTED",ez.ETIMEDOUT="ETIMEDOUT",ez.ECONNREFUSED="ECONNREFUSED",ez.ERR_NETWORK="ERR_NETWORK",ez.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ez.ERR_DEPRECATED="ERR_DEPRECATED",ez.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ez.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ez.ERR_CANCELED="ERR_CANCELED",ez.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ez.ERR_INVALID_URL="ERR_INVALID_URL",ez.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var eV=null;function eK(r){return eO.isPlainObject(r)||eO.isArray(r)}function eJ(r){return eO.endsWith(r,"[]")?r.slice(0,-2):r}function eG(r,n,i){return r?r.concat(n).map(function(r,n){return r=eJ(r),!i&&n?"["+r+"]":r}).join(i?".":""):n}function eX(r){return eO.isArray(r)&&!r.some(eK)}let eY=eO.toFlatObject(eO,{},null,function(r){return/^is[A-Z]/.test(r)});function eQ(r,n,i){if(!eO.isObject(r))throw TypeError("target must be an object");n=n||new FormData;let o=(i=eO.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(r,n){return!eO.isUndefined(n[r])})).metaTokens,a=i.visitor||p,s=i.dots,u=i.indexes,c=i.Blob||"u">typeof Blob&&Blob,l=void 0===i.maxDepth?100:i.maxDepth,d=c&&eO.isSpecCompliantForm(n);if(!eO.isFunction(a))throw TypeError("visitor must be a function");function f(r){if(null===r)return"";if(eO.isDate(r))return r.toISOString();if(eO.isBoolean(r))return r.toString();if(!d&&eO.isBlob(r))throw new ez("Blob is not supported. Use a Buffer instead.");return eO.isArrayBuffer(r)||eO.isTypedArray(r)?d&&"function"==typeof Blob?new Blob([r]):h.from(r):r}function p(r,i,a){let c=r;if(eO.isReactNative(n)&&eO.isReactNativeBlob(r))return n.append(eG(a,i,s),f(r)),!1;if(r&&!a&&"object"==typeof r){if(eO.endsWith(i,"{}"))i=o?i:i.slice(0,-2),r=JSON.stringify(r);else if(eO.isArray(r)&&eX(r)||(eO.isFileList(r)||eO.endsWith(i,"[]"))&&(c=eO.toArray(r)))return i=eJ(i),c.forEac
556h(function(r,o){eO.isUndefined(r)||null===r||n.append(!0===u?eG([i],o,s):null===u?i:i+"[]",f(r))}),!1}return!!eK(r)||(n.append(eG(a,i,s),f(r)),!1)}let y=[],g=Object.assign(eY,{defaultVisitor:p,convertValue:f,isVisitable:eK});function m(r,i,o=0){if(!eO.isUndefined(r)){if(o>l)throw new ez("Object is too deeply nested ("+o+" levels). Max depth: "+l,ez.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==y.indexOf(r))throw Error("Circular reference detected in "+i.join("."));y.push(r),eO.forEach(r,function(r,s){!0===(!(eO.isUndefined(r)||null===r)&&a.call(n,r,eO.isString(s)?s.trim():s,i,g))&&m(r,i?i.concat(s):[s],o+1)}),y.pop()}}if(!eO.isObject(r))throw TypeError("data must be an object");return m(r),n}function eZ(r){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(r).replace(/[!'()~]|%20/g,function(r){return n[r]})}function e0(r,n){this._pairs=[],r&&eQ(r,this,n)}let e1=e0.prototype;function e2(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e3(r,n,i){let o;if(!n)return r;let a=i&&i.encode||e2,s=eO.isFunction(i)?{serialize:i}:i,u=s&&s.serialize;if(o=u?u(n,s):eO.isURLSearchParams(n)?n.toString():new e0(n,s).toString(a)){let n=r.indexOf("#");-1!==n&&(r=r.slice(0,n)),r+=(-1===r.indexOf("?")?"?":"&")+o}return r}e1.append=function(r,n){this._pairs.push([r,n])},e1.toString=function(r){let n=r?function(n){return r.call(this,n,eZ)}:eZ;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};class e8{constructor(){this.handlers=[]}use(r,n,i){return this.handlers.push({fulfilled:r,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){eO.forEach(this.handlers,function(n){null!==n&&r(n)})}}var e6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},e4={isBrowser:!0,classes:{URLSearchParams:"u">typeof URLSearchParams?URLSearchParams:e0,FormData:"u">typeof FormData?FormData:null,Blob:"u">typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};let e5="u">typeof window&&"u">typeof document,e9="object"==typeof navigator&&navigator||void 0,e7=e5&&(!e9||0>["ReactNative","NativeScript","NS"].indexOf(e9.product)),te="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tt=e5&&window.location.href||"http://localhost";var tr={...Object.freeze({__proto__:null,hasBrowserEnv:e5,hasStandardBrowserEnv:e7,hasStandardBrowserWebWorkerEnv:te,navigator:e9,origin:tt}),...e4};function tn(r,n){return eQ(r,new tr.classes.URLSearchParams,{visitor:function(r,n,i,o){return tr.isNode&&eO.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...n})}function ti(r){return eO.matchAll(/\w+|\[(\w*)]/g,r).map(r=>"[]"===r[0]?"":r[1]||r[0])}function to(r){let n,i,o={},a=Object.keys(r),s=a.length;for(n=0;n<s;n++)o[i=a[n]]=r[i];return o}function ta(r){function n(r,i,o,a){let s=r[a++];if("__proto__"===s)return!0;let u=Number.isFinite(+s),c=a>=r.length;return(s=!s&&eO.isArray(o)?o.length:s,c)?eO.hasOwnProp(o,s)?o[s]=eO.isArray(o[s])?o[s].concat(i):[o[s],i]:o[s]=i:(o[s]&&eO.isObject(o[s])||(o[s]=[]),n(r,i,o[s],a)&&eO.isArray(o[s])&&(o[s]=to(o[s]))),!u}if(eO.isFormData(r)&&eO.isFunction(r.entries)){let i={};return eO.forEachEntry(r,(r,o)=>{n(ti(r),o,i,0)}),i}return null}let ts=(r,n)=>null!=r&&eO.hasOwnProp(r,n)?r[n]:void 0;function tu(r,n,i){if(eO.isString(r))try{return(n||JSON.parse)(r),eO.trim(r)}catch(r){if("SyntaxError"!==r.name)throw r}return(i||JSON.stringify)(r)}let tc={transitional:e6,adapter:["xhr","http","fetch"],transformRequest:[function(r,n){let i,o=n.getContentType()||"",a=o.indexOf("application/json")>-1,s=eO.isObject(r);if(s&&eO.isHTMLForm(r)&&(r=new FormData(r)),eO.isFormData(r))return a?JSON.stringify(ta(r)):r;if(eO.isArrayBuffer(r)||eO.isBuffer(r)||eO.isStream(r)||eO.isFile(r)||eO.isBlob(r)||eO.isReadableStream(r))return r;if(eO.isArrayBufferView(r))return r.buffer;if(eO.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();
556if(s){let n=ts(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return tn(r,n).toString();if((i=eO.isFileList(r))||o.indexOf("multipart/form-data")>-1){let o=ts(this,"env"),a=o&&o.FormData;return eQ(i?{"files[]":r}:r,a&&new a,n)}}return s||a?(n.setContentType("application/json",!1),tu(r)):r}],transformResponse:[function(r){let n=ts(this,"transitional")||tc.transitional,i=n&&n.forcedJSONParsing,o=ts(this,"responseType"),a="json"===o;if(eO.isResponse(r)||eO.isReadableStream(r))return r;if(r&&eO.isString(r)&&(i&&!o||a)){let i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(r,ts(this,"parseReviver"))}catch(r){if(i){if("SyntaxError"===r.name)throw ez.from(r,ez.ERR_BAD_RESPONSE,this,null,ts(this,"response"));throw r}}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tr.classes.FormData,Blob:tr.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function tl(r,n){let i=this||tc,o=n||i,a=eB.from(o.headers),s=o.data;return eO.forEach(r,function(r){s=r.call(i,s,a.normalize(),n?n.status:void 0)}),a.normalize(),s}function td(r){return!!(r&&r.__CANCEL__)}eO.forEach(["delete","get","head","post","put","patch","query"],r=>{tc.headers[r]={}});class tf extends ez{constructor(r,n,i){super(null==r?"canceled":r,ez.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}}function tp(r,n,i){let o=i.config.validateStatus;!i.status||!o||o(i.status)?r(i):n(new ez("Request failed with status code "+i.status,i.status>=400&&i.status<500?ez.ERR_BAD_REQUEST:ez.ERR_BAD_RESPONSE,i.config,i.request,i))}function th(r){let n=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r);return n&&n[1]||""}function ty(r,n){let i,o=Array(r=r||10),a=Array(r),s=0,u=0;return n=void 0!==n?n:1e3,function(c){let l=Date.now(),d=a[u];i||(i=l),o[s]=c,a[s]=l;let f=u,p=0;for(;f!==s;)p+=o[f++],f%=r;if((s=(s+1)%r)===u&&(u=(u+1)%r),l-i<n)return;let h=d&&l-d;return h?Math.round(1e3*p/h):void 0}}function tg(r,n){let i,o,a=0,s=1e3/n,u=(n,s=Date.now())=>{a=s,i=null,o&&(clearTimeout(o),o=null),r(...n)};return[(...r)=>{let n=Date.now(),c=n-a;c>=s?u(r,n):(i=r,o||(o=setTimeout(()=>{o=null,u(i)},s-c)))},()=>i&&u(i)]}let tm=(r,n,i=3)=>{let o=0,a=ty(50,250);return tg(i=>{let s=i.loaded,u=i.lengthComputable?i.total:void 0,c=null!=u?Math.min(s,u):s,l=Math.max(0,c-o),d=a(l);o=Math.max(o,c),r({loaded:c,total:u,progress:u?c/u:void 0,bytes:l,rate:d||void 0,estimated:d&&u?(u-c)/d:void 0,event:i,lengthComputable:null!=u,[n?"download":"upload"]:!0})},i)},tb=(r,n)=>{let i=null!=r;return[o=>n[0]({lengthComputable:i,total:r,loaded:o}),n[1]]},tw=r=>(...n)=>eO.asap(()=>r(...n));var tv=tr.hasStandardBrowserEnv?(s=new URL(tr.origin),u=tr.navigator&&/(msie|trident)/i.test(tr.navigator.userAgent),r=>(r=new URL(r,tr.origin),s.protocol===r.protocol&&s.host===r.host&&(u||s.port===r.port))):()=>!0,t_=tr.hasStandardBrowserEnv?{write(r,n,i,o,a,s,u){if("u"<typeof document)return;let c=[`${r}=${encodeURIComponent(n)}`];eO.isNumber(i)&&c.push(`expires=${new Date(i).toUTCString()}`),eO.isString(o)&&c.push(`path=${o}`),eO.isString(a)&&c.push(`domain=${a}`),!0===s&&c.push("secure"),eO.isString(u)&&c.push(`SameSite=${u}`),document.cookie=c.join("; ")},read(r){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let o=n[i].replace(/^\s+/,""),a=o.indexOf("=");if(-1!==a&&o.slice(0,a)===r)return decodeURIComponent(o.slice(a+1))}return null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tE(r){return"string"==typeof r&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function tS(r,n){return n?r.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):r}function tR(r,n,i){let o=!tE(n);return r&&(o||!1===i)?tS(r,n):n}let tA=r=>r instanceof eB?{...r}:r;function tk(r,n){n=n||{};let i=Object.create(null);function o(r,n,i,o){return eO.isPlainObject(r)&&eO.isPlainObject(n)?eO.merge.call({caseless:o},r,n):eO.isPlainObject(n)?eO.merge({},n):eO.isArray(n)?n.slice():n}function a(r,n,i,a){return eO.isUndefined(n)?eO.isUndefined(r)?void 0:o(void 0,r,i,a):o(r,n,i,a)}function s(r,n){if(!eO.isUndefined(n))return o(void 0,n)}function u(r,n){return eO.isUndefined(n)?eO.isUndefined(r)?void 0:o(void 0,r):o(void 0,n)}function c(i,a,s){return eO.hasOwnProp(n,s)?o(i,a):eO.hasOwnProp(r,s)?o(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:c,headers:(r,n,i)=>a(tA(r),tA(n),i,!0)};return eO.forEach(Object.keys({...r,...n}
556),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;let s=eO.hasOwnProp(l,o)?l[o]:a,u=s(eO.hasOwnProp(r,o)?r[o]:void 0,eO.hasOwnProp(n,o)?n[o]:void 0,o);eO.isUndefined(u)&&s!==c||(i[o]=u)}),i}let tO=["content-type","content-length"];function tx(r,n,i){"content-only"!==i?r.set(n):Object.entries(n).forEach(([n,i])=>{tO.includes(n.toLowerCase())&&r.set(n,i)})}let tT=r=>encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(r,n)=>String.fromCharCode(parseInt(n,16)));var tP=r=>{let n=tk({},r),i=r=>eO.hasOwnProp(n,r)?n[r]:void 0,o=i("data"),a=i("withXSRFToken"),s=i("xsrfHeaderName"),u=i("xsrfCookieName"),c=i("headers"),l=i("auth"),d=i("baseURL"),f=i("allowAbsoluteUrls"),p=i("url");if(n.headers=c=eB.from(c),n.url=e3(tR(d,p,f),r.params,r.paramsSerializer),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?tT(l.password):""))),eO.isFormData(o)&&(tr.hasStandardBrowserEnv||tr.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):eO.isFunction(o.getHeaders)&&tx(c,o.getHeaders(),i("formDataHeaderPolicy"))),tr.hasStandardBrowserEnv&&(eO.isFunction(a)&&(a=a(n)),!0===a||null==a&&tv(n.url))){let r=s&&u&&t_.read(u);r&&c.set(s,r)}return n},tC="u">typeof XMLHttpRequest&&function(r){return new Promise(function(n,i){let o,a,s,u,c,l=tP(r),d=l.data,f=eB.from(l.headers).normalize(),{responseType:p,onUploadProgress:h,onDownloadProgress:y}=l;function g(){u&&u(),c&&c(),l.cancelToken&&l.cancelToken.unsubscribe(o),l.signal&&l.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function b(){if(!m)return;let o=eB.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());tp(function(r){n(r),g()},function(r){i(r),g()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:r,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||4!==m.readyState||(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(b)},m.onabort=function(){m&&(i(new ez("Request aborted",ez.ECONNABORTED,r,m)),g(),m=null)},m.onerror=function(n){let o=new ez(n&&n.message?n.message:"Network Error",ez.ERR_NETWORK,r,m);o.event=n||null,i(o),g(),m=null},m.ontimeout=function(){let n=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||e6;l.timeoutErrorMessage&&(n=l.timeoutErrorMessage),i(new ez(n,o.clarifyTimeoutError?ez.ETIMEDOUT:ez.ECONNABORTED,r,m)),g(),m=null},void 0===d&&f.setContentType(null),"setRequestHeader"in m&&eO.forEach(f.toJSON(),function(r,n){m.setRequestHeader(n,r)}),eO.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),p&&"json"!==p&&(m.responseType=l.responseType),y&&([s,c]=tm(y,!0),m.addEventListener("progress",s)),h&&m.upload&&([a,u]=tm(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(l.cancelToken||l.signal)&&(o=n=>{m&&(i(!n||n.type?new tf(null,r,m):n),m.abort(),g(),m=null)},l.cancelToken&&l.cancelToken.subscribe(o),l.signal&&(l.signal.aborted?o():l.signal.addEventListener("abort",o))
556);let w=th(l.url);w&&!tr.protocols.includes(w)?i(new ez("Unsupported protocol "+w+":",ez.ERR_BAD_REQUEST,r)):m.send(d||null)})};let tj=(r,n)=>{let{length:i}=r=r?r.filter(Boolean):[];if(n||i){let i,o=new AbortController,a=function(r){if(!i){i=!0,u();let n=r instanceof Error?r:this.reason;o.abort(n instanceof ez?n:new tf(n instanceof Error?n.message:n))}},s=n&&setTimeout(()=>{s=null,a(new ez(`timeout of ${n}ms exceeded`,ez.ETIMEDOUT))},n),u=()=>{r&&(s&&clearTimeout(s),s=null,r.forEach(r=>{r.unsubscribe?r.unsubscribe(a):r.removeEventListener("abort",a)}),r=null)};r.forEach(r=>r.addEventListener("abort",a));let{signal:c}=o;return c.unsubscribe=()=>eO.asap(u),c}},tI=function*(r,n){let i,o=r.byteLength;if(o<n)return void(yield r);let a=0;for(;a<o;)i=a+n,yield r.slice(a,i),a=i},tD=async function*(r,n){for await(let i of tU(r))yield*tI(i,n)},tU=async function*(r){if(r[Symbol.asyncIterator])return void(yield*r);let n=r.getReader();try{for(;;){let{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},tN=(r,n,i,o)=>{let a,s=tD(r,n),u=0,c=r=>{!a&&(a=!0,o&&o(r))};return new ReadableStream({async pull(r){try{let{done:n,value:o}=await s.next();if(n){c(),r.close();return}let a=o.byteLength;if(i){let r=u+=a;i(r)}r.enqueue(new Uint8Array(o))}catch(r){throw c(r),r}},cancel:r=>(c(r),s.return())},{highWaterMark:2})};function tM(r){if(!r||"string"!=typeof r||!r.startsWith("data:"))return 0;let n=r.indexOf(",");if(n<0)return 0;let i=r.slice(5,n),o=r.slice(n+1);if(/;base64/i.test(i)){let r=o.length,n=o.length;for(let i=0;i<n;i++)if(37===o.charCodeAt(i)&&i+2<n){let n=o.charCodeAt(i+1),a=o.charCodeAt(i+2);(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(r-=2,i+=2)}let i=0,a=n-1,s=r=>r>=2&&37===o.charCodeAt(r-2)&&51===o.charCodeAt(r-1)&&(68===o.charCodeAt(r)||100===o.charCodeAt(r));a>=0&&(61===o.charCodeAt(a)?(i++,a--):s(a)&&(i++,a-=3)),1===i&&a>=0&&(61===o.charCodeAt(a)?i++:s(a)&&i++);let u=3*Math.floor(r/4)-(i||0);return u>0?u:0}if(void 0!==h&&"function"==typeof h.byteLength)return h.byteLength(o,"utf8");let a=0;for(let r=0,n=o.length;r<n;r++){let i=o.charCodeAt(r);if(i<128)a+=1;else if(i<2048)a+=2;else if(i>=55296&&i<=56319&&r+1<n){let n=o.charCodeAt(r+1);n>=56320&&n<=57343?(a+=4,r++):a+=3}else a+=3}return a}let tL="1.16.0",t$=65536,{isFunction:tq}=eO,tB=(r,...n)=>{try{return!!r(...n)}catch(r){return!1}},tF=r=>{let n,i=eO.global??globalThis,{ReadableStream:o,TextEncoder:a}=i,{fetch:s,Request:u,Response:c}=r=eO.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},r),l=s?tq(s):"function"==typeof fetch,d=tq(u),f=tq(c);if(!l)return!1;let p=l&&tq(o),h=l&&("function"==typeof a?(n=new a,r=>n.encode(r)):async r=>new Uint8Array(await new u(r).arrayBuffer())),y=d&&p&&tB(()=>{let r=!1,n=new u(tr.origin,{body:new o,method:"POST",get duplex(){return r=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),r&&!i}),g=f&&p&&tB(()=>eO.isReadableStream(new c("").body)),m={stream:g&&(r=>r.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(r=>{m[r]||(m[r]=(n,i)=>{let o=n&&n[r];if(o)return o.call(n);throw new ez(`Response type '${r}' is not supported`,ez.ERR_NOT_SUPPORT,i)})});let b=async r=>{if(null==r)return 0;if(eO.isBlob(r))return r.size;if(eO.isSpecCompliantForm(r)){let n=new u(tr.origin,{method:"POST",body:r});return(await n.arrayBuffer()).byteLength}return eO.isArrayBufferView(r)||eO.isArrayBuffer(r)?r.byteLength:(eO.isURLSearchParams(r)&&(r+=""),eO.isString(r))?(await h(r)).byteLength:void 0},w=async(r,n)=>{let i=eO.toFiniteNumber(r.getContentLength());return null==i?b(n):i};return async r=>{let n,{url:i,method:o,data:l,signal:f,cancelToken:p,timeout:h,onDownloadProgress:b,onUploadProgress:v,responseType:_,headers:E,withCredentials:S="same-origin",fetchOptions:R,maxContentLength:A,maxBodyLength:k}=tP(r),O=eO.isNumber(A)&&A>-1,x=eO.isNumber(k)&&k>-1,T=s||fetch;_=_?(_+"").toLowerCase():"text";let P=tj([f,p&&p.toAbortSignal()],h),C=null,j=P&&P.unsubscribe&&(()=>{P.unsubscribe()});try{if(O&&"string"==typeof i&&i.startsWith("data:")&&tM(i)>A)throw new ez("maxContentLength size of "+A+" exceeded",ez.ERR_BAD_RESPONSE,r,C);if(x&&"get"!==o&&"head"!==o){let n=await w(E,l);if("number"==typeof n&&isFinite(n)&&n>k)throw new ez("Request body larger than maxBodyLength limit",ez.ERR_BAD_REQUEST,r,C)}if(v&&y&&"get"!==o&&"head"!==o&&0!==(n=await w(E,l))){let r,o=new u(i,{method:"POST",body:l,duplex:"half"});if(eO.isFormData(l)&&(r=o.headers.get("content-type"))&&E.setContentType(r),o.body){let[r,i]=tb(n,tm(tw(v)));
556l=tN(o.body,t$,r,i)}}eO.isString(S)||(S=S?"include":"omit");let s=d&&"credentials"in u.prototype;if(eO.isFormData(l)){let r=E.getContentType();r&&/^multipart\/form-data/i.test(r)&&!/boundary=/i.test(r)&&E.delete("content-type")}E.set("User-Agent","axios/"+tL,!1);let f={...R,signal:P,method:o.toUpperCase(),headers:E.normalize().toJSON(),body:l,duplex:"half",credentials:s?S:void 0};C=d&&new u(i,f);let p=await (d?T(C,R):T(i,f));if(O){let n=eO.toFiniteNumber(p.headers.get("content-length"));if(null!=n&&n>A)throw new ez("maxContentLength size of "+A+" exceeded",ez.ERR_BAD_RESPONSE,r,C)}let h=g&&("stream"===_||"response"===_);if(g&&p.body&&(b||O||h&&j)){let n={};["status","statusText","headers"].forEach(r=>{n[r]=p[r]});let i=eO.toFiniteNumber(p.headers.get("content-length")),[o,a]=b&&tb(i,tm(tw(b),!0))||[],s=0,u=n=>{if(O&&(s=n)>A)throw new ez("maxContentLength size of "+A+" exceeded",ez.ERR_BAD_RESPONSE,r,C);o&&o(n)};p=new c(tN(p.body,t$,u,()=>{a&&a(),j&&j()}),n)}_=_||"text";let I=await m[eO.findKey(m,_)||"text"](p,r);if(O&&!g&&!h){let n;if(null!=I&&("number"==typeof I.byteLength?n=I.byteLength:"number"==typeof I.size?n=I.size:"string"==typeof I&&(n="function"==typeof a?new a().encode(I).byteLength:I.length)),"number"==typeof n&&n>A)throw new ez("maxContentLength size of "+A+" exceeded",ez.ERR_BAD_RESPONSE,r,C)}return!h&&j&&j(),await new Promise((n,i)=>{tp(n,i,{data:I,headers:eB.from(p.headers),status:p.status,statusText:p.statusText,config:r,request:C})})}catch(n){if(j&&j(),P&&P.aborted&&P.reason instanceof ez){let i=P.reason;throw i.config=r,C&&(i.request=C),n!==i&&(i.cause=n),i}if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new ez("Network Error",ez.ERR_NETWORK,r,C,n&&n.response),{cause:n.cause||n});throw ez.from(n,n&&n.code,r,C,n&&n.response)}}},tH=new Map,tW=r=>{let n=r&&r.env||{},{fetch:i,Request:o,Response:a}=n,s=[o,a,i],u=s.length,c,l,d=tH;for(;u--;)c=s[u],void 0===(l=d.get(c))&&d.set(c,l=u?new Map:tF(n)),d=l;return l};tW();let tz={http:eV,xhr:tC,fetch:{get:tW}};eO.forEach(tz,(r,n)=>{if(r){try{Object.defineProperty(r,"name",{__proto__:null,value:n})}catch(r){}Object.defineProperty(r,"adapterName",{__proto__:null,value:n})}});let tV=r=>`- ${r}`,tK=r=>eO.isFunction(r)||null===r||!1===r;var tJ=function(r,n){let i,o,{length:a}=r=eO.isArray(r)?r:[r],s={};for(let u=0;u<a;u++){let a;if(o=i=r[u],!tK(i)&&void 0===(o=tz[(a=String(i)).toLowerCase()]))throw new ez(`Unknown adapter '${a}'`);if(o&&(eO.isFunction(o)||(o=o.get(n))))break;s[a||"#"+u]=o}if(!o){let r=Object.entries(s).map(([r,n])=>`adapter ${r} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new ez("There is no suitable adapter to dispatch the request "+(a?r.length>1?"since :\n"+r.map(tV).join("\n"):" "+tV(r[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function tG(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new tf(null,r)}function tX(r){return tG(r),r.headers=eB.from(r.headers),r.data=tl.call(r,r.transformRequest),-1!==["post","put","patch"].indexOf(r.method)&&r.headers.setContentType("application/x-www-form-urlencoded",!1),tJ(r.adapter||tc.adapter,r)(r).then(function(n){tG(r),r.response=n;try{n.data=tl.call(r,r.transformResponse,n)}finally{delete r.response}return n.headers=eB.from(n.headers),n},function(n){if(!td(n)&&(tG(r),n&&n.response)){r.response=n.response;try{n.response.data=tl.call(r,r.transformResponse,n.response)}finally{delete r.response}n.response.headers=eB.from(n.response.headers)}return Promise.reject(n)})}let tY={};["object","boolean","number","function","string","symbol"].forEach((r,n)=>{tY[r]=function(i){return typeof i===r||"a"+(n<1?"n ":" ")+r}});let tQ={};tY.transitional=function(r,n,i){function o(r,n){return"[Axios v"+tL+"] Transitional option '"+r+"'"+n+(i?". "+i:"")}return(i,a,s)=>{if(!1===r)throw new ez(o(a," has been removed"+(n?" in "+n:"")),ez.ERR_DEPRECATED);return n&&!tQ[a]&&(tQ[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),!r||r(i,a,s)}},tY.spelling=function(r){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${r}`),!0)};var tZ=function(r,n,i){if("object"!=typeof r)throw new ez("options must be an object",ez.ERR_BAD_OPTION_VALUE);let o=Object.keys(r),a=o.length;for(;a-- >0;){let s=o[a],u=Object.prototype.hasOwnProperty.call(n,s)?n[s]:void 0;if(u){let n=r[s],i=void 0===n||u(n,s,r);if(!0!==i)throw new ez("option "+s+" must be "+i,ez.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new ez("Unknown option "+s,ez.ERR_BAD_OPTION)}};let t0=tY;class t1{constructor(r){this.defaults=r||{},this.interceptors={request:new e8,response:new e8}}
556async request(r,n){try{return await this._request(r,n)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=(()=>{if(!n.stack)return"";let r=n.stack.indexOf("\n");return -1===r?"":n.stack.slice(r+1)})();try{if(r.stack){if(i){let n=i.indexOf("\n"),o=-1===n?-1:i.indexOf("\n",n+1),a=-1===o?"":i.slice(o+1);String(r.stack).endsWith(a)||(r.stack+="\n"+i)}}else r.stack=i}catch(r){}}throw r}}_request(r,n){let i,o;"string"==typeof r?(n=n||{}).url=r:n=r||{};let{transitional:a,paramsSerializer:s,headers:u}=n=tk(this.defaults,n);void 0!==a&&tZ(a,{silentJSONParsing:t0.transitional(t0.boolean),forcedJSONParsing:t0.transitional(t0.boolean),clarifyTimeoutError:t0.transitional(t0.boolean),legacyInterceptorReqResOrdering:t0.transitional(t0.boolean)},!1),null!=s&&(eO.isFunction(s)?n.paramsSerializer={serialize:s}:tZ(s,{encode:t0.function,serialize:t0.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tZ(n,{baseUrl:t0.spelling("baseURL"),withXsrfToken:t0.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=u&&eO.merge(u.common,u[n.method]);u&&eO.forEach(["delete","get","head","post","put","patch","query","common"],r=>{delete u[r]}),n.headers=eB.concat(c,u);let l=[],d=!0;this.interceptors.request.forEach(function(r){if("function"==typeof r.runWhen&&!1===r.runWhen(n))return;d=d&&r.synchronous;let i=n.transitional||e6;i&&i.legacyInterceptorReqResOrdering?l.unshift(r.fulfilled,r.rejected):l.push(r.fulfilled,r.rejected)});let f=[];this.interceptors.response.forEach(function(r){f.push(r.fulfilled,r.rejected)});let p=0;if(!d){let r=[tX.bind(this),void 0];for(r.unshift(...l),r.push(...f),o=r.length,i=Promise.resolve(n);p<o;)i=i.then(r[p++],r[p++]);return i}o=l.length;let h=n;for(;p<o;){let r=l[p++],n=l[p++];try{h=r(h)}catch(r){n.call(this,r);break}}try{i=tX.call(this,h)}catch(r){return Promise.reject(r)}for(p=0,o=f.length;p<o;)i=i.then(f[p++],f[p++]);return i}getUri(r){return e3(tR((r=tk(this.defaults,r)).baseURL,r.url,r.allowAbsoluteUrls),r.params,r.paramsSerializer)}}eO.forEach(["delete","get","head","options"],function(r){t1.prototype[r]=function(n,i){return this.request(tk(i||{},{method:r,url:n,data:(i||{}).data}))}}),eO.forEach(["post","put","patch","query"],function(r){function n(n){return function(i,o,a){return this.request(tk(a||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}t1.prototype[r]=n(),"query"!==r&&(t1.prototype[r+"Form"]=n(!0))});class t2{constructor(r){let n;if("function"!=typeof r)throw TypeError("executor must be a function.");this.promise=new Promise(function(r){n=r});const i=this;this.promise.then(r=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](r);i._listeners=null}),this.promise.then=r=>{let n,o=new Promise(r=>{i.subscribe(r),n=r}).then(r);return o.cancel=function(){i.unsubscribe(n)},o},r(function(r,o,a){i.reason||(i.reason=new tf(r,o,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){this.reason?r(this.reason):this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;let n=this._listeners.indexOf(r);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let r=new AbortController,n=n=>{r.abort(n)};return this.subscribe(n),r.signal.unsubscribe=()=>this.unsubscribe(n),r.signal}static source(){let r;return{token:new t2(function(n){r=n}),cancel:r}}}function t3(r){return function(n){return r.apply(null,n)}}function t8(r){return eO.isObject(r)&&!0===r.isAxiosError}let t6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
556alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};function t4(r){let n=new t1(r),i=y(t1.prototype.request,n);return eO.extend(i,t1.prototype,n,{allOwnKeys:!0}),eO.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t4(tk(r,n))},i}Object.entries(t6).forEach(([r,n])=>{t6[n]=r});let t5=t4(tc);t5.Axios=t1,t5.CanceledError=tf,t5.CancelToken=t2,t5.isCancel=td,t5.VERSION=tL,t5.toFormData=eQ,t5.AxiosError=ez,t5.Cancel=t5.CanceledError,t5.all=function(r){return Promise.all(r)},t5.spread=t3,t5.isAxiosError=t8,t5.mergeConfig=tk,t5.AxiosHeaders=eB,t5.formToJSON=r=>ta(eO.isHTMLForm(r)?new FormData(r):r),t5.getAdapter=tJ,t5.HttpStatusCode=t6,t5.default=t5,r.exports=t5},62876:(r,n,i)=>{"use strict";i.d(n,{$:()=>c,P:()=>l});var o=i(75668);let a="Retry-After",s=["retry-after-ms","x-ms-retry-after-ms",a];function u(r){if(r&&[429,503].includes(r.status))try{for(let n of s){let i=(0,o.H)(r,n);if(0===i||i){let r=n===a?1e3:1;return i*r}}let n=r.headers.get(a);if(!n)return;let i=Date.parse(n)-Date.now();return Number.isFinite(i)?Math.max(0,i):void 0}catch{return}}function c(r){return Number.isFinite(u(r))}function l(){return{name:"throttlingRetryStrategy",retry({response:r}){let n=u(r);return Number.isFinite(n)?{retryAfterInMs:n}:{skipStrategy:!0}}}}},62990:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"after",{enumerable:!0,get:function(){return s}});let o=i(21989),a=i(3330);function s(r){let n=o.workAsyncStorage.getStore(),i=a.workUnitAsyncStorage.getStore();if(!n||!i)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:s}=n;return s.after(r,i)}},64462:(r,n,i)=>{var o={572:function(r,n,i){var o=i(611),a=i(16),s=r.exports;for(var u in o)o.hasOwnProperty(u)&&(s[u]=o[u]);function c(r){if("string"==typeof r&&(r=a.parse(r)),r.protocol||(r.protocol="https:"),"https:"!==r.protocol)throw Error('Protocol "'+r.protocol+'" not supported. Expected "https:"');return r}s.request=function(r,n){return r=c(r),o.request.call(this,r,n)},s.get=function(r,n){return r=c(r),o.get.call(this,r,n)}},611:function(r){"use strict";r.exports=i(925)},16:function(r){"use strict";r.exports=i(82475)}},a={};function s(r){var n=a[r];if(void 0!==n)return n.exports;var i=a[r]={exports:{}},u=!0;try{o[r](i,i.exports,s),u=!1}finally{u&&delete a[r]}return i.exports}s.ab="//",r.exports=s(572)},65140:(r,n,i)=>{"use strict";i.d(n,{Ll:()=>a});let o="proxyPolicy is not supported in browser environment";function a(r,n){throw Error(o)}},65445:(r,n)=>{"use strict";function i(r,n,i){Object.defineProperty(r,n,{enumerable:!1,writable:!1,value:i})}Object.defineProperty(n,"__esModule",{value:!0}),n.setNotEnumerableProperty=i},65934:(r,n)=>{"use strict";function i(){return{requiredIds:new Map,renderedIds:new Set}}function o(r){for(let n of r.requiredIds.keys())if(!r.renderedIds.has(n))return!1;return!0}Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{allRequiredBoundariesRendered:function(){return o},createValidationBoundaryTracking:function(){return i}})},66184:(r,n,i)=>{"use strict";function o(r){return r.toLowerCase()}function*a(r){for(let n of r.values())yield[n.name,n.value]}i.d(n,{N:()=>u});class s{_headersMap;constructor(r){if(this._headersMap=new Map,r)for(const n of Object.keys(r))this.set(n,r[n])}set(r,n){this._headersMap.set(o(r),{name:r,value:String(n).trim()})}get(r){return this._headersMap.get(o(r))?.value}has(r){return this._headersMap.has(o(r))}delete(r){this._headersMap.delete(o(r))}toJSON(r={}){let n={};if(r.preserveCase)for(let r of this._headersMap.values())n[r.name]=r.value;else for(let[r,i]of this._headersMap)n[r]=i.value;return n}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return a(this._headersMap)}}function u(r){return new s(r)}},67072:(r,n,i)=>{"use strict";i.d(n,{pj:()=>z,N$:()=>ey,uQ:()=>el,fl:()=>ei,Nc:()=>eo,Fp:()=>en,G6:()=>ea});var o=i(56623);function a(){return(0,o.O8)()}var s=i(20050);let u=(0,s.KV)("core-rest-pipeline");var c=i(40804),l=i(42311),d=i(98458);i(72552),i(57959),i(62876);var f=i(96517),p=i(19831),h=i(25127),y=i(65140),g=i(72023),m=i(45836);function b(r={}){return(0,p.r)({logger:u.info,...r})}function w(r={}){return(0,g.x)(r)}function v(){return"x-ms-useragent"}function _(r){for(let n of[{name:"Firefox",regex:/Firefox\/([\d.]+)/},{name:"Safari",regex:/Version\/([\d.]+).*Safari/}]){let i=r.match(n.regex);if(i)return{brand:n.name,version:i[1]}}}function E(r){for(let n of["Google Chrome","Microsoft Edge","Opera","Brave","Chromium"]){let i=r.find(r=>r.brand===n);if(i)return i}}async function S(r){let n=globalThis.navigator,i="unknown";if(n?.userAgentData){let o=await n.userAgentData.getHighEntropyValues(["architecture","platformVersion"]);i=`${o.platform} ${o.platformVersion}; ${o.architecture}`;let a=E(n.userAgentData.brands);a&&r.set(a.brand,`${a.version} (${i})`)}else if(n?.platform){i=n.platform;let o=_(n.userAgent);o&&r.set(o.brand,`${o.version} (${i})`)}else"string"==typeof globalThis.EdgeRuntime&&r.set("EdgeRuntime",`${globalThis.EdgeRuntime} (${i})`)}i(80700);let R="1.22.3";function A(r){let n=[];for(let[i,o]of r){let r=o?`${i}/${o}`:i;n.push(r)}return n.join(" ")}async function k(r){let n=new Map;n.set("core-rest-pipeline",R),await S(n);let i=A(n);return r?`${r} ${i}`:i}let O=v(),x="userAgentPolicy";function T(r={}){let n=k(r.userAgentPrefix);return{name:x,sendRequest:async(r,i)=>(r.headers.has(O)||r.headers.set(O,await n),i(r))}}var P=i(51043);let C=Symbol("rawContent");function j(r){return"function"==typeof r[C]}function I(r){return j(r)?r[C]():r}let D=h.u;function U(){let r=(0,h.J)();return{name:D,sendRequest:async(n,i)=>{if(n.multipartBody)for(let r of n.multipartBody.parts)j(r.body)&&(r.body=I(r.body));return r.sendRequest(n,i)}}}function N(){return(0,l.r)()}function M(r={}){return(0,d.u)(r)}function L(){return(0,f.j)()}function $(r,n){return(0,y.Ll)(r,n)}let q="setClientRequestIdPolicy";function B(r="x-ms-client-request-id"){return{name:q,sendRequest:async(n,i)=>(n.headers.has(r)||n.headers.set(r,n.requestId),i(n))}}function F(r){return(0,c.e)(r)}function H(r){return(0,m.i)(r)}var W=i(86178);let z=o.pj;function V(r){return(0,o.T0)(r)}var K=i(631);let J="tracingPolicy";function G(r={}){let n=k(r.userAgentPrefix),i=new K.If({additionalAllowedQueryParameters:r.additionalAllowedQueryParameters}),o=X();return{name:J,async sendRequest(r,a){if(!o)return a(r);let s=await n,u={"http.url":i.sanitizeUrl(r.url),"http.method":r.method,"http.user_agent":s,requestId:r.requestId};s&&(u["http.user_agent"]=s);let{span:c,tracingContext:l}=Y(o,r,u)??{};if(!c||!l)return a(r);try{let n=await o.withContext(l,a,r);return Z(c,n),n}catch(r){throw Q(c,r),r}}}}function X(){try{return(0,W.y)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:R})}catch(r){u.warning(`Error when creating the TracingClient: ${(0,P.u1)(r)}`);return}}function Y(r,n,i){try{let{span:o,updatedOptions:a}=r.startSpan(`HTTP ${n.method}`,{tracingOptions:n.tracingOptions},{spanKind:"client",spanAttributes:i});if(!o.isRecording())return void o.end();let s=r.createRequestHeaders(a.tracingOptions.tracingContext);for(let[r,i]of Object.entries(s))n.headers.set(r,i);return{span:o,tracingContext:a.tracingOptions.tracingContext}}catch(r){u.warning(`Skipping creating a tracing span due to an error: ${(0,P.u1)(r)}`);return}}function Q(r,n){try{r.setStatus({status:"error",error:(0,P.bJ)(n)?n:void 0}),V(n)&&n.statusCode&&r.setAttribute("http.status_code",n.statusCode),r.end()}catch(r){u.warning(`Skipping tracing span processing due to an error: ${(0,P.u1)(r)}`)}}function Z(r,n){try{r.setAttribute("http.status_code",n.status);let i=n.headers.get("x-ms-request-id");i&&r.setAttribute("serviceRequestId",i),n.status>=400&&r.setStatus({status:"error"}),r.end()}catch(r){u.warning(`Skipping tracing span processing due to an error: ${(0,P.u1)(r)}`)}}function ee(r){if(r instanceof AbortSignal)return{abortSignal:r};if(r.aborted)return{abortSignal:AbortSignal.abort(r.reason)};let n=new AbortController,i=!0;function o(){i&&(r.removeEventListener("abort",a),i=!1)}function a(){n.abort(r.reason),o()}
556return r.addEventListener("abort",a),{abortSignal:n.signal,cleanup:o}}let et="wrapAbortSignalLikePolicy";function er(){return{name:et,sendRequest:async(r,n)=>{if(!r.abortSignal)return n(r);let{abortSignal:i,cleanup:o}=ee(r.abortSignal);r.abortSignal=i;try{return await n(r)}finally{o?.()}}}}function en(r){let n=a();return P.qx&&(r.agent&&n.addPolicy(F(r.agent)),r.tlsOptions&&n.addPolicy(H(r.tlsOptions)),n.addPolicy($(r.proxyOptions)),n.addPolicy(N())),n.addPolicy(er()),n.addPolicy(L(),{beforePolicies:[D]}),n.addPolicy(T(r.userAgentOptions)),n.addPolicy(B(r.telemetryOptions?.clientRequestIdHeaderName)),n.addPolicy(U(),{afterPhase:"Deserialize"}),n.addPolicy(M(r.retryOptions),{phase:"Retry"}),n.addPolicy(G({...r.userAgentOptions,...r.loggingOptions}),{afterPhase:"Retry"}),P.qx&&n.addPolicy(w(r.redirectOptions),{afterPhase:"Retry"}),n.addPolicy(b(r.loggingOptions),{afterPhase:"Sign"}),n}function ei(){let r=(0,o.fl)();return{async sendRequest(n){let{abortSignal:i,cleanup:o}=n.abortSignal?ee(n.abortSignal):{};try{return n.abortSignal=i,await r.sendRequest(n)}finally{o?.()}}}}function eo(r){return(0,o.Nc)(r)}function ea(r){return(0,o.G6)(r)}(0,s.KV)("core-rest-pipeline retryPolicy");let es={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};async function eu(r,n,i){async function o(){if(Date.now()<i)try{return await r()}catch{return null}{let n=await r();if(null===n)throw Error("Failed to refresh access token.");return n}}let a=await o();for(;null===a;)await (0,P.cb)(n),a=await o();return a}function ec(r,n){let i,o=null,a=null,s={...es,...n},u={get isRefreshing(){return null!==o},get shouldRefresh(){if(u.isRefreshing)return!1;if(a?.refreshAfterTimestamp&&a.refreshAfterTimestamp<Date.now())return!0;return(a?.expiresOnTimestamp??0)-s.refreshWindowInMs<Date.now()},get mustRefresh(){return null===a||a.expiresOnTimestamp-s.forcedRefreshWindowInMs<Date.now()}};function c(n,c){return u.isRefreshing||(o=eu(()=>r.getToken(n,c),s.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then(r=>(o=null,a=r,i=c.tenantId,a)).catch(r=>{throw o=null,a=null,i=void 0,r})),o}return async(r,n)=>{let o=!!n.claims,s=i!==n.tenantId;return(o&&(a=null),s||o||u.mustRefresh)?c(r,n):(u.shouldRefresh&&c(r,n),a)}}let el="bearerTokenAuthenticationPolicy";async function ed(r,n){try{return[await n(r),void 0]}catch(r){if(V(r)&&r.response)return[r.response,r];throw r}}async function ef(r){let{scopes:n,getAccessToken:i,request:o}=r,a={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:!0},s=await i(n,a);s&&r.request.headers.set("Authorization",`Bearer ${s.token}`)}function ep(r){return 401===r.status&&r.headers.has("WWW-Authenticate")}async function eh(r,n){let{scopes:i}=r,o=await r.getAccessToken(i,{enableCae:!0,claims:n});return!!o&&(r.request.headers.set("Authorization",`${o.tokenType??"Bearer"} ${o.token}`),!0)}function ey(r){let{credential:n,scopes:i,challengeCallbacks:o}=r,a=r.logger||u,s={authorizeRequest:o?.authorizeRequest?.bind(o)??ef,authorizeRequestOnChallenge:o?.authorizeRequestOnChallenge?.bind(o)},c=n?ec(n):()=>Promise.resolve(null);return{name:el,async sendRequest(r,n){let o,u,l;if(!r.url.toLowerCase().startsWith("https://"))throw Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");if(await s.authorizeRequest({scopes:Array.isArray(i)?i:[i],request:r,getAccessToken:c,logger:a}),[o,u]=await ed(r,n),ep(o)){let d=em(o.headers.get("WWW-Authenticate"));if(d){let s;try{s=atob(d)}catch(r){return a.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`),o}(l=await eh({scopes:Array.isArray(i)?i:[i],response:o,request:r,getAccessToken:c,logger:a},s))&&([o,u]=await ed(r,n))}else if(s.authorizeRequestOnChallenge&&((l=await s.authorizeRequestOnChallenge({scopes:Array.isArray(i)?i:[i],request:r,response:o,getAccessToken:c,logger:a}))&&([o,u]=await ed(r,n)),ep(o))&&(d=em(o.headers.get("WWW-Authenticate")))){let s;try{s=atob(d)}catch(r){return a.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`),o}(l=await eh({scopes:Array.isArray(i)?i:[i],response:o,request:r,getAccessToken:c,logger:a},s))&&([o,u]=await ed(r,n))}}if(!u)return o;throw u}}}function eg(r){let n,i=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,o=/(\w+)="([^"]*)"/g,a=[];for(;null!==(n=i.exec(r));){let r,i=n[1],s=n[2],u={};for(;null!==(r=o.exec(s));)u[r[1]]=r[2];a.push({scheme:i,params:u})}return a}function em(r){if(!r)return;let n=eg(r);return n.find(r=>
556"Bearer"===r.scheme&&r.params.claims&&"insufficient_claims"===r.params.error)?.params.claims}},67332:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{INSTANT_SLOT_MARKER_PREFIX:function(){return o},INSTANT_SLOT_MARKER_SUFFIX:function(){return a},INSTANT_VALIDATION_BOUNDARY_NAME:function(){return i}});let i="__next_instant_validation_boundary__",o="__next_instant_slot_",a="__"},67577:(r,n)=>{"use strict";function i(r){throw Error(`Assertion failed. Unacceptable value: '${r}'`)}Object.defineProperty(n,"__esModule",{value:!0}),n.assertNever=i},68793:(r,n,i)=>{"use strict";i.d(n,{p:()=>u,T:()=>c});var o=i(99411);let a=Symbol(),s=new(i(99634)).I;class u extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(r,n={}){super(r),this.name="RestError",this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});const i=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,a,{value:()=>`RestError: ${this.message} 
557 ${s.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,u.prototype)}}function c(r){return r instanceof u||(0,o.b)(r)&&"RestError"===r.name}},68809:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.FgaRequiredParamError=n.FgaValidationError=n.FgaApiAuthenticationError=n.FgaApiInternalError=n.FgaApiRateLimitExceededError=n.FgaApiNotFoundError=n.FgaApiValidationError=n.FgaApiError=n.FgaError=void 0;class i extends Error{constructor(r,n){super(n||"string"==typeof r?r:`FGA Error${r?.message?`: ${r.message}`:""}`),this.name="FgaError",r?.stack&&(this.stack=r.stack)}}function o(r){let n=(r||"").split("/");return n.length<4&&(n=[]),{storeId:n[2]||"",endpointCategory:n[3]||""}}n.FgaError=i;let a="fga-request-id";function s(r){return r.response?Object.fromEntries(Object.entries(r.response.headers).map(([r,n])=>[r.toLowerCase(),n])):{}}class u extends i{constructor(r,n){super(n||r),this.name="FgaApiError",this.statusCode=r.response?.status,this.statusText=r.response?.statusText,this.requestData=r.config?.data,this.requestURL=r.config?.url,this.method=r.config?.method;const{storeId:i,endpointCategory:u}=o(r.request?.path);this.storeId=i,this.endpointCategory=u,this.apiErrorMessage=r.response?.data?.message,this.responseData=r.response?.data,this.responseHeader=r.response?.headers;const c=s(r);this.requestId=c[a],r?.stack&&(this.stack=r.stack)}}n.FgaApiError=u;class c extends u{constructor(r,n){super(r),this.name="FgaApiValidationError",this.apiErrorCode=r.response?.data?.code;const{endpointCategory:i}=o(r.request?.path);this.message=n||(r.response?.data?.message?`FGA API Validation Error: ${r.config?.method} ${i} : Error ${r.response?.data?.message}`:r.message)}}n.FgaApiValidationError=c;class l extends u{constructor(r,n){super(r),this.name="FgaApiNotFoundError",this.apiErrorCode=r.response?.data?.code,this.message=n||(r.response?.data?.message?`FGA API NotFound Error: ${r.config?.method} : Error ${r.response?.data?.message}`:r.message)}}n.FgaApiNotFoundError=l;class d extends u{constructor(r,n){super(r),this.name="FgaApiRateLimitExceededError",this.apiErrorCode=r.response?.data?.code;const{endpointCategory:i}=o(r.request?.path);s(r),this.message=n||`FGA API Rate Limit Error for ${this.method} ${i}`}}n.FgaApiRateLimitExceededError=d;class f extends u{constructor(r,n){super(r),this.name="FgaApiInternalError";const{endpointCategory:i}=o(r.request?.path);this.apiErrorCode=r.response?.data?.code,this.message=n||(r.response?.data?.message?`FGA API Internal Error: ${r.config?.method} ${i} : Error ${r.response?.data?.message}`:r.message)}}n.FgaApiInternalError=f;class p extends i{constructor(r){let n;super(`FGA Authentication Error.${r.response?.statusText?` ${r.response.statusText}`:""}`),this.name="FgaApiAuthenticationError",this.statusCode=r.response?.status,this.statusText=r.response?.statusText,this.requestURL=r.config?.url,this.method=r.config?.method,this.responseData=r.response?.data,this.responseHeader=r.response?.headers,this.apiErrorCode=r.response?.data?.code;const i=s(r);this.requestId=i[a];try{n=JSON.parse(r.config?.data||"{}")}catch(r){}this.clientId=n?.client_id,this.audience=n?.audience,this.grantType=n?.grant_type,r?.stack&&(this.stack=r.stack)}}n.FgaApiAuthenticationError=p;class h extends i{constructor(r,n){super(n),this.field=r,this.name="FgaValidationError"}}n.FgaValidationError=h;class y extends h{constructor(r,n,i){super(n,i),this.functionName=r,this.name="FgaRequiredParamError"}}n.FgaRequiredParamError=y},69030:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{isRequestApiAllowedInCurrentPhase:function(){return l},throwForSearchParamsAccessInUseCache:function(){return c},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return u}});let o=i(70588),a=i(43574),s=i(51168);function u(r,n){throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used ${n}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,
557configurable:!0})}function c(r,n){let i=Object.defineProperty(Error(`Route ${r.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(i,n),r.invalidDynamicUsageError??=i,i}function l(r){switch(r.phase){case"action":case"render":return!0;case"after":{let r=a.actionAsyncStorage.getStore();if(r&&(r.isAppRoute||r.isAction))return!0;let n=s.afterTaskAsyncStorage.getStore();if(n)return"action"===n.rootTaskSpawnPhase;return!1}}}},69405:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TelemetryHistograms=void 0;class i{}n.TelemetryHistograms=i,i.requestDuration={name:"fga-client.request.duration",unit:"milliseconds",description:"How long it took for a request to be fulfilled."},i.queryDuration={name:"fga-client.query.duration",unit:"milliseconds",description:"How long it took to perform a query request."}},69720:(r,n,i)=>{"use strict";var o;o={value:!0},o={enumerable:!0,get:function(){return h}};let a=i(3330),s=i(21989),u=i(24674),c=i(23219),l=i(70588),d=i(2344),f=i(8634);i(6986);let p=i(53665);function h(){let r="draftMode",n=s.workAsyncStorage.getStore(),i=a.workUnitAsyncStorage.getStore();switch((!n||!i)&&(0,a.throwForMissingRequestStore)(r),i.type){case"prerender-runtime":{let{stagedRendering:r}=i;if(r)return r.delayUntilStage(p.RENDER_STAGES_BY_DATA_KIND.sessionData,"draftMode",new b(i.draftMode));return y(i.draftMode,n)}case"request":return y(i.draftMode,n);case"cache":case"private-cache":case"unstable-cache":let o=(0,a.getDraftModeProviderForCacheScope)(n,i);if(o)return y(o,n);case"prerender":case"prerender-ppr":case"prerender-legacy":return y(null,n);case"prerender-client":case"validation-client":{let r="`draftMode`";throw Object.defineProperty(new f.InvariantError(`${r} must not be used within a Client Component. Next.js should be preventing ${r} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0})}case"generate-static-params":throw Object.defineProperty(Error(`Route ${n.route} used \`${r}()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1132",enumerable:!1,configurable:!0});default:return i}}function y(r,n){let i=r??g,o=m.get(i);return o||Promise.resolve(new b(r))}let g={},m=new WeakMap;class b{constructor(r){this._provider=r}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){v("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){v("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function w(r,n){let i=r?`Route "${r}" `:"This route ";return Object.defineProperty(Error(`${i}used ${n}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,configurable:!0})}function v(r,n){let i=s.workAsyncStorage.getStore(),o=a.workUnitAsyncStorage.getStore();if(i){if((null==o?void 0:o.phase)==="after")throw Object.defineProperty(Error(`Route ${i.route} used "${r}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E845",enumerable:!1,configurable:!0});if(i.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${i.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,
557configurable:!0});if(o)switch(o.type){case"cache":case"private-cache":{let o=Object.defineProperty(Error(`Route ${i.route} used "${r}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E829",enumerable:!1,configurable:!0});throw Error.captureStackTrace(o,n),(0,p.applyOwnerStack)(o),i.invalidDynamicUsageError??=o,o}case"unstable-cache":throw Object.defineProperty(Error(`Route ${i.route} used "${r}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E844",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let n=Object.defineProperty(Error(`Route ${i.route} used ${r} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});return(0,u.abortAndThrowOnSynchronousRequestDataAccess)(i.route,r,n,o)}case"prerender-client":case"validation-client":let a="`draftMode`";throw Object.defineProperty(new f.InvariantError(`${a} must not be used within a Client Component. Next.js should be preventing ${a} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,u.postponeWithTracking)(i.route,r,o.dynamicTracking);case"prerender-legacy":o.revalidate=0;let s=Object.defineProperty(new d.DynamicServerError(`Route ${i.route} couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw i.dynamicUsageDescription=r,i.dynamicUsageStack=s.stack,s;case"request":(0,u.trackDynamicDataInDynamicRender)(o);break;case"generate-static-params":throw Object.defineProperty(Error(`Route ${i.route} used \`${r}\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1121",enumerable:!1,configurable:!0})}}}(0,c.createDedupedByCallsiteServerErrorLoggerDev)(w)},70121:(r,n,i)=>{"use strict";var o,a;Object.defineProperty(n,"__esModule",{value:!0}),n.OpenFgaClient=n.ClientWriteStatus=n.ClientConfiguration=void 0;let s=i(52256),u=i(38778),c=i(887),l=i(70948),d=i(68809),f=i(42164),p=i(77005);class h extends l.Configuration{constructor(r={}){super(r),this.storeId=r.storeId,this.authorizationModelId=r.authorizationModelId}isValid(){if(super.isValid(),this.storeId&&!(0,p.isWellFormedUlidString)(this.storeId))throw new d.FgaValidationError("storeId","storeId must be in ULID format");if(this.authorizationModelId&&!(0,p.isWellFormedUlidString)(this.authorizationModelId))throw new d.FgaValidationError("authorizationModelId","authorizationModelId must be in ULID format");return!0}}n.ClientConfiguration=h;let y=10,g=50,m="X-OpenFGA-Client-Method",b="X-OpenFGA-Client-Bulk-Request-Id";(a=o||(n.ClientWriteStatus=o={})).SUCCESS="success",a.FAILURE="failure";class w extends c.BaseAPI{constructor(r,n){super(r,n),this.axios=n,r instanceof h?this.configuration=r:this.configuration=new h(r),this.configuration.isValid(),this.api=new u.OpenFgaApi(this.configuration,n),this.storeId=r.storeId,this.authorizationModelId=r.authorizationModelId}getStoreId(r={},n=!1){let i=r?.storeId||this.storeId;if(i&&!(0,p.isWellFormedUlidString)(i))throw new d.FgaValidationError("storeId","storeId must be in ULID format");if(!n&&!i)throw new d.FgaValidationError("storeId","storeId is required");return i}getAuthorizationModelId(r={}){let n=r?.authorizationModelId||this.authorizationModelId;if(n&&!(0,p.isWellFormedUlidString)(n))throw new d.FgaValidationError("authorizationModelId","authorizationModelId must be in ULID format");return n}async checkValidApiConnection(r={}){this.getAuthorizationModelId(r)?await this.readAuthorizationModel(r):await this.readLatestAuthorizationModel(r)}async listStores(r={}){return this.api.listStores(r.pageSize,r.continuationToken,r)}async createStore(r,n={}){return this.api.createStore(r,n)}async getStore(r={}){return this.api.getStore(this.getStoreId(r),r)}async deleteStore(r={}){return this.api.deleteStore(this.getStoreId(r),r)}async readAuthorizationModels(r={}){return this.api.readAuthorizationModels(this.getStoreId(r),r.pageSize,r.continuationToken,r)}async writeAuthorizationModel(r,n={}){return this.api.writeAuthorizationModel(this.getStoreId(n),r,n)}async readAuthorizationModel(r={}){let n=this.getAuthorizationModelId(r);if(!n)throw new d.FgaRequiredParamError("ClientConfiguration","authorizationModelId");return this.api.readAuthorizationModel(this.getStoreId(r),n,r)}async readLatestAuthorizationModel(r={}){let{headers:n={}}=r;(0,f.setHeaderIfNotSet)(n,m,"ReadLatestAuthorizationModel");let i=await this.readAuthorizationModels({...r,pageSize:1,headers:n}),o=i;return o.authorization_model=i.authorization_models?.[0],delete o.authorization_models,o}async readChanges(r,n={}
557){return this.api.readChanges(this.getStoreId(n),r?.type,n.pageSize,n.continuationToken,r?.startTime,n)}async read(r={},n={}){let i={page_size:n.pageSize,continuation_token:n.continuationToken,consistency:n.consistency};return(r.user||r.object||r.relation)&&(i.tuple_key=r),this.api.read(this.getStoreId(n),i,n)}async write(r,n={}){let{transaction:i={},headers:a={}}=n,{maxPerChunk:u=1,maxParallelRequests:c=y}=i,{writes:l,deletes:p}=r,h=this.getAuthorizationModelId(n);if(!i?.disable){let r={authorization_model_id:h};return l?.length&&(r.writes={tuple_keys:l}),p?.length&&(r.deletes={tuple_keys:p}),await this.api.write(this.getStoreId(n),r,n),{writes:l?.map(r=>({tuple_key:r,status:o.SUCCESS}))||[],deletes:p?.map(r=>({tuple_key:r,status:o.SUCCESS}))||[]}}(0,f.setHeaderIfNotSet)(a,m,"Write"),(0,f.setHeaderIfNotSet)(a,b,(0,f.generateRandomIdWithNonUniqueFallback)());let g=[];if(l?.length)for await(let r of s(c,(0,f.chunkArray)(l,u),r=>this.writeTuples(r,{...n,headers:a,transaction:void 0}).catch(n=>{if(n instanceof d.FgaApiAuthenticationError)throw n;return{writes:r.map(r=>({tuple_key:r,status:o.FAILURE,err:n})),deletes:[]}})))g.push(r.writes);let w=[];if(p?.length)for await(let r of s(c,(0,f.chunkArray)(p,u),r=>this.deleteTuples(r,{...n,headers:a,transaction:void 0}).catch(n=>{if(n instanceof d.FgaApiAuthenticationError)throw n;return{writes:[],deletes:r.map(r=>({tuple_key:r,status:o.FAILURE,err:n}))}})))w.push(r.deletes);return{writes:g.flat(),deletes:w.flat()}}async writeTuples(r,n={}){let{headers:i={}}=n;return(0,f.setHeaderIfNotSet)(i,m,"WriteTuples"),this.write({writes:r},{...n,headers:i})}async deleteTuples(r,n={}){let{headers:i={}}=n;return(0,f.setHeaderIfNotSet)(i,m,"DeleteTuples"),this.write({deletes:r},{...n,headers:i})}async check(r,n={}){return this.api.check(this.getStoreId(n),{tuple_key:{user:r.user,relation:r.relation,object:r.object},context:r.context,contextual_tuples:{tuple_keys:r.contextualTuples||[]},authorization_model_id:this.getAuthorizationModelId(n),consistency:n.consistency},n)}async clientBatchCheck(r,n={}){let{headers:i={},maxParallelRequests:o=y}=n;(0,f.setHeaderIfNotSet)(i,m,"ClientBatchCheck"),(0,f.setHeaderIfNotSet)(i,b,(0,f.generateRandomIdWithNonUniqueFallback)());let a=[];for await(let u of s(o,r,r=>this.check(r,{...n,headers:i}).then(n=>
557(n._request=r,n)).catch(n=>{if(n instanceof d.FgaApiAuthenticationError)throw n;return{allowed:void 0,error:n,_request:r}})))a.push(u);return{result:a}}singleBatchCheck(r,n={}){return this.api.batchCheck(this.getStoreId(n),r,n)}async batchCheck(r,n={}){let{headers:i={},maxBatchSize:o=g,maxParallelRequests:a=y}=n;(0,f.setHeaderIfNotSet)(i,b,(0,f.generateRandomIdWithNonUniqueFallback)());let u=new Map,c=[];for(let n of r.checks){if(n.correlationId||(n.correlationId=(0,f.generateRandomIdWithNonUniqueFallback)()),u.has(n.correlationId))throw new d.FgaValidationError("correlationId","When calling batchCheck, correlation IDs must be unique");u.set(n.correlationId,n),c.push({tuple_key:{user:n.user,relation:n.relation,object:n.object},context:n.context,contextual_tuples:n.contextualTuples,correlation_id:n.correlationId})}let l=(0,f.chunkArray)(c,o),p=[];for await(let r of s(a,l,async r=>{let o={checks:r,authorization_model_id:n.authorizationModelId,consistency:n.consistency};return(await this.singleBatchCheck(o,{...n,headers:i})).result}))if(r)for(let[n,i]of Object.entries(r)){let r=u.get(n);r&&i&&p.push({allowed:i.allowed||!1,request:r,correlationId:n,error:i.error})}return{result:p}}async expand(r,n={}){return this.api.expand(this.getStoreId(n),{authorization_model_id:this.getAuthorizationModelId(n),tuple_key:{object:r.object,relation:r.relation},contextual_tuples:{tuple_keys:r.contextualTuples||[]},consistency:n.consistency},n)}async listObjects(r,n={}){return this.api.listObjects(this.getStoreId(n),{authorization_model_id:this.getAuthorizationModelId(n),user:r.user,relation:r.relation,type:r.type,context:r.context,contextual_tuples:{tuple_keys:r.contextualTuples||[]},consistency:n.consistency},n)}async listRelations(r,n={}){let{user:i,object:o,relations:a,contextualTuples:s,context:u}=r,{headers:c={},maxParallelRequests:l=y}=n;if((0,f.setHeaderIfNotSet)(c,m,"ListRelations"),(0,f.setHeaderIfNotSet)(c,b,(0,f.generateRandomIdWithNonUniqueFallback)()),!a?.length)throw new d.FgaValidationError("relations","When calling listRelations, at least one relation must be passed in the relations field");let p=await this.clientBatchCheck(a.map(r=>({user:i,relation:r,object:o,contextualTuples:s,context:u})),{...n,headers:c,maxParallelRequests:l}),h=p.result.find(r=>r.error);if(h)throw h.error;return{relations:p.result.filter(r=>r.allowed).map(r=>r._request.relation)}}async listUsers(r,n={}){return this.api.listUsers(this.getStoreId(n),{authorization_model_id:this.getAuthorizationModelId(n),relation:r.relation,object:r.object,user_filters:r.user_filters,context:r.context,contextual_tuples:r.contextualTuples||[],consistency:n.consistency},n)}async readAssertions(r={}){return this.api.readAssertions(this.getStoreId(r),this.getAuthorizationModelId(r),r)}async writeAssertions(r,n={}){return this.api.writeAssertions(this.getStoreId(n),this.getAuthorizationModelId(n),{assertions:r.map(r=>({tuple_key:{user:r.user,relation:r.relation,object:r.object},expectation:r.expectation}))},n)}}n.OpenFgaClient=w},70588:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{StaticGenBailoutError:function(){return o},isStaticGenBailoutError:function(){return a}});let i="NEXT_STATIC_GEN_BAILOUT";class o extends Error{constructor(...r){super(...r),this.code=i}}function a(r){return"object"==typeof r&&null!==r&&"code"in r&&r.code===i}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},70948:(r,n,i)=>{"use strict";var o=i(49914);Object.defineProperty(n,"__esModule",{value:!0}),n.Configuration=void 0,n.GetDefaultRetryParams=p;let a=i(58130),s=i(68809),u=i(77005),c=i(56036),l=3,d=100,f="openfga-sdk js/0.8.1";function p(r=l,n=d){return{maxRetry:r,minWaitInMs:n}}class h{constructor(r={}){this.apiScheme="https",this.getBasePath=()=>this.apiUrl?this.apiUrl:`${this.apiScheme}://${this.apiHost}`,this.apiScheme=r.apiScheme||this.apiScheme,this.apiHost=r.apiHost,this.apiUrl=r.apiUrl;const n=r.credentials;if(n)switch(n?.method){case a.CredentialsMethod.ApiToken:this.credentials={method:n.method,config:{token:n.config.token,headerName:"Authorization",headerValuePrefix:"Bearer"}};break;case a.CredentialsMethod.ClientCredentials:this.credentials={method:a.CredentialsMethod.ClientCredentials,config:{clientId:n.config.clientId,clientSecret:n.config.clientSecret,apiAudience:n.config.apiAudience,apiTokenIssuer:n.config.apiTokenIssuer}};break;case a.CredentialsMethod.None:default:this.credentials={method:a.CredentialsMethod.None}}const i=r.baseOptions||{};i.headers=i.headers||{}
557,"object"==typeof o&&o.versions?.node&&!i.headers["User-Agent"]&&(i.headers["User-Agent"]=f),this.baseOptions=i,this.retryParams=r.retryParams,this.telemetry=new c.TelemetryConfiguration(r?.telemetry?.metrics)}isValid(){if(this.apiUrl||this.apiHost||(0,u.assertParamExists)("Configuration","apiUrl",this.apiUrl),!(0,u.isWellFormedUriString)(this.getBasePath()))throw new s.FgaValidationError(this.apiUrl?`Configuration.apiUrl (${this.apiUrl}) is not a valid URI (${this.getBasePath()})`:`Configuration.apiScheme (${this.apiScheme}) and Configuration.apiHost (${this.apiHost}) do not form a valid URI (${this.getBasePath()})`);if(this.retryParams?.maxRetry&&this.retryParams.maxRetry>15)throw new s.FgaValidationError("Configuration.retryParams.maxRetry exceeds maximum allowed limit of 15");return this.telemetry.ensureValid(),!0}}n.Configuration=h,h.sdkVersion="0.8.1"},71971:(r,n,i)=>{"use strict";function o(r,n){switch(n){case"utf-8":return c(r);case"base64":return s(r);case"base64url":return u(r);case"hex":return l(r)}}function a(r,n){switch(n){case"utf-8":return d(r);case"base64":return f(r);case"base64url":return p(r);case"hex":return y(r)}}function s(r){return btoa([...r].map(r=>String.fromCharCode(r)).join(""))}function u(r){return s(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function c(r){return new TextDecoder().decode(r)}function l(r){return[...r].map(r=>r.toString(16).padStart(2,"0")).join("")}function d(r){return new TextEncoder().encode(r)}function f(r){return new Uint8Array([...atob(r)].map(r=>r.charCodeAt(0)))}function p(r){return f(r.replace(/-/g,"+").replace(/_/g,"/"))}i.d(n,{Al:()=>a,SW:()=>o});let h=new Set("0123456789abcdefABCDEF");function y(r){let n=new Uint8Array(r.length/2);for(let i=0;i<r.length/2;++i){let o=r[2*i],a=r[2*i+1];if(!h.has(o)||!h.has(a))return n.slice(0,i);n[i]=parseInt(`${o}${a}`,16)}return n}},72023:(r,n,i)=>{"use strict";i.d(n,{x:()=>u});var o=i(79384);let a="redirectPolicy",s=["GET","HEAD"];function u(r={}){let{maxRetries:n=20,allowCrossOriginRedirects:i=!1}=r;return{name:a,async sendRequest(r,o){let a=await o(r);return c(o,a,n,i)}}}async function c(r,n,i,a,u=0){let{request:l,status:d,headers:f}=n,p=f.get("location");if(p&&(300===d||301===d&&s.includes(l.method)||302===d&&s.includes(l.method)||303===d&&"POST"===l.method||307===d)&&u<i){let s=new URL(p,l.url);if(!a){let r=new URL(l.url);if(s.origin!==r.origin)return o.v.verbose(`Skipping cross-origin redirect from ${r.origin} to ${s.origin}.`),n}l.url=s.toString(),303===d&&(l.method="GET",l.headers.delete("Content-Length"),delete l.body),l.headers.delete("Authorization");let f=await r(l);return c(r,f,i,a,u+1)}return n}},72127:(r,n)=>{"use strict";var i,o,a,s,u,c,l,d,f,p,h,y,g,m,b,w,v;Object.defineProperty(n,"__esModule",{value:!0}),n.UnprocessableContentErrorCode=n.TypeName=n.TupleOperation=n.NullValue=n.NotFoundErrorCode=n.InternalErrorCode=n.ErrorCode=n.ConsistencyPreference=n.AuthErrorCode=void 0,(p=i||(n.AuthErrorCode=i={})).NoAuthError="no_auth_error",p.AuthFailedInvalidSubject="auth_failed_invalid_subject",p.AuthFailedInvalidAudience="auth_failed_invalid_audience",p.AuthFailedInvalidIssuer="auth_failed_invalid_issuer",p.InvalidClaims="invalid_claims",p.AuthFailedInvalidBearerToken="auth_failed_invalid_bearer_token",p.BearerTokenMissing="bearer_token_missing",p.Unauthenticated="unauthenticated",p.Forbidden="forbidden",(h=o||(n.ConsistencyPreference=o={})).Unspecified="UNSPECIFIED",h.MinimizeLatency="MINIMIZE_LATENCY",h.HigherConsistency="HIGHER_CONSISTENCY",(y=a||(n.ErrorCode=a={})).NoError="no_error",y.ValidationError="validation_error",y.AuthorizationModelNotFound="authorization_model_not_found",y.AuthorizationModelResolutionTooComplex="authorization_model_resolution_too_complex",y.InvalidWriteInput="invalid_write_input",y.CannotAllowDuplicateTuplesInOneRequest="cannot_allow_duplicate_tuples_in_one_request",y.CannotAllowDuplicateTypesInOneRequest="cannot_allow_duplicate_types_in_one_request",y.CannotAllowMultipleReferencesToOneRelation="cannot_allow_multiple_references_to_one_relation",y.InvalidContinuationToken="invalid_continuation_token",y.InvalidTupleSet="invalid_tuple_set",y.InvalidCheckInput="invalid_check_input",y.InvalidExpandInput="invalid_expand_input",y.UnsupportedUserSet="unsupported_user_set",y.InvalidObjectFormat="invalid_object_format",y.WriteFailedDueToInvalidInput
557="write_failed_due_to_invalid_input",y.AuthorizationModelAssertionsNotFound="authorization_model_assertions_not_found",y.LatestAuthorizationModelNotFound="latest_authorization_model_not_found",y.TypeNotFound="type_not_found",y.RelationNotFound="relation_not_found",y.EmptyRelationDefinition="empty_relation_definition",y.InvalidUser="invalid_user",y.InvalidTuple="invalid_tuple",y.UnknownRelation="unknown_relation",y.StoreIdInvalidLength="store_id_invalid_length",y.AssertionsTooManyItems="assertions_too_many_items",y.IdTooLong="id_too_long",y.AuthorizationModelIdTooLong="authorization_model_id_too_long",y.TupleKeyValueNotSpecified="tuple_key_value_not_specified",y.TupleKeysTooManyOrTooFewItems="tuple_keys_too_many_or_too_few_items",y.PageSizeInvalid="page_size_invalid",y.ParamMissingValue="param_missing_value",y.DifferenceBaseMissingValue="difference_base_missing_value",y.SubtractBaseMissingValue="subtract_base_missing_value",y.ObjectTooLong="object_too_long",y.RelationTooLong="relation_too_long",y.TypeDefinitionsTooFewItems="type_definitions_too_few_items",y.TypeInvalidLength="type_invalid_length",y.TypeInvalidPattern="type_invalid_pattern",y.RelationsTooFewItems="relations_too_few_items",y.RelationsTooLong="relations_too_long",y.RelationsInvalidPattern="relations_invalid_pattern",y.ObjectInvalidPattern="object_invalid_pattern",y.QueryStringTypeContinuationTokenMismatch="query_string_type_continuation_token_mismatch",y.ExceededEntityLimit="exceeded_entity_limit",y.InvalidContextualTuple="invalid_contextual_tuple",y.DuplicateContextualTuple="duplicate_contextual_tuple",y.InvalidAuthorizationModel="invalid_authorization_model",y.UnsupportedSchemaVersion="unsupported_schema_version",y.Cancelled="cancelled",y.InvalidStartTime="invalid_start_time",(g=s||(n.InternalErrorCode=s={})).NoInternalError="no_internal_error",g.InternalError="internal_error",g.DeadlineExceeded="deadline_exceeded",g.AlreadyExists="already_exists",g.ResourceExhausted="resource_exhausted",g.FailedPrecondition="failed_precondition",g.Aborted="aborted",g.OutOfRange="out_of_range",g.Unavailable="unavailable",g.DataLoss="data_loss",(m=u||(n.NotFoundErrorCode=u={})).NoNotFoundError="no_not_found_error",m.UndefinedEndpoint="undefined_endpoint",m.StoreIdNotFound="store_id_not_found",m.Unimplemented="unimplemented",(c||(n.NullValue=c={})).NullValue="NULL_VALUE",(b=l||(n.TupleOperation=l={})).Write="TUPLE_OPERATION_WRITE",b.Delete="TUPLE_OPERATION_DELETE",(w=d||(n.TypeName=d={})).Unspecified="TYPE_NAME_UNSPECIFIED",w.Any="TYPE_NAME_ANY",w.Bool="TYPE_NAME_BOOL",w.String="TYPE_NAME_STRING",w.Int="TYPE_NAME_INT",w.Uint="TYPE_NAME_UINT",w.Double="TYPE_NAME_DOUBLE",w.Duration="TYPE_NAME_DURATION",w.Timestamp="TYPE_NAME_TIMESTAMP",w.Map="TYPE_NAME_MAP",w.List="TYPE_NAME_LIST",w.Ipaddress="TYPE_NAME_IPADDRESS",(v=f||(n.UnprocessableContentErrorCode=f={})).NoThrottledErrorCode="no_throttled_error_code",v.ThrottledTimeoutError="throttled_timeout_error"},72552:(r,n,i)=>{"use strict";function o(r,n){return r=Math.ceil(r),Math.floor(Math.random()*((n=Math.floor(n))-r+1))+r}function a(r,n){let i=n.retryDelayInMs*Math.pow(2,r),a=Math.min(n.maxRetryDelayInMs,i);return{retryAfterInMs:a/2+o(0,a/2)}}i.d(n,{xB:()=>l});var s=i(62876);let u=1e3,c=64e3;function l(r={}){let n=r.retryDelayInMs??u,i=r.maxRetryDelayInMs??c;return{name:"exponentialRetryStrategy",retry({retryCount:o,response:u,responseError:c}){let l=f(c),p=l&&r.ignoreSystemErrors,h=d(u),y=h&&r.ignoreHttpStatusCodes;return u&&((0,s.$)(u)||!h)||y||p?{skipStrategy:!0}:!c||l||h?a(o,{retryDelayInMs:n,maxRetryDelayInMs:i}):{errorToThrow:c}}}}function d(r){return!!(r&&void 0!==r.status&&(r.status>=500||408===r.status)&&501!==r.status&&505!==r.status)}function f(r){return!!r&&("ETIMEDOUT"===r.code||"ESOCKETTIMEDOUT"===r.code||"ECONNREFUSED"===r.code||"ECONNRESET"===r.code||"ENOENT"===r.code||"ENOTFOUND"===r.code)}},73572:(r,n,i)=>{var o={56:function(r,n,i){var o=i(181),a=o.Buffer;function s(r,n){for(var i in r)n[i]=r[i]}function u(r,n,i){return a(r,n,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=o:(s(o,n),n.Buffer=u),u.prototype=Object.create(a.prototype),s(a,u),u.from=function(r,n,i){if("number"==typeof r)throw TypeError("Argument must not be a number");return a(r,n,i)},u.alloc=function(r,n,i){if("number"!=typeof r)throw TypeError("Argument must be a number");var o=a(r);return void 0!==n?"string"==typeof i?o.fill(n,i):o.fill(n):o.fill(0),o},u.allocUnsafe=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return a(r)},u.allocUnsafeSlow=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return o.SlowBuffer(r)}},181:function(r){"use strict";r.exports=i(84890)}},a={};function s(r){var n=a[r];if(void 0!==n)return n.exports;var i=a[r]={exports:{}},u=!0;try{o[r](i,i.exports,s),u=!1}finally{u&&delete a[r]}return i.exports}s.ab="//";var u={};!function(){"use strict";var r=u,n=s(56).Buffer,i=n.isEncoding||function(r){switch((r=""+r)&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(r){var n;if(!r)return"utf8";for(;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
557case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(n)return;r=(""+r).toLowerCase(),n=!0}}function a(r){var a=o(r);if("string"!=typeof a&&(n.isEncoding===i||!i(r)))throw Error("Unknown encoding: "+r);return a||r}function c(r){var i;switch(this.encoding=a(r),this.encoding){case"utf16le":this.text=g,this.end=m,i=4;break;case"utf8":this.fillLast=p,i=4;break;case"base64":this.text=b,this.end=w,i=3;break;default:this.write=v,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(i)}function l(r){return r<=127?0:r>>5==6?2:r>>4==14?3:r>>3==30?4:r>>6==2?-1:-2}function d(r,n,i){var o=n.length-1;if(o<i)return 0;var a=l(n[o]);return a>=0?(a>0&&(r.lastNeed=a-1),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(r.lastNeed=a-2),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(2===a?a=0:r.lastNeed=a-3),a):0}function f(r,n,i){if((192&n[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&n.length>1){if((192&n[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&n.length>2&&(192&n[2])!=128)return r.lastNeed=2,"�"}}function p(r){var n=this.lastTotal-this.lastNeed,i=f(this,r,n);return void 0!==i?i:this.lastNeed<=r.length?(r.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(r.copy(this.lastChar,n,0,r.length),this.lastNeed-=r.length)}function h(r,n){var i=d(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=i;var o=r.length-(i-this.lastNeed);return r.copy(this.lastChar,0,o),r.toString("utf8",n,o)}function y(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+"�":n}function g(r,n){if((r.length-n)%2==0){var i=r.toString("utf16le",n);if(i){var o=i.charCodeAt(i.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",n,r.length-1)}function m(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,i)}return n}function b(r,n){var i=(r.length-n)%3;return 0===i?r.toString("base64",n):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",n,r.length-i))}function w(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function v(r){return r.toString(this.encoding)}function _(r){return r&&r.length?this.write(r):""}r.StringDecoder=c,c.prototype.write=function(r){var n,i;if(0===r.length)return"";if(this.lastNeed){if(void 0===(n=this.fillLast(r)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<r.length?n?n+this.text(r,i):this.text(r,i):n||""},c.prototype.end=y,c.prototype.text=h,c.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length}}(),r.exports=u},75668:(r,n,i)=>{"use strict";i.d(n,{H:()=>u,c:()=>s});var o=i(18504);let a="The operation was aborted.";function s(r,n,i){return new Promise((s,u)=>{let c,l,d=()=>u(new o.l(i?.abortErrorMsg?i?.abortErrorMsg:a)),f=()=>{i?.abortSignal&&l&&i.abortSignal.removeEventListener("abort",l)};if(l=()=>(c&&clearTimeout(c),f(),d()),i?.abortSignal&&i.abortSignal.aborted)return d();c=setTimeout(()=>{f(),s(n)},r),i?.abortSignal&&i.abortSignal.addEventListener("abort",l)})}function u(r,n){let i=r.headers.get(n);if(!i)return;let o=Number(i);if(!Number.isNaN(o))return o}},76840:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c}});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,
557configurable:!0});class o{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(r){return r}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return a?new a:new o}function u(r){return a?a.bind(r):o.bind(r)}function c(){return a?a.snapshot():function(r,...n){return r(...n)}}},77005:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isWellFormedUlidString=n.isWellFormedUriString=n.assertParamExists=void 0;let o=i(68809);n.assertParamExists=function(r,n,i){if(null==i)throw new o.FgaRequiredParamError(r,n,`Required parameter ${n} was null or undefined when calling ${r}.`)},n.isWellFormedUriString=r=>{try{let n=new URL(r);return(n.toString()===r||n.toString()===`${r}/`)&&("https:"===n.protocol||"http:"===n.protocol)}catch(r){return!1}},n.isWellFormedUlidString=r=>{let n=/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/;return!!("string"==typeof r&&r.match(n)?.length)}},77155:(r,n,i)=>{let o={NextRequest:i(31849).NextRequest,NextResponse:i(80679).R,ImageResponse:i(81043).f,userAgentFromString:i(47475).userAgentFromString,userAgent:i(47475).userAgent,URLPattern:i(4546).I,after:i(43076).after,connection:i(52109).F};r.exports=o,n.NextRequest=o.NextRequest,n.NextResponse=o.NextResponse,n.ImageResponse=o.ImageResponse,n.userAgentFromString=o.userAgentFromString,n.userAgent=o.userAgent,n.URLPattern=o.URLPattern,n.after=o.after,n.connection=o.connection},77319:(r,n,i)=>{var o="/",a=i(49914),s={638:function(r){"function"==typeof Object.create?r.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},329:function(r){"use strict";let n={};function i(r,i,o){function a(r,n,o){return"string"==typeof i?i:i(r,n,o)}o||(o=Error);class s extends o{constructor(r,n,i){super(a(r,n,i))}}s.prototype.name=o.name,s.prototype.code=r,n[r]=s}function o(r,n){if(!Array.isArray(r))return`of ${n} ${String(r)}`;{let i=r.length;return(r=r.map(r=>String(r)),i>2)?`one of ${n} ${r.slice(0,i-1).join(", ")}, or `+r[i-1]:2===i?`one of ${n} ${r[0]} or ${r[1]}`:`of ${n} ${r[0]}`}}function a(r,n,i){return r.substr(!i||i<0?0:+i,n.length)===n}function s(r,n,i){return(void 0===i||i>r.length)&&(i=r.length),r.substring(i-n.length,i)===n}function u(r,n,i){return"number"!=typeof i&&(i=0),!(i+n.length>r.length)&&-1!==r.indexOf(n,i)}i("ERR_INVALID_OPT_VALUE",function(r,n){return'The value "'+n+'" is invalid for option "'+r+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(r,n,i){let c,l;if("string"==typeof n&&a(n,"not ")?(c="must not be",n=n.replace(/^not /,"")):c="must be",s(r," argument"))l=`The ${r} ${c} ${o(n,"type")}`;else{let i=u(r,".")?"property":"argument";l=`The "${r}" ${i} ${c} ${o(n,"type")}`}return l+`. Received type ${typeof i}`},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.F=n},686:function(r,n,i){"use strict";var o=Object.keys||function(r){var n=[];for(var i in r)n.push(i);return n};r.exports=f;var s=i(276),u=i(732);i(638)(f,s);for(var c=o(u.prototype),l=0;l<c.length;l++){var d=c[l];f.prototype[d]||(f.prototype[d]=u.prototype[d])}function f(r){if(!(this instanceof f))return new f(r);s.call(this,r),u.call(this,r),this.allowHalfOpen=!0,r&&(!1===r.readable&&(this.readable=!1),!1===r.writable&&(this.writable=!1),!1===r.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||a.nextTick(h,this)}function h(r){r.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(r){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=r,this._writableState.destroyed=r)}})},512:function(r,n,i){"use strict";r.exports=a;var o=i(586);function a(r){if(!(this instanceof a))return new a(r);o.call(this,r)}i(638)(a,o),a.prototype._transform=function(r,n,i){i(null,r)}},276:function(r,n,o){"use strict";r.exports=C,C.ReadableState=P,o(434).EventEmitter;var s,u,c,l,d,f=function(r,n){return r.listeners(n).length},p=o(120),h=o(181).Buffer,y=i.g.Uint8Array||function(){};function g(r){return h.from(r)}function m(r){return h.isBuffer(r)||r instanceof y}var b=o(23);u=b&&b.debuglog?b.debuglog("stream"):function(){};var w=o(137),v=o(528),_=o(771).getHighWaterMark,E=o(329).F,S=E.ERR_INVALID_ARG_TYPE,R=E.ERR_STREAM_PUSH_AFTER_EOF,A=E.ERR_METHOD_NOT_IMPLEMENT
vendor: 11,312 bytes, line 557
557ED,k=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;o(638)(C,p);var O=v.errorOrDestroy,x=["error","close","destroy","pause","resume"];function T(r,n,i){if("function"==typeof r.prependListener)return r.prependListener(n,i);r._events&&r._events[n]?Array.isArray(r._events[n])?r._events[n].unshift(i):r._events[n]=[i,r._events[n]]:r.on(n,i)}function P(r,n,i){s=s||o(686),r=r||{},"boolean"!=typeof i&&(i=n instanceof s),this.objectMode=!!r.objectMode,i&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=_(this,r,"readableHighWaterMark",i),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(c||(c=o(319).I),this.decoder=new c(r.encoding),this.encoding=r.encoding)}function C(r){if(s=s||o(686),!(this instanceof C))return new C(r);var n=this instanceof s;this._readableState=new P(r,this,n),this.readable=!0,r&&("function"==typeof r.read&&(this._read=r.read),"function"==typeof r.destroy&&(this._destroy=r.destroy)),p.call(this)}function j(r,n,i,o,a){u("readableAddChunk",n);var s,c=r._readableState;if(null===n)c.reading=!1,L(r,c);else if(a||(s=D(c,n)),s)O(r,s);else if(c.objectMode||n&&n.length>0)if("string"==typeof n||c.objectMode||Object.getPrototypeOf(n)===h.prototype||(n=g(n)),o)c.endEmitted?O(r,new k):I(r,c,n,!0);else if(c.ended)O(r,new R);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!i?(n=c.decoder.write(n),c.objectMode||0!==n.length?I(r,c,n,!1):B(r,c)):I(r,c,n,!1)}else o||(c.reading=!1,B(r,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function I(r,n,i,o){n.flowing&&0===n.length&&!n.sync?(n.awaitDrain=0,r.emit("data",i)):(n.length+=n.objectMode?1:i.length,o?n.buffer.unshift(i):n.buffer.push(i),n.needReadable&&$(r)),B(r,n)}function D(r,n){var i;return m(n)||"string"==typeof n||void 0===n||r.objectMode||(i=new S("chunk",["string","Buffer","Uint8Array"],n)),i}Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}}),C.prototype.destroy=v.destroy,C.prototype._undestroy=v.undestroy,C.prototype._destroy=function(r,n){n(r)},C.prototype.push=function(r,n){var i,o=this._readableState;return o.objectMode?i=!0:"string"==typeof r&&((n=n||o.defaultEncoding)!==o.encoding&&(r=h.from(r,n),n=""),i=!0),j(this,r,n,!1,i)},C.prototype.unshift=function(r){return j(this,r,null,!0,!1)},C.prototype.isPaused=function(){return!1===this._readableState.flowing},C.prototype.setEncoding=function(r){c||(c=o(319).I);var n=new c(r);this._readableState.decoder=n,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,a="";null!==i;)a+=n.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var U=0x40000000;function N(r){return r>=U?r=U:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function M(r,n){if(r<=0||0===n.length&&n.ended)return 0;if(n.objectMode)return 1;if(r!=r)if(n.flowing&&n.length)return n.buffer.head.data.length;else return n.length;return(r>n.highWaterMark&&(n.highWaterMark=N(r)),r<=n.length)?r:n.ended?n.length:(n.needReadable=!0,0)}function L(r,n){if(u("onEofChunk"),!n.ended){if(n.decoder){var i=n.decoder.end();i&&i.length&&(n.buffer.push(i),n.length+=n.objectMode?1:i.length)}n.ended=!0,n.sync?$(r):(n.needReadable=!1,n.emittedReadable||(n.emittedReadable=!0,q(r)))}}function $(r){var n=r._readableState;u("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(u("emitReadable",n.flowing),n.emittedReadable=!0,a.nextTick(q,r))}function q(r){var n=r._readableState;u("emitReadable_",n.destroyed,n.length,n.ended),!n.destroyed&&(n.length||n.ended)&&(r.emit("readable"),n.emittedReadable=!1),n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark,J(r)}function B(r,n){n.readingMore||(n.readingMore=!0,a.nextTick(F,r,n))}function F(r,n){for(;!n.reading&&!n.ended&&(n.length<n.highWaterMark||n.flowing&&0===n.length);){var i=n.length;if(u("maybeReadMore read 0"),r.read(0),i===n.length)break}n.readingMore=!1}function H(r){return function(){var n=r._readableState;u("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&f(r,"data")&&(n.flowing=!0,J(r))}}function W(r){var n=r._readableState;n.readableListening=r.listenerCount("readable")>0,n.resumeScheduled&&!n.paused?n.flowing=!0:r.listenerCount("data")>0&&r.resume()}function z(r){u("readable nexttick read 0"),r.read(0)}function V(r,n){n.resumeScheduled||(n.resumeScheduled=!0,a.nextTick(K,r,n))}function K(r,n){u("resume",n.reading),n.reading||r.read(0),n.resumeScheduled=!1,r.emit("resume"),J(r),n.flowing&&!n.reading&&r.read(0)}function J(r){var n=r._readableState;for(u("flow",n.flowing);n.flowing&&null!==r.read(););}function G(r,n){var i;return 0===n.length?null:(n.objectMode?i=n.buffer.shift():!r||r>=n.length?(i=n.decoder?n.buffer.join(""):1===n.buffer.length?n.buffer.first():n.buffer.concat(n.length),n.buffer.clear()):i=n.buffer.consume(r,n.decoder),i)}function X(r){var n=r._readableState;u("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,a.nextTick(Y,n,r))}function Y(r,n){if(u("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&0===r.length&&(r.endEmitted=!0,n.readable=!1,n.emit("end"),r.autoDestroy)){var i=n._writableState;(!i||i.autoDestroy&&i.finished)&&n.destroy()}}function Q(r,n){for(var i=0,o=r.length;i<o;i++)if(r[i]===n)return i;return -1}C.prototype.read=function(r){u("read",r),r=parseInt(r,10);var n,i=this._readableState,o=r;if(0!==r&&(i.emittedReadable=!1),0===r&&i.needReadable&&((0!==i.highWaterMark?i.length>=i.highWaterMark:i.length>0)||i.ended))return u("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?X(this):$(this),null;if(0===(r=M(r,i))&&i.ended)return 0===i.length&&X(this),null;var a=i.needReadable;return u("need readable",a),(0===i.length||i.length-r<i.highWaterMark)&&u("length less than watermark",a=!0),i.ended||i.reading?u("reading or ended",a=!1):a&&(u("do read"),i.reading=!0,i.sync=!0,0===i.length&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(r=M(o,i))),null===(n=r>0?G(r,i):null)?(i.needReadable=i.length<=i.highWaterMark,r=0):(i.length-=r,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),o!==r&&i.ended&&X(this)),null!==n&&this.emit("data",n),n},C.prototype._read=function(r){O(this,new A("_read()"))},C.prototype.pipe=function(r,n){var i=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=r;break;case 1:o.pipes=[o.pipes,r];break;default:o.pipes.push(r)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,n);var s=n&&!1===n.end||r===a.stdout||r===a.stderr?w:l;function c(r,n){u("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h())}function l(){u("onend"),r.end()}o.endEmitted?a.nextTick(s):i.once("end",s),r.on("unpipe",c);var d=H(i);r.on("drain",d);var p=!1;function h(){u("cleanup"),r.removeListener("close",m),r.removeListener("finish",b),r.removeListener("drain",d),r.removeListener("error",g),r.removeListener("unpipe",c),i.removeListener("end",l),i.removeListener("end",w),i.removeListener("data",y),p=!0,o.awaitDrain&&(!r._writableState||r._writableState.needDrain)&&d()}function y(n){u("ondata");var a=r.write(n);u("dest.write",a),!1===a&&((1===o.pipesCount&&o.pipes===r||o.pipesCount>1&&-1!==Q(o.pipes,r))&&!p&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),i.pause())}function g(n){u("onerror",n),w(),r.removeListener("error",g),0===f(r,"error")&&O(r,n)}function m(){r.removeListener("finish",b),w()}function b(){u("onfinish"),r.removeListener("close",m),w()}function w(){u("unpipe"),i.unpipe(r)}return i.on("data",y),T(r,"error",g),r.once("close",m),r.once("finish",b),r.emit("pipe",i),o.flowing||(u("pipe resume"),i.resume()),r},C.prototype.unpipe=function(r){var n=this._readableState,i={hasUnpiped:!1};if(0===n.pipesCount)return this;if(1===n.pipesCount)return r&&r!==n.pipes||(r||(r=n.pipes),n.pipes=null,n.pipesCount=0,n.flowing=!1,r&&r.emit("unpipe",this,i)),this;if(!r){var o=n.pipes,a=n.pipesCount;n.pipes=null,n.pipesCount=0,n.flowing=!1;for(var s=0;s<a;s++)o[s].emit("unpipe",this,{hasUnpiped:!1});return this}var u=Q(n.pipes,r);return -1===u||(n.pipes.splice(u,1),n.pipesCount-=1,1===n.pipesCount&&(n.pipes=n.pipes[0]),r.emit("unpipe",this,i)),this},C.prototype.on=function(r,n){var i=p.prototype.on.call(this,r,n),o=this._readableState;return"data"===r?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"!==r||o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?$(this):o.reading||a.nextTick(z,this)),i},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(r,n){var i=p.prototype.removeListener.call(this,r,n);return"readable"===r&&a.nextTick(W,this),i},C.prototype.removeAllListeners=function(r){var n=p.prototype.removeAllListeners.apply(this,arguments);return("readable"===r||void 0===r)&&a.nextTick(W,this),n},C.prototype.resume=function(){var r=this._readableState;return r.flowing||(u("resume"),r.flowing=!r.readableListening,V(this,r)),r.paused=!1,this},C.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(r){var n=this,i=this._readableState,o=!1;for(var a in r.on("end",function(){if(u("wrapped end"),i.decoder&&!i.ended){var r=i.decoder.end();r&&r.length&&n.push(r)}n.push(null)}),r.on("data",function(a){u("wrapped data"),i.decoder&&(a=i.decoder.write(a)),i.objectMode&&null==a||(i.objectMode||a&&a.length)&&(n.push(a)||(o=!0,r.pause()))}),r)void 0===this[a]&&"function"==typeof r[a]&&(this[a]=function(n){return function(){return r[n].apply(r,arguments)}}(a));for(var s=0;s<x.length;s++)r.on(x[s],this.emit.bind(this,x[s]));return this._read=function(n){u("wrapped _read",n),o&&(o=!1,r.resume())},this},"function"==typeof Symbol&&(C.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=o(531)),l(this)}),Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(C.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(C.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}}),C._fromList=G,Object.defineProperty(C.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(C.from=function(r,n){return void 0===d&&(d=o(812)),d(C,r,n)})},586:function(r,n,i){"use strict";r.exports=f;
vendor: 4,067 bytes, line 557
557var o=i(329).F,a=o.ERR_METHOD_NOT_IMPLEMENTED,s=o.ERR_MULTIPLE_CALLBACK,u=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=o.ERR_TRANSFORM_WITH_LENGTH_0,l=i(686);function d(r,n){var i=this._transformState;i.transforming=!1;var o=i.writecb;if(null===o)return this.emit("error",new s);i.writechunk=null,i.writecb=null,null!=n&&this.push(n),o(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);l.call(this,r),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&("function"==typeof r.transform&&(this._transform=r.transform),"function"==typeof r.flush&&(this._flush=r.flush)),this.on("prefinish",p)}function p(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(n,i){h(r,n,i)})}function h(r,n,i){if(n)return r.emit("error",n);if(null!=i&&r.push(i),r._writableState.length)throw new c;if(r._transformState.transforming)throw new u;return r.push(null)}i(638)(f,l),f.prototype.push=function(r,n){return this._transformState.needTransform=!1,l.prototype.push.call(this,r,n)},f.prototype._transform=function(r,n,i){i(new a("_transform()"))},f.prototype._write=function(r,n,i){var o=this._transformState;if(o.writecb=i,o.writechunk=r,o.writeencoding=n,!o.transforming){var a=this._readableState;(o.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},f.prototype._read=function(r){var n=this._transformState;null===n.writechunk||n.transforming?n.needTransform=!0:(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform))},f.prototype._destroy=function(r,n){l.prototype._destroy.call(this,r,function(r){n(r)})}},732:function(r,n,o){"use strict";function s(r){var n=this;this.next=null,this.entry=null,this.finish=function(){K(n,r)}}r.exports=P,P.WritableState=T;var u,c,l={deprecate:o(774)},d=o(120),f=o(181).Buffer,p=i.g.Uint8Array||function(){};function h(r){return f.from(r)}function y(r){return f.isBuffer(r)||r instanceof p}var g=o(528),m=o(771).getHighWaterMark,b=o(329).F,w=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_MULTIPLE_CALLBACK,E=b.ERR_STREAM_CANNOT_PIPE,S=b.ERR_STREAM_DESTROYED,R=b.ERR_STREAM_NULL_VALUES,A=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,O=g.errorOrDestroy;function x(){}function T(r,n,i){u=u||o(686),r=r||{},"boolean"!=typeof i&&(i=n instanceof u),this.objectMode=!!r.objectMode,i&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=m(this,r,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===r.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(r){L(n,r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}o(638)(P,d),T.prototype.getBuffer=function(){for(var r=this.bufferedRequest,n=[];r;)n.push(r),r=r.next;return n};try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(r){}function P(r){var n=this instanceof(u=u||o(686));if(!n&&!c.call(P,this))return new P(r);this._writableState=new T(r,this,n),this.writable=!0,r&&("function"==typeof r.write&&(this._write=r.write),"function"==typeof r.writev&&(this._writev=r.writev),"function"==typeof r.destroy&&(this._destroy=r.destroy),"function"==typeof r.final&&(this._final=r.final)),d.call(this)}function C(r,n){var i=new A;O(r,i),a.nextTick(n,i)}function j(r,n,i,o){var s;
vendor: 13,482 bytes, line 557
557return null===i?s=new R:"string"==typeof i||n.objectMode||(s=new w("chunk",["string","Buffer"],i)),!s||(O(r,s),a.nextTick(o,s),!1)}function I(r,n,i){return r.objectMode||!1===r.decodeStrings||"string"!=typeof n||(n=f.from(n,i)),n}function D(r,n,i,o,a,s){if(!i){var u=I(n,o,a);o!==u&&(i=!0,a="buffer",o=u)}var c=n.objectMode?1:o.length;n.length+=c;var l=n.length<n.highWaterMark;if(l||(n.needDrain=!0),n.writing||n.corked){var d=n.lastBufferedRequest;n.lastBufferedRequest={chunk:o,encoding:a,isBuf:i,callback:s,next:null},d?d.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1}else U(r,n,!1,c,o,a,s);return l}function U(r,n,i,o,a,s,u){n.writelen=o,n.writecb=u,n.writing=!0,n.sync=!0,n.destroyed?n.onwrite(new S("write")):i?r._writev(a,n.onwrite):r._write(a,s,n.onwrite),n.sync=!1}function N(r,n,i,o,s){--n.pendingcb,i?(a.nextTick(s,o),a.nextTick(z,r,n),r._writableState.errorEmitted=!0,O(r,o)):(s(o),r._writableState.errorEmitted=!0,O(r,o),z(r,n))}function M(r){r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0}function L(r,n){var i=r._writableState,o=i.sync,s=i.writecb;if("function"!=typeof s)throw new _;if(M(i),n)N(r,i,o,n,s);else{var u=F(i)||r.destroyed;u||i.corked||i.bufferProcessing||!i.bufferedRequest||B(r,i),o?a.nextTick($,r,i,u,s):$(r,i,u,s)}}function $(r,n,i,o){i||q(r,n),n.pendingcb--,o(),z(r,n)}function q(r,n){0===n.length&&n.needDrain&&(n.needDrain=!1,r.emit("drain"))}function B(r,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(r._writev&&i&&i.next){var o=Array(n.bufferedRequestCount),a=n.corkedRequestsFree;a.entry=i;for(var u=0,c=!0;i;)o[u]=i,i.isBuf||(c=!1),i=i.next,u+=1;o.allBuffers=c,U(r,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new s(n),n.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,d=i.encoding,f=i.callback,p=n.objectMode?1:l.length;if(U(r,n,!1,p,l,d,f),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function F(r){return r.ending&&0===r.length&&null===r.bufferedRequest&&!r.finished&&!r.writing}function H(r,n){r._final(function(i){n.pendingcb--,i&&O(r,i),n.prefinished=!0,r.emit("prefinish"),z(r,n)})}function W(r,n){n.prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,a.nextTick(H,r,n)))}function z(r,n){var i=F(n);if(i&&(W(r,n),0===n.pendingcb)&&(n.finished=!0,r.emit("finish"),n.autoDestroy)){var o=r._readableState;(!o||o.autoDestroy&&o.endEmitted)&&r.destroy()}return i}function V(r,n,i){n.ending=!0,z(r,n),i&&(n.finished?a.nextTick(i):r.once("finish",i)),n.ended=!0,r.writable=!1}function K(r,n,i){var o=r.entry;for(r.entry=null;o;){var a=o.callback;n.pendingcb--,a(i),o=o.next}n.corkedRequestsFree.next=r}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(r){return!!c.call(this,r)||this===P&&r&&r._writableState instanceof T}})):c=function(r){return r instanceof this},P.prototype.pipe=function(){O(this,new E)},P.prototype.write=function(r,n,i){var o=this._writableState,a=!1,s=!o.objectMode&&y(r);return s&&!f.isBuffer(r)&&(r=h(r)),"function"==typeof n&&(i=n,n=null),s?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof i&&(i=x),o.ending?C(this,i):(s||j(this,o,r,i))&&(o.pendingcb++,a=D(this,o,s,r,n,i)),a},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,r.writing||r.corked||r.bufferProcessing||!r.bufferedRequest||B(this,r))},P.prototype.setDefaultEncoding=function(r){if("string"==typeof r&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new k(r);return this._writableState.defaultEncoding=r,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(r,n,i){i(new v("_write()"))},P.prototype._writev=null,P.prototype.end=function(r,n,i){var o=this._writableState;return"function"==typeof r?(i=r,r=null,n=null):"function"==typeof n&&(i=n,n=null),null!=r&&this.write(r,n),o.corked&&(o.corked=1,this.uncork()),o.ending||V(this,o,i),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}}),P.prototype.destroy=g.destroy,P.prototype._undestroy=g.undestroy,P.prototype._destroy=function(r,n){n(r)}},531:function(r,n,i){"use strict";function o(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var s,u=i(134),c=Symbol("lastResolve"),l=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),y=Symbol("stream");function g(r,n){return{value:r,done:n}}function m(r){var n=r[c];if(null!==n){var i=r[y].read();null!==i&&(r[p]=null,r[c]=null,r[l]=null,n(g(i,!1)))}}function b(r){a.nextTick(m,r)}function w(r,n){return function(i,o){r.then(function(){n[f]?i(g(void 0,!0)):n[h](i,o)},o)}}var v=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((o(s={get stream(){return this[y]},next:function(){var r,n=this,i=this[d];if(null!==i)return Promise.reject(i);if(this[f])return Promise.resolve(g(void 0,!0));if(this[y].destroyed)return new Promise(function(r,i){a.nextTick(function(){n[d]?i(n[d]):r(g(void 0,!0))})});var o=this[p];if(o)r=new Promise(w(o,this));else{var s=this[y].read();if(null!==s)return Promise.resolve(g(s,!1));r=new Promise(this[h])}return this[p]=r,r}},Symbol.asyncIterator,function(){return this}),o(s,"return",function(){var r=this;return new Promise(function(n,i){r[y].destroy(null,function(r){r?i(r):n(g(void 0,!0))})})}),s),v);r.exports=function(r){var n,i=Object.create(_,(o(n={},y,{value:r,writable:!0}),o(n,c,{value:null,writable:!0}),o(n,l,{value:null,writable:!0}),o(n,d,{value:null,writable:!0}),o(n,f,{value:r._readableState.endEmitted,writable:!0}),o(n,h,{value:function(r,n){var o=i[y].read();o?(i[p]=null,i[c]=null,i[l]=null,r(g(o,!1))):(i[c]=r,i[l]=n)},writable:!0}),n));return i[p]=null,u(r,function(r){if(r&&"ERR_STREAM_PREMATURE_CLOSE"!==r.code){var n=i[l];null!==n&&(i[p]=null,i[c]=null,i[l]=null,n(r)),i[d]=r;return}var o=i[c];null!==o&&(i[p]=null,i[c]=null,i[l]=null,o(g(void 0,!0))),i[f]=!0}),r.on("readable",b.bind(null,i)),i}},137:function(r,n,i){"use strict";function o(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function a(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?o(Object(i),!0).forEach(function(n){s(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function s(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}function u(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function c(r,n){for(var i=0;i<n.length;i++){var o=n[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function l(r,n,i){return n&&c(r.prototype,n),i&&c(r,i),r}var d=i(181).Buffer,f=i(23).inspect,p=f&&f.custom||"inspect";function h(r,n,i){d.prototype.copy.call(r,n,i)}r.exports=function(){function r(){u(this,r),this.head=null,this.tail=null,this.length=0}return l(r,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(0!==this.length){var r=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(0===this.length)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(0===this.length)return d.alloc(0);for(var n=d.allocUnsafe(r>>>0),i=this.head,o=0;i;)h(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):i=r===this.head.data.length?this.shift():n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var a=n.data,s=r>a.length?a.length:r;if(s===a.length?o+=a:o+=a.slice(0,r),0==(r-=s)){s===a.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(s));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=d.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var a=i.data,s=r>a.length?a.length:r;if(a.copy(n,n.length-r,0,s),0==(r-=s)){s===a.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(s));break}++o}return this.length-=o,n}},{key:p,value:function(r,n){return f(this,a({},n,{depth:0,customInspect:!1}))}}]),r}()},528:function(r){"use strict";function n(r,n){o(r,n),i(r)}function i(r){r._writableState&&!r._writableState.emitClose||(!r._readableState||r._readableState.emitClose)&&r.emit("close")}function o(r,n){r.emit("error",n)}r.exports={destroy:function(r,s){var u=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?s?s(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(o,this,r)):a.nextTick(o,this,r)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(r){!s&&r?u._writableState?u._writableState.errorEmitted?a.nextTick(i,u):(u._writableState.errorEmitted=!0,a.nextTick(n,u,r)):a.nextTick(n,u,r):s?(a.nextTick(i,u),s(r)):a.nextTick(i,u)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(r,n){var i=r._readableState,o=r._writableState;i&&i.autoDestroy||o&&o.autoDestroy?r.destroy(n):r.emit("error",n)}}},134:function(r,n,i){"use strict";var o=i(329).F.ERR_STREAM_PREMATURE_CLOSE;function a(r){var n=!1;return function(){if(!n){n=!0;for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];r.apply(this,o)}}}function s(){}function u(r){return r.setHeader&&"function"==typeof r.abort}function c(r,n,i){if("function"==typeof n)return c(r,null,n);n||(n={}),i=a(i||s);var l=n.readable||!1!==n.readable&&r.readable,d=n.writable||!1!==n.writable&&r.writable,f=function(){r.writable||h()},p=r._writableState&&r._writableState.finished,h=function(){d=!1,p=!0,l||i.call(r)},y=r._readableState&&r._readableState.endEmitted,g=function(){l=!1,y=!0,d||i.call(r)},m=function(n){i.call(r,n)},b=function(){var n;return l&&!y?(r._readableState&&r._readableState.ended||(n=new o),i.call(r,n)):d&&!p?(r._writableState&&r._writableState.ended||(n=new o),i.call(r,n)):void 0},w=function(){r.req.on("finish",h)};return u(r)?(r.on("complete",h),r.on("abort",b),r.req?w():r.on("request",w)):d&&!r._writableState&&(r.on("end",f),r.on("close",f)),r.on("end",g),r.on("finish",h),!1!==n.error&&r.on("error",m),r.on("close",b),function(){r.removeListener("complete",h),r.removeListener("abort",b),r.removeListener("request",w),r.req&&r.req.removeListener("finish",h),r.removeListener("end",f),r.removeListener("close",f),r.removeListener("finish",h),r.removeListener("end",g),r.removeListener("error",m),r.removeListener("close",b)}}r.exports=c},812:function(r,n,i){"use strict";function o(r,n,i,o,a,s,u){try{var c=r[s](u),l=c.value}catch(r){i(r);return}c.done?n(l):Promise.resolve(l).then(o,a)}function a(r){return function(){var n=this,i=arguments;return new Promise(function(a,s){var u=r.apply(n,i);function c(r){o(u,a,s,c,l,"next",r)}function l(r){o(u,a,s,c,l,"throw",r)}c(void 0)})}}function s(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.push.apply(i,o)}return i}function u(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
557n%2?s(Object(i),!0).forEach(function(n){c(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function c(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var l=i(329).F.ERR_INVALID_ARG_TYPE;r.exports=function(r,n,i){if(n&&"function"==typeof n.next)o=n;else if(n&&n[Symbol.asyncIterator])o=n[Symbol.asyncIterator]();else if(n&&n[Symbol.iterator])o=n[Symbol.iterator]();else throw new l("iterable",["Iterable"],n);var o,s=new r(u({objectMode:!0},i)),c=!1;function d(){return f.apply(this,arguments)}function f(){return(f=a(function*(){try{var r=yield o.next(),n=r.value;r.done?s.push(null):s.push((yield n))?d():c=!1}catch(r){s.destroy(r)}})).apply(this,arguments)}return s._read=function(){c||(c=!0,d())},s}},694:function(r,n,i){"use strict";function o(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var a,s=i(329).F,u=s.ERR_MISSING_ARGS,c=s.ERR_STREAM_DESTROYED;function l(r){if(r)throw r}function d(r){return r.setHeader&&"function"==typeof r.abort}function f(r,n,s,u){u=o(u);var l=!1;r.on("close",function(){l=!0}),void 0===a&&(a=i(134)),a(r,{readable:n,writable:s},function(r){if(r)return u(r);l=!0,u()});var f=!1;return function(n){if(!l&&!f){if(f=!0,d(r))return r.abort();if("function"==typeof r.destroy)return r.destroy();u(n||new c("pipe"))}}}function p(r){r()}function h(r,n){return r.pipe(n)}function y(r){return r.length&&"function"==typeof r[r.length-1]?r.pop():l}r.exports=function(){for(var r,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=y(i);if(Array.isArray(i[0])&&(i=i[0]),i.length<2)throw new u("streams");var s=i.map(function(n,o){var u=o<i.length-1;return f(n,u,o>0,function(n){r||(r=n),n&&s.forEach(p),u||(s.forEach(p),a(r))})});return i.reduce(h)}},771:function(r,n,i){"use strict";var o=i(329).F.ERR_INVALID_OPT_VALUE;function a(r,n,i){return null!=r.highWaterMark?r.highWaterMark:n?r[i]:null}r.exports={getHighWaterMark:function(r,n,i,s){var u=a(n,s,i);if(null!=u){if(!(isFinite(u)&&Math.floor(u)===u)||u<0)throw new o(s?i:"highWaterMark",u);return Math.floor(u)}return r.objectMode?16:16384}}},120:function(r,n,i){r.exports=i(203)},56:function(r,n,i){var o=i(181),a=o.Buffer;function s(r,n){for(var i in r)n[i]=r[i]}function u(r,n,i){return a(r,n,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=o:(s(o,n),n.Buffer=u),u.prototype=Object.create(a.prototype),s(a,u),u.from=function(r,n,i){if("number"==typeof r)throw TypeError("Argument must not be a number");return a(r,n,i)},u.alloc=function(r,n,i){if("number"!=typeof r)throw TypeError("Argument must be a number");var o=a(r);return void 0!==n?"string"==typeof i?o.fill(n,i):o.fill(n):o.fill(0),o},u.allocUnsafe=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return a(r)},u.allocUnsafeSlow=function(r){if("number"!=typeof r)throw TypeError("Argument must be a number");return o.SlowBuffer(r)}},854:function(r,n,i){r.exports=a;var o=i(434).EventEmitter;function a(){o.call(this)}i(638)(a,o),a.Readable=i(276),a.Writable=i(732),a.Duplex=i(686),a.Transform=i(586),a.PassThrough=i(512),a.finished=i(134),a.pipeline=i(694),a.Stream=a,a.prototype.pipe=function(r,n){var i=this;function a(n){r.writable&&!1===r.write(n)&&i.pause&&i.pause()}function s(){i.readable&&i.resume&&i.resume()}i.on("data",a),r.on("drain",s),r._isStdio||n&&!1===n.end||(i.on("end",c),i.on("close",l));var u=!1;function c(){u||(u=!0,r.end())}function l(){u||(u=!0,"function"==typeof r.destroy&&r.destroy())}function d(r){if(f(),0===o.listenerCount(this,"error"))throw r}function f(){i.removeListener("data",a),r.removeListener("drain",s),i.removeListener("end",c),i.removeListener("close",l),i.removeListener("error",d),r.removeListener("error",d),i.removeListener("end",f),i.removeListener("close",f),r.removeListener("close",f)}return i.on("error",d),r.on("error",d),i.on("end",f),i.on("close",f),r.on("close",f),r.emit("pipe",i),r}},319:function(r,n,i){"use strict";var o=i(56).Buffer,a=o.isEncoding||function(r){switch((r=""+r)&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(r){var n;if(!r)return"utf8";for(;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
557case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(n)return;r=(""+r).toLowerCase(),n=!0}}function u(r){var n=s(r);if("string"!=typeof n&&(o.isEncoding===a||!a(r)))throw Error("Unknown encoding: "+r);return n||r}function c(r){var n;switch(this.encoding=u(r),this.encoding){case"utf16le":this.text=g,this.end=m,n=4;break;case"utf8":this.fillLast=p,n=4;break;case"base64":this.text=b,this.end=w,n=3;break;default:this.write=v,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(n)}function l(r){return r<=127?0:r>>5==6?2:r>>4==14?3:r>>3==30?4:r>>6==2?-1:-2}function d(r,n,i){var o=n.length-1;if(o<i)return 0;var a=l(n[o]);return a>=0?(a>0&&(r.lastNeed=a-1),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(r.lastNeed=a-2),a):--o<i||-2===a?0:(a=l(n[o]))>=0?(a>0&&(2===a?a=0:r.lastNeed=a-3),a):0}function f(r,n,i){if((192&n[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&n.length>1){if((192&n[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&n.length>2&&(192&n[2])!=128)return r.lastNeed=2,"�"}}function p(r){var n=this.lastTotal-this.lastNeed,i=f(this,r,n);return void 0!==i?i:this.lastNeed<=r.length?(r.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(r.copy(this.lastChar,n,0,r.length),this.lastNeed-=r.length)}function h(r,n){var i=d(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=i;var o=r.length-(i-this.lastNeed);return r.copy(this.lastChar,0,o),r.toString("utf8",n,o)}function y(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+"�":n}function g(r,n){if((r.length-n)%2==0){var i=r.toString("utf16le",n);if(i){var o=i.charCodeAt(i.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",n,r.length-1)}function m(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,i)}return n}function b(r,n){var i=(r.length-n)%3;return 0===i?r.toString("base64",n):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",n,r.length-i))}function w(r){var n=r&&r.length?this.write(r):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function v(r){return r.toString(this.encoding)}function _(r){return r&&r.length?this.write(r):""}n.I=c,c.prototype.write=function(r){var n,i;if(0===r.length)return"";if(this.lastNeed){if(void 0===(n=this.fillLast(r)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<r.length?n?n+this.text(r,i):this.text(r,i):n||""},c.prototype.end=y,c.prototype.text=h,c.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length}},774:function(r){function n(r){try{if(!i.g.localStorage)return!1}catch(r){return!1}var n=i.g.localStorage[r];return null!=n&&"true"===String(n).toLowerCase()}r.exports=function r(r,i){if(n("noDeprecation"))return r;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw Error(i);n("traceDeprecation")?console.trace(i):console.warn(i),o=!0}return r.apply(this,arguments)}}},181:function(r){"use strict";r.exports=i(84890)},434:function(r){"use strict";r.exports=i(27146)},203:function(r){"use strict";r.exports=i(27146).EventEmitter},23:function(r){"use strict";r.exports=i(81664)}},u={};function c(r){var n=u[r];if(void 0!==n)return n.exports;var i=u[r]={exports:{}},o=!0;try{s[r](i,i.exports,c),o=!1}finally{o&&delete u[r]}return i.exports}c.ab=o+"/",r.exports=c(854)},79384:(r,n,i)=>{"use strict";i.d(n,{v:()=>o});let o=(0,i(33325).KV)("ts-http-runtime")},79782:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"InvariantError",{enumerable:!0,get:function(){return i}});
557class i extends Error{constructor(r,n){super(`Invariant: ${r.endsWith(".")?r:r+"."} This is a bug in Next.js.`,n),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1179",enumerable:!1,configurable:!0}),this.name="InvariantError"}}},80679:(r,n,i)=>{"use strict";var o;o={value:!0},Object.defineProperty(n,"R",{enumerable:!0,get:function(){return h}});let a=i(95019),s=i(55917),u=i(84165),c=i(6986),l=i(95019),d=Symbol("internal response"),f=new Set([301,302,303,307,308]);function p(r,n){var i;if(null==r||null==(i=r.request)?void 0:i.headers){if(!(r.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let i=[];for(let[o,a]of r.request.headers)n.set("x-middleware-request-"+o,a),i.push(o);n.set("x-middleware-override-headers",i.join(","))}}class h extends Response{constructor(r,n={}){super(r,n);const i=this.headers,o=new Proxy(new l.ResponseCookies(i),{get(r,o,s){switch(o){case"delete":case"set":return(...s)=>{let u=Reflect.apply(r[o],r,s),c=new Headers(i);return u instanceof l.ResponseCookies&&i.set("x-middleware-set-cookie",u.getAll().map(r=>(0,a.stringifyCookie)(r)).join(",")),p(n,c),u};default:return c.ReflectAdapter.get(r,o,s)}}});this[d]={cookies:o,url:n.url?new s.NextURL(n.url,{headers:(0,u.toNodeOutgoingHttpHeaders)(i),nextConfig:n.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[d].cookies}static json(r,n){let i=Response.json(r,n);return new h(i.body,i)}static redirect(r,n){let i="number"==typeof n?n:(null==n?void 0:n.status)??307;if(!f.has(i))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let o="object"==typeof n?n:{},a=new Headers(null==o?void 0:o.headers);return a.set("Location",(0,u.validateURL)(r)),new h(null,{...o,headers:a,status:i})}static rewrite(r,n){let i=new Headers(null==n?void 0:n.headers);return i.set("x-middleware-rewrite",(0,u.validateURL)(r)),p(n,i),new h(null,{...n,headers:i})}static next(r){let n=new Headers(null==r?void 0:r.headers);return n.set("x-middleware-next","1"),p(r,n),new h(null,{...r,headers:n})}}},80700:(r,n,i)=>{"use strict";function o(){return"x-ms-useragent"}function a(r){for(let n of[{name:"Firefox",regex:/Firefox\/([\d.]+)/},{name:"Safari",regex:/Version\/([\d.]+).*Safari/}]){let i=r.match(n.regex);if(i)return{brand:n.name,version:i[1]}}}function s(r){for(let n of["Google Chrome","Microsoft Edge","Opera","Brave","Chromium"]){let i=r.find(r=>r.brand===n);if(i)return i}}async function u(r){let n=globalThis.navigator,i="unknown";if(n?.userAgentData){let o=await n.userAgentData.getHighEntropyValues(["architecture","platformVersion"]);i=`${o.platform} ${o.platformVersion}; ${o.architecture}`;let a=s(n.userAgentData.brands);a&&r.set(a.brand,`${a.version} (${i})`)}else if(n?.platform){i=n.platform;let o=a(n.userAgent);o&&r.set(o.brand,`${o.version} (${i})`)}else"string"==typeof EdgeRuntime&&r.set("EdgeRuntime",`${EdgeRuntime} (${i})`)}i.d(n,{z:()=>h});var c=i(28603);function l(r){let n=[];for(let[i,o]of r){let r=o?`${i}/${o}`:i;n.push(r)}return n.join(" ")}async function d(r){let n=new Map;n.set("ts-http-runtime",c.M),await u(n);let i=l(n);return r?`${r} ${i}`:i}let f=o(),p="userAgentPolicy";function h(r={}){let n=d(r.userAgentPrefix);return{name:p,sendRequest:async(r,i)=>(r.headers.has(f)||r.headers.set(f,await n),i(r))}}},81043:(r,n)=>{"use strict";var i;function o(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}i={value:!0},Object.defineProperty(n,"f",{enumerable:!0,get:function(){return o}})},81664:(r,n,i)=>{var o="/",a=i(84890).Buffer,s=i(49914),u={7492:function(r){r.exp
557orts=function(r,i,o){if(r.filter)return r.filter(i,o);if(null==r||"function"!=typeof i)throw TypeError();for(var a=[],s=0;s<r.length;s++)if(n.call(r,s)){var u=r[s];i.call(o,u,s,r)&&a.push(u)}return a};var n=Object.prototype.hasOwnProperty},1648:function(r,n,i){"use strict";var o=i(7797),a=i(4834),s=i(8772);r.exports=i(9095)||o.call(s,a)},4757:function(r,n,i){"use strict";var o=i(7797),a=i(4834),s=i(1648);r.exports=function(){return s(o,a,arguments)}},4834:function(r){"use strict";r.exports=Function.prototype.apply},8772:function(r){"use strict";r.exports=Function.prototype.call},2462:function(r,n,i){"use strict";var o=i(7797),a=i(4785),s=i(8772),u=i(1648);r.exports=function(r){if(r.length<1||"function"!=typeof r[0])throw new a("a function is required");return u(o,s,r)}},9095:function(r){"use strict";r.exports="u">typeof Reflect&&Reflect&&Reflect.apply},2982:function(r,n,i){"use strict";var o=i(1893),a=i(5494),s=a(o("String.prototype.indexOf"));r.exports=function(r,n){var i=o(r,!!n);return"function"==typeof i&&s(r,".prototype.")>-1?a(i):i}},5494:function(r,n,i){"use strict";var o=i(3798),a=i(871),s=i(2462),u=i(4757);r.exports=function(r){var n=s(arguments),i=r.length-(arguments.length-1);return o(n,1+(i>0?i:0),!0)},a?a(r.exports,"apply",{value:u}):r.exports.apply=u},2071:function(r,n,i){"use strict";var o=i(871),a=i(9546),s=i(4785),u=i(8322);r.exports=function(r,n,i){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new s("`obj` must be an object or a function`");if("string"!=typeof n&&"symbol"!=typeof n)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],p=!!u&&u(r,n);if(o)o(r,n,{configurable:null===d&&p?p.configurable:!d,enumerable:null===c&&p?p.enumerable:!c,value:i,writable:null===l&&p?p.writable:!l});else if(!f&&(c||l||d))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else r[n]=i}},3859:function(r,n,i){"use strict";var o,a=i(2462),s=i(8322);try{o=[].__proto__===Array.prototype}catch(r){if(!r||"object"!=typeof r||!("code"in r)||"ERR_PROTO_ACCESS"!==r.code)throw r}var u=!!o&&s&&s(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;r.exports=u&&"function"==typeof u.get?a([u.get]):"function"==typeof l&&function(r){return l(null==r?r:c(r))}},871:function(r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(r){n=!1}r.exports=n},1247:function(r){"use strict";r.exports=EvalError},6621:function(r){"use strict";r.exports=Error},6136:function(r){"use strict";r.exports=RangeError},252:function(r){"use strict";r.exports=ReferenceError},9546:function(r){"use strict";r.exports=SyntaxError},4785:function(r){"use strict";r.exports=TypeError},1223:function(r){"use strict";r.exports=URIError},8300:function(r){"use strict";r.exports=Object},4680:function(r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;r.exports=function(r,o,a){if("[object Function]"!==i.call(o))throw TypeError("iterator must be a function");var s=r.length;if(s===+s)for(var u=0;u<s;u++)o.call(a,r[u],u,r);else for(var c in r)n.call(r,c)&&o.call(a,r[c],c,r)}},6555:function(r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a="[object Function]",s=function(r,n){for(var i=[],o=0;o<r.length;o+=1)i[o]=r[o];for(var a=0;a<n.length;a+=1)i[a+r.length]=n[a];return i},u=function(r,n){for(var i=[],o=n||0,a=0;o<r.length;o+=1,a+=1)i[a]=r[o];return i},c=function(r,n){for(var i="",o=0;o<r.length;o+=1)i+=r[o],o+1<r.length&&(i+=n);return i};r.exports=function(r){var l,d=this;if("function"!=typeof d||i.apply(d)!==a)throw TypeError(n+d);
557for(var f=u(arguments,1),p=function(){if(this instanceof l){var n=d.apply(this,s(f,arguments));return Object(n)===n?n:this}return d.apply(r,s(f,arguments))},h=o(0,d.length-f.length),y=[],g=0;g<h;g++)y[g]="$"+g;if(l=Function("binder","return function ("+c(y,",")+"){ return binder.apply(this,arguments); }")(p),d.prototype){var m=function(){};m.prototype=d.prototype,l.prototype=new m,m.prototype=null}return l}},7797:function(r,n,i){"use strict";var o=i(6555);r.exports=Function.prototype.bind||o},1893:function(r,n,i){"use strict";var o,a=i(8300),s=i(6621),u=i(1247),c=i(6136),l=i(252),d=i(9546),f=i(4785),p=i(1223),h=i(4197),y=i(4455),g=i(1295),m=i(6949),b=i(2943),w=i(1721),v=i(3536),_=Function,E=function(r){try{return _('"use strict"; return ('+r+").constructor;")()}catch(r){}},S=i(8322),R=i(871),A=function(){throw new f},k=S?function(){try{return arguments.callee,A}catch(r){try{return S(arguments,"callee").get}catch(r){return A}}}():A,O=i(9131)(),x=i(9717),T=i(45),P=i(7767),C=i(4834),j=i(8772),I={},D="u">typeof Uint8Array&&x?x(Uint8Array):o,U={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"u"<typeof Atomics?o:Atomics,"%BigInt%":"u"<typeof BigInt?o:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":u,"%Float16Array%":"u"<typeof Float16Array?o:Float16Array,"%Float32Array%":"u"<typeof Float32Array?o:Float32Array,"%Float64Array%":"u"<typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":I,"%Int8Array%":"u"<typeof Int8Array?o:Int8Array,"%Int16Array%":"u"<typeof Int16Array?o:Int16Array,"%Int32Array%":"u"<typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
557IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"u"<typeof Map?o:Map,"%MapIteratorPrototype%":"u">typeof Map&&O&&x?x((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?o:Promise,"%Proxy%":"u"<typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?o:Set,"%SetIteratorPrototype%":"u">typeof Set&&O&&x?x((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):o,"%Symbol%":O?Symbol:o,"%SyntaxError%":d,"%ThrowTypeError%":k,"%TypedArray%":D,"%TypeError%":f,"%Uint8Array%":"u"<typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?o:Uint32Array,"%URIError%":p,"%WeakMap%":"u"<typeof WeakMap?o:WeakMap,"%WeakRef%":"u"<typeof WeakRef?o:WeakRef,"%WeakSet%":"u"<typeof WeakSet?o:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":C,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":T,"%Math.abs%":h,"%Math.floor%":y,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":w,"%Math.sign%":v,"%Reflect.getPrototypeOf%":P};if(x)try{null.error}catch(r){var N=x(x(r));U["%Error.prototype%"]=N}var M=function r(n){var i;if("%AsyncFunction%"===n)i=E("async function () {}");else if("%GeneratorFunction%"===n)i=E("function* () {}");else if("%AsyncGeneratorFunction%"===n)i=E("async function* () {}");else if("%AsyncGenerator%"===n){var o=r("%AsyncGeneratorFunction%");o&&(i=o.prototype)}else if("%AsyncIteratorPrototype%"===n){var a=r("%AsyncGenerator%");a&&x&&(i=x(a.prototype))}return U[n]=i,i},L={__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"]},$=i(7797),q=i(3383),B=$.call(j,Array.prototype.concat),F=$.call(C,Array.prototype.splice),H=$.call(j,Str
557ing.prototype.replace),W=$.call(j,String.prototype.slice),z=$.call(j,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,J=function(r){var n=W(r,0,1),i=W(r,-1);if("%"===n&&"%"!==i)throw new d("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==n)throw new d("invalid intrinsic syntax, expected opening `%`");var o=[];return H(r,V,function(r,n,i,a){o[o.length]=i?H(a,K,"$1"):n||r}),o},G=function(r,n){var i,o=r;if(q(L,o)&&(o="%"+(i=L[o])[0]+"%"),q(U,o)){var a=U[o];if(a===I&&(a=M(o)),void 0===a&&!n)throw new f("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:a}}throw new d("intrinsic "+r+" does not exist!")};r.exports=function(r,n){if("string"!=typeof r||0===r.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new f('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,r))throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=J(r),o=i.length>0?i[0]:"",a=G("%"+o+"%",n),s=a.name,u=a.value,c=!1,l=a.alias;l&&(o=l[0],F(i,B([0,1],l)));for(var p=1,h=!0;p<i.length;p+=1){var y=i[p],g=W(y,0,1),m=W(y,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new d("property names with quotes must have matching quotes");if("constructor"!==y&&h||(c=!0),o+="."+y,q(U,s="%"+o+"%"))u=U[s];else if(null!=u){if(!(y in u)){if(!n)throw new f("base intrinsic for "+r+" exists, but the property is not available.");return}if(S&&p+1>=i.length){var b=S(u,y);u=(h=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:u[y]}else h=q(u,y),u=u[y];h&&!c&&(U[s]=u)}}return u}},45:function(r,n,i){"use strict";r.exports=i(8300).getPrototypeOf||null},7767:function(r){"use strict";r.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(r,n,i){"use strict";var o=i(7767),a=i(45),s=i(3859);r.exports=o?function(r){return o(r)}:a?function(r){if(!r||"object"!=typeof r&&"function"!=typeof r)throw TypeError("getProto: not an object");return a(r)}:s?function(r){return s(r)}:null},8422:function(r){"use strict";r.exports=Object.getOwnPropertyDescriptor},8322:function(r,n,i){"use strict";var o=i(8422);if(o)try{o([],"length")}catch(r){o=null}r.exports=o},8122:function(r,n,i){"use strict";var o=i(871),a=function(){return!!o};a.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(r){return!0}},r.exports=a},8564:function(r,n,i){"use strict";var o="u">typeof Symbol&&Symbol,a=i(9094);r.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&a()}},9094:function(r){"use strict";r.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var r={},n=Symbol("test"),i=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;var o=42;for(n in r[n]=o,r)return!1;if("function"==typeof Object.keys&&0!==Object.keys(r).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(r).length)return!1;var a=Object.getOwnPropertySymbols(r);if(1!==a.length||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==o||!0!==s.enumerable)return!1}return!0}},9131:function(r,n,i){"use strict";var o="u">typeof Symbol&&Symbol,a=i(6313);r.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&a()}},6313:function(r){"use strict";r.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var r={},n=Symbol("test"),i=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;var o=42;for(var a in r[n]=o,r)return!1;if("function"==typeof Object.keys&&0!==Object.keys(r).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(r).length)return!1;var s=Object.getOwnPropertySymbols(r);if(1!==s.length||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var u=Object.getOwnPropertyDescriptor(r,n);
557if(u.value!==o||!0!==u.enumerable)return!1}return!0}},3383:function(r,n,i){"use strict";var o=Function.prototype.call,a=Object.prototype.hasOwnProperty;r.exports=i(7797).call(o,a)},1638:function(r){"function"==typeof Object.create?r.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},6960:function(r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.prototype.toString,o=function(r){return(!n||!r||"object"!=typeof r||!(Symbol.toStringTag in r))&&"[object Arguments]"===i.call(r)},a=function(r){return!!o(r)||null!==r&&"object"==typeof r&&"number"==typeof r.length&&r.length>=0&&"[object Array]"!==i.call(r)&&"[object Function]"===i.call(r.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,r.exports=s?o:a},8979:function(r){"use strict";var n=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.getPrototypeOf,u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(r){}}(),c=u?s(u):{};r.exports=function(r){return"function"==typeof r&&(!!o.test(i.call(r))||(a?s(r)===c:"[object GeneratorFunction]"===n.call(r)))}},9572:function(r,n,o){"use strict";var a=o(4680),s=o(3147),u=o(2982),c=u("Object.prototype.toString"),l=o(8564)()&&"symbol"==typeof Symbol.toStringTag,d=s(),f=u("Array.prototype.indexOf",!0)||function(r,n){for(var i=0;i<r.length;i+=1)if(r[i]===n)return i;return -1},p=u("String.prototype.slice"),h={},y=o(9745),g=Object.getPrototypeOf;l&&y&&g&&a(d,function(r){var n=new i.g[r];if(!(Symbol.toStringTag in n))throw EvalError("this engine has support for Symbol.toStringTag, but "+r+" does not have the property! Please report this.");var o=g(n),a=y(o,Symbol.toStringTag);a||(a=y(g(o),Symbol.toStringTag)),h[r]=a.get});var m=function(r){var n=!1;return a(h,function(i,o){if(!n)try{n=i.call(r)===o}catch(r){}}),n};r.exports=function(r){return!!r&&"object"==typeof r&&(l?!!y&&m(r):f(d,p(c(r),8,-1))>-1)}},4197:function(r){"use strict";r.exports=Math.abs},4455:function(r){"use strict";r.exports=Math.floor},6128:function(r){"use strict";r.exports=Number.isNaN||function(r){return r!=r}},1295:function(r){"use strict";r.exports=Math.max},6949:function(r){"use strict";r.exports=Math.min},2943:function(r){"use strict";r.exports=Math.pow},1721:function(r){"use strict";r.exports=Math.round},3536:function(r,n,i){"use strict";var o=i(6128);r.exports=function(r){return o(r)||0===r?r:r<0?-1:1}},3798:function(r,n,i){"use strict";var o=i(1893),a=i(2071),s=i(8122)(),u=i(8322),c=i(4785),l=o("%Math.floor%");r.exports=function(r,n){if("function"!=typeof r)throw new c("`fn` is not a function");if("number"!=typeof n||n<0||n>0xffffffff||l(n)!==n)throw new c("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],o=!0,d=!0;if("length"in r&&u){var f=u(r,"length");f&&!f.configurable&&(o=!1),f&&!f.writable&&(d=!1)}return(o||d||!i)&&(s?a(r,"length",n,!0,!0):a(r,"length",n)),r}},3614:function(r){r.exports=function(r){return r instanceof a}},7551:function(r,n,i){"use strict";var o=i(6960),a=i(8979),s=i(3051),u=i(9572);function c(r){return r.call.bind(r)}var l="u">typeof BigInt,d="u">typeof Symbol,f=c(Object.prototype.toString),p=c(Number.prototype.valueOf),h=c(String.prototype.valueOf),y=c(Boolean.prototype.valueOf);if(l)var g=c(BigInt.prototype.valueOf);if(d)var m=c(Symbol.prototype.valueOf);function b(r,n){if("object"!=typeof r)return!1;try{return n(r),!0}catch(r){return!1}}function w(r){return"[object Map]"===f(r)}function v(r){return"[object Set]"===f(r)}function _(r){return"[object WeakMap]"===f(r)}function E(r){return"[object WeakSet]"===f(r)}function S(r){return"[object ArrayBuffer]"===f(r)}function R(r){return!("u"<typeof ArrayBuffer)&&(S.working?S(r):r instanceof ArrayBuffer)}function A(r){return"[object DataView]"===f(r)}function k(r){return!("u"<typeof DataView)&&(A.working?A(r):r instanceof DataView)}n.isArgumentsObject=o,n.isGeneratorFunction=a,n.isTypedArray=u,n.isPromise=function(r){return"u">typeof Promise&&r instanceof Promise||null!==r&&"object"==typeof r&&"function"==typeof r.then&&"function"==typeof r.catch},n.isArrayBufferView=function(r){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(r):u(r)||k(r)},n.isUint8Array=function(r){return"Uint8Array"===s(r)},n.isUint8ClampedArray=function(r){return"Uint8ClampedArray"===s(r)},n.isUint16Array=function(r){return"Uint16Array"===s(r)},n.isUint32Array=function(r){return"Uint32Array"===s(r)},n.isInt8Array=function(r){return"Int8Array"===s(r)},n.isInt16Array=function(r){return"Int16Array"===s(r)},n.isInt32Array=function(r){return"Int32Array"===s(r)},n.isFloat32Array=function(r){return"Float32Array"===s(r)},n.isFloat64Array=function(r){return"Float64Array"===s(r)},n.isBigInt64Array=function(r){return"BigInt64Array"===s(r)},n.isBigUint64Array=function(r){return"BigUint64Array"===s(r)},w.working="u">typeof Map&&w(new Map),n.isMap=function(r){return!("u"<typeof Map)&&(w.working?w(r):r instanceof Map)}
557,v.working="u">typeof Set&&v(new Set),n.isSet=function(r){return!("u"<typeof Set)&&(v.working?v(r):r instanceof Set)},_.working="u">typeof WeakMap&&_(new WeakMap),n.isWeakMap=function(r){return!("u"<typeof WeakMap)&&(_.working?_(r):r instanceof WeakMap)},E.working="u">typeof WeakSet&&E(new WeakSet),n.isWeakSet=function(r){return E(r)},S.working="u">typeof ArrayBuffer&&S(new ArrayBuffer),n.isArrayBuffer=R,A.working="u">typeof ArrayBuffer&&"u">typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),n.isDataView=k;var O="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(r){return"[object SharedArrayBuffer]"===f(r)}function T(r){return void 0!==O&&(void 0===x.working&&(x.working=x(new O)),x.working?x(r):r instanceof O)}function P(r){return b(r,p)}function C(r){return b(r,h)}function j(r){return b(r,y)}function I(r){return l&&b(r,g)}function D(r){return d&&b(r,m)}n.isSharedArrayBuffer=T,n.isAsyncFunction=function(r){return"[object AsyncFunction]"===f(r)},n.isMapIterator=function(r){return"[object Map Iterator]"===f(r)},n.isSetIterator=function(r){return"[object Set Iterator]"===f(r)},n.isGeneratorObject=function(r){return"[object Generator]"===f(r)},n.isWebAssemblyCompiledModule=function(r){return"[object WebAssembly.Module]"===f(r)},n.isNumberObject=P,n.isStringObject=C,n.isBooleanObject=j,n.isBigIntObject=I,n.isSymbolObject=D,n.isBoxedPrimitive=function(r){return P(r)||C(r)||j(r)||I(r)||D(r)},n.isAnyArrayBuffer=function(r){return"u">typeof Uint8Array&&(R(r)||T(r))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(n,r,{enumerable:!1,value:function(){throw Error(r+" is not supported in userland")}})})},4268:function(r,n,i){var o=Object.getOwnPropertyDescriptors||function(r){for(var n=Object.keys(r),i={},o=0;o<n.length;o++)i[n[o]]=Object.getOwnPropertyDescriptor(r,n[o]);return i},a=/%[sdj%]/g;n.format=function(r){if(!A(r)){for(var n=[],i=0;i<arguments.length;i++)n.push(d(arguments[i]));return n.join(" ")}for(var i=1,o=arguments,s=o.length,u=String(r).replace(a,function(r){if("%%"===r)return"%";if(i>=s)return r;switch(r){case"%s":return String(o[i++]);case"%d":return Number(o[i++]);case"%j":try{return JSON.stringify(o[i++])}catch(r){return"[Circular]"}default:return r}}),c=o[i];i<s;c=o[++i])S(c)||!x(c)?u+=" "+c:u+=" "+d(c);return u},n.deprecate=function(r,i){if(void 0!==s&&!0===s.noDeprecation)return r;if(void 0===s)return function(){return n.deprecate(r,i).apply(this,arguments)};var o=!1;return function(){if(!o){if(s.throwDeprecation)throw Error(i);s.traceDeprecation?console.trace(i):console.error(i),o=!0}return r.apply(this,arguments)}};var u={},c=/^$/;if(s.env.NODE_DEBUG){var l=s.env.NODE_DEBUG;c=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function d(r,i){var o={seen:[],stylize:p};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),E(i)?o.showHidden=i:i&&n._extend(o,i),k(o.showHidden)&&(o.showHidden=!1),k(o.depth)&&(o.depth=2),k(o.colors)&&(o.colors=!1),k(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=f),y(o,r,o.depth)}function f(r,n){var i=d.styles[n];return i?"\x1b["+d.colors[i][0]+"m"+r+"\x1b["+d.colors[i][1]+"m":r}function p(r,n){return r}function h(r){var n={};return r.forEach(function(r,i){n[r]=!0}),n}function y(r,i,o){if(r.customInspect&&i&&C(i.inspect)&&i.inspect!==n.inspect&&!(i.constructor&&i.constructor.prototype===i)){var a,s=i.inspect(o,r);return A(s)||(s=y(r,s,o)),s}var u=g(r,i);if(u)return u;var c=Object.keys(i),l=h(c);if(r.showHidden&&(c=Object.getOwnPropertyNames(i)),P(i)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return m(i);if(0===c.length){if(C(i)){var d=i.name?": "+i.name:"";return r.stylize("[Function"+d+"]","special")}if(O(i))return r.stylize(RegExp.prototype.toString.call(i),"regexp");if(T(i))return r.stylize(Date.prototype.toString.call(i),"date");if(P(i))return m(i)}var f="",p=!1,E=["{","}"];if(_(i)&&(p=!0,E=["[","]"]),C(i)&&(f=" [Function"+(i.name?": "+i.name:"")+"]"),O(i)&&(f=" "+RegExp.prototype.toString.call(i)),T(i)&&(f=" "+Date.prototype.toUTCString.call(i)),P(i)&&(f=" "+m(i)),0===c.length&&(!p||0==i.length))return E[0]+f+E[1];if(o<0)if(O(i))return r.stylize(RegExp.prototype.toString.call(i),"regexp");else return r.stylize("[Object]","special");return r.seen.push(i),a=p?b(r,i,o,l,c):c.map(function(n){return w(r,i,o,l,n,p)}),r.seen.pop(),v(a,f,E)}function g(r,n){if(k(n))return r.stylize("undefined","undefined");if(A(n)){var i="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(i,"string")}return R(n)?r.stylize(""+n,"number"):E(n)?r.stylize(""+n,"boolean"):S(n)?r.stylize("null","null"):void 0}function m(r){return"["+Error.prototype.toString.call(r)+"]"}function b(r,n,i,o,a){for(var s=[],u=0,c=n.length;u<c;++u)N(n,String(u))?s.push(w(r,n,i,o,String(u),!0)):s.push("");return a.forEach(function(a){a.match(/^\d+$/)||s.push(w(r,n,i,o,a,!0))}),s}function w(r,n,i,o,a,s){var u,c,l;if((l=Object.getOwnPropertyDescriptor(n,a)||{value:n[a]}).get?c=l.set?r.stylize("[Getter/Setter]","special"):r.stylize("[Getter]","special"):l.set&&(c=r.stylize("[
557Setter]","special")),N(o,a)||(u="["+a+"]"),!c&&(0>r.seen.indexOf(l.value)?(c=S(i)?y(r,l.value,null):y(r,l.value,i-1)).indexOf("\n")>-1&&(c=s?c.split("\n").map(function(r){return"  "+r}).join("\n").substr(2):"\n"+c.split("\n").map(function(r){return"   "+r}).join("\n")):c=r.stylize("[Circular]","special")),k(u)){if(s&&a.match(/^\d+$/))return c;(u=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=r.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=r.stylize(u,"string"))}return u+": "+c}function v(r,n,i){var o=0;return r.reduce(function(r,n){return o++,n.indexOf("\n")>=0&&o++,r+n.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===n?"":n+"\n ")+" "+r.join(",\n  ")+" "+i[1]:i[0]+n+" "+r.join(", ")+" "+i[1]}function _(r){return Array.isArray(r)}function E(r){return"boolean"==typeof r}function S(r){return null===r}function R(r){return"number"==typeof r}function A(r){return"string"==typeof r}function k(r){return void 0===r}function O(r){return x(r)&&"[object RegExp]"===j(r)}function x(r){return"object"==typeof r&&null!==r}function T(r){return x(r)&&"[object Date]"===j(r)}function P(r){return x(r)&&("[object Error]"===j(r)||r instanceof Error)}function C(r){return"function"==typeof r}function j(r){return Object.prototype.toString.call(r)}function I(r){return r<10?"0"+r.toString(10):r.toString(10)}n.debuglog=function(r){if(!u[r=r.toUpperCase()])if(c.test(r)){var i=s.pid;u[r]=function(){var o=n.format.apply(n,arguments);console.error("%s %d: %s",r,i,o)}}else u[r]=function(){};return u[r]},n.inspect=d,d.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},d.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.types=i(7551),n.isArray=_,n.isBoolean=E,n.isNull=S,n.isNullOrUndefined=function(r){return null==r},n.isNumber=R,n.isString=A,n.isSymbol=function(r){return"symbol"==typeof r},n.isUndefined=k,n.isRegExp=O,n.types.isRegExp=O,n.isObject=x,n.isDate=T,n.types.isDate=T,n.isError=P,n.types.isNativeError=P,n.isFunction=C,n.isPrimitive=function(r){return null===r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"symbol"==typeof r||void 0===r},n.isBuffer=i(3614);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var r=new Date,n=[I(r.getHours()),I(r.getMinutes()),I(r.getSeconds())].join(":");return[r.getDate(),D[r.getMonth()],n].join(" ")}function N(r,n){return Object.prototype.hasOwnProperty.call(r,n)}n.log=function(){console.log("%s - %s",U(),n.format.apply(n,arguments))},n.inherits=i(1638),n._extend=function(r,n){if(!n||!x(n))return r;for(var i=Object.keys(n),o=i.length;o--;)r[i[o]]=n[i[o]];return r};var M="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(r,n){if(!r){var i=Error("Promise was rejected with a falsy value");i.reason=r,r=i}return n(r)}n.promisify=function(r){if("function"!=typeof r)throw TypeError('The "original" argument must be of type Function');if(M&&r[M]){var n=r[M];if("function"!=typeof n)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,M,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var n,i,o=new Promise(function(r,o){n=r,i=o}),a=[],s=0;s<arguments.length;s++)a.push(arguments[s]);a.push(function(r,o){r?i(r):n(o)});try{r.apply(this,a)}catch(r){i(r)}return o}return Object.setPrototypeOf(n,Object.getPrototypeOf(r)),M&&Object.defineProperty(n,M,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,o(r))},n.promisify.custom=M,n.callbackify=function(r){if("function"!=typeof r)throw TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var o=n.pop();if("function"!=typeof o)throw TypeError("The last argument must be of type Function");var a=this,u=function(){return o.apply(a,arguments)};r.apply(this,n).then(function(r){s.nextTick(u.bind(null,null,r))},function(r){s.nextTick(L.bind(null,r,u))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(r)),Object.defineProperties(n,o(r)),n}},3051:function(r,n,o){"use strict";var a=o(4680),s=o(3147),u=o(2982),c=u("Object.prototype.toString"),l=o(8564)()&&"symbol"==typeof Symbol.toStringTag,d=s(),f=u("String.prototype.slice"),p={},h=o(9745),y=Object.getPrototypeOf;l&&h&&y&&a(d,function(r){if("function"==typeof i.g[r]){var n=new i.g[r];if(!(Symbol.toStringTag in n))throw EvalError("this engine has support for Symbol.toStringTag, but "+r+" does not have the property! Please report this.");var o=y(n),a=h(o,Symbol.toStringTag);a||(a=h(y(o),Symbol.toStringTag)),p[r]=a.get}});var g=function(r){var n=!1;return a(p,function(i,o){if(!n)try{var a=i.call(r);a===o&&(n=a)}catch(r){}}),n},m=o(9572);r.exports=function(r){return!!m(r)&&(l?g(r):f(c(r),8,-1))}},3147:function(r,n,o){"use strict";var a=o(7492);r.exports=function(){return a(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(r){return"function"==typeof i.g[r]})}},9745:function(r,n,i){"use strict";r.exports=i(8322)}},c={};function l(r){var n=c[r];if(void 0!==n)return n.exports;var i=c[r]={exports:{}},o=!0;try{u[r](i,i.exports,l),o=!1}finally{o&&delete c[r]}return i.exports}l.ab=o+"/",r.exports=l(4268)},81998:(r,n,i)=>{"use strict";function o(){let r="";for(let n=0;n<32;n++){let i=Math.floor(16*Math.random());12===n?r+="4":16===n?r+=(3&i|8).toString(16):r+=i.toString(16),(7===n||11===n||15===n||19===n)&&(r+="-")}return r}i.d(n,{N:()=>s});let a="function"==typeof globalThis?.crypto?.randomUUID?globalThis.crypto.randomUUID.bind(globalThis.crypto):o;function s(){return a()}},82475:(r,n,i)=>{var o={221:function(r){"use strict";r.exports=i(96079)}},a={};function s(r){var n=a[r];if(void 0!==n)return n.exports;var i=a[r]={exports:{}},u=!0;try{o[r](i,i.exports,s),u=!1}finally{u&&delete a[r]}return i.exports}s.ab="//";var u={};!function(){var r,n=u,i=(r=s(221))&&"object"==typeof r&&"default"in r?r.default:r,o=/https?|ftp|gopher|file/;function a(r){"string"==typeof r&&(r=_(r));var n,a,s,u,c,l,d,f,p,h,y,g=(n=r,a=i,s=o,u=n.auth,c=n.hostname,l=n.protocol||"",d=n.pathname||"",f=n.hash||"",p=n.query||"",h=!1,u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",n.host?h=u+n.host:c&&(h=u+(~c.indexOf(":")?"["+c+"]":c),n.port&&(h+=":"+n.port)),p&&"object"==typeof p&&(p=a.encode(p)),y=n.search||p&&"?"+p||"",l&&":"!==l.substr(-1)&&(l+=":"),n.slashes||(!l||s.test(l))&&!1!==h?(h="//"+(h||""),d&&"/"!==d[0]&&(d="/"+d)):h||(h=""),f&&"#"!==f[0]&&(f="#"+f),y&&"?"!==y[0]&&(y="?"+y),{protocol:l,host:h,pathname:d=d.replace(/[?#]/g,encodeURIComponent),search:y=y.replace("#","%23"),hash:f});return""+g.protocol+g.host+g.pathname+g.search+g.hash}var c="http://",l="w.w",d=c+l,f=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,p=/https?|ftp|gopher|file/;function h(r,n){var i="string"==typeof r?_(r):r;r="object"==typeof r?a(r):r;var o=_(n),s="";i.protocol&&!i.slashes&&(s=i.protocol,r=r.replace(i.protocol,""),s+="/"===n[0]||"/"===r[0]?"/":""),s&&o.protocol&&(s="",o.slashes||(s=o.protocol,n=n.replace(o.protocol,"")));var u=r.match(f);u&&!o.protocol&&(r=r.substr((s=u[1]+(u[2]||"")).length),/^\/\/[^/]/.test(n)&&(s=s.slice(0,-1)));var l=new URL(r,d+"/"),h=new URL(n,l).toString().replace(d,""),y=o.protocol||i.protocol;return y+=i.slashes||o.slashes?"//":"",!s&&y?h=h.replace(c,y):s&&(h=h.replace(c,"")),p.test(h)||~n.indexOf(".")||"/"===r.slice(-1)||"/"===n.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),s&&(h=s+("/"===h[0]?h.substr(1):h)),h}function y(){}y.prototype.parse=_,y.prototype.format=a,y.prototype.resolve=h,y.prototype.resolveObject=h;var g=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,b=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,w=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function _(r,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),r&&"object"==typeof r&&r instanceof y)return r;var s=(r=r.trim()).match(m);r=s?s[1].replace(/\\/g,"/")+s[2]:r.replace(/\\/g,"/"),v.test(r)&&"/"!==r.slice(-1)&&(r+="/");var u=!/(^javascript)/.test(r)&&r.match(b),c=w.test(r),f="";u&&(g.test(u[1])||(f=u[1].toLowerCase(),r=""+u[2]+u[3]),u[2]||(c=!1,g.test(u[1])?(f=u[1],r=""+u[3]):r="//"+u[3]),3!==u[2].length&&1!==u[2].length||(f=u[1],r="/"+u[3]));var p,h=(s?s[1]:r).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),_=h&&h[1],E=new y,S="",R="";try{p=new URL(r)}catch(n){S=n,f||o||!/^\/\//.test(r)||/^\/\/.+[@.]/.test(r)||(R="/",r=r.substr(1));try{p=new URL(r,d)}catch(r){return E.protocol=f,E.href=f,E}}E.slashes=c&&!R,E.host=p.host===l?"":p.host,E.hostname=p.hostname===l?"":p.hostname.replace(/(\[|\])/g,""),E.protocol=S?f||null:p.protocol,E.search=p.search.replace(/\\/g,"%5C"),E.hash=p.hash.replace(/\\/g,"%5C");var A=r.split("#");!E.search&&~A[0].indexOf("?")&&(E.search="?"),E.hash||""!==A[1]||(E.hash="#"),E.query=n?i.decode(p.search.substr(1)):E.search.substr(1),E.pathname=R+(u?p.pathname.replace(/['^|`]/g,function(r){return"%"+r.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(r,n){try{return decodeURIComponent(n).split("").map(function(r){var n=r.charCodeAt();return n>256||/^[a-z0-9]$/i.test(r)?r:"%"+n.toString(16).toUpperCase()}).join("")}catch(r){return n}}):p.pathname),"about:"===E.protocol&&"blank"===E.pathname&&(E.protocol="",E.pathname=""),S&&"/"!==r[0]&&(E.pathname=E.pathname.substr(1)),f&&!g.test(f)&&"/"!==r.slice(-1)&&"/"===E.pathname&&(E.pathname=""),E.path=E.pathname+E.search,E.auth=[p.username,p.password].map(decodeURIComponent).filter(
557Boolean).join(":"),E.port=p.port,_&&!E.host.endsWith(_)&&(E.host+=_,E.port=_.slice(1)),E.href=R?""+E.pathname+E.search+E.hash:a(E);var k=/^(file)/.test(E.href)?["host","hostname"]:[];return Object.keys(E).forEach(function(r){~k.indexOf(r)||(E[r]=E[r]||null)}),E}n.parse=_,n.format=a,n.resolve=h,n.resolveObject=function(r,n){return _(h(r,n))},n.Url=y}(),r.exports=u},84165:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{fromNodeOutgoingHttpHeaders:function(){return a},normalizeNextQueryParam:function(){return l},splitCookiesString:function(){return s},toNodeOutgoingHttpHeaders:function(){return u},validateURL:function(){return c}});let o=i(20726);function a(r){let n=new Headers;for(let[i,o]of Object.entries(r))for(let r of Array.isArray(o)?o:[o])void 0!==r&&("number"==typeof r&&(r=r.toString()),n.append(i,r));return n}function s(r){var n,i,o,a,s,u=[],c=0;function l(){for(;c<r.length&&/\s/.test(r.charAt(c));)c+=1;return c<r.length}function d(){return"="!==(i=r.charAt(c))&&";"!==i&&","!==i}for(;c<r.length;){for(n=c,s=!1;l();)if(","===(i=r.charAt(c))){for(o=c,c+=1,l(),a=c;c<r.length&&d();)c+=1;c<r.length&&"="===r.charAt(c)?(s=!0,c=a,u.push(r.substring(n,o)),n=c):c=o+1}else c+=1;(!s||c>=r.length)&&u.push(r.substring(n,r.length))}return u}function u(r){let n={},i=[];if(r)for(let[o,a]of r.entries())"set-cookie"===o.toLowerCase()?(i.push(...s(a)),n[o]=1===i.length?i[0]:i):n[o]=a;return n}function c(r){try{return String(new URL(String(r)))}catch(n){throw Object.defineProperty(Error(`URL is malformed "${String(r)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:n}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function l(r){for(let n of[o.NEXT_QUERY_PARAM_PREFIX,o.NEXT_INTERCEPTION_MARKER_PREFIX])if(r!==n&&r.startsWith(n))return r.substring(n.length);return null}},84890:r=>{var n={872:function(r,n){"use strict";n.byteLength=d,n.toByteArray=p,n.fromByteArray=g;for(var i=[],o=[],a="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=s.length;u<c;++u)i[u]=s[u],o[s.charCodeAt(u)]=u;function l(r){var n=r.length;if(n%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");-1===i&&(i=n);var o=i===n?0:4-i%4;return[i,o]}function d(r){var n=l(r),i=n[0],o=n[1];return(i+o)*3/4-o}function f(r,n,i){return(n+i)*3/4-i}function p(r){var n,i,s=l(r),u=s[0],c=s[1],d=new a(f(r,u,c)),p=0,h=c>0?u-4:u;for(i=0;i<h;i+=4)n=o[r.charCodeAt(i)]<<18|o[r.charCodeAt(i+1)]<<12|o[r.charCodeAt(i+2)]<<6|o[r.charCodeAt(i+3)],d[p++]=n>>16&255,d[p++]=n>>8&255,d[p++]=255&n;return 2===c&&(n=o[r.charCodeAt(i)]<<2|o[r.charCodeAt(i+1)]>>4,d[p++]=255&n),1===c&&(n=o[r.charCodeAt(i)]<<10|o[r.charCodeAt(i+1)]<<4|o[r.charCodeAt(i+2)]>>2,d[p++]=n>>8&255,d[p++]=255&n),d}function h(r){return i[r>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]}function y(r,n,i){for(var o=[],a=n;a<i;a+=3)o.push(h((r[a]<<16&0xff0000)+(r[a+1]<<8&65280)+(255&r[a+2])));return o.join("")}function g(r){for(var n,o=r.length,a=o%3,s=[],u=16383,c=0,l=o-a;c<l;c+=u)s.push(y(r,c,c+u>l?l:c+u));return 1===a?s.push(i[(n=r[o-1])>>2]+i[n<<4&63]+"=="):2===a&&s.push(i[(n=(r[o-2]<<8)+r[o-1])>>10]+i[n>>4&63]+i[n<<2&63]+"="),s.join("")}o[45]=62,o[95]=63},230:function(r,n,i){"use strict";var o=i(872),a=i(321),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=d,n.SlowBuffer=_,n.INSPECT_MAX_BYTES=50;var u=0x7fffffff;function c(){try{var r=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(r,n),42===r.foo()}catch(r){return!1}}function l(r){if(r>u)throw RangeError('The value "'+r+'" is invalid for option "size"');var n=new Uint8Array(r);return Object.setPrototypeOf(n,d.prototype),n}function d(r,n,i){if("number"==typeof r){if("string"==typeof n)throw TypeError('The "string" argument must be of type string. Received type number');return y(r)}return f(r,n,i)}function f(r,n,i){if("string"==typeof r)return g(r,n);if(ArrayBuffer.isView(r))return m(r);if(null==r)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Z(r,ArrayBuffer)||r&&Z(r.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(Z(r,SharedArrayBuffer)||r&&Z(r.buffer,SharedArrayBuffer)))return b(r,n,i);if("number"==typeof r)throw TypeError('The "value" argument must not be of type number. Received type number');var o=r.valueOf&&r.valueOf();if(null!=o&&o!==r)return d.from(o,n,i);var a=w(r);if(a)return a;
vendor: 16,547 bytes, line 557
557if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return d.from(r[Symbol.toPrimitive]("string"),n,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function p(r){if("number"!=typeof r)throw TypeError('"size" argument must be of type number');if(r<0)throw RangeError('The value "'+r+'" is invalid for option "size"')}function h(r,n,i){return(p(r),r<=0)?l(r):void 0!==n?"string"==typeof i?l(r).fill(n,i):l(r).fill(n):l(r)}function y(r){return p(r),l(r<0?0:0|v(r))}function g(r,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!d.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|E(r,n),o=l(i),a=o.write(r,n);return a!==i&&(o=o.slice(0,a)),o}function m(r){for(var n=r.length<0?0:0|v(r.length),i=l(n),o=0;o<n;o+=1)i[o]=255&r[o];return i}function b(r,n,i){var o;if(n<0||r.byteLength<n)throw RangeError('"offset" is outside of buffer bounds');if(r.byteLength<n+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===n&&void 0===i?new Uint8Array(r):void 0===i?new Uint8Array(r,n):new Uint8Array(r,n,i),d.prototype),o}function w(r){if(d.isBuffer(r)){var n=0|v(r.length),i=l(n);return 0===i.length||r.copy(i,0,0,n),i}return void 0!==r.length?"number"!=typeof r.length||ee(r.length)?l(0):m(r):"Buffer"===r.type&&Array.isArray(r.data)?m(r.data):void 0}function v(r){if(r>=u)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|r}function _(r){return+r!=r&&(r=0),d.alloc(+r)}function E(r,n){if(d.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Z(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var i=r.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===i)return 0;for(var a=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return J(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Y(r).length;default:if(a)return o?-1:J(r).length;n=(""+n).toLowerCase(),a=!0}}function S(r,n,i){var o=!1;if((void 0===n||n<0)&&(n=0),n>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(n>>>=0)))return"";for(r||(r="utf8");;)switch(r){case"hex":return $(this,n,i);case"utf8":case"utf-8":return D(this,n,i);case"ascii":return M(this,n,i);case"latin1":case"binary":return L(this,n,i);case"base64":return I(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,n,i);default:if(o)throw TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}function R(r,n,i){var o=r[n];r[n]=r[i],r[i]=o}function A(r,n,i,o,a){if(0===r.length)return -1;if("string"==typeof i?(o=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),ee(i*=1)&&(i=a?0:r.length-1),i<0&&(i=r.length+i),i>=r.length)if(a)return -1;else i=r.length-1;else if(i<0)if(!a)return -1;else i=0;if("string"==typeof n&&(n=d.from(n,o)),d.isBuffer(n))return 0===n.length?-1:k(r,n,i,o,a);if("number"==typeof n){if(n&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(r,n,i);else return Uint8Array.prototype.lastIndexOf.call(r,n,i);return k(r,[n],i,o,a)}throw TypeError("val must be string, number or Buffer")}function k(r,n,i,o,a){var s,u=1,c=r.length,l=n.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(r.length<2||n.length<2)return -1;u=2,c/=2,l/=2,i/=2}function d(r,n){return 1===u?r[n]:r.readUInt16BE(n*u)}if(a){var f=-1;for(s=i;s<c;s++)if(d(r,s)===d(n,-1===f?0:s-f)){if(-1===f&&(f=s),s-f+1===l)return f*u}else -1!==f&&(s-=s-f),f=-1}else for(i+l>c&&(i=c-l),s=i;s>=0;s--){for(var p=!0,h=0;h<l;h++)if(d(r,s+h)!==d(n,h)){p=!1;break}if(p)return s}return -1}function O(r,n,i,o){i=Number(i)||0;var a=r.length-i;o?(o=Number(o))>a&&(o=a):o=a;var s=n.length;o>s/2&&(o=s/2);for(var u=0;u<o;++u){var c=parseInt(n.substr(2*u,2),16);if(ee(c))break;r[i+u]=c}return u}function x(r,n,i,o){return Q(J(n,r.length-i),r,i,o)}function T(r,n,i,o){return Q(G(n),r,i,o)}function P(r,n,i,o){return T(r,n,i,o)}function C(r,n,i,o){return Q(Y(n),r,i,o)}function j(r,n,i,o){return Q(X(n,r.length-i),r,i,o)}function I(r,n,i){return 0===n&&i===r.length?o.fromByteArray(r):o.fromByteArray(r.slice(n,i))}function D(r,n,i){i=Math.min(r.length,i);for(var o=[],a=n;a<i;){var s,u,c,l,d=r[a],f=null,p=d>239?4:d>223?3:d>191?2:1;if(a+p<=i)switch(p){case 1:d<128&&(f=d);break;case 2:(192&(s=r[a+1]))==128&&(l=(31&d)<<6|63&s)>127&&(f=l);break;case 3:s=r[a+1],u=r[a+2],(192&s)==128&&(192&u)==128&&(l=(15&d)<<12|(63&s)<<6|63&u)>2047&&(l<55296||l>57343)&&(f=l);break;case 4:s=r[a+1],u=r[a+2],c=r[a+3],(192&s)==128&&(192&u)==128&&(192&c)==128&&(l=(15&d)<<18|(63&s)<<12|(63&u)<<6|63&c)>65535&&l<1114112&&(f=l)}null===f?(f=65533,p=1):f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|1023&f),o.push(f),a+=p}return N(o)}n.kMaxLength=0x7fffffff,d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(r,n,i){return f(r,n,i)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(r,n,i){return h(r,n,i)},d.allocUnsafe=function(r){return y(r)},d.allocUnsafeSlow=function(r){return y(r)},d.isBuffer=function(r){return null!=r&&!0===r._isBuffer&&r!==d.prototype},d.compare=function(r,n){if(Z(r,Uint8Array)&&(r=d.from(r,r.offset,r.byteLength)),Z(n,Uint8Array)&&(n=d.from(n,n.offset,n.byteLength)),!d.isBuffer(r)||!d.isBuffer(n))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===n)return 0;for(var i=r.length,o=n.length,a=0,s=Math.min(i,o);a<s;++a)if(r[a]!==n[a]){i=r[a],o=n[a];break}return i<o?-1:+(o<i)},d.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(r,n){if(!Array.isArray(r))throw TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return d.alloc(0);if(void 0===n)for(i=0,n=0;i<r.length;++i)n+=r[i].length;var i,o=d.allocUnsafe(n),a=0;for(i=0;i<r.length;++i){var s=r[i];if(Z(s,Uint8Array)&&(s=d.from(s)),!d.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(o,a),a+=s.length}return o},d.byteLength=E,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var r=this.length;if(r%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<r;n+=2)R(this,n,n+1);return this},d.prototype.swap32=function(){var r=this.length;if(r%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<r;n+=4)R(this,n,n+3),R(this,n+1,n+2);return this},d.prototype.swap64=function(){var r=this.length;if(r%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<r;n+=8)R(this,n,n+7),R(this,n+1,n+6),R(this,n+2,n+5),R(this,n+3,n+4);return this},d.prototype.toString=function(){var r=this.length;return 0===r?"":0==arguments.length?D(this,0,r):S.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(r){if(!d.isBuffer(r))throw TypeError("Argument must be a Buffer");return this===r||0===d.compare(this,r)},d.prototype.inspect=function(){var r="",i=n.INSPECT_MAX_BYTES;return r=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(r+=" ... "),"<Buffer "+r+">"},s&&(d.prototype[s]=d.prototype.inspect),d.prototype.compare=function(r,n,i,o,a){if(Z(r,Uint8Array)&&(r=d.from(r,r.offset,r.byteLength)),!d.isBuffer(r))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(void 0===n&&(n=0),void 0===i&&(i=r?r.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),n<0||i>r.length||o<0||a>this.length)throw RangeError("out of range index");if(o>=a&&n>=i)return 0;if(o>=a)return -1;if(n>=i)return 1;if(n>>>=0,i>>>=0,o>>>=0,a>>>=0,this===r)return 0;for(var s=a-o,u=i-n,c=Math.min(s,u),l=this.slice(o,a),f=r.slice(n,i),p=0;p<c;++p)if(l[p]!==f[p]){s=l[p],u=f[p];break}return s<u?-1:+(u<s)},d.prototype.includes=function(r,n,i){return -1!==this.indexOf(r,n,i)},d.prototype.indexOf=function(r,n,i){return A(this,r,n,i,!0)},d.prototype.lastIndexOf=function(r,n,i){return A(this,r,n,i,!1)},d.prototype.write=function(r,n,i,o){if(void 0===n)o="utf8",i=this.length,n=0;else if(void 0===i&&"string"==typeof n)o=n,i=this.length,n=0;else if(isFinite(n))n>>>=0,isFinite(i)?(i>>>=0,void 0===o&&(o="utf8")):(o=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-n;if((void 0===i||i>a)&&(i=a),r.length>0&&(i<0||n<0)||n>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var s=!1;;)switch(o){case"hex":return O(this,r,n,i);case"utf8":case"utf-8":return x(this,r,n,i);case"ascii":return T(this,r,n,i);case"latin1":case"binary":return P(this,r,n,i);case"base64":return C(this,r,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,r,n,i);default:if(s)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function N(r){var n=r.length;if(n<=U)return String.fromCharCode.apply(String,r);for(var i="",o=0;o<n;)i+=String.fromCharCode.apply(String,r.slice(o,o+=U));return i}function M(r,n,i){var o="";i=Math.min(r.length,i);for(var a=n;a<i;++a)o+=String.fromCharCode(127&r[a]);return o}function L(r,n,i){var o="";i=Math.min(r.length,i);for(var a=n;a<i;++a)o+=String.fromCharCode(r[a]);return o}function $(r,n,i){var o=r.length;(!n||n<0)&&(n=0),(!i||i<0||i>o)&&(i=o);for(var a="",s=n;s<i;++s)a+=et[r[s]];return a}function q(r,n,i){for(var o=r.slice(n,i),a="",s=0;s<o.length;s+=2)a+=String.fromCharCode(o[s]+256*o[s+1]);return a}function B(r,n,i){if(r%1!=0||r<0)throw RangeError("offset is not uint");if(r+n>i)throw RangeError("Trying to access beyond buffer length")}function F(r,n,i,o,a,s){if(!d.isBuffer(r))throw TypeError('"buffer" argument must be a Buffer instance');if(n>a||n<s)throw RangeError('"value" argument is out of bounds');if(i+o>r.length)throw RangeError("Index out of range")}function H(r,n,i,o,a,s){if(i+o>r.length||i<0)throw RangeError("Index out of range")}function W(r,n,i,o,s){return n*=1,i>>>=0,s||H(r,n,i,4,34028234663852886e22,-34028234663852886e22),a.write(r,n,i,o,23,4),i+4}function z(r,n,i,o,s){return n*=1,i>>>=0,s||H(r,n,i,8,17976931348623157e292,-17976931348623157e292),a.write(r,n,i,o,52,8),i+8}d.prototype.slice=function(r,n){var i=this.length;r=~~r,n=void 0===n?i:~~n,r<0?(r+=i)<0&&(r=0):r>i&&(r=i),n<0?(n+=i)<0&&(n=0):n>i&&(n=i),n<r&&(n=r);var o=this.subarray(r,n);return Object.setPrototypeOf(o,d.prototype),o},d.prototype.readUIntLE=function(r,n,i){r>>>=0,n>>>=0,i||B(r,n,this.length);for(var o=this[r],a=1,s=0;++s<n&&(a*=256);)o+=this[r+s]*a;return o},d.prototype.readUIntBE=function(r,n,i){r>>>=0,n>>>=0,i||B(r,n,this.length);for(var o=this[r+--n],a=1;n>0&&(a*=256);)o+=this[r+--n]*a;return o},d.prototype.readUInt8=function(r,n){return r>>>=0,n||B(r,1,this.length),this[r]},d.prototype.readUInt16LE=function(r,n){return r>>>=0,n||B(r,2,this.length),this[r]|this[r+1]<<8},d.prototype.readUInt16BE=function(r,n){return r>>>=0,n||B(r,2,this.length),this[r]<<8|this[r+1]},d.prototype.readUInt32LE=function(r,n){return r>>>=0,n||B(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+0x1000000*this[r+3]},d.prototype.readUInt32BE=function(r,n){return r>>>=0,n||B(r,4,this.length),0x1000000*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},d.prototype.readIntLE=function(r,n,i){r>>>=0,n>>>=0,i||B(r,n,this.length);for(var o=this[r],a=1,s=0;++s<n&&(a*=256);)o+=this[r+s]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*n)),o},d.prototype.readIntBE=function(r,n,i){r>>>=0,n>>>=0,i||B(r,n,this.length);for(var o=n,a=1,s=this[r+--o];o>0&&(a*=256);)s+=this[r+--o]*a;return s>=(a*=128)&&(s-=Math.pow(2,8*n)),s},d.prototype.readInt8=function(r,n){return(r>>>=0,n||B(r,1,this.length),128&this[r])?-((255-this[r]+1)*1):this[r]},d.prototype.readInt16LE=function(r,n){r>>>=0,n||B(r,2,this.length);var i=this[r]|this[r+1]<<8;return 32768&i?0xffff0000|i:i},d.prototype.readInt16BE=function(r,n){r>>>=0,n||B(r,2,this.length);var i=this[r+1]|this[r]<<8;return 32768&i?0xffff0000|i:i},d.prototype.readInt32LE=function(r,n){return r>>>=0,n||B(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},d.prototype.readInt32BE=function(r,n){return r>>>=0,n||B(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},d.prototype.readFloatLE=function(r,n){return r>>>=0,n||B(r,4,this.length),a.read(this,r,!0,23,4)},d.prototype.readFloatBE=function(r,n){return r>>>=0,n||B(r,4,this.length),a.read(this,r,!1,23,4)},d.prototype.readDoubleLE=function(r,n){return r>>>=0,n||B(r,8,this.length),a.read(this,r,!0,52,8)},d.prototype.readDoubleBE=function(r,n){return r>>>=0,n||B(r,8,this.length),a.read(this,r,!1,52,8)},d.prototype.writeUIntLE=function(r,n,i,o){if(r*=1,n>>>=0,i>>>=0,!o){var a=Math.pow(2,8*i)-1;F(this,r,n,i,a,0)}var s=1,u=0;for(this[n]=255&r;++u<i&&(s*=256);)this[n+u]=r/s&255;return n+i},d.prototype.writeUIntBE=function(r,n,i,o){if(r*=1,n>>>=0,i>>>=0,!o){var a=Math.pow(2,8*i)-1;F(this,r,n,i,a,0)}var s=i-1,u=1;for(this[n+s]=255&r;--s>=0&&(u*=256);)this[n+s]=r/u&255;return n+i},d.prototype.writeUInt8=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,1,255,0),this[n]=255&r,n+1},d.prototype.writeUInt16LE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,2,65535,0),this[n]=255&r,this[n+1]=r>>>8,n+2},d.prototype.writeUInt16BE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,2,65535,0),this[n]=r>>>8,this[n+1]=255&r,n+2},d.prototype.writeUInt32LE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,4,0xffffffff,0),this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=255&r,n+4},d.prototype.writeUInt32BE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,4,0xffffffff,0),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r,n+4},d.prototype.writeIntLE=function(r,n,i,o){if(r*=1,n>>>=0,!o){var a=Math.pow(2,8*i-1);F(this,r,n,i,a-1,-a)}var s=0,u=1,c=0;for(this[n]=255&r;++s<i&&(u*=256);)r<0&&0===c&&0!==this[n+s-1]&&(c=1),this[n+s]=(r/u|0)-c&255;return n+i},d.prototype.writeIntBE=function(r,n,i,o){if(r*=1,n>>>=0,!o){var a=Math.pow(2,8*i-1);F(this,r,n,i,a-1,-a)}var s=i-1,u=1,c=0;for(this[n+s]=255&r;--s>=0&&(u*=256);)r<0&&0===c&&0!==this[n+s+1]&&(c=1),this[n+s]=(r/u|0)-c&255;return n+i},d.prototype.writeInt8=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,1,127,-128),r<0&&(r=255+r+1),this[n]=255&r,n+1},d.prototype.writeInt16LE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,2,32767,-32768),this[n]=255&r,this[n+1]=r>>>8,n+2},d.prototype.writeInt16BE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,2,32767,-32768),this[n]=r>>>8,this[n+1]=255&r,n+2},d.prototype.writeInt32LE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,4,0x7fffffff,-0x80000000),this[n]=255&r,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24,n+4},d.prototype.writeInt32BE=function(r,n,i){return r*=1,n>>>=0,i||F(this,r,n,4,0x7fffffff,-0x80000000),r<0&&(r=0xffffffff+r+1),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=255&r,n+4},d.prototype.writeFloatLE=function(r,n,i){return W(this,r,n,!0,i)},d.prototype.writeFloatBE=function(r,n,i){return W(this,r,n,!1,i)},d.prototype.writeDoubleLE=function(r,n,i){return z(this,r,n,!0,i)},d.prototype.writeDoubleBE=function(r,n,i){return z(this,r,n,!1,i)},d.prototype.copy=function(r,n,i,o){if(!d.isBuffer(r))throw TypeError("argument should be a Buffer");if(i||(i=0),o||0===o||(o=this.length),n>=r.length&&(n=r.length),n||(n=0),o>0&&o<i&&(o=i),o===i||0===r.length||0===this.length)return 0;if(n<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),r.length-n<o-i&&(o=r.length-n+i);var a=o-i;
557if(this===r&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(n,i,o);else if(this===r&&i<n&&n<o)for(var s=a-1;s>=0;--s)r[s+n]=this[s+i];else Uint8Array.prototype.set.call(r,this.subarray(i,o),n);return a},d.prototype.fill=function(r,n,i,o){if("string"==typeof r){if("string"==typeof n?(o=n,n=0,i=this.length):"string"==typeof i&&(o=i,i=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!d.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===r.length){var a,s=r.charCodeAt(0);("utf8"===o&&s<128||"latin1"===o)&&(r=s)}}else"number"==typeof r?r&=255:"boolean"==typeof r&&(r=Number(r));if(n<0||this.length<n||this.length<i)throw RangeError("Out of range index");if(i<=n)return this;if(n>>>=0,i=void 0===i?this.length:i>>>0,r||(r=0),"number"==typeof r)for(a=n;a<i;++a)this[a]=r;else{var u=d.isBuffer(r)?r:d.from(r,o),c=u.length;if(0===c)throw TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<i-n;++a)this[a+n]=u[a%c]}return this};var V=/[^+/0-9A-Za-z-_]/g;function K(r){if((r=(r=r.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}function J(r,n){n=n||1/0;for(var i,o=r.length,a=null,s=[],u=0;u<o;++u){if((i=r.charCodeAt(u))>55295&&i<57344){if(!a){if(i>56319||u+1===o){(n-=3)>-1&&s.push(239,191,189);continue}a=i;continue}if(i<56320){(n-=3)>-1&&s.push(239,191,189),a=i;continue}i=(a-55296<<10|i-56320)+65536}else a&&(n-=3)>-1&&s.push(239,191,189);if(a=null,i<128){if((n-=1)<0)break;s.push(i)}else if(i<2048){if((n-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((n-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((n-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function G(r){for(var n=[],i=0;i<r.length;++i)n.push(255&r.charCodeAt(i));return n}function X(r,n){for(var i,o,a=[],s=0;s<r.length&&!((n-=2)<0);++s)o=(i=r.charCodeAt(s))>>8,a.push(i%256),a.push(o);return a}function Y(r){return o.toByteArray(K(r))}function Q(r,n,i,o){for(var a=0;a<o&&!(a+i>=n.length)&&!(a>=r.length);++a)n[a+i]=r[a];return a}function Z(r,n){return r instanceof n||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===n.name}function ee(r){return r!=r}var et=function(){for(var r="0123456789abcdef",n=Array(256),i=0;i<16;++i)for(var o=16*i,a=0;a<16;++a)n[o+a]=r[i]+r[a];return n}()},321:function(r,n){n.read=function(r,n,i,o,a){var s,u,c=8*a-o-1,l=(1<<c)-1,d=l>>1,f=-7,p=i?a-1:0,h=i?-1:1,y=r[n+p];for(p+=h,s=y&(1<<-f)-1,y>>=-f,f+=c;f>0;s=256*s+r[n+p],p+=h,f-=8);for(u=s&(1<<-f)-1,s>>=-f,f+=o;f>0;u=256*u+r[n+p],p+=h,f-=8);if(0===s)s=1-d;else{if(s===l)return u?NaN:1/0*(y?-1:1);u+=Math.pow(2,o),s-=d}return(y?-1:1)*u*Math.pow(2,s-o)},n.write=function(r,n,i,o,a,s){var u,c,l,d=8*s-a-1,f=(1<<d)-1,p=f>>1,h=5960464477539062e-23*(23===a),y=o?0:s-1,g=o?1:-1,m=+(n<0||0===n&&1/n<0);for(isNaN(n=Math.abs(n))||n===1/0?(c=+!!isNaN(n),u=f):(u=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+p>=1?n+=h/l:n+=h*Math.pow(2,1-p),n*l>=2&&(u++,l/=2),u+p>=f?(c=0,u=f):u+p>=1?(c=(n*l-1)*Math.pow(2,a),u+=p):(c=n*Math.pow(2,p-1)*Math.pow(2,a),u=0));a>=8;r[i+y]=255&c,y+=g,c/=256,a-=8);for(u=u<<a|c,d+=a;d>0;r[i+y]=255&u,y+=g,u/=256,d-=8);r[i+y-g]|=128*m}}},i={};function o(r){var a=i[r];if(void 0!==a)return a.exports;var s=i[r]={exports:{}},u=!0;try{n[r](s,s.exports,o),u=!1}finally{u&&delete i[r]}return s.exports}o.ab="//",r.exports=o(230)},85673:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.generateRandomId=a,n.generateRandomIdWithNonUniqueFallback=s;let o=i(14316);function a(){return"function"==typeof o.randomUUID?(0,o.randomUUID)():"function"==typeof o.randomBytes?(0,o.randomBytes)(20).toString("hex"):void 0}function s(){return a()||"00000000-0000-0000-0000-000000000000"}},86133:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{RENDER_STAGE_ADVANCE_ORDER:function(){return l},RenderStage:function(){return c},StagedRenderingController:function(){return h},SyncIOMode:function(){return p},getNextStage:function(){return d},isAdvanceableRenderStage:function(){return f}});let o=i(8634),a=i(25425);var s,u,c=((s={})[s.Before=1]="Before",s[s.ShellStatic=11]="ShellStatic",s[s.Static=13]="Static",s[s.ShellRuntime=21]="ShellRuntime",s[s.Runtime=23]="Runtime",s[s.Dynamic=30]="Dynamic",s[s.Abandoned=40]="Abandoned",s);let l=[11,13,21,23,30];function d(r){return l[l.indexOf(r)+1]}function f(r){return 1<r&&r<=30}var p=((u={})[u.Untracked=1]="Untracked",u[u.AllowedInRuntimeOrDynamic=2]="AllowedInRuntimeOrDynamic",u[u.AllowedInDynamic=3]="AllowedInDynamic",u);class h{constructor({abortSignal:r,abandonController:n,syncIO:i,finalStage:o}){this.currentStage=1,this.syncInterruptReason=null,this.triggers={11:m(),13:m(),21:m(),23:m(),30:m()}
557,this.abortSignal=r,this.abandonController=n,this.syncIOMode=i,this.finalStage=o,r&&r.addEventListener("abort",()=>{let{reason:n}=r;for(let r of Object.values(this.triggers))w(r,n)},{once:!0}),n&&n.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(r,n){g(this.triggers[r],n)}shouldTrackSyncInterrupt(){if(1===this.syncIOMode)return!1;switch(this.currentStage){case 1:return!1;case 11:case 13:return!0;case 21:case 23:switch(this.syncIOMode){case 2:return!1;case 3:return!0}case 30:case 40:return!1;default:return this.currentStage,!1}}syncInterruptCurrentStageWithReason(r){let{currentStage:n}=this;if(1!==n&&30!==n&&40!==n){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=r,this.currentStage=40;return}this.syncInterruptReason=r,this.advanceStage(30)}}getSyncInterruptReason(){return this.syncInterruptReason}getStageEndTime(r){return this.triggers[d(r)].triggeredAt??1/0}abandonRender(){let{currentStage:r}=this;if(1===r)throw Object.defineProperty(new o.InvariantError("A render that hasn't started yet cannot be abandoned"),"__NEXT_ERROR_CODE",{value:"E1300",enumerable:!1,configurable:!0});if(30===r||40===r)return;let n=l.indexOf(r)+1,i=l.indexOf(30);for(let r=n;r<i;r++)this.resolveStage(l[r]);this.currentStage=40}advanceStage(r){if(null!==this.finalStage&&r>this.finalStage)throw Object.defineProperty(new o.InvariantError(`Attempted to advance to stage ${c[r]} but the render is limited to ${c[this.finalStage]}`),"__NEXT_ERROR_CODE",{value:"E1302",enumerable:!1,configurable:!0});let{currentStage:n}=this;if(30===n||40===n||r<=n)return;this.currentStage=r;let i=1===n?0:l.indexOf(n)+1,a=l.indexOf(r);for(let r=i;r<=a;r++)this.resolveStage(l[r])}resolveStage(r){b(this.triggers[r])}getStagePromise(r){return this.triggers[r].promise}waitForStage(r){return this.getStagePromise(r)}delayUntilStage(r,n,i){let o=this.getStagePromise(r).then(()=>i);return this.abortSignal&&o.catch(y),o}}function y(){}function g(r,n){"pending"===r.state?r._listeners.push(n):n()}function m(){let{promise:r,resolve:n,reject:i}=(0,a.createPromiseWithResolvers)();return{state:"pending",triggeredAt:null,promise:r,_listeners:[],_resolvePromise:n,_rejectPromise:i}}function b(r){if("pending"===r.state){r.state="triggered",r.triggeredAt=performance.now()+performance.timeOrigin;try{let{_listeners:n}=r;for(let r=0;r<n.length;r++)n[r]();n.length=0}finally{r._resolvePromise()}}}function w(r,n){"pending"===r.state&&(r.state="cancelled",r._listeners.length=0,r.promise.catch(y),r._rejectPromise(n))}},86178:(r,n,i)=>{"use strict";i.d(n,{y:()=>f});let o={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function a(r={}){let n=new s(r.parentContext);return r.span&&(n=n.setValue(o.span,r.span)),r.namespace&&(n=n.setValue(o.namespace,r.namespace)),n}class s{_contextMap;constructor(r){this._contextMap=r instanceof s?new Map(r._contextMap):new Map}setValue(r,n){let i=new s(this);return i._contextMap.set(r,n),i}getValue(r){return this._contextMap.get(r)}deleteValue(r){let n=new s(this);return n._contextMap.delete(r),n}}let u={instrumenterImplementation:void 0};function c(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function l(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(r,n)=>({span:c(),tracingContext:a({parentContext:n.tracingContext})}),withContext:(r,n,...i)=>n(...i)}}function d(){return u.instrumenterImplementation||(u.instrumenterImplementation=l()),u.instrumenterImplementation}function f(r){let{namespace:n,packageName:i,packageVersion:a}=r;function s(r,s,u){let c=d().startSpan(r,{...u,packageName:i,packageVersion:a,tracingContext:s?.tracingOptions?.tracingContext}),l=c.tracingContext,f=c.span;return l.getValue(o.namespace)||(l=l.setValue(o.namespace,n)),f.setAttribute("az.namespace",l.getValue(o.namespace)),{span:f,updatedOptions:Object.assign({},s,{tracingOptions:{...s?.tracingOptions,tracingContext:l}})}}async function u(r,n,i,o){let{span:a,updatedOptions:u}=s(r,n,o);try{let r=await c(u.tracingOptions.tracingContext,()=>
557Promise.resolve(i(u,a)));return a.setStatus({status:"success"}),r}catch(r){throw a.setStatus({status:"error",error:r}),r}finally{a.end()}}function c(r,n,...i){return d().withContext(r,n,...i)}return{startSpan:s,withSpan:u,withContext:c,parseTraceparentHeader:function(r){return d().parseTraceparentHeader(r)},createRequestHeaders:function(r){return d().createRequestHeaders(r)}}}},87615:(r,n,i)=>{"use strict";var o,a;Object.defineProperty(n,"__esModule",{value:!0}),n.MetricRecorder=n.TelemetryMetric=void 0;let s=i(35748);(a=o||(n.TelemetryMetric=o={})).CounterCredentialsRequest="counterCredentialsRequest",a.HistogramRequestDuration="histogramRequestDuration",a.HistogramQueryDuration="histogramQueryDuration";class u{constructor(){this._meter=null,this._counters={},this._histograms={}}meter(){return this._meter||(this._meter=s.metrics.getMeter("@openfga/sdk","0.6.3")),this._meter}counter(r,n,i){return this._counters[r.name]||(this._counters[r.name]=this.meter().createCounter(r.name,{description:r.description,unit:r.unit})),void 0!==n&&this._counters[r.name].add(n,i),this._counters[r.name]}histogram(r,n,i){return this._histograms[r.name]||(this._histograms[r.name]=this.meter().createHistogram(r.name,{description:r.description,unit:r.unit})),void 0!==n&&this._histograms[r.name].record(n,i),this._histograms[r.name]}}n.MetricRecorder=u},93073:(r,n,i)=>{"use strict";function o(r){return!!(r&&"function"==typeof r.pipe)}function a(r){return!!(r&&"function"==typeof r.getReader&&"function"==typeof r.tee)}function s(r){return void 0!==r&&(r instanceof Uint8Array||u(r)||"function"==typeof r||"u">typeof Blob&&r instanceof Blob)}function u(r){return o(r)||a(r)}function c(r){return"u">typeof Blob&&r instanceof Blob}i.d(n,{CY:()=>s,H1:()=>u,qf:()=>c,vB:()=>o,xU:()=>a})},95019:(r,n,i)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies},stringifyCookie:function(){return o.stringifyCookie}});let o=i(24930)},96079:r=>{var n="/";!function(){"use strict";var i,o={922:function(r){function n(r,n){return Object.prototype.hasOwnProperty.call(r,n)}r.exports=function(r,o,a,s){o=o||"&",a=a||"=";var u={};if("string"!=typeof r||0===r.length)return u;var c=/\+/g;r=r.split(o);var l=1e3;s&&"number"==typeof s.maxKeys&&(l=s.maxKeys);var d=r.length;l>0&&d>l&&(d=l);for(var f=0;f<d;++f){var p,h,y,g,m=r[f].replace(c,"%20"),b=m.indexOf(a);b>=0?(p=m.substr(0,b),h=m.substr(b+1)):(p=m,h=""),y=decodeURIComponent(p),g=decodeURIComponent(h),n(u,y)?i(u[y])?u[y].push(g):u[y]=[u[y],g]:u[y]=g}return u};var i=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)}},790:function(r){var n=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}};r.exports=function(r,s,u,c){return(s=s||"&",u=u||"=",null===r&&(r=void 0),"object"==typeof r)?o(a(r),function(a){var c=encodeURIComponent(n(a))+u;return i(r[a])?o(r[a],function(r){return c+encodeURIComponent(n(r))}).join(s):c+encodeURIComponent(n(r[a]))}).join(s):c?encodeURIComponent(n(c))+u+encodeURIComponent(n(r)):""};var i=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};function o(r,n){if(r.map)return r.map(n);for(var i=[],o=0;o<r.length;o++)i.push(n(r[o],o));return i}var a=Object.keys||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.push(i);return n}}},a={};function s(r){var n=a[r];if(void 0!==n)return n.exports;var i=a[r]={exports:{}},u=!0;try{o[r](i,i.exports,s),u=!1}finally{u&&delete a[r]}return i.exports}s.ab=n+"/";var u={};(i=u).decode=i.parse=s(922),i.encode=i.stringify=s(790),r.exports=u}()},96517:(r,n,i)=>{"use strict";i.d(n,{j:()=>l});var o=i(71971),a=i(51282),s=i(66184);let u="formDataPolicy";function c(r){let n={};for(let[i,o]of r.entries())n[i]??=[],n[i].push(o);return n}function l(){return{name:u,async sendRequest(r,n){if(a.qx&&"u">typeof FormData&&r.body instanceof FormData&&(r.formData=c(r.body),r.body=void 0),r.formData){let n=r.headers.get("Content-Type");
557n&&-1!==n.indexOf("application/x-www-form-urlencoded")?r.body=d(r.formData):await f(r.formData,r),r.formData=void 0}return n(r)}}}function d(r){let n=new URLSearchParams;for(let[i,o]of Object.entries(r))if(Array.isArray(o))for(let r of o)n.append(i,r.toString());else n.append(i,o.toString());return n.toString()}async function f(r,n){let i=n.headers.get("Content-Type");if(i&&!i.startsWith("multipart/form-data"))return;n.headers.set("Content-Type",i??"multipart/form-data");let a=[];for(let[n,i]of Object.entries(r))for(let r of Array.isArray(i)?i:[i])if("string"==typeof r)a.push({headers:(0,s.N)({"Content-Disposition":`form-data; name="${n}"`}),body:(0,o.Al)(r,"utf-8")});else if(null==r||"object"!=typeof r)throw Error(`Unexpected value for key ${n}: ${r}. Value should be serialized to string first.`);else{let i=r.name||"blob",o=(0,s.N)();o.set("Content-Disposition",`form-data; name="${n}"; filename="${i}"`),o.set("Content-Type",r.type||"application/octet-stream"),a.push({headers:o,body:r})}n.multipartBody={parts:a}}},97550:function(r,n,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(r,n,i,o){void 0===o&&(o=i);var a=Object.getOwnPropertyDescriptor(n,i);(!a||("get"in a?!n.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,a)}:function(r,n,i,o){void 0===o&&(o=i),r[o]=n[i]}),a=this&&this.__exportStar||function(r,n){for(var i in r)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||o(n,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),n.CredentialsMethod=n.Credentials=n.GetDefaultRetryParams=n.Configuration=void 0,a(i(38778),n),a(i(70121),n),a(i(72127),n);var s=i(70948);Object.defineProperty(n,"Configuration",{enumerable:!0,get:function(){return s.Configuration}}),Object.defineProperty(n,"GetDefaultRetryParams",{enumerable:!0,get:function(){return s.GetDefaultRetryParams}});var u=i(41299);Object.defineProperty(n,"Credentials",{enumerable:!0,get:function(){return u.Credentials}}),Object.defineProperty(n,"CredentialsMethod",{enumerable:!0,get:function(){return u.CredentialsMethod}}),a(i(49291),n),a(i(56036),n),a(i(51383),n),a(i(69405),n),a(i(87615),n),a(i(68809),n)},98458:(r,n,i)=>{"use strict";i.d(n,{u:()=>l});var o=i(72552),a=i(62876),s=i(57959),u=i(28603);let c="defaultRetryPolicy";function l(r={}){return{name:c,sendRequest:(0,s.J)([(0,a.P)(),(0,o.xB)(r)],{maxRetries:r.maxRetries??u.o}).sendRequest}}},98693:(r,n,i)=>{"use strict";var o;o={value:!0},Object.defineProperty(n,"headers",{enumerable:!0,get:function(){return y}});let a=i(4677),s=i(21989),u=i(3330),c=i(24674),l=i(70588),d=i(53665),f=i(23219),p=i(69030),h=i(8634);function y(){let r="headers",n=s.workAsyncStorage.getStore(),i=u.workUnitAsyncStorage.getStore();if(n){if(i&&!(0,p.isRequestApiAllowedInCurrentPhase)(i))throw Object.defineProperty(Error(`Route ${n.route} used \`headers()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1378",enumerable:!1,configurable:!0});if(n.forceStatic)return b(a.HeadersAdapter.seal(new Headers({})));if(i)switch(i.type){case"cache":{let r=Object.defineProperty(Error(`Route ${n.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,y),(0,d.applyOwnerStack)(r),n.invalidDynamicUsageError??=r,r}case"unstable-cache":throw Object.defineProperty(Error(`Route ${n.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,
557configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${n.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(n.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${n.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(i)switch(i.type){case"prerender":return m(n,i);case"prerender-client":case"validation-client":let o="`headers`";throw Object.defineProperty(new h.InvariantError(`${o} must not be used within a client component. Next.js should be preventing ${o} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,c.postponeWithTracking)(n.route,r,i.dynamicTracking);case"prerender-legacy":return(0,c.throwToInterruptStaticGeneration)(r,n,i);case"prerender-runtime":{let{stagedRendering:r}=i;if(r)return r.delayUntilStage(d.RENDER_STAGES_BY_DATA_KIND.sessionData,"headers",i.headers);return b(i.headers)}case"private-cache":return b(i.headers);case"request":if((0,c.trackDynamicDataInDynamicRender)(i),i.asyncApiPromises)return i.asyncApiPromises.headers;return b(i.headers)}}(0,u.throwForMissingRequestStore)(r)}let g=new WeakMap;function m(r,n){let i=g.get(n);if(i)return i;let o=(0,d.makeRuntimeHangingPromise)(n.renderSignal,r.route,"`headers()`",n);return g.set(n,o),o}function b(r){let n=g.get(r);if(n)return n;let i=Promise.resolve(r);return g.set(r,i),i}function w(r,n){let i=r?`Route "${r}" `:"This route ";return Object.defineProperty(Error(`${i}used ${n}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,configurable:!0})}(0,f.createDedupedByCallsiteServerErrorLoggerDev)(w)},99411:(r,n,i)=>{"use strict";i.d(n,{b:()=>a});var o=i(33708);function a(r){if((0,o.G)(r)){let n="string"==typeof r.name,i="string"==typeof r.message;return n&&i}return!1}},99634:(r,n,i)=>{"use strict";i.d(n,{I:()=>c});var o=i(33708);let a="REDACTED",s=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],u=["api-version"];class c{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:r=[],additionalAllowedQueryParameters:n=[]}={}){r=s.concat(r),n=u.concat(n),this.allowedHeaderNames=new Set(r.map(r=>r.toLowerCase())),this.allowedQueryParameters=new Set(n.map(r=>r.toLowerCase()))}sanitize(r){let n=new Set;return JSON.stringify(r,(r,i)=>{if(i instanceof Error)return{...i,name:i.name,message:i.message};if("headers"===r&&(0,o.G)(i))return this.sanitizeHeaders(i);if("url"===r&&"string"==typeof i)return this.sanitizeUrl(i);if("query"===r&&(0,o.G)(i))return this.sanitizeQuery(i);if("body"!==r){if("response"===r)return;else if("operationSpec"===r)return;else if(Array.isArray(i)||(0,o.G)(i)){if(n.has(i))return"[Circular]";n.add(i)}return i}},2)}sanitizeUrl(r){if("string"!=typeof r||null===r||""===r)return r;let n=new URL(r);if(!n.search)return r;for(let[r]of n.searchParams)this.allowedQueryParameters.has(r.toLowerCase())||n.searchParams.set(r,a);return n.toString()}sanitizeHeaders(r){let n={};for(let i of Object.keys(r))this.allowedHeaderNames.has(i.toLowerCase())?n[i]=r[i]:n[i]=a;return n}sanitizeQuery(r){if("object"!=typeof r||null===r)return r;let n={};for(let i of Object.keys(r))this.allowedQueryParameters.has(i.toLowerCase())?n[i]=r[i]:n[i]=a;return n}}},99826:(r,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]})}(n,{PageSignatureError:function(){return i},RemovedPageError:function(){return o},RemovedUAError:function(){return a}});
557class i extends Error{constructor({page:r}){super(`The middleware "${r}" accepts an async API directly with the form:
558  
559  export function middleware(request, event) {
560    return NextResponse.redirect('/new-location')
561  }
562  
563  Read more: https://nextjs.org/docs/messages/middleware-new-signature
564  `),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1177",enumerable:!1,configurable:!0})}}class o extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n  Read more: https://nextjs.org/docs/messages/middleware-request-page\n  "),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1178",enumerable:!1,configurable:!0})}}class a extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n  "),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1172",enumerable:!1,configurable:!0})}}}}]);

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.