PageSourceSearch

https://thetextilenetwork.com/_next/static/chunks/8676-a8faaebd506d3378.js

js thetextilenetwork.com collected 2026-10-09 01:39:01 UTC 1,078,425 bytes, 36 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8676],{634:(e,t,r)=>{var n="/",i=r(15376).Buffer,o=r(95704);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(192),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},181:function(e){"use strict";e.exports=EvalError},545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},803:function(e){"use strict";e.exports=ReferenceError},182:function(e){"use strict";e.exports=SyntaxError},202:function(e){"use strict";e.exports=TypeError},284:function(e){"use strict";e.exports=URIError},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},136:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l,c=this;if("function"!=typeof c||r.apply(c)!==i)throw TypeError(t+c);for(var u=a(arguments,1),d=function(){if(this instanceof l){var t=c.apply(this,o(u,arguments));return Object(t)===t?t:this}return c.apply(e,o(u,arguments))},p=n(0,c.length-u.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(l=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var m=function(){};m.prototype=c.prototype,l.prototype=new m,m.prototype=null}return l}},212:function(e,t,r){"use strict";var n=r(136);e.exports=Function.prototype.bind||n},192:function(e,t,r){"use strict";var n,i=r(545),o=r(181),a=r(22),s=r(803),l=r(182),c=r(202),u=r(284),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},m=f?function(){try{return arguments.callee,h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(115)(),g=r(14)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var x=v(v(e));_["%Error.prototype%"]=x}var k=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return _[t]=r,r},S={__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"]},E=r(212),A=r(270),C=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),T=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),j=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,I=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,P,function(e,t,r,i){n[n.length]=r?T(i,M,"$1"):t||e}),n},N=function(e,t){var r,n=e;if(A(S,n)&&(n="%"+(r=S[n])[0]+"%"),A(_,n)){var i=_[n];if(i===b&&(i=k(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=I(e),n=r.length>0?r[0]:"",i=N("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],O(r,C([0,1],u)));for(var d=1,p=!0;d<r.length;d+=1){var h=r[d],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),n+="."+h,A(_,o="%"+n+"%"))a=_[o];
1else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&d+1>=r.length){var g=f(a,h);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=A(a,h),a=a[h];p&&!s&&(_[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(212).call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=a("String.prototype.slice"),p={},f=n(24),h=Object.getPrototypeOf;l&&f&&h&&i(c,function(e){var t=new r.g[e];
1if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=f(n,Symbol.toStringTag);i||(i=f(h(n),Symbol.toStringTag)),p[e]=i.get});var m=function(e){var t=!1;return i(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(l?!!f&&m(e):u(c,d(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function _(e){return"[object ArrayBuffer]"===u(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===u(e)}function S(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===u(e)}function C(e){return void 0!==E&&(void 0===A.working&&(A.working=A(new E)),A.working?A(e):e instanceof E)}function O(e){return y(e,d)}function T(e){return y(e,p)}function R(e){return y(e,f)}function j(e){return l&&y(e,h)}function P(e){return c&&y(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=O,t.isStringObject=T,t.isBooleanObject=R,t.isBigIntObject=j,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return O(e)||T(e)||R(e)||j(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!k(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])_(s)||!A(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
1return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var l=o.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),f(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return k(o)||(o=f(e,o,n)),o}var a=h(e,r);if(a)return a;var s=Object.keys(r),l=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(T(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return m(r)}var u="",d=!1,w=["{","}"];if(b(r)&&(d=!0,w=["[","]"]),T(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),C(r)&&(u=" "+Date.prototype.toUTCString.call(r)),O(r)&&(u=" "+m(r)),0===s.length&&(!d||0==r.length))return w[0]+u+w[1];if(n<0)if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=d?y(e,r,n,l,s):s.map(function(t){return g(e,r,n,l,t,d)}),e.seen.pop(),v(i,u,w)}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(k(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(g(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(g(e,t,r,n,i,!0))}),o}function g(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=_(r)?f(e,l.value,null):f(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function x(e){return"number"==typeof e}function k(e){return"string"==typeof e}function S(e){return void 0===e}function E(e){return A(e)&&"[object RegExp]"===R(e)}function A(e){return"object"==typeof e&&null!==e}function C(e){return A(e)&&"[object Date]"===R(e)}function O(e){return A(e)&&("[object Error]"===R(e)||e instanceof Error)}function T(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=b,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=function(e){return null==e}
1,t.isNumber=x,t.isString=k,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=E,t.types.isRegExp=E,t.isObject=A,t.isDate=C,t.types.isDate=C,t.isError=O,t.types.isNativeError=O,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t=e[N];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(D.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("String.prototype.slice"),d={},p=n(24),f=Object.getPrototypeOf;l&&p&&f&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=f(t),i=p(n,Symbol.toStringTag);i||(i=p(f(n),Symbol.toStringTag)),d[e]=i.get}});var h=function(e){var t=!1;return i(d,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(l?h(e):u(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(192)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/",e.exports=s(177)}()},935:(e,t)=>{"use strict";function r(e,t){i(e,t),t.add(e)}function n(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t){return e.get(s(e,t))}function a(e,t,r){return e.set(s(e,t),r),r}function s(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=d;let l=4096,c=163,u=3933;function d(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}}var p=new WeakMap,f=new WeakMap,h=new WeakMap,m=new WeakSet;class y{constructor(e,t,i){r(this,m),n(this,p,{}),n(this,f,void 0),n(this,h,void 0),a(h,this,i),a(f,this,e);let{cookies:s}=t,{name:l}=e;if("function"==typeof(null==s?void 0:s.getAll))for(let{name:e,value:t}of s.getAll())e.startsWith(l)&&(o(p,this)[e]=t);else if(s instanceof Map)for(let e of s.keys())e.startsWith(l)&&(o(p,this)[e]=s.get(e));else for(let e in s)e.startsWith(l)&&(o(p,this)[e]=s[e])}get value(){return Object.keys(o(p,this)).sort((e,t)=>
1{var r,n;return parseInt(null!=(r=e.split(".").pop())?r:"0")-parseInt(null!=(n=t.split(".").pop())?n:"0")}).map(e=>o(p,this)[e]).join("")}chunk(e,t){let r=s(m,this,v).call(this);for(let n of s(m,this,g).call(this,{name:o(f,this).name,value:e,options:{...o(f,this).options,...t}}))r[n.name]=n;return Object.values(r)}clean(){return Object.values(s(m,this,v).call(this))}}function g(e){let t=Math.ceil(e.value.length/u);if(1===t)return o(p,this)[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,i=e.value.substr(n*u,u);r.push({...e,name:t,value:i}),o(p,this)[t]=i}return o(h,this).debug("CHUNKING_SESSION_COOKIE",{message:`Session cookie exceeds allowed ${l} bytes.`,emptyCookieSize:c,valueSize:e.value.length,chunks:r.map(e=>e.value.length+c)}),r}function v(){let e={};for(let r in o(p,this)){var t;null==(t=o(p,this))||delete t[r],e[r]={name:r,value:"",options:{...o(f,this).options,maxAge:0}}}return e}t.SessionStore=y},1590:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),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(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}
1),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},1947:(e,t,r)=>{var n=r(15376).Buffer,i=r(62521),o=(r(33018),r(89220)),a=r(23431),s=r(92313),l=r(17030);t.OAuth2=function(e,t,r,n,i,o){this._clientId=e,this._clientSecret=t,this._baseSite=r,this._authorizeUrl=n||"/oauth/authorize",this._accessTokenUrl=i||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=o||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},t.OAuth2.prototype.setAgent=function(e){this._agent=e},t.OAuth2.prototype.setAccessTokenName=function(e){this._accessTokenName=e},t.OAuth2.prototype.setAuthMethod=function(e){this._authMethod=e},t.OAuth2.prototype.useAuthorizationHeaderforGET=function(e){this._useAuthorizationHeaderForGET=e},t.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},t.OAuth2.prototype.buildAuthHeader=function(e){return this._authMethod+" "+e},t.OAuth2.prototype._chooseHttpLibrary=function(e){var t=o;return"https:"!=e.protocol&&(t=a),t},t.OAuth2.prototype._request=function(e,t,r,o,a,l){var c=s.parse(t,!0);"https:"!=c.protocol||c.port||(c.port=443);var u=this._chooseHttpLibrary(c),d={};for(var p in this._customHeaders)d[p]=this._customHeaders[p];if(r)for(var p in r)d[p]=r[p];d.Host=c.host,d["User-Agent"]||(d["User-Agent"]="Node-oauth"),o?n.isBuffer(o)?d["Content-Length"]=o.length:d["Content-Length"]=n.byteLength(o):d["Content-length"]=0,!a||"Authorization"in d||(c.query||(c.query={}),c.query[this._accessTokenName]=a);var f=i.stringify(c.query);f&&(f="?"+f);var h={host:c.hostname,port:c.port,path:c.pathname+f,method:e,headers:d};this._executeRequest(u,h,o,l)},t.OAuth2.prototype._executeRequest=function(e,t,r,n){var i=l.isAnEarlyCloseHost(t.host),o=!1;function a(e,t){o||(o=!0,e.statusCode>=200&&e.statusCode<=299||301==e.statusCode||302==e.statusCode?n(null,t,e):n({statusCode:e.statusCode,data:t}))}var s="";this._agent&&(t.agent=this._agent);var c=e.request(t);c.on("response",function(e){e.on("data",function(e){s+=e}),e.on("close",function(t){i&&a(e,s)}),e.addListener("end",function(){a(e,s)})}),c.on("error",function(e){o=!0,n(e)}),("POST"==t.method||"PUT"==t.method)&&r&&c.write(r),c.end()},t.OAuth2.prototype.getAuthorizeUrl=function(e){var e=e||{};return e.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+i.stringify(e)},t.OAuth2.prototype.getOAuthAccessToken=function(e,t,r){var t=t||{};t.client_id=this._clientId,t.client_secret=this._clientSecret;var n="refresh_token"===t.grant_type?"refresh_token":"code";t[n]=e;var o=i.stringify(t),a={"Content-Type":"application/x-www-form-urlencoded"};this._request("POST",this._getAccessTokenUrl(),a,o,null,function(e,t,n){if(e)r(e);else{try{o=JSON.parse(t)}catch(e){o=i.parse(t)}var o,a=o.access_token,s=o.refresh_token;delete o.refresh_token,r(null,a,s,o)}})},t.OAuth2.prototype.getProtectedResource=function(e,t,r){this._request("GET",e,{},"",t,r)},t.OAuth2.prototype.get=function(e,t,r){if(this._useAuthorizationHeaderForGET){var n={Authorization:this.buildAuthHeader(t)};t=null}else n={};this._request("GET",e,n,"",t,r)}},2523:(e,t,r)=>{let n;var i=r(15376).Buffer;let{strict:o}=r(5450),{createHash:a}=r(33018),{format:s}=r(634);if(i.isEncoding("base64url"))n=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=t=>e(t.toString("base64"))}function l(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");
1case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":case"Ed25519":return a("sha512");case"Ed448":return a("shake256",{outputLength:114});case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return a("shake256",{outputLength:64});case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":return a("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}}function c(e,t,r){let i=l(t,r).update(e).digest();return n(i.slice(0,i.length/2))}e.exports={validate:function(e,t,r,n,i){let a,l;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");o("string"==typeof t&&t,`${e.claim} must be a non-empty string`),o("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=c(r,n,i)}catch(t){l=s("%s could not be validated (%s)",e.claim,t.message)}l=l||s("%s mismatch, expected %s, got: %s",e.claim,a,t),o.equal(a,t,l)},generate:c}},3377:(e,t)=>{"use strict";async function r({email:e,adapter:t}){let{getUserByEmail:r}=t,n=e?await r(e):null;return n||{id:e,email:e,emailVerified:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},4095:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4729:(e,t,r)=>{"use strict";r.d(t,{UC:()=>eJ,YJ:()=>eZ,In:()=>eK,q7:()=>eY,VF:()=>e0,p4:()=>eQ,JU:()=>eX,ZL:()=>eV,bL:()=>eW,wn:()=>e2,PP:()=>e1,wv:()=>e3,l9:()=>e$,WT:()=>eq,LM:()=>eG});var n=r(12115),i=r(47650),o=r(34212),a=r(92556),s=r(78625),l=r(94446),c=r(3468),u=r(66218),d=r(44831),p=r(19526),f=r(69666),h=r(68946),m=r(66093),y=r(75433),g=r(88142),v=r(95155);function b(e){let t=w(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(x);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,v.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,v.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}function w(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e=S(r),o=k(i,r.props);return r.type!==n.Fragment&&(o.ref=t?(0,l.t)(t,e):e),n.cloneElement(r,o)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _=Symbol("radix.slottable");function x(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_}function k(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}var E=r(70222),A=r(23558),C=r(4129),O=r(78108),T=r(861),R=r(97745),j=r(14432),P=[" ","Enter","ArrowUp","ArrowDown"],M=[" ","Enter"],I="Select",[N,D,L]=(0,s.N)(I),[U,F]=(0,c.A)(I,[L,m.Bk]),H=(0,m.Bk)(),[B,z]=U(I),[W,$]=U(I),q=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:c,dir:d,name:p,autoComplete:f,disabled:y,required:g,form:b}=e,w=H(t),[_,x]=n.useState(null),[k,S]=n.useState(null),[E,C]=n.useState(!1),O=(0,u.jH)(d),[T,R]=(0,A.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:I}),[j,P]=(0,A.i)({prop:s,defaultProp:l,onChange:c,caller:I}),M=n.useRef(null),D=!_||b||!!_.closest("form"),[L,U]=n.useState(new Set),F=Array.from(L).map(e=>e.props.value).join(";");return(0,v.jsx)(m.bL,{...w,children:(0,v.jsxs)(B,{required:g,scope:t,trigger:_,onTriggerChange:x,valueNode:k,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:(0,h.B)(),value:j,onValueChange:P,open:T,onOpenChange:R,dir:O,triggerPointerDownPosRef:M,disabled:y,children:[(0,v.jsx)(N.Provider,{scope:t,children:(0,v.jsx)(W,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{U(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{U(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),D?(0,v.jsxs)(eU,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:f,value:j,onChange:e=>P(e.target.value),disabled:y,form:b,children:[void 0===j?(0,v.jsx)("option",{value:""}):null,Array.from(L)]},F):null]})})};q.displayName=I;var K="SelectTrigger",V=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:i=!1,...o}=e,s=H(r),c=z(K,r),u=c.disabled||i,d=(0,l.s)(t,c.onTriggerChange),p=D(r),f=n.useRef("touch"),[h,y,b]=eH(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===c.value),n=eB(t,e,r);void 0!==n&&c.onValueChange(n.value)}),w=e=>{u||(c.onOpenChange(!0),b()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,v.jsx)(m.Mz,{asChild:!0,...s,children:(0,v.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":eF(c.value)?"":void 0,...o,ref:d,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&w(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(w(),e.preventDefault())})})})});V.displayName=K;var J="SelectValue",G=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,c=z(J,r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==o,p=(0,l.s)(t,c.onValueNodeChange);return(0,C.N)(()=>{u(d)},[u,d]),(0,v.jsx)(g.sG.span,{...s,ref:p,style:{pointerEvents:"none"},children:eF(c.value)?(0,v.jsx)(v.Fragment,{children:a}):o})});G.displayName=J;var Z="SelectIcon",X=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,v.jsx)(g.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});X.displayName=Z;var Y=e=>(0,v.jsx)(y.Z,{asChild:!0,...e});Y.displayName="SelectPortal";var Q="SelectContent",ee=n.forwardRef((e,t)=>{let r=z(Q,e.__scopeSelect),[o,a]=n.useState();if((0,C.N)(()=>{a(new DocumentFragment)},[]),!r.open){let t=o;return t?i.createPortal((0,v.jsx)(er,{scope:e.__scopeSelect,children:(0,v.jsx)(N.Slot,{scope:e.__scopeSelect,children:(0,v.jsx)("div",{children:e.children})})}),t):null}return(0,v.jsx)(ea,{...e,ref:t})});ee.displayName=Q;var et=10,[er,en]=U(Q),ei="SelectContentImpl",eo=b("SelectContent.RemoveScroll"),ea=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:h,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:_,hideWhenDetached:x,avoidCollisions:k,...S}=e,E=z(Q,r),[A,C]=n.useState(null),[O,T]=n.useState(null),P=(0,l.s)(t,e=>C(e)),[M,I]=n.useState(null),[N,L]=n.useState(null),U=D(r),[F,H]=n.useState(!1),B=n.useRef(!1);n.useEffect(()=>{if(A)return(0,R.Eq)(A)},[A]),(0,p.Oh)();let W=n.useCallback(e=>{let[t,...r]=U().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&O&&(O.scrollTop=0),r===n&&O&&(O.scrollTop=O.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[U,O]),$=n.useCallback(()=>W([M,A]),[W,M,A]);n.useEffect(()=>{F&&$()},[F,$]);let{onOpenChange:q,triggerPointerDownPosRef:K}=E;n.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var r,n,i,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(r=K.current)?void 0:r.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(n=K.current)?void 0:n.y)?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():A.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[A,q,K]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[V,J]=eH(e=>{let t=U().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eB(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),G=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==E.value&&E.value===t||n)&&(I(e),n&&(B.current=!0))},[E.value]),Z=n.useCallback(()=>null==A?void 0:A.focus(),[A]),X=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==E.value&&E.value===t||n)&&L(e)},[E.value]),Y="popper"===i?eu:el,ee=Y===eu?{side:u,sideOffset:h,align:m,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:_,hideWhenDetached:x,avoidCollisions:k}:{};return(0,v.jsx)(er,{scope:r,content:A,viewport:O,onViewportChange:T,itemRefCallback:G,selectedItem:M,onItemLeave:Z,itemTextRefCallback:X,focusSelectedItem:$,selectedItemText:N,position:i,isPositioned:F,searchRef:V,children:(0,v.jsx)(j.A,{as:eo,allowPinchZoom:!0,children:(0,v.jsx)(f.n,{asChild:!0,trapped:E.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{var t;
1null==(t=E.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,v.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:(0,v.jsx)(Y,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:e=>e.preventDefault(),...S,...ee,onPlaced:()=>H(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,a.mK)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=U().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});ea.displayName=ei;var es="SelectItemAlignedPosition",el=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...a}=e,s=z(Q,r),c=en(Q,r),[u,d]=n.useState(null),[p,f]=n.useState(null),h=(0,l.s)(t,e=>f(e)),m=D(r),y=n.useRef(!1),b=n.useRef(!0),{viewport:w,selectedItem:_,selectedItemText:x,focusSelectedItem:k}=c,S=n.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&p&&w&&_&&x){let e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=x.getBoundingClientRect();if("rtl"!==s.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,c=Math.max(l,t.width),d=window.innerWidth-et,p=(0,o.q)(a,[et,Math.max(et,d-c)]);u.style.minWidth=l+"px",u.style.left=p+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,c=Math.max(l,t.width),d=window.innerWidth-et,p=(0,o.q)(a,[et,Math.max(et,d-c)]);u.style.minWidth=l+"px",u.style.right=p+"px"}let a=m(),l=window.innerHeight-2*et,c=w.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),v=f+h+c+parseInt(d.paddingBottom,10)+g,b=Math.min(5*_.offsetHeight,v),k=window.getComputedStyle(w),S=parseInt(k.paddingTop,10),E=parseInt(k.paddingBottom,10),A=e.top+e.height/2-et,C=l-A,O=_.offsetHeight/2,T=f+h+(_.offsetTop+O),R=v-T;if(T<=A){let e=a.length>0&&_===a[a.length-1].ref.current;u.style.bottom="0px";let t=T+Math.max(C,O+(e?E:0)+(p.clientHeight-w.offsetTop-w.offsetHeight)+g);u.style.height=t+"px"}else{let e=a.length>0&&_===a[0].ref.current;u.style.top="0px";let t=Math.max(A,f+w.offsetTop+(e?S:0)+O)+R;u.style.height=t+"px",w.scrollTop=T-A+w.offsetTop}u.style.margin="".concat(et,"px 0"),u.style.minHeight=b+"px",u.style.maxHeight=l+"px",null==i||i(),requestAnimationFrame(()=>y.current=!0)}},[m,s.trigger,s.valueNode,u,p,w,_,x,s.dir,i]);(0,C.N)(()=>S(),[S]);let[E,A]=n.useState();(0,C.N)(()=>{p&&A(window.getComputedStyle(p).zIndex)},[p]);let O=n.useCallback(e=>{e&&!0===b.current&&(S(),null==k||k(),b.current=!1)},[S,k]);return(0,v.jsx)(ed,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:O,children:(0,v.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,v.jsx)(g.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});el.displayName=es;var ec="SelectPopperPosition",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=et,...o}=e,a=H(r);return(0,v.jsx)(m.UC,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eu.displayName=ec;var[ed,ep]=U(Q,{}),ef="SelectViewport",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,s=en(ef,r),c=ep(ef,r),u=(0,l.s)(t,s.onViewportChange),d=n.useRef(0);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,v.jsx)(N.Slot,{scope:r,children:(0,v.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=c;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-2*et,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eh.displayName=ef;var em="SelectGroup",[ey,eg]=U(em),ev=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e,i=(0,h.B)();return(0,v.jsx)(ey,{scope:r,id:i,children:(0,v.jsx)(g.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});ev.displayName=em;var eb="SelectLabel",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=eg(eb,r);return(0,v.jsx)(g.sG.div,{id:i.id,...n,ref:t})});ew.displayName=eb;var e_="SelectItem",[ex,ek]=U(e_),eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...c}=e,u=z(e_,r),d=en(e_,r),p=u.value===i,[f,m]=n.useState(null!=s?s:""),[y,b]=n.useState(!1),w=(0,l.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,i,o)}),_=(0,h.B)(),x=n.useRef("touch"),k=()=>{o||(u.onValueChange(i),u.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,v.jsx)(ex,{scope:r,value:i,disabled:o,textId:_,isSelected:p,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,v.jsx)(N.ItemSlot,{scope:r,value:i,disabled:o,textValue:f,children:(0,v.jsx)(g.sG.div,{role:"option","aria-labelledby":_,"data-highlighted":y?"":void 0,"aria-selected":p&&y,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:w,onFocus:(0,a.mK)(c.onFocus,()=>b(!0)),onBlur:(0,a.mK)(c.onBlur,()=>b(!1)),onClick:(0,a.mK)(c.onClick,()=>{"mouse"!==x.current&&k()}),onPointerUp:(0,a.mK)(c.onPointerUp,()=>{"mouse"===x.current&&k()}),onPointerDown:(0,a.mK)(c.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.mK)(c.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.mK)(c.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(M.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});eS.displayName=e_;var eE="SelectItemText",eA=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...s}=e,c=z(eE,r),u=en(eE,r),d=ek(eE,r),p=$(eE,r),[f,h]=n.useState(null),m=(0,l.s)(t,e=>h(e),d.onItemTextChange,e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,d.value,d.disabled)}),y=null==f?void 0:f.textContent,b=n.useMemo(()=>(0,v.jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:w,onNativeOptionRemove:_}=p;return(0,C.N)(()=>(w(b),()=>_(b)),[w,_,b]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(g.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?i.createPortal(s.children,c.valueNode):null]})});eA.displayName=eE;var eC="SelectItemIndicator",eO=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ek(eC,r).isSelected?(0,v.jsx)(g.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eO.displayName=eC;var eT="SelectScrollUpButton",eR=n.forwardRef((e,t)=>{let r=en(eT,e.__scopeSelect),i=ep(eT,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,C.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,v.jsx)(eM,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eR.displayName=eT;var ej="SelectScrollDownButton",eP=n.forwardRef((e,t)=>{let r=en(ej,e.__scopeSelect),i=ep(ej,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,C.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,v.jsx)(eM,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eP.displayName=ej;var eM=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,onAutoScroll:i,...o}=e,s=en("SelectScrollButton",r),l=n.useRef(null),c=D(r),u=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>u(),[u]),(0,C.N)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[c]),(0,v.jsx)(g.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{u()})})}),eI="SelectSeparator",eN=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,v.jsx)(g.sG.div,{"aria-hidden":!0,...n,ref:t})});eN.displayName=eI;var eD="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=H(r),o=z(eD,r),a=en(eD,r);return o.open&&"popper"===a.position?(0,v.jsx)(m.i3,{...i,...n,ref:t}):null}).displayName=eD;var eL="SelectBubbleInput",eU=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,...o}=e,a=n.useRef(null),s=(0,l.s)(t,a),c=(0,O.Z)(i);return n.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(c!==i&&t){let r=new Event("change",{bubbles:!0});t.call(e,i),e.dispatchEvent(r)}},[c,i]),(0,v.jsx)(g.sG.select,{...o,style:{...T.Qg,...o.style},ref:s,defaultValue:i})});function eF(e){return""===e||void 0===e}function eH(e){let t=(0,E.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,a]}function eB(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=ez(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function ez(e,t){return e.map((r,n)=>e[(t+n)%e.length])}eU.displayName=eL;var eW=q,e$=V,eq=G,eK=X,eV=Y,eJ=ee,eG=eh,eZ=ev,eX=ew,eY=eS,eQ=eA,e0=eO,e1=eR,e2=eP,e3=eN},4816:(e,t,r)=>{var n=r(66126),i=500;e.exports=function(e){var t=n(e,function(e){return r.size===i&&r.clear(),e}),r=t.cache;return t}},5425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=r(45520)},5450:(e,t,r)=>{var n="/",i=r(95704),o=r(15376).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<e.length;o++)if(t.call(e,o)){var a=e[o];r.call(n,a,o,e)&&i.push(a)}return i};var t=Object.prototype.hasOwnProperty},167:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var a,s,l=r(23).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,u=l.ERR_INVALID_ARG_TYPE,d=l.ERR_INVALID_ARG_VALUE,p=l.ERR_INVALID_RETURN_VALUE,f=l.ERR_MISSING_ARGS,h=r(404),m=r(177).inspect,y=r(177).types,g=y.isPromise,v=y.isRegExp,b=Object.assign?Object.assign:r(604).assign,w=Object.is?Object.is:r(208);function _(){var e=r(176);a=e.isDeepEqual,s=e.isDeepStrictEqual}var x=!1,k=e.exports=O,S={};function E(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function A(e,t,r,n,o){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===x&&(x=!0,(i.emitWarning?i.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var l={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:o||A};void 0!==r&&(l.message=r);var c=new h(l);throw a&&(c.message=a,c.generatedMessage=!0),c}function C(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];C.apply(void 0,[O,t.length].concat(t))}function T(e,t,r){if(arguments.length<2)throw new f("actual","expected");void 0===a&&_(),s(e,t)&&E({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:T})}k.fail=A,k.AssertionError=h,k.ok=O,k.equal=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t!=r&&E({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},k.notEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");t==r&&E({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},k.deepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&_(),a(t,r)||E({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},k.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&_(),a(t,r)&&E({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},k.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&_(),s(t,r)||E({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},k.notDeepStrictEqual=T,k.strictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");w(t,r)||E({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},k.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new f("actual","expected");
vendor: 4,130 bytes, line 1
1w(t,r)&&E({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var R=function e(t,r,n){var i=this;o(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&v(t[e])&&t[e].test(n[e])?i[e]=n[e]:i[e]=t[e])})};function j(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new h({actual:new R(e,i),expected:new R(t,i,e),operator:"deepStrictEqual",stackStartFn:o});throw a.actual=e,a.expected=t,a.operator=o.name,a}E({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}function P(e,t,r,i){if("function"!=typeof t){if(v(t))return t.test(e);if(2==arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new d("error",t,"may not be an empty object");return void 0===a&&_(),s.forEach(function(n){"string"==typeof e[n]&&v(t[n])&&t[n].test(e[n])||j(e,t,n,r,s,i)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return S}function I(e){return g(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function N(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!I(t=e()))throw new p("instance of Promise","promiseFn",t)}else if(I(e))t=e;else throw new u("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return S}).catch(function(e){return e})})}function D(e,t,r,i){if("string"==typeof r){if(4==arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var a="rejects"===e.name?"rejection":"exception";E({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!P(t,r,i,e))throw t}function L(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";E({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];C.apply(void 0,[U,t.length].concat(t))}k.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];D.apply(void 0,[e,M(t)].concat(n))},k.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return N(t).then(function(t){return D.apply(void 0,[e,t].concat(n))})},k.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];L.apply(void 0,[e,M(t)].concat(n))},k.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return N(t).then(function(t){return L.apply(void 0,[e,t].concat(n))})},k.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=m(t);var i=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=i.stack.split("\n"),l=0;l<a.length;l++){var c=s.indexOf(a[l]);if(-1!==c){s=s.slice(0,c);break}}i.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw i}},k.strict=b(U,k,{equal:k.strictEqual,deepEqual:k.deepStrictEqual,notEqual:k.notStr
1ictEqual,notDeepEqual:k.notDeepStrictEqual}),k.strict.strict=k.strict},404:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function c(e,t){return t&&("object"===v(t)||"function"==typeof t)?t:u(e)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||!m(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)})(e)}function f(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e,t,r){return(h=f()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&y(i,r.prototype),i}).apply(null,arguments)}function m(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=r(177).inspect,w=r(23).codes.ERR_INVALID_ARG_TYPE;function _(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function x(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var k="",S="",E="",A="",C={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},O=10;function T(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return b(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function j(e,t,r){var n="",o="",a=0,s="",l=!1,c=R(e),u=c.split("\n"),d=R(t).split("\n"),p=0,f="";if("strictEqual"===r&&"object"===v(e)&&"object"===v(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var h=u[0].length+d[0].length;if(h<=O){if(("object"!==v(e)||null===e)&&("object"!==v(t)||null===t)&&(0!==e||0!==t))return"".concat(C[r],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&h<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;u[0][p]===d[0][p];)p++;p>2&&(f="\n  ".concat(x(" ",p),"^"),p=0)}}for(var m=u[u.length-1],y=d[d.length-1];m===y&&(p++<2?s="\n  ".concat(m).concat(s):n=m,u.pop(),d.pop(),0!==u.length&&0!==d.length);)m=u[u.length-1],y=d[d.length-1];var g=Math.max(u.length,d.length);if(0===g){var b=c.split("\n");if(b.length>30)for(b[26]="".concat(k,"...").concat(A);b.length>27;)b.pop();return"".concat(C.notIdentical,"\n\n").concat(b.join("\n"),"\n")}p>
vendor: 4,185 bytes, line 1
13&&(s="\n".concat(k,"...").concat(A).concat(s),l=!0),""!==n&&(s="\n  ".concat(n).concat(s),n="");var w=0,T=C[r]+"\n".concat(S,"+ actual").concat(A," ").concat(E,"- expected").concat(A),j=" ".concat(k,"...").concat(A," Lines skipped");for(p=0;p<g;p++){var P=p-a;if(u.length<p+1)P>1&&p>2&&(P>4?(o+="\n".concat(k,"...").concat(A),l=!0):P>3&&(o+="\n  ".concat(d[p-2]),w++),o+="\n  ".concat(d[p-1]),w++),a=p,n+="\n".concat(E,"-").concat(A," ").concat(d[p]),w++;else if(d.length<p+1)P>1&&p>2&&(P>4?(o+="\n".concat(k,"...").concat(A),l=!0):P>3&&(o+="\n  ".concat(u[p-2]),w++),o+="\n  ".concat(u[p-1]),w++),a=p,o+="\n".concat(S,"+").concat(A," ").concat(u[p]),w++;else{var M=d[p],I=u[p],N=I!==M&&(!_(I,",")||I.slice(0,-1)!==M);N&&_(M,",")&&M.slice(0,-1)===I&&(N=!1,I+=","),N?(P>1&&p>2&&(P>4?(o+="\n".concat(k,"...").concat(A),l=!0):P>3&&(o+="\n  ".concat(u[p-2]),w++),o+="\n  ".concat(u[p-1]),w++),a=p,o+="\n".concat(S,"+").concat(A," ").concat(I),n+="\n".concat(E,"-").concat(A," ").concat(M),w+=2):(o+=n,n="",(1===P||0===p)&&(o+="\n  ".concat(I),w++))}if(w>20&&p<g-2)return"".concat(T).concat(j,"\n").concat(o,"\n").concat(k,"...").concat(A).concat(n,"\n")+"".concat(k,"...").concat(A)}return"".concat(T).concat(l?j:"","\n").concat(o).concat(n).concat(s).concat(f)}e.exports=function(e){function t(e){if(a(this,t),"object"!==v(e)||null===e)throw new w("options","Object",e);var r,n=e.message,o=e.operator,s=e.stackStartFn,l=e.actual,d=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=c(this,g(t).call(this,String(n)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(k="\x1b[34m",S="\x1b[32m",A="\x1b[39m",E="\x1b[31m"):(k="",S="",A="",E="")),"object"===v(l)&&null!==l&&"object"===v(d)&&null!==d&&"stack"in l&&l instanceof Error&&"stack"in d&&d instanceof Error&&(l=T(l),d=T(d)),"deepStrictEqual"===o||"strictEqual"===o)r=c(this,g(t).call(this,j(l,d,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=C[o],h=R(l).split("\n");if("notStrictEqual"===o&&"object"===v(l)&&null!==l&&(f=C.notStrictEqualObject),h.length>30)for(h[26]="".concat(k,"...").concat(A);h.length>27;)h.pop();r=1===h.length?c(this,g(t).call(this,"".concat(f," ").concat(h[0]))):c(this,g(t).call(this,"".concat(f,"\n\n").concat(h.join("\n"),"\n")))}else{var m=R(l),y="",b=C[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(C[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(y="".concat(R(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(b,"\n\n").concat(m,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),r=c(this,g(t).call(this,"".concat(m).concat(y)))}return Error.stackTraceLimit=p,r.generatedMessage=!n,Object.defineProperty(u(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=l,r.expected=d,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(u(r),s),r.stack,r.name="AssertionError",c(r)}return d(t,e),l(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:b.custom,value:function(e,t){return b(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(p(Error))},23:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}
1function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u,d,p={};function f(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,l){var c;return i(this,r),(c=o(this,s(r).call(this,n(t,a,l)))).code=e,c}return l(r,t),r}(r);p[e]=a}function h(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function m(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function y(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function g(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===u&&(u=r(167)),u("string"==typeof e,"'name' must be a string"),"string"==typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",y(e," argument"))a="The ".concat(e," ").concat(o," ").concat(h(t,"type"));else{var o,a,s=g(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(h(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),f("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===d&&(d=r(177));var i=d.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===u&&(u=r(167)),u(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=p},176:function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},u=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},d=Object.is?Object.is:r(208),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:r(718);function h(e){return e.call.bind(e)}var m=h(Object.prototype.hasOwnProperty),y=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),v=r(177).types,b=v.isAnyArrayBuffer,w=v.isArrayBufferView,_=v.isDate,x=v.isMap,k=v.isRegExp,S=v.isSet,E=v.isNativeError,A=v.isBoxedPrimitive,C=v.isNumberObject,O=v.isStringObject,T=v.isBooleanObject,R=v.isBigIntObject,j=v.isSymbolObject,P=v.isFloat32Array,M=v.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=0x100000000}function N(e){return Object.keys(e).filter(I).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function D(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)}var L=void 0,U=!0,F=!1,H=0,B=1,z=2,W=3;function $(e,t){return l?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function K(e,t){return e.byteLength===t.byteLength&&0===D(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function V(e,t){return e.byteLength===t.byteLength&&0===D(new Uint8Array(e),new Uint8Array(t))}function J(e,t){return C(e)?C(t)&&d(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function G(e,t,r,n){if(e===t)return 0!==e||!r||d(e,t);if(r){if("object"!==s(e))return"number"==typeof e&&f(e)&&f(t);if("object"!==s(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==s(e))return(null===t||"object"!==s(t))&&e==t;if(null===t||"object"!==s(t))return!1}var i=g(e);if(i!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=N(e,L),a=N(t,L);return o.length===a.length&&X(e,t,r,n,B,o)}if("[object Object]"===i&&(!x(e)&&x(t)||!S(e)&&S(t)))return!1;if(_(e)){if(!_(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(k(e)){if(!k(t)||!$(e,t))return!1}else if(E(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(w(e)){if(!r&&(P(e)||M(e))){if(!q(e,t))return!1}else if(!K(e,t))return!1;var l=N(e,L),c=N(t,L);return l.length===c.length&&X(e,t,r,n,H,l)}else if(S(e))return!!S(t)&&e.size===t.size&&X(e,t,r,n,z);else if(x(e))return!!x(t)&&e.size===t.size&&X(e,t,r,n,W);else if(b(e)){if(!V(e,t))return!1}else if(A(e)&&!J(e,t))return!1;return X(e,t,r,n,H)}function Z(e,t){return t.filter(function(t){return y(e,t)})}function X(e,t,r,n,i,o){if(5==arguments.length){o=Object.keys(e);var a=Object.keys(t);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!m(t,o[s]))return!1;if(r&&5==arguments.length){var l=p(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(y(e,u)){if(!y(t,u))return!1;o.push(u),c++}else if(y(t,u))return!1}var d=p(t);if(l.length!==d.length&&Z(t,d).length!==c)return!1}else{var f=p(t);if(0!==f.length&&0!==Z(t,f).length)return!1}}if(0===o.length&&(i===H||i===B&&0===e.length||0===e.size))return!0;
1if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var g=n.val2.get(t);if(void 0!==g)return h===g}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var v=eo(e,t,r,o,n,i);return n.val1.delete(e),n.val2.delete(t),v}function Y(e,t,r,n){for(var i=c(e),o=0;o<i.length;o++){var a=i[o];if(G(t,a,r,n))return e.delete(a),!0}return!1}function Q(e){switch(s(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e*=1;case"number":if(f(e))return!1}return!0}function ee(e,t,r){var n=Q(r);return null!=n?n:t.has(n)&&!e.has(n)}function et(e,t,r,n,i){var o=Q(r);if(null!=o)return o;var a=t.get(o);return(void 0!==a||!!t.has(o))&&!!G(n,a,!1,i)&&!e.has(o)&&G(n,a,!1,i)}function er(e,t,r,n){for(var i=null,o=c(e),a=0;a<o.length;a++){var l=o[a];if("object"===s(l)&&null!==l)null===i&&(i=new Set),i.add(l);else if(!t.has(l)){if(r||!ee(e,t,l))return!1;null===i&&(i=new Set),i.add(l)}}if(null!==i){for(var u=c(t),d=0;d<u.length;d++){var p=u[d];if("object"===s(p)&&null!==p){if(!Y(i,p,r,n))return!1}else if(!r&&!e.has(p)&&!Y(i,p,r,n))return!1}return 0===i.size}return!0}function en(e,t,r,n,i,o){for(var a=c(e),s=0;s<a.length;s++){var l=a[s];if(G(r,l,i,o)&&G(n,t.get(l),i,o))return e.delete(l),!0}return!1}function ei(e,t,r,i){for(var o=null,a=u(e),l=0;l<a.length;l++){var c=n(a[l],2),d=c[0],p=c[1];if("object"===s(d)&&null!==d)null===o&&(o=new Set),o.add(d);else{var f=t.get(d);if(void 0===f&&!t.has(d)||!G(p,f,r,i)){if(r||!et(e,t,d,p,i))return!1;null===o&&(o=new Set),o.add(d)}}}if(null!==o){for(var h=u(t),m=0;m<h.length;m++){var y=n(h[m],2),d=y[0],g=y[1];if("object"===s(d)&&null!==d){if(!en(o,e,d,g,r,i))return!1}else if(!r&&(!e.has(d)||!G(e.get(d),g,!1,i))&&!en(o,e,d,g,!1,i))return!1}return 0===o.size}return!0}function eo(e,t,r,n,i,o){var a=0;if(o===z){if(!er(e,t,r,i))return!1}else if(o===W){if(!ei(e,t,r,i))return!1}else if(o===B)for(;a<e.length;a++)if(m(e,a)){if(!m(t,a)||!G(e[a],t[a],r,i))return!1}else{if(m(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var l=s[a];if(!m(t,l)||!G(e[l],t[l],r,i))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var c=n[a];if(!G(e[c],t[c],r,i))return!1}return!0}e.exports={isDeepEqual:function(e,t){return G(e,t,F)},isDeepStrictEqual:function(e,t){return G(e,t,U)}}},256:function(e,t,r){"use strict";var n=r(192),i=r(139),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},69:function(e,t,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},u=s&&c(),d=function(e,t,r,n){(!(t in e)||l(n)&&n())&&(u?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},p=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)d(e,o[s],t[o[s]],r[o[s]])};p.supportsDescriptors=!!u,e.exports=p},181:function(e){"use strict";e.exports=EvalError},545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},803:function(e){"use strict";e.exports=ReferenceError},182:function(e){"use strict";e.exports=SyntaxError},202:function(e){"use strict";e.exports=TypeError},284:function(e){"use strict";e.exports=URIError},604:function(e){"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var l=o[a],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(r[l]=i[l])}}return r}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
1configurable:!0,writable:!0,value:t})}e.exports={assign:t,polyfill:r}},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},136:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l,c=this;if("function"!=typeof c||r.apply(c)!==i)throw TypeError(t+c);for(var u=a(arguments,1),d=function(){if(this instanceof l){var t=c.apply(this,o(u,arguments));return Object(t)===t?t:this}return c.apply(e,o(u,arguments))},p=n(0,c.length-u.length),f=[],h=0;h<p;h++)f[h]="$"+h;if(l=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var m=function(){};m.prototype=c.prototype,l.prototype=new m,m.prototype=null}return l}},212:function(e,t,r){"use strict";var n=r(136);e.exports=Function.prototype.bind||n},192:function(e,t,r){"use strict";var n,i=r(545),o=r(181),a=r(22),s=r(803),l=r(182),c=r(202),u=r(284),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},m=f?function(){try{return arguments.callee,h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,y=r(115)(),g=r(14)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},w="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var x=v(v(e));_["%Error.prototype%"]=x}var k=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(r=v(i.prototype))}return _[t]=r,r},S={__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"]},E=r(212),A=r(270),C=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),T=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),j=E.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,I=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return T(e,P,function(e,t,r,i){n[n.length]=r?T(i,M,"$1"):t||e}),n},N=function(e,t){var r,n=e;if(A(S,n)&&(n="%"+(r=S[n])[0]+"%"),A(_,n)){var i=_[n];if(i===b&&(i=k(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=I(e),n=r.length>0?r[0]:"",i=N("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],O(r,C([0,1],u)));for(var d=1,p=!0;d<r.length;d+=1){var h=r[d],m=R(h,0,1),y=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),n+="."+h,A(_,o="%"+n+"%"))a=_[o];
1else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&d+1>=r.length){var g=f(a,h);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=A(a,h),a=a[h];p&&!s&&(_[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(212).call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),i=r(69),o=r(460),a=r(625),s=r(171),l=n(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),i=r(625);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=a("String.prototype.slice"),p={},f=n(24),h=Object.getPrototypeOf;l&&f&&h&&i(c,function(e){var t=new r.g[e];
1if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),i=f(n,Symbol.toStringTag);i||(i=f(h(n),Symbol.toStringTag)),p[e]=i.get});var m=function(e){var t=!1;return i(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(l?!!f&&m(e):u(c,d(s(e),8,-1))>-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var f=0;f<e.length;++f)d.push(String(f));if(n&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var y in e)!(p&&"prototype"===y)&&i.call(e,y)&&d.push(String(y));if(l)for(var g=h(e),v=0;v<u.length;++v)!(g&&"constructor"===u[v])&&i.call(e,u[v])&&d.push(u[v]);return d}}e.exports=n},935:function(e,t,r){"use strict";var n=Array.prototype.slice,i=r(412),o=Object.keys,a=o?function(e){return o(e)}:r(579),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},412:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function w(e){return"[object WeakSet]"===u(e)}function _(e){return"[object ArrayBuffer]"===u(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===u(e)}function S(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)}
1,g.working="undefined"!=typeof Map&&g(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(g.working?g(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===u(e)}function C(e){return void 0!==E&&(void 0===A.working&&(A.working=A(new E)),A.working?A(e):e instanceof E)}function O(e){return y(e,d)}function T(e){return y(e,p)}function R(e){return y(e,f)}function j(e){return l&&y(e,h)}function P(e){return c&&y(e,m)}t.isSharedArrayBuffer=C,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=O,t.isStringObject=T,t.isBooleanObject=R,t.isBigIntObject=j,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return O(e)||T(e)||R(e)||j(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||C(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!k(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])_(s)||!A(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.env.NODE_DEBUG){var l=i.env.NODE_DEBUG;s=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),f(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return k(o)||(o=f(e,o,n)),o}var a=h(e,r);if(a)return a;var s=Object.keys(r),l=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),O(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(T(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return m(r)}var u="",d=!1,w=["{","}"];if(b(r)&&(d=!0,w=["[","]"]),T(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),C(r)&&(u=" "+Date.prototype.toUTCString.call(r)),O(r)&&(u=" "+m(r)),0===s.length&&(!d||0==r.length))return w[0]+u+w[1];if(n<0)if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=d?y(e,r,n,l,s):s.map(function(t){return g(e,r,n,l,t,d)}),e.seen.pop(),v(i,u,w)}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(k(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
vendor: 4,290 bytes, line 1
1return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(g(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(g(e,t,r,n,i,!0))}),o}function g(e,t,r,n,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(l.value)?(s=_(r)?f(e,l.value,null):f(e,l.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function v(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function x(e){return"number"==typeof e}function k(e){return"string"==typeof e}function S(e){return void 0===e}function E(e){return A(e)&&"[object RegExp]"===R(e)}function A(e){return"object"==typeof e&&null!==e}function C(e){return A(e)&&"[object Date]"===R(e)}function O(e){return A(e)&&("[object Error]"===R(e)||e instanceof Error)}function T(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=b,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=x,t.isString=k,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=E,t.types.isRegExp=E,t.isObject=A,t.isDate=C,t.types.isDate=C,t.isError=O,t.types.isNativeError=O,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(369);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t=e[N];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,
1configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(D.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},490:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),l=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),u=a("String.prototype.slice"),d={},p=n(24),f=Object.getPrototypeOf;l&&p&&f&&i(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=f(t),i=p(n,Symbol.toStringTag);i||(i=p(f(n),Symbol.toStringTag)),d[e]=i.get}});var h=function(e){var t=!1;return i(d,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(e){}}),t},m=n(994);e.exports=function(e){return!!m(e)&&(l?h(e):u(s(e),8,-1))}},349:function(e,t,n){"use strict";var i=n(992);e.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(192)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/",e.exports=s(167)}()},5917:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6745:(e,t,r)=>{var n=r(70300),i="__lodash_hash_undefined__";e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?i:t,this}},7746:(e,t,r)=>{let n=r(34282),i=r(21107);class o{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=i()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-i(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=o},8196:(e,t,r)=>{let n=r(634),i=r(33018);e.exports=n.types.isKeyObject||(e=>e&&e instanceof i.KeyObject)},8289:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(94056);function i(e){let{url:t,theme:r}=e;return(0,n.h)("div",{className:"verify-request"},r.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
2        :root {
3          --brand-color: ${r.brandColor}
4        }
5      `}}),(0,n.h)("div",{className:"card"},r.logo&&(0,n.h)("img",{src:r.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Check your email"),(0,n.h)("p",null,"A sign in link has been sent to your email address."),(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:t.origin},t.host))))}},8369:(e,t)=>{var r="=";function n(e,t){return o(i(a(e),a(t)))}function i(e,t){var r=s(e);r.length>16&&(r=c(r,8*e.length));for(var n=Array(16),i=Array(16),o=0;o<16;o++)n[o]=0x36363636^r[o],i[o]=0x5c5c5c5c^r[o];var a=c(n.concat(s(t)),512+8*t.length);return l(c(i.concat(a),672))}function o(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",i=e.length,o=0;o<i;o+=3)for(var a=e.charCodeAt(o)<<16|(o+1<i?e.charCodeAt(o+1)<<8:0)|(o+2<i?e.charCodeAt(o+2):0),s=0;s<4;s++)8*o+6*s>8*e.length?n+=r:n+=t.charAt(a>>>6*(3-s)&63);return n}function a(e){for(var t,r,n="",i=-1;++i<e.length;)t=e.charCodeAt(i),r=i+1<e.length?e.charCodeAt(i+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),i++),t<=127?n+=String.fromCharCode(t):t<=2047?n+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?n+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(n+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return n}function s(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function l(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function c(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),n=0x67452301,i=-0x10325477,o=-0x67452302,a=0x10325476,s=-0x3c2d1e10,l=0;l<e.length;l+=16){for(var c=n,h=i,m=o,y=a,g=s,v=0;v<80;v++){v<16?r[v]=e[l+v]:r[v]=f(r[v-3]^r[v-8]^r[v-14]^r[v-16],1);var b=p(p(f(n,5),u(v,i,o,a)),p(p(s,r[v]),d(v)));s=a,a=o,o=f(i,30),i=n,n=b}n=p(n,c),i=p(i,h),o=p(o,m),a=p(a,y),s=p(s,g)}return[n,i,o,a,s]}function u(e,t,r,n){return e<20?t&r|~t&n:e<40?t^r^n:e<60?t&r|t&n|r&n:t^r^n}function d(e){return e<20?0x5a827999:e<40?0x6ed9eba1:e<60?-0x70e44324:-0x359d3e2a}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(e,t){return e<<t|e>>>32-t}t.HMACSHA1=function(e,t){return n(e,t)}},8567:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)},8828:(e,t,r)=>{"use strict";e.exports=r(83654)},9611:(e,t)=>{"use strict";var r;r={value:!0},t.A=function e(e){return{id:"google",name:"Google",type:"oauth",wellKnown:"https://accounts.google.com/.well-known/openid-configuration",authorization:{params:{scope:"openid email profile"}},idToken:!0,checks:["pkce","state"],profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:e}}},10260:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callback",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"signin",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"signout",{enumerable:!0,get:function(){return a.default}});var i=n(r(34731)),o=n(r(27638)),a=n(r(43535)),s=n(r(11012)),l=n(r(95382))},10296:(e,t,r)=>{"use strict";var n=r(95704);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{atLeastOneTask:function(){return a},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return i},waitAtLeastOneReactRenderTask:function(){return s}});let i=e=>{Promise.resolve().then(()=>{n.nextTick(e)})},o=e=>{setImmediate(e)};function a(){return new Promise(e=>o(e))}function s(){return new Promise(e=>setImmediate(e))}},10939:(e,t)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isHangingPromiseRejectionError:function(){return r},makeDevtoolsIOAwarePromise:function(){return l},makeHangingPromise:function(){return a}});let n="HANGING_PROMISE_REJECTION";class i extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} 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 "${e}".`),this.route=e,this.expression=t,this.digest=n}}let o=new WeakMap;function a(e,t,r){if(e.aborted)return Promise.reject(new i(t,r));{let n=new Promise((n,a)=>{let s=a.bind(null,new i(t,r)),l=o.get(e);if(l)l.push(s);else{let t=[s];o.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return n.catch(s),n}}function s(){}function l(e){return new Promise(t=>{setTimeout(()=>{t(e)},0)})}},11012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(46090);async function i(e){var t,r,i,o,a,s;let{options:l,sessionStore:c,newSession:u,isUpdate:d}=e,{adapter:p,jwt:f,events:h,callbacks:m,logger:y,session:{strategy:g,maxAge:v}}=l,b={body:{},headers:[{key:"Content-Type",value:"application/json"},...d?[]:[{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"},{key:"Expires",value:"0"}]].filter(Boolean),cookies:[]},w=c.value;if(!w)return b;if("jwt"===g)try{let e=await f.decode({...f,token:w});if(!e)throw Error("JWT invalid");let i=await m.jwt({token:e,...d&&{trigger:"update"},session:u}),o=(0,n.fromDate)(v),a=await m.session({session:{user:{name:null==e?void 0:e.name,email:null==e?void 0:e.email,image:null==e?void 0:e.picture},expires:o.toISOString()},token:i});b.body=a;let s=await f.encode({...f,token:i,maxAge:l.session.maxAge}),p=c.chunk(s,{expires:o});null==(t=b.cookies)||t.push(...p),await (null==(r=h.session)?void 0:r.call(h,{session:a,token:i}))}catch(e){y.error("JWT_SESSION_ERROR",e),null==(i=b.cookies)||i.push(...c.clean())}else try{let{getSessionAndUser:e,deleteSession:t,updateSession:r}=p,i=await e(w);if(i&&i.session.expires.valueOf()<Date.now()&&(await t(w),i=null),i){let{user:e,session:t}=i,s=l.session.updateAge,c=t.expires.valueOf()-1e3*v+1e3*s,p=(0,n.fromDate)(v);c<=Date.now()&&await r({sessionToken:w,expires:p});let f=await m.session({session:{user:{name:e.name,email:e.email,image:e.image},expires:t.expires.toISOString()},user:e,newSession:u,...d?{trigger:"update"}:{}});b.body=f,null==(o=b.cookies)||o.push({name:l.cookies.sessionToken.name,value:w,options:{...l.cookies.sessionToken.options,expires:p}}),await (null==(a=h.session)?void 0:a.call(h,{session:f}))}else w&&(null==(s=b.cookies)||s.push(...c.clean()))}catch(e){y.error("SESSION_ERROR",e)}return b}},11124:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 7,634 bytes, line 5
5),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,(function(t){return e[t]}).bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t){e.exports=r(12115)},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=c.Symbol,p=d?d.prototype:void 0,f=p?p.toString:void 0;function h(e){if("string"==typeof e)return e;if(y(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}function g(e){return e?(e=function(e){if("number"==typeof e)return e;if(y(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):n.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,r){var n,i,o,a;return e=null==(n=e)?"":h(n),i=function(e){var t=g(e),r=t%1;return t==t?r?t-r:t:0}(r),o=0,a=e.length,i==i&&(void 0!==a&&(i=i<=a?i:a),void 0!==o&&(i=i>=o?i:o)),r=i,t=h(t),e.slice(r,r+t.length)==t}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){(function(t){var r,n=/^\[object .+?Constructor\]$/,i="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")(),s=Array.prototype,l=Function.prototype,c=Object.prototype,u=a["__core-js_shared__"],d=(r=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",p=l.toString,f=c.hasOwnProperty,h=c.toString,m=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=s.splice,g=E(a,"Map"),v=E(Object,"create");function b(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function w(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function x(e,t){for(var r,n,i=e.length;i--;)if((r=e[i][0])===(n=t)||r!=r&&n!=n)return i;return -1}function k(e){var t;return!(!C(e)||(t=e,d&&d in t))&&((function(e){var t=C(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t})(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?m:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function S(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function E(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return k(r)?r:void 0}function A(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(A.Cache||_),r}function C(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=v?v(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(v){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return f.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return v?void 0!==t[e]:f.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=v&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,r=x(t,e);return!(r<0)&&(r==t.length-1?t.pop():y.call(t,r,1),!0)},w.prototype.get=function(e){var t=this.__data__,r=x(t,e);return r<0?void 0:t[r][1]},w.prototype.has=function(e){return x(this.__data__,e)>-1},w.prototype.set=function(e,t){var r=this.__data__,n=x(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(g||w),string:new b}},_.prototype.delete=function(e){return S(this,e).delete(e)},_.prototype.get=function(e){return S(this,e).get(e)},_.prototype.has=function(e){return S(this,e).has(e)},_.prototype.set=function(e,t){return S(this,e).set(e,t),this},A.Cache=_,e.exports=A}).call(this,r(3))},function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var s=i.test(e);return s||o.test(e)?a(e.slice(2),s?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,y=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function b(e){return c=e,s=setTimeout(_,t),u?v(e):a}function w(e){var r=e-l;return void 0===l||r>=t||r<0||y&&e-c>=o}function _(){var e=f();if(w(e))return x(e);s=setTimeout(_,function(e){var r=t-(e-l);return y?p(r,o-(e-c)):r}(e))}function x(e){return s=void 0,g&&n?v(e):(n=i=void 0,a)}function k(){var e=f(),r=w(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return b(l);if(y)return s=setTimeout(_,t),v(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=m(t)||0,h(r)&&(u=!!r.leading,o=(y="maxWait"in r)?d(m(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},k.flush=function(){return void 0===s?a:x(f())},k}}).call(this,r(3))},function(e,t,r){(function(e,r){var n="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};
vendor: 5,923 bytes, line 5
5h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[n]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[i]=h["[object Number]"]=h[o]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,g=m||y||Function("return this")(),v=t&&!t.nodeType&&t,b=v&&"object"==typeof r&&r&&!r.nodeType&&r,w=b&&b.exports===v&&m.process,_=function(){try{return w&&w.binding("util")}catch(e){}}(),x=_&&_.isTypedArray;function k(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function S(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function E(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function A(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function C(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function O(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var T,R,j,P=Array.prototype,M=Function.prototype,I=Object.prototype,N=g["__core-js_shared__"],D=(T=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",L=M.toString,U=I.hasOwnProperty,F=I.toString,H=RegExp("^"+L.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=g.Symbol,z=g.Uint8Array,W=I.propertyIsEnumerable,$=P.splice,q=(R=Object.keys,j=Object,function(e){return R(j(e))}),K=eA(g,"DataView"),V=eA(g,"Map"),J=eA(g,"Promise"),G=eA(g,"Set"),Z=eA(g,"WeakMap"),X=eA(Object,"create"),Y=eI(K),Q=eI(V),ee=eI(J),et=eI(G),er=eI(Z),en=B?B.prototype:void 0,ei=en?en.valueOf:void 0,eo=en?en.toString:void 0;function ea(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function es(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function el(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ec(e){var t=-1,r=e?e.length:0;for(this.__data__=new el;++t<r;)this.add(e[t])}function eu(e){this.__data__=new es(e)}function ed(e,t){var r=eU(e)||eL(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!U.call(e,o)||i&&("length"==o||eO(o,n))||r.push(o);return r}function ep(e,t){for(var r=e.length;r--;)if(eD(e[r][0],t))return r;return -1}ea.prototype.clear=function(){this.__data__=X?X(null):{}},ea.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ea.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return U.call(t,e)?t[e]:void 0},ea.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:U.call(t,e)},ea.prototype.set=function(e,t){return this.__data__[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},es.prototype.clear=function(){this.__data__=[]},es.prototype.delete=function(e){var t=this.__data__,r=ep(t,e);return!(r<0)&&(r==t.length-1?t.pop():$.call(t,r,1),!0)},es.prototype.get=function(e){var t=this.__data__,r=ep(t,e);return r<0?void 0:t[r][1]},es.prototype.has=function(e){return ep(this.__data__,e)>-1},es.prototype.set=function(e,t){var r=this.__data__,n=ep(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},el.prototype.clear=function(){this.__data__={hash:new ea,map:new(V||es),string:new ea}},el.prototype.delete=function(e){return eE(this,e).delete(e)},el.prototype.get=function(e){return eE(this,e).get(e)},el.prototype.has=function(e){return eE(this,e).has(e)},el.prototype.set=function(e,t){return eE(this,e).set(e,t),this},ec.prototype.add=ec.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ec.prototype.has=function(e){return this.__data__.has(e)},eu.prototype.clear=function(){this.__data__=new es},eu.prototype.delete=function(e){return this.__data__.delete(e)},eu.prototype.get=function(e){return this.__data__.get(e)},eu.prototype.has=function(e){return this.__data__.has(e)},eu.prototype.set=function(e,t){var r=this.__data__;if(r instanceof es){var n=r.__data__;if(!V||n.length<199)return n.push([e,t]),this;r=this.__data__=new el(n)}return r.set(e,t),this};var ef,eh,em=(ef=function(e,t){return e&&ey(e,t,eK)},function(e,t){if(null==e)return e;if(!eF(e))return ef(e,t);for(var r=e.length,n=eh?r:-1,i=Object(e);(eh?n--:++n<r)&&!1!==t(i[n],n,i););return e}),ey=function(e){return function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e}}();function eg(e,t){for(var r=0,n=(t=eT(t,e)?[t]:ek(t)).length;null!=e&&r<n;)e=e[eM(t[r++])];return r&&r==n?e:void 0}function ev(e,t){return null!=e&&t in Object(e)}function eb(e,t,r,s,l){return e===t||(null!=e&&null!=t&&(ez(e)||eW(t))?function(e,t,r,s,l,c){var u=eU(e),d=eU(t),p="[object Array]",f="[object Array]";u||(p=(p=eC(e))==n?o:p),d||(f=(f=eC(t))==n?o:f);var h=p==o&&!A(e),m=f==o&&!A(t),y=p==f;if(y&&!h)return c||(c=new eu),u||eq(e)?eS(e,t,r,s,l,c):function(e,t,r,n,o,s,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new z(e),new z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return eD(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=C;case a:var u=2&s;if(c||(c=O),e.size!=t.size&&!u)break;var d=l.get(e);if(d)return d==t;s|=1,l.set(e,t);var p=eS(c(e),c(t),n,o,s,l);return l.delete(e),p;
vendor: 6,627 bytes, line 5
5case"[object Symbol]":if(ei)return ei.call(e)==ei.call(t)}return!1}(e,t,p,r,s,l,c);if(!(2&l)){var g=h&&U.call(e,"__wrapped__"),v=m&&U.call(t,"__wrapped__");if(g||v){var b=g?e.value():e,w=v?t.value():t;return c||(c=new eu),r(b,w,s,l,c)}}return!!y&&(c||(c=new eu),function(e,t,r,n,i,o){var a=2&i,s=eK(e),l=s.length;if(l!=eK(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:U.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var h=e[u=s[c]],m=t[u];if(n)var y=a?n(m,h,u,t,e,o):n(h,m,u,e,t,o);if(!(void 0===y?h===m||r(h,m,n,i,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,s,l,c))}(e,t,eb,r,s,l):e!=e&&t!=t)}function ew(e){return!(!ez(e)||function(e){return!!D&&D in e}(e))&&(eH(e)||A(e)?H:p).test(eI(e))}function e_(e){var t,r;return"function"==typeof e?e:null==e?eV:"object"==typeof e?eU(e)?function(e,t){return eT(e)&&eR(t)?ej(eM(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:eg(e,t);return void 0===n?void 0:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=eT(t,e)?[t]:ek(t);for(var n,i=-1,o=t.length;++i<o;){var a=eM(t[i]);if(!(n=null!=e&&r(e,a)))break;e=e[a]}return n||!!(o=e?e.length:0)&&eB(o)&&eO(a,o)&&(eU(e)||eL(e))}(e,t,ev)}(r,e):eb(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=eK(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,eR(i)]}return t}(e);return 1==t.length&&t[0][2]?ej(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,a=!0;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d,p=new eu;!1;if(!(void 0===d?eb(u,c,n,3,p):d))return!1}}return!0}(r,e,t)}}(e):eT(t=e)?(r=eM(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return eg(t,e)}}(t)}function ex(e){if(n="function"==typeof(r=(t=e)&&t.constructor)&&r.prototype||I,t!==n)return q(e);var t,r,n,i=[];for(var o in Object(e))U.call(e,o)&&"constructor"!=o&&i.push(o);return i}function ek(e){return eU(e)?e:eP(e)}function eS(e,t,r,n,i,o){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,p=1&i?new ec:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var f=e[u],h=t[u];if(n)var m=a?n(h,f,u,t,e,o):n(f,h,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!S(t,function(e,t){if(!p.has(t)&&(f===e||r(f,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(f!==h&&!r(f,h,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function eE(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function eA(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ew(r)?r:void 0}var eC=function(e){return F.call(e)};function eO(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function eT(e,t){if(eU(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!e$(e))||l.test(e)||!s.test(e)||null!=t&&e in Object(t)}function eR(e){return e==e&&!ez(e)}function ej(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(K&&"[object DataView]"!=eC(new K(new ArrayBuffer(1)))||V&&eC(new V)!=i||J&&"[object Promise]"!=eC(J.resolve())||G&&eC(new G)!=a||Z&&"[object WeakMap]"!=eC(new Z))&&(eC=function(e){var t=F.call(e),r=t==o?e.constructor:void 0,n=r?eI(r):void 0;if(n)switch(n){case Y:return"[object DataView]";case Q:return i;case ee:return"[object Promise]";case et:return a;case er:return"[object WeakMap]"}return t});var eP=eN(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(e$(e))return eo?eo.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var t,r=[];return c.test(e)&&r.push(""),e.replace(u,function(e,t,n,i){r.push(n?i.replace(d,"$1"):t||e)}),r});function eM(e){if("string"==typeof e||e$(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function eI(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eN(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(eN.Cache||el),r}function eD(e,t){return e===t||e!=e&&t!=t}function eL(e){return function(e){return eW(e)&&eF(e)}(e)&&U.call(e,"callee")&&(!W.call(e,"callee")||F.call(e)==n)}eN.Cache=el;var eU=Array.isArray;function eF(e){return null!=e&&eB(e.length)&&!eH(e)}function eH(e){var t=ez(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function eB(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function ez(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eW(e){return!!e&&"object"==typeof e}function e$(e){return"symbol"==typeof e||eW(e)&&"[object Symbol]"==F.call(e)}var eq=x?function(e){return function(t){return e(t)}}(x):function(e){return eW(e)&&eB(e.length)&&!!h[F.call(e)]};function eK(e){return eF(e)?ed(e):ex(e)}function eV(e){return e}r.exports=function(e,t,r){var n=eU(e)?k:E,i=arguments.length<3;return n(e,e_(t),r,i,em)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||i(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){if(Array.isArray(e))return e}
vendor: 10,131 bytes, line 5
5function s(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return(d="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t);var m=r(0),y=r.n(m),g=r(5),v=r.n(g),b=r(4),w=r.n(b),_=r(6),x=r.n(_),k=r(2),S=r.n(k),E=r(1),A=r.n(E);function C(e,t){return a(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||s()}r(8);var O=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["C\xf4te d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Cura\xe7ao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["R\xe9union",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["S
5omalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],T=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barth\xe9lemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function R(e,t,r,n,i){return!r||i?e+"".padEnd(t.length,".")+" "+n:e+"".padEnd(t.length,".")+" "+r}function j(e,t,r,i,a){var s,l,c=[];return l=!0===t,[(s=[]).concat.apply(s,o(e.map(function(e){var o={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:R(r,e[3],e[4],i,a),priority:e[5]||0},s=[];return e[6]&&e[6].map(function(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
5))),i.forEach(function(t){n(e,t,r[t])})}return e}({},o);r.dialCode=e[3]+t,r.isAreaCode=!0,r.areaCodeLength=t.length,s.push(r)}),s.length>0?(o.mainCode=!0,l||"Array"===t.constructor.name&&t.includes(e[2])?(o.hasAreaCodes=!0,[o].concat(s)):(c=c.concat(s),[o])):[o]}))),c]}function P(e,t,r,n){if(null!==r){var i=Object.keys(r),o=Object.values(r);i.forEach(function(r,i){if(n)return e.push([r,o[i]]);var a=e.findIndex(function(e){return e[0]===r});if(-1===a){var s=[r];s[t]=o[i],e.push(s)}else e[a][t]=o[i]})}}function M(e,t){return 0===t.length?e:e.map(function(e){var r=t.findIndex(function(t){return t[0]===e[2]});if(-1===r)return e;var n=t[r];return n[1]&&(e[4]=n[1]),n[3]&&(e[5]=n[3]),n[2]&&(e[6]=n[2]),e})}var I=function e(t,r,n,i,a,s,c,u,d,p,f,h,m,y){l(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var r=e;return t.filter(function(e){return e.regions.some(function(e){return e===r})})}return t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var r=[].concat(o(e),o(t));return r.sort(function(e,t){return e.name<t.name?-1:+(e.name>t.name)}),r},this.getFilteredCountryList=function(e,t,r){return 0===e.length?t:r?e.map(function(e){var r=t.find(function(t){return t.iso2===e});if(r)return r}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,r){for(var n=0;n<e.length;n++)void 0!==t[e[n].iso2]?e[n].localName=t[e[n].iso2]:void 0!==t[e[n].name]&&(e[n].localName=t[e[n].name]);return r||e.sort(function(e,t){return e.localName<t.localName?-1:+(e.localName>t.localName)}),e},this.getCustomAreas=function(e,t){for(var r=[],n=0;n<t.length;n++){var i=JSON.parse(JSON.stringify(e));i.dialCode+=t[n],r.push(i)}return r},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var g=function(e,t,r){var n=[];return P(n,1,e,!0),P(n,3,t),P(n,2,r),n}(u,d,p),v=M(JSON.parse(JSON.stringify(O)),g),b=M(JSON.parse(JSON.stringify(T)),g),w=C(j(v,t,h,m,y),2),_=w[0],x=w[1];if(r){var k=C(j(b,t,h,m,y),2),S=k[0];k[1],_=this.sortTerritories(S,_)}n&&(_=this.filterRegions(n,_)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(i,_,c.includes("onlyCountries")),s),f,c.includes("onlyCountries")),this.preferredCountries=0===a.length?[]:this.localizeCountries(this.getFilteredCountryList(a,_,c.includes("preferredCountries")),f,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(i,x),s)},N=function(e){var t,r,u;function m(e){l(this,m),(t=function(e,t){return t&&("object"===d(t)||"function"==typeof t)?t:p(e)}(this,f(m).call(this,e))).getProbableCandidate=w()(function(e){return e&&0!==e.length?t.state.onlyCountries.filter(function(t){return S()(t.name.toLowerCase(),e.toLowerCase())},p(p(t)))[0]:null}),t.guessSelectedCountry=w()(function(e,r,n,i){if(!1===t.props.enableAreaCodes&&(i.some(function(t){if(S()(e,t.dialCode))return n.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return o=e,!0}),!0}),o))return o;var o,a=n.find(function(e){return e.iso2==r});if(""===e.trim())return a;var s=n.reduce(function(t,r){return S()(e,r.dialCode)&&(r.dialCode.length>t.dialCode.length||r.dialCode.length===t.dialCode.length&&r.priority<t.priority)?r:t},{dialCode:"",priority:10001},p(p(t)));return s.name?s:a}),t.updateCountry=function(e){var r,n=t.state.onlyCountries;(r=e.indexOf(0)>="0"&&"9">=e.indexOf(0)?n.find(function(t){return t.dialCode==+e}):n.find(function(t){return t.iso2==e}))&&r.dialCode&&t.setState({selectedCountry:r,formattedNumber:t.props.disableCountryCode?"":t.formatNumber(r.dialCode,r)})},t.scrollTo=function(e,r){if(e){var n=t.dropdownRef;if(n&&document.body){var i=n.offsetHeight,o=n.getBoundingClientRect().top+document.body.scrollTop,a=o+i,s=e,l=s.getBoundingClientRect(),c=s.offsetHeight,u=l.top+document.body.scrollTop,d=u+c,p=u-o+n.scrollTop,f=i/2-c/2;(t.props.enableSearch?u<o+32:u<o)?(r&&(p-=f),n.scrollTop=p):d>a&&(r&&(p+=f),n.scrollTop=p-(i-c))}}},t.scrollToTop=function(){var e=t.dropdownRef;e&&document.body&&(e.scrollTop=0)},t.formatNumber=function(e,r){if(!r)return e;var n,o=r.format,l=t.props,c=l.disableCountryCode,u=l.enableAreaCodeStretch,d=l.enableLongNumbers,p=l.autoFormat;if(c?((n=o.split(" ")).shift(),n=n.join(" ")):u&&r.isAreaCode?((n=o.split(" "))[1]=n[1].replace(/\.+/,"".padEnd(r.areaCodeLength,".")),n=n.join(" ")):n=o,!e||0===e.length)return c?"":t.props.prefix;if(e&&e.length<2||!n||!p)return c?e:t.props.prefix+e;var f,h=x()(n,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var r,n=a(r=e.remainingText)||i(r)||s(),o=n[0],l=n.slice(1);return{formattedText:e.formattedText+o,remainingText:l}},{formattedText:"",remainingText:e.split("")});return(f=d?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!f.includes(")")&&(f+=")"),f},t.cursorToEnd=function(){var e=t.numberInputRef;if(document.activeElement===e){e.focus();var r=e.value.length;")"===e.value.charAt(r-1)&&(r-=1),e.setSelectionRange(r,r)}}
vendor: 13,044 bytes, line 5
5,t.getElement=function(e){return t["flag_no_".concat(e)]},t.getCountryData=function(){return t.state.selectedCountry?{name:t.state.selectedCountry.name||"",dialCode:t.state.selectedCountry.dialCode||"",countryCode:t.state.selectedCountry.iso2||"",format:t.state.selectedCountry.format||""}:{}},t.handleFlagDropdownClick=function(e){if(e.preventDefault(),t.state.showDropdown||!t.props.disabled){var r=t.state,n=r.preferredCountries,i=r.onlyCountries,o=r.selectedCountry,a=t.concatPreferredCountries(n,i).findIndex(function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2});t.setState({showDropdown:!t.state.showDropdown,highlightCountryIndex:a},function(){t.state.showDropdown&&t.scrollTo(t.getElement(t.state.highlightCountryIndex))})}},t.handleInput=function(e){var r=e.target.value,n=t.props,i=n.prefix,o=n.onChange,a=t.props.disableCountryCode?"":i,s=t.state.selectedCountry,l=t.state.freezeSelection;if(!t.props.countryCodeEditable){var c=i+(s.hasAreaCodes?t.state.onlyCountries.find(function(e){return e.iso2===s.iso2&&e.mainCode}).dialCode:s.dialCode);if(r.slice(0,c.length)!==c)return}if(r===i)return o&&o("",t.getCountryData(),e,""),t.setState({formattedNumber:""});if((!(r.replace(/\D/g,"").length>15)||!1!==t.props.enableLongNumbers&&("number"!=typeof t.props.enableLongNumbers||!(r.replace(/\D/g,"").length>t.props.enableLongNumbers)))&&r!==t.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var u=t.props.country,d=t.state,p=d.onlyCountries,f=d.selectedCountry,h=d.hiddenAreaCodes;if(o&&e.persist(),r.length>0){var m=r.replace(/\D/g,"");(!t.state.freezeSelection||f&&f.dialCode.length>m.length)&&(s=t.props.disableCountryGuess?f:t.guessSelectedCountry(m.substring(0,6),u,p,h)||f,l=!1),a=t.formatNumber(m,s),s=s.dialCode?s:f}var y=e.target.selectionStart,g=e.target.selectionStart,v=t.state.formattedNumber,b=a.length-v.length;t.setState({formattedNumber:a,freezeSelection:l,selectedCountry:s},function(){b>0&&(g-=b),")"==a.charAt(a.length-1)?t.numberInputRef.setSelectionRange(a.length-1,a.length-1):g>0&&v.length>=a.length?t.numberInputRef.setSelectionRange(g,g):y<v.length&&t.numberInputRef.setSelectionRange(y,y),o&&o(a.replace(/[^0-9]+/g,""),t.getCountryData(),e,a)})}},t.handleInputClick=function(e){t.setState({showDropdown:!1}),t.props.onClick&&t.props.onClick(e,t.getCountryData())},t.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},t.handleFlagItemClick=function(e,r){var n=t.state.selectedCountry,i=t.state.onlyCountries.find(function(t){return t==e});if(i){var o=t.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),a=o.length>1?o.replace(n.dialCode,i.dialCode):i.dialCode,s=t.formatNumber(a.replace(/\D/g,""),i);t.setState({showDropdown:!1,selectedCountry:i,freezeSelection:!0,formattedNumber:s,searchValue:""},function(){t.cursorToEnd(),t.props.onChange&&t.props.onChange(s.replace(/[^0-9]+/g,""),t.getCountryData(),r,s)})}},t.handleInputFocus=function(e){t.numberInputRef&&t.numberInputRef.value===t.props.prefix&&t.state.selectedCountry&&!t.props.disableCountryCode&&t.setState({formattedNumber:t.props.prefix+t.state.selectedCountry.dialCode},function(){t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)}),t.setState({placeholder:""}),t.props.onFocus&&t.props.onFocus(e,t.getCountryData()),t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)},t.handleInputBlur=function(e){e.target.value||t.setState({placeholder:t.props.placeholder}),t.props.onBlur&&t.props.onBlur(e,t.getCountryData())},t.handleInputCopy=function(e){if(t.props.copyNumbersOnly){var r=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",r),e.preventDefault()}},t.getHighlightCountryIndex=function(e){var r=t.state.highlightCountryIndex+e;return r<0||r>=t.state.onlyCountries.length+t.state.preferredCountries.length?r-e:t.props.enableSearch&&r>t.getSearchFilteredCountries().length?0:r},t.searchCountry=function(){var e=t.getProbableCandidate(t.state.queryString)||t.state.onlyCountries[0],r=t.state.onlyCountries.findIndex(function(t){return t==e})+t.state.preferredCountries.length;t.scrollTo(t.getElement(r),!0),t.setState({queryString:"",highlightCountryIndex:r})},t.handleKeydown=function(e){var r=t.props.keys,n=e.target.className;if(n.includes("selected-flag")&&e.which===r.ENTER&&!t.state.showDropdown)return t.handleFlagDropdownClick(e);if(n.includes("form-control")&&(e.which===r.ENTER||e.which===r.ESC))return e.target.blur();if(t.state.showDropdown&&!t.props.disabled&&(!n.includes("search-box")||e.which===r.UP||e.which===r.DOWN||e.which===r.ENTER||e.which===r.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var i=function(e){t.setState({highlightCountryIndex:t.getHighlightCountryIndex(e)},function(){t.scrollTo(t.getElement(t.state.highlightCountryIndex),!0)})};switch(e.which){case r.DOWN:i(1);break;case r.UP:i(-1);break;case r.ENTER:t.props.enableSearch?t.handleFlagItemClick(t.getSearchFilteredCountries()[t.state.highlightCountryIndex]||t.getSearchFilteredCountries()[0],e):t.handleFlagItemClick([].concat(o(t.state.preferredCountries),o(t.state.onlyCountries))[t.state.highlightCountryIndex],e);break;case r.ESC:case r.TAB:t.setState({showDropdown:!1},t.cursorToEnd);break;default:(e.which>=r.A&&e.which<=r.Z||e.which===r.SPACE)&&t.setState({queryString:t.state.queryString+String.fromCharCode(e.which)},t.state.debouncedQueryStingSearcher)}}},t.handleInputKeyDown=function(e){var r=t.props,n=r.keys,i=r.onEnterKeyPress,o=r.onKeyDown;e.which===n.ENTER&&i&&i(e),o&&o(e)},t.handleClickOutside=function(e){t.dropdownRef&&!t.dropdownContainerRef.contains(e.target)&&t.state.showDropdown&&t.setState({showDropdown:!1})},t.handleSearchChange=function(e){var r=e.currentTarget.value,n=t.state,i=n.preferredCountries,o=n.selectedCountry,a=0;if(""===r&&o){var s=t.state.onlyCountries;a=t.concatPreferredCountries(i,s).findIndex(function(e){return e==o}),setTimeout(function(){return t.scrollTo(t.getElement(a))},100)}t.setState({searchValue:r,highlightCountryIndex:a})},t.concatPreferredCountries=function(e,t){return e.length>0?o(new Set(e.concat(t))):t},t.getDropdownCountryName=function(e){return e.localName||e.name},t.getSearchFilteredCountries=function(){var e=t.state,r=e.preferredCountries,n=e.onlyCountries,i=e.searchValue,a=t.props.enableSearch,s=t.concatPreferredCountries(r,n),l=i.trim().toLowerCase().replace("+","");if(a&&l){if(/^\d+$/.test(l))return s.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(l)})});var c=s.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(l)})}),u=s.filter(function(e){var t=e.name,r=e.localName;return e.iso2,["".concat(t),"".concat(r||"")].some(function(e){return e.toLowerCase().includes(l)})});return t.scrollToTop(),o(new Set([].concat(c,u)))}return s},t.getCountryDropdownList=function(){var e=t.state,r=e.preferredCountries,i=e.highlightCountryIndex,o=e.showDropdown,a=e.searchValue,s=t.props,l=s.disableDropdown,c=s.prefix,u=t.props,d=u.enableSearch,p=u.searchNotFound,f=u.disableSearchIcon,h=u.searchClass,m=u.searchStyle,g=u.searchPlaceholder,v=u.autocompleteSearch,b=t.getSearchFilteredCountries().map(function(e,r){var n=i===r,o=A()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:n}),a="flag ".concat(e.iso2);return y.a.createElement("li",Object.assign({ref:function(e){return t["flag_no_".concat(r)]=e},key:"flag_no_".concat(r),"data-flag-key":"flag_no_".concat(r),className:o,"data-dial-code":"1",tabIndex:l?"-1":"0","data-country-code":e.iso2,onClick:function(r){return t.handleFlagItemClick(e,r)},role:"option"},n?{"aria-selected":!0}:{}),y.a.createElement("div",{className:a}),y.a.createElement("span",{className:"country-name"},t.getDropdownCountryName(e)),y.a.createElement("span",{className:"dial-code"},e.format?t.formatNumber(e.dialCode,e):c+e.dialCode))}),w=y.a.createElement("li",{key:"dashes",className:"divider"});r.length>0&&(!d||d&&!a.trim())&&b.splice(r.length,0,w);var _=A()(n({"country-list":!0,hide:!o},t.props.dropdownClass,!0));return y.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),t.dropdownRef=e},className:_,style:t.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&y.a.createElement("li",{className:A()(n({search:!0},h,h))},!f&&y.a.createElement("span",{className:A()(n({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"\uD83D\uDD0E"),y.a.createElement("input",{className:A()(n({"search-box":!0},"".concat(h,"-box"),h)),style:m,type:"search",placeholder:g,autoFocus:!0,autoComplete:v?"on":"off",value:a,onChange:t.handleSearchChange})),b.length>0?b:y.a.createElement("li",{className:"no-entries-message"},y.a.createElement("span",null,p)))};var t,r,c=new I(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),u=c.onlyCountries,h=c.preferredCountries,g=c.hiddenAreaCodes,b=e.value?e.value.replace(/\D/g,""):"";r=e.disableInitialCountryGuess?0:b.length>1?t.guessSelectedCountry(b.substring(0,6),e.country,u,g)||0:e.country&&u.find(function(t){return t.iso2==e.country})||0;var _,k=b.length<2&&r&&!S()(b,r.dialCode)?r.dialCode:"";_=""===b&&0===r?"":t.formatNumber((e.disableCountryCode?"":k)+b,r.name?r:void 0);var E=u.findIndex(function(e){return e==r});return t.state={showDropdown:e.showDropdown,formattedNumber:_,onlyCountries:u,preferredCountries:h,hiddenAreaCodes:g,selectedCountry:r,highlightCountryIndex:E,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:v()(t.searchCountry,250),searchValue:""},t}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(m,e),t=m,r=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(e,t,r){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,r=t.onlyCountries,n=t.selectedCountry,i=t.hiddenAreaCodes,o=this.props,a=o.country,s=o.prefix;if(""===e)return this.setState({selectedCountry:n,formattedNumber:""});var l,c,u=e.replace(/\D/g,"");if(n&&S()(e,s+n.dialCode))c=this.formatNumber(u,n),this.setState({formattedNumber:c});else{var d=(l=this.props.disableCountryGuess?n:this.guessSelectedCountry(u.substring(0,6),a,r,i)||n)&&S()(u,s+l.dialCode)?l.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":d)+u,l||void 0),this.setState({selectedCountry:l,formattedNumber:c})}}},{key:"render",value:function(){var e,t,r,i=this,o=this.state,a=o.onlyCountries,s=o.selectedCountry,l=o.showDropdown,c=o.formattedNumber,u=o.hiddenAreaCodes,d=this.props,p=d.disableDropdown,f=d.renderStringAsFlag,h=d.isValid,m=d.defaultErrorMessage,g=d.specialLabel;if("boolean"==typeof h)t=h;else{var v=h(c.replace(/\D/g,""),s,a,u);"boolean"==typeof v?!1===(t=v)&&(r=m):(t=!1,r=v)}var b=A()((n(e={},this.props.containerClass,!0),n(e,"react-tel-input",!0),e)),w=A()({arrow:!0,up:l}),_=A()(n({"form-control":!0,"invalid-number":!t,open:l},this.props.inputClass,!0)),x=A()({"selected-flag":!0,open:l}),k=A()(n({"flag-dropdown":!0,"invalid-number":!t,open:l},this.props.buttonClass,!0)),S="flag ".concat(s&&s.iso2);return y.a.createElement("div",{className:"".concat(b," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},g&&y.a.createElement("div",{className:"special-label"},g),r&&y.a.createElement("div",{className:"invalid-number-message"},r),y.a.createElement("input",Object.assign({className:_,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(e){i.numberInputRef=e,"function"==typeof i.props.inputProps.ref?i.props.inputProps.ref(e):"object"==typeof i.props.inputProps.ref&&(i.props.inputProps.ref.current=e)}})),y.a.createElement("div",{className:k,style:this.props.buttonStyle,ref:function(e){return i.dropdownContainerRef
5=e}},f?y.a.createElement("div",{className:x},f):y.a.createElement("div",{onClick:p?void 0:this.handleFlagDropdownClick,className:x,title:s?"".concat(s.localName||s.name,": + ").concat(s.dialCode):"",tabIndex:p?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!l||void 0},y.a.createElement("div",{className:S},!p&&y.a.createElement("div",{className:w}))),l&&this.getCountryDropdownList()))}}],c(t.prototype,r),u&&c(t,u),m}(y.a.Component);N.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=N}])},11332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getCacheSignal:function(){return h},getDraftModeProviderForCacheScope:function(){return f},getHmrRefreshHash:function(){return u},getPrerenderResumeDataCache:function(){return l},getRenderResumeDataCache:function(){return c},getRuntimeStagePromise:function(){return m},getServerComponentsHmrCache:function(){return p},isHmrRefresh:function(){return d},throwForMissingRequestStore:function(){return a},throwInvariantForMissingStore:function(){return s},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});let n=r(74931),i=r(51773),o=r(18365);function a(e){throw Object.defineProperty(Error(`\`${e}\` 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 s(){throw Object.defineProperty(new o.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function l(e){switch(e.type){case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-client":return e.prerenderResumeDataCache;case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function c(e){switch(e.type){case"request":return e.renderResumeDataCache;case"prerender":case"prerender-runtime":case"prerender-client":if(e.renderResumeDataCache)return e.renderResumeDataCache;case"prerender-ppr":return e.prerenderResumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":return null;default:return e}}function u(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":return t.hmrRefreshHash;case"request":var r;return null==(r=t.cookies.get(i.NEXT_HMR_REFRESH_HASH_COOKIE))?void 0:r.value}}function d(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.isHmrRefresh??!1}return!1}function p(e,t){if(e.dev)switch(t.type){case"cache":case"private-cache":case"request":return t.serverComponentsHmrCache}}function f(e,t){if(e.isDraftMode)switch(t.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return t.draftMode}}function h(e){switch(e.type){case"prerender":case"prerender-client":case"prerender-runtime":return e.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return e}}function m(e){switch(e.type){case"prerender-runtime":case"private-cache":return e.runtimeStagePromise;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"unstable-cache":return null;default:return e}}},11636:(e,t,r)=>{"use strict";r.d(t,{VB:()=>eN});var n=r(12115),i=r(12758),o=r(71450);let a
vendor: 41,168 bytes, line 5
5=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function 
5s(e,t,r){let n=l(e),{webkitRelativePath:i}=e,o="string"==typeof t?t:"string"==typeof i&&i.length>0?i:`./${e.name}`;return"string"!=typeof n.path&&c(n,"path",o),void 0!==r&&Object.defineProperty(n,"handle",{value:r,writable:!1,configurable:!1,enumerable:!0}),c(n,"relativePath",o),n}function l(e){let{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){let r=t.split(".").pop().toLowerCase(),n=a.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}function c(e,t,r){Object.defineProperty(e,t,{value:r,writable:!1,configurable:!1,enumerable:!0})}let u=[".DS_Store","Thumbs.db"];function d(e){return(0,o.sH)(this,void 0,void 0,function*(){return h(e)&&p(e.dataTransfer)?g(e.dataTransfer,e.type):f(e)?m(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?y(e):[]})}function p(e){return h(e)}function f(e){return h(e)&&h(e.target)}function h(e){return"object"==typeof e&&null!==e}function m(e){return b(e.target.files).map(e=>s(e))}function y(e){return(0,o.sH)(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>s(e))})}function g(e,t){return(0,o.sH)(this,void 0,void 0,function*(){if(e.items){let r=b(e.items).filter(e=>"file"===e.kind);return"drop"!==t?r:v(_((yield Promise.all(r.map(w)))))}return v(b(e.files).map(e=>s(e)))})}function v(e){return e.filter(e=>-1===u.indexOf(e.name))}function b(e){if(null===e)return[];let t=[];for(let r=0;r<e.length;r++){let n=e[r];t.push(n)}return t}function w(e){if("function"!=typeof e.webkitGetAsEntry)return x(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?S(t):x(e,t)}function _(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?_(t):[t]],[])}function x(e,t){return(0,o.sH)(this,void 0,void 0,function*(){var r;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){let t=yield e.getAsFileSystemHandle();if(null===t)throw Error(`${e} is not a File`);if(void 0!==t){let e=yield t.getFile();return e.handle=t,s(e)}}let n=e.getAsFile();if(!n)throw Error(`${e} is not a File`);return s(n,null!=(r=null==t?void 0:t.fullPath)?r:void 0)})}function k(e){return(0,o.sH)(this,void 0,void 0,function*(){return e.isDirectory?S(e):E(e)})}function S(e){let t=e.createReader();return new Promise((e,r)=>{let n=[];function i(){t.readEntries(t=>(0,o.sH)(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(k));n.push(e),i()}else try{let t=yield Promise.all(n);e(t)}catch(e){r(e)}}),e=>{r(e)})}i()})}function E(e){return(0,o.sH)(this,void 0,void 0,function*(){return new Promise((t,r)=>{e.file(r=>{t(s(r,e.fullPath))},e=>{r(e)})})})}var A=r(49035);function C(e){return R(e)||T(e)||D(e)||O()}function O(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return L(e)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){M(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){return F(e)||U(e,t)||D(e,t)||N()}function N(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function U(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}function F(e){if(Array.isArray(e))return e}var H="function"==typeof A?A:A.default,B="file-invalid-type",z="file-too-large",W="file-too-small",$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(","),r=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:B,message:"File type must be ".concat(r)}},q=function(e){return{code:z,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},K=function(e){return{code:W,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},V={code:"too-many-files",message:"Too many files"};function J(e){return""===e.type&&"function"==typeof e.getAsFile}function G(e,t){var r="application/x-moz-file"===e.type||H(e,t)||J(e);return[r,r?null:$(t)]}function Z(e,t,r){if(X(e.size)){if(X(t)&&X(r)){if(e.size>r)return[!1,q(r)];if(e.size<t)return[!1,K(t)]}else if(X(t)&&e.size<t)return[!1,K(t)];else if(X(r)&&e.size>r)return[!1,q(r)]}return[!0,null]}function X(e){return null!=e}function Y(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return(!!o||!(t.length>1))&&(!o||!(a>=1)||!(t.length>a))&&t.every(function(e){var t=I(G(e,r),1)[0],o=I(Z(e,n,i),1)[0],a=s?s(e):null;return t&&o&&!a})}function Q(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function ee(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function et(e){e.preventDefault()}function er(e){return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function en(e){return -1!==e.indexOf("Edge/")}function ei(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return er(e)||en(e)}function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.some(function(t){return!Q(e)&&t&&t.apply(void 0,[e].concat(n)),Q(e)})}}function ea(){return"showOpenFilePicker"in window}function es(e){return X(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=I(e,2),r=t[0],n=t[1],i=!0;return ed(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(n)&&n.every(ep)||(console.warn('Skipped "'.concat(r,'" because an invali
5d file extension was provided.')),i=!1),i}).reduce(function(e,t){var r=I(t,2),n=r[0],i=r[1];return P(P({},e),{},M({},n,i))},{})}]:e}function el(e){if(X(e))return Object.entries(e).reduce(function(e,t){var r=I(t,2),n=r[0],i=r[1];return[].concat(C(e),[n],C(i))},[]).filter(function(e){return ed(e)||ep(e)}).join(",")}function ec(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function eu(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function ed(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function ep(e){return/^.*\.[\w]+$/.test(e)}var ef=["children"],eh=["open"],em=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ey=["refKey","onChange","onClick"];function eg(e){return ew(e)||eb(e)||ek(e)||ev()}function ev(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eb(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ew(e){if(Array.isArray(e))return eS(e)}function e_(e,t){return eA(e)||eE(e,t)||ek(e,t)||ex()}function ex(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ek(e,t){if(e){if("string"==typeof e)return eS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eS(e,t)}}function eS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eE(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}function eA(e){if(Array.isArray(e))return e}function eC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eC(Object(r),!0).forEach(function(t){eT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eR(e,t){if(null==e)return{};var r,n,i=ej(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ej(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var eP=(0,n.forwardRef)(function(e,t){var r=e.children,i=eN(eR(e,ef)),o=i.open,a=eR(i,eh);return(0,n.useImperativeHandle)(t,function(){return{open:o}},[o]),n.createElement(n.Fragment,null,r(eO(eO({},a),{},{open:o})))});eP.displayName="Dropzone";var eM={disabled:!1,getFilesFromEvent:d,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};eP.defaultProps=eM,eP.propTypes={children:i.func,accept:i.objectOf(i.arrayOf(i.string)),multiple:i.bool,preventDropOnDocument:i.bool,noClick:i.bool,noKeyboard:i.bool,noDrag:i.bool,noDragEventsBubbling:i.bool,minSize:i.number,maxSize:i.number,maxFiles:i.number,disabled:i.bool,getFilesFromEvent:i.func,onFileDialogCancel:i.func,onFileDialogOpen:i.func,useFsAccessApi:i.bool,autoFocus:i.bool,onDragEnter:i.func,onDragLeave:i.func,onDragOver:i.func,onDrop:i.func,onDropAccepted:i.func,onDropRejected:i.func,onError:i.func,validator:i.func};var eI={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function eN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=eO(eO({},eM),e),r=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,_=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,E=t.onError,A=t.validator,C=(0,n.useMemo)(function(){return el(r)},[r]),O=(0,n.useMemo)(function(){return es(r)},[r]),T=(0,n.useMemo)(function(){return"function"==typeof g?g:eL},[g]),R=(0,n.useMemo)(function(){return"function"==typeof y?y:eL},[y]),j=(0,n.useRef)(null),P=(0,n.useRef)(null),M=e_((0,n.useReducer)(eD,eI),2),I=M[0],N=M[1],D=I.isFocused,L=I.isFileDialogActive,U=(0,n.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&ea()),F=function(){!U.current&&L&&setTimeout(function(){P.current&&(P.current.files.length||(N({type:"closeDialog"}),R()))},300)};(0,n.useEffect)(function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}},[P,L,R,U]);var H=(0,n.useRef)([]),B=(0,n.useRef)([]),z=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,n.useEffect)(function(){return w&&(document.addEventListener("dragover",et,!1),document.addEventListener("drop",z,!1)),function(){w&&(document.removeEventListener("dragover",et),document.removeEventListener("drop",z))}},[j,w]),(0,n.useEffect)(function(){var e=function(e){B.current=[].concat(eg(B.current),[e.target]),ee(e)&&N({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){B.current=B.current.filter(function(t){return t!==e.target&&null!==t}),B.current.length>0||N({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){B.current=[],N({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){B.current=[],N({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",r,!1),document.addEventListener("drop",n,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",r),document.removeEventListener("drop",n)}},[j]),(0,n.useEffect)(function(){return!i&&b&&j.current&&j.current.focus(),function(){}},[j,b,i]);var W=(0,n.useCallback)(function(e){E?E(e):console.error(e)},[E]),$=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),ew(e),H.current=[].concat(eg(H.current),[e.target]),ee(e)&&Promise.resolve(o(e)).then(function(t){if(!Q(e)||S){var r=t.length,n=r>0&&Y({files:t,accept:C,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:A}),i=r>0&&!n;N({isDragAccept:n,isDragReject:i,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return W(e)})},[o,u,W,S,C,s,a,l,c,A]),q=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),ew(e);var t=ee(e);
5if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,S]),K=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),ew(e);var t=H.current.filter(function(e){return j.current&&j.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),H.current=t,!(t.length>0)&&(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ee(e)&&d&&d(e))},[j,d,S]),J=(0,n.useCallback)(function(e,t){var r=[],n=[];e.forEach(function(e){var t=e_(G(e,C),2),i=t[0],o=t[1],l=e_(Z(e,s,a),2),c=l[0],u=l[1],d=A?A(e):null;if(i&&c&&!d)r.push(e);else{var p=[o,u];d&&(p=p.concat(d)),n.push({file:e,errors:p.filter(function(e){return e})})}}),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach(function(e){n.push({file:e,errors:[V]})}),r.splice(0)),N({acceptedFiles:r,fileRejections:n,isDragReject:n.length>0,type:"setFiles"}),f&&f(r,n,t),n.length>0&&m&&m(n,t),r.length>0&&h&&h(r,t)},[N,l,C,s,a,c,f,h,m,A]),X=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),ew(e),H.current=[],ee(e)&&Promise.resolve(o(e)).then(function(t){(!Q(e)||S)&&J(t,e)}).catch(function(e){return W(e)}),N({type:"reset"})},[o,J,W,S]),er=(0,n.useCallback)(function(){if(U.current){N({type:"openDialog"}),T();var e={multiple:l,types:O};window.showOpenFilePicker(e).then(function(e){return o(e)}).then(function(e){J(e,null),N({type:"closeDialog"})}).catch(function(e){ec(e)?(R(e),N({type:"closeDialog"})):eu(e)?(U.current=!1,P.current?(P.current.value=null,P.current.click()):W(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):W(e)});return}P.current&&(N({type:"openDialog"}),T(),P.current.value=null,P.current.click())},[N,T,R,v,J,W,O,l]),en=(0,n.useCallback)(function(e){j.current&&j.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),er())},[j,er]),ed=(0,n.useCallback)(function(){N({type:"focus"})},[]),ep=(0,n.useCallback)(function(){N({type:"blur"})},[]),ef=(0,n.useCallback)(function(){_||(ei()?setTimeout(er,0):er())},[_,er]),eh=function(e){return i?null:e},ev=function(e){return x?null:eh(e)},eb=function(e){return k?null:eh(e)},ew=function(e){S&&e.stopPropagation()},ex=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,f=eR(e,em);return eO(eO(eT({onKeyDown:ev(eo(o,en)),onFocus:ev(eo(a,ed)),onBlur:ev(eo(s,ep)),onClick:eh(eo(l,ef)),onDragEnter:eb(eo(c,$)),onDragOver:eb(eo(u,q)),onDragLeave:eb(eo(d,K)),onDrop:eb(eo(p,X)),role:"string"==typeof n&&""!==n?n:"presentation"},r,j),i||x?{}:{tabIndex:0}),f)}},[j,en,ed,ep,ef,$,q,K,X,x,k,i]),ek=(0,n.useCallback)(function(e){e.stopPropagation()},[]),eS=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,i=e.onClick,o=eR(e,ey);return eO(eO({},eT({accept:C,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:eh(eo(n,X)),onClick:eh(eo(i,ek)),tabIndex:-1},r,P)),o)}},[P,r,l,X,i]);return eO(eO({},I),{},{isFocused:D&&!i,getRootProps:ex,getInputProps:eS,rootRef:j,inputRef:P,open:eh(er)})}function eD(e,t){switch(t.type){case"focus":return eO(eO({},e),{},{isFocused:!0});case"blur":return eO(eO({},e),{},{isFocused:!1});case"openDialog":return eO(eO({},eI),{},{isFileDialogActive:!0});case"closeDialog":return eO(eO({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return eO(eO({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return eO(eO({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return eO(eO({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return eO({},eI);default:return e}}function eL(){}},12018:e=>{e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},12108:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},12758:(e,t,r)=>{e.exports=r(19298)()},13132:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},13511:(e,t,r)=>{var n=r(15376).Buffer;let{STATUS_CODES:i}=r(23431),{format:o}=r(634),{OPError:a}=r(95059),s=r(44483),l=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new a(t,e)},c=e=>{let t=!1;try{let r;r="object"!=typeof e.body||n.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};e.exports=function(e,{statusCode:t=200,body:r=!0,bearer:n=!1}={}){if(e.statusCode!==t){if(n&&l(e),c(e))throw new a(e.body,e);throw new a({error:o("expected %i %s, got: %i %s",t,i[t],e.statusCode,i[e.statusCode])},e)}if(r&&!e.body)throw new a({error:o("expected %i %s with body but no body was returned",t,i[t])},e);return e.body}},13972:(e,t)=>
5{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},14072:(e,t,r)=>{let{createHash:n,randomBytes:i}=r(33018),o=r(34282),a=(e=32)=>o.encode(i(e));e.exports={random:a,state:a,nonce:a,codeVerifier:a,codeChallenge:e=>o.encode(n("sha256").update(e).digest())}},14344:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},14432:(e,t,r)=>{"use strict";r.d(t,{A:()=>ec});var n,i=r(71450),o=r(12115),a="right-scroll-bar-position",s="width-before-scroll-bar",l="with-scroll-bars-hidden",c="--removed-body-scroll-bar-size";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function d(e,t){var r=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(value){var n=r.value;n!==value&&(r.value=value,r.callback(value,n))}}}})[0];return r.callback=t,r.facade}var p="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,f=new WeakMap;function h(e,t){var r=d(t||null,function(t){return e.forEach(function(e){return u(e,t)})});return p(function(){var t=f.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||u(e,null)}),i.forEach(function(e){n.has(e)||u(e,o)})}f.set(r,e)},[e]),r}function m(e){return e}function y(e,t){void 0===t&&(t=m);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}var g=function(e){void 0===e&&(e={});var t=y(null);return t.options=(0,i.Cl)({async:!0,ssr:!1},e),t}(),v=function(){},b=o.forwardRef(function(e,t){var r=o.useRef(null),n=o.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),a=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,y=e.noRelative,b=e.noIsolation,w=e.inert,_=e.allowPinchZoom,x=e.as,k=void 0===x?"div":x,S=e.gapMode,E=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=m,C=h([r,t]),O=(0,i.Cl)((0,i.Cl)({},E),a);return o.createElement(o.Fragment,null,p&&o.createElement(A,{sideCar:g,removeScrollBar:d,shards:f,noRelative:y,noIsolation:b,inert:w,setCallbacks:s,allowPinchZoom:!!_,lockRef:r,gapMode:S}),l?o.cloneElement(o.Children.only(c),(0,i.Cl)((0,i.Cl)({},O),{ref:C})):o.createElement(k,(0,i.Cl)({},O,{className:u,ref:C}),c))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:s,zeroRight:a};var w=function(e){var t=e.sideCar,r=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return o.createElement(n,(0,i.Cl)({},r))};function _(e,t){return e.useMedium(t),w}w.isSideCarExport=!0;var x=function(){return n||r.nc};function k(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=x();return t&&e.setAttribute("nonce",t),e}function S(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function E(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var A=function(){var e=0,t=null;return{add:function(r){0==e&&(t=k())&&(S(t,r),E(t)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=A();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},O=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},T={left:0,top:0,right:0,gap:0},R=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[R(r),R(n),R(i)]},P=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return T;var t=j(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},M=O(),I="data-scroll-locked",N=function(e,t,r,n){var i=e.left,o=e.top,u=e.right,d=e.gap;return void 0===r&&(r="margin"),"\n  .".concat(l," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(d,"px ").concat(n,";\n  }\n  body[").concat(I,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(u,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(d,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(d,"px ").concat(n,";
5")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a," {\n    right: ").concat(d,"px ").concat(n,";\n  }\n  \n  .").concat(s," {\n    margin-right: ").concat(d,"px ").concat(n,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(I,"] {\n    ").concat(c,": ").concat(d,"px;\n  }\n")},D=function(){var e=parseInt(document.body.getAttribute(I)||"0",10);return isFinite(e)?e:0},L=function(){o.useEffect(function(){return document.body.setAttribute(I,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(I):document.body.setAttribute(I,e.toString())}},[])},U=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;L();var a=o.useMemo(function(){return P(i)},[i]);return o.createElement(M,{styles:N(a,!t,i,r?"":"!important")})},F=!1;if("undefined"!=typeof window)try{var H=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch(e){F=!1}var B=!!F&&{passive:!1},z=function(e){return"TEXTAREA"===e.tagName},W=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!z(e)&&"visible"===r[t])},$=function(e){return W(e,"overflowY")},q=function(e){return W(e,"overflowX")},K=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),G(e,n)){var i=Z(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},V=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},J=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},G=function(e,t){return"v"===e?$(t):q(t)},Z=function(e,t){return"v"===e?V(t):J(t)},X=function(e,t){return"h"===e&&"rtl"===t?-1:1},Y=function(e,t,r,n,i){var o=X(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{if(!s)break;var f=Z(e,s),h=f[0],m=f[1]-f[2]-o*h;(h||m)&&G(e,s)&&(d+=m,p+=h);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return u&&(i&&1>Math.abs(d)||!i&&a>d)?c=!0:!u&&(i&&1>Math.abs(p)||!i&&-a>p)&&(c=!0),c},Q=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ee=function(e){return[e.deltaX,e.deltaY]},et=function(e){return e&&"current"in e?e.current:e},er=function(e,t){return e[0]===t[0]&&e[1]===t[1]},en=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ei=0,eo=[];function ea(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}let es=_(g,function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),a=o.useState(ei++)[0],s=o.useState(O)[0],l=o.useRef(e);o.useEffect(function(){l.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(et),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var i,o=Q(e),a=r.current,s="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var h=K(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=K(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(s||c)&&(n.current=i),!i)return!0;var m=n.current||i;return Y(m,t,e,"h"===m?s:c,!0)},[]),u=o.useCallback(function(e){var r=e;if(eo.length&&eo[eo.length-1]===s){var n="deltaY"in r?ee(r):Q(r),i=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&er(e.delta,n)})[0];if(i&&i.should){r.cancelable&&r.preventDefault();return}
5if(!i){var o=(l.current.shards||[]).map(et).filter(Boolean).filter(function(e){return e.contains(r.target)});(o.length>0?c(r,o[0]):!l.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),d=o.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:ea(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),p=o.useCallback(function(e){r.current=Q(e),n.current=void 0},[]),f=o.useCallback(function(t){d(t.type,ee(t),t.target,c(t,e.lockRef.current))},[]),h=o.useCallback(function(t){d(t.type,Q(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return eo.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,B),document.addEventListener("touchmove",u,B),document.addEventListener("touchstart",p,B),function(){eo=eo.filter(function(e){return e!==s}),document.removeEventListener("wheel",u,B),document.removeEventListener("touchmove",u,B),document.removeEventListener("touchstart",p,B)}},[]);var m=e.removeScrollBar,y=e.inert;return o.createElement(o.Fragment,null,y?o.createElement(s,{styles:en(a)}):null,m?o.createElement(U,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var el=o.forwardRef(function(e,t){return o.createElement(b,(0,i.Cl)({},e,{ref:t,sideCar:es}))});el.classNames=b.classNames;let ec=el},14771:(e,t,r)=>{"use strict";var n;n={value:!0},Object.defineProperty(t,"b",{enumerable:!0,get:function(){return f}});let i=r(62731),o=r(8567),a=r(11332),s=r(90332),l=r(97412),c=r(10939),u=r(33497),d=r(76840),p=r(48302);function f(){let e="headers",t=o.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error("Route ".concat(t.route,' used "headers" inside "after(...)". 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/canary/app/api-reference/functions/after')),"__NEXT_ERROR_CODE",{value:"E367",enumerable:!1,configurable:!0});if(t.forceStatic)return y(i.HeadersAdapter.seal(new Headers({})));if(r){var n,c,u,h;switch(r.type){case"cache":{let e=Object.defineProperty(Error("Route ".concat(t.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:"E304",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,f),null!=(c=(n=t).invalidDynamicUsageError)||(n.invalidDynamicUsageError=e),e}case"private-cache":{let e=Object.defineProperty(Error("Route ".concat(t.route,' used "headers" inside "use cache: private". Accessing "headers" inside a private 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:"E742",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,f),null!=(h=(u=t).invalidDynamicUsageError)||(u.invalidDynamicUsageError=e),e}case"unstable-cache":throw Object.defineProperty(Error("Route ".concat(t.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:"E127",enumerable:!1,configurable:!0})}}if(t.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError("Route ".concat(t.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:"E525",enumerable:!1,
5configurable:!0});if(r)switch(r.type){case"prerender":case"prerender-runtime":return m(t,r);case"prerender-client":let o="`headers`";throw Object.defineProperty(new p.InvariantError("".concat(o," must not be used within a client component. Next.js should be preventing ").concat(o," from being included in client components statically, but did not in this case.")),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"request":return(0,s.trackDynamicDataInDynamicRender)(r),y(r.headers)}}(0,a.throwForMissingRequestStore)(e)}r(13972);let h=new WeakMap;function m(e,t){let r=h.get(t);if(r)return r;let n=(0,c.makeHangingPromise)(t.renderSignal,e.route,"`headers()`");return h.set(t,n),n}function y(e){let t=h.get(e);if(t)return t;let r=Promise.resolve(e);return h.set(e,r),Object.defineProperties(r,{append:{value:e.append.bind(e)},delete:{value:e.delete.bind(e)},get:{value:e.get.bind(e)},has:{value:e.has.bind(e)},set:{value:e.set.bind(e)},getSetCookie:{value:e.getSetCookie.bind(e)},forEach:{value:e.forEach.bind(e)},keys:{value:e.keys.bind(e)},values:{value:e.values.bind(e)},entries:{value:e.entries.bind(e)},[Symbol.iterator]:{value:e[Symbol.iterator].bind(e)}}),r}function g(e,t){let r=e?'Route "'.concat(e,'" '):"This route ";return Object.defineProperty(Error("".concat(r,"used ").concat(t,". ")+"`headers()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"),"__NEXT_ERROR_CODE",{value:"E277",enumerable:!1,configurable:!0})}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(g)},14806:(e,t,r)=>{"use strict";e.exports=r(30125)},15239:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(54652),i=r.n(n)},15366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(83980),i=r(30126),o=r(89790),a=c(r(38464)),s=r(74090);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function u(e){var t,r,l,c,u,p;let{options:f,query:h,body:m,method:y,cookies:g}=e,{logger:v,provider:b}=f,w=null!=(t=null==m?void 0:m.error)?t:null==h?void 0:h.error;if(w){let e=Error(w);throw v.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:e,error_description:null==h?void 0:h.error_description,providerId:b.id}),v.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:m}),e}if(null!=(r=b.version)&&r.startsWith("1."))try{let e=await (0,o.oAuth1Client)(f),{oauth_token:t,oauth_verifier:r}=null!=h?h:{},n=await e.getOAuthAccessToken(t,o.oAuth1TokenStore.get(t),r),i=await e.get(b.profileUrl,n.oauth_token,n.oauth_token_secret);return"string"==typeof i&&(i=JSON.parse(i)),{...await d({profile:i,tokens:n,provider:b,logger:v}),cookies:[]}}catch(e){throw v.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",e),e}null!=h&&h.oauth_token&&o.oAuth1TokenStore.delete(h.oauth_token);try{let e,t,r=await (0,i.openidClient)(f),o={},s=[];await a.state.use(g,s,f,o),await a.pkce.use(g,s,f,o),await a.nonce.use(g,s,f,o);let w={...r.callbackParams({url:`http://n?${new URLSearchParams(h)}`,body:m,method:y}),...null==(l=b.token)?void 0:l.params};if(null!=(c=b.token)&&c.request){let t=await b.token.request({provider:b,params:w,checks:o,client:r});e=new n.TokenSet(t.tokens)}else e=b.idToken?await r.callback(b.callbackUrl,w,o):await r.oauthCallback(b.callbackUrl,w,o);return Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),t=null!=(u=b.userinfo)&&u.request?await b.userinfo.request({provider:b,tokens:e,client:r}):b.idToken?e.claims():await r.userinfo(e,{params:null==(p=b.userinfo)?void 0:p.params}),{...await d({profile:t,provider:b,tokens:e,logger:v}),cookies:s}}catch(e){throw new s.OAuthCallbackError(e)}}async function d({profile:e,tokens:t,provider:r,logger:n}){try{var i;n.debug("PROFILE_DATA",{OAuthProfile:e});let o=await r.profile(e,t);if(o.email=null==(i=o.email)?void 0:i.toLowerCase(),!o.id)throw TypeError(`Profile id is missing in ${r.name} OAuth profile response`);return{profile:o,account:{provider:r.id,type:r.type,providerAccountId:o.id.toString(),...t},OAuthProfile:e}}catch(t){n.error("OAUTH_PARSE_PROFILE_ERROR",{error:t,OAuthProfile:e})}}},15376:e=>{var t="/";!function(){var r={675:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=h;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 6,255 bytes, line 5
5+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n}function u(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=l(e),a=o[0],s=o[1],c=new i(u(e,a,s)),d=0,p=s>0?a-4:a;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(p((e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function h(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(f(e,s,s+a>l?l:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50;var a=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function l(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return h(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return y(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=g(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,r){return(d(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}function f(e){return d(e),l(e<0?0:0|v(e))}function h(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|w(e,t),n=l(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){for(var t=e.length<0?0:0|v(e.length),r=l(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function y(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function g(e){if(c.isBuffer(e)){var t=0|v(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function v(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function k(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Y(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return S(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;
vendor: 13,755 bytes, line 5
5o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else -1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,p=0;p<l;p++)if(c(e,o+p)!==c(t,p)){d=!1;break}if(d)return o}return -1}function E(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(Y(s))break;e[r+a]=s}return a}function A(e,t,r,n){return Z(K(t,e.length-r),e,r,n)}function C(e,t,r,n){return Z(V(t),e,r,n)}function O(e,t,r,n){return C(e,t,r,n)}function T(e,t,r,n){return Z(G(t),e,r,n)}function R(e,t,r,n){return Z(J(t,e.length-r),e,r,n)}function j(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return I(n)}t.kMaxLength=0x7fffffff,c.TYPED_ARRAY_SUPPORT=s(),c.TYPED_ARRAY_SUPPORT||"undefined"==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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return p(e,t,r)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(X(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?P(this,0,e):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:+(a<o)},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return k(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return k(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function I(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=M));return r}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Q[e[o]];return i}function U(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function H(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function B(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function z(e,t,r,n,o){return t*=1,r>>>=0,o||B(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,o){return t*=1,r>>>=0,o||B(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||F(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||F(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;H(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;H(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);H(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);H(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||H(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;
5if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var $=/[^+/0-9A-Za-z-_]/g;function q(e){if((e=(e=e.split("=")[0]).trim().replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function K(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function V(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function J(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function G(e){return n.toByteArray(q(e))}function Z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,p=r?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=5960464477539062e-23*(23===i),f=n?0:o-1,h=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=255&a,f+=h,a/=256,c-=8);e[r+f-h]|=128*m}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/",e.exports=i(72)}()},15668:(e,t,r)=>{var n=r(63431),i=r(28007),o=r(17719);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},16083:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ec,Y9:()=>es,q7:()=>ea,bL:()=>eo,l9:()=>el});var n=r(12115),i=r(3468),o=r(78625),a=r(94446),s=r(92556),l=r(23558),c=r(88142),u=r(4129),d=r(76842),p=r(68946),f=r(95155),h="Collapsible",[m,y]=(0,i.A)(h),[g,v]=m(h),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...u}=e,[d,m]=(0,l.i)({prop:i,defaultProp:null!=o&&o,onChange:s,caller:h});return(0,f.jsx)(g,{scope:r,disabled:a,contentId:(0,p.B)(),open:d,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(c.sG.div,{"data-state":E(d),"data-disabled":a?"":void 0,...u,ref:t})})});b.displayName=h;var w="CollapsibleTrigger",_=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=v(w,r);return(0,f.jsx)(c.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":E(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,s.mK)(e.onClick,i.onOpenToggle)})});_.displayName=w;var x="CollapsibleContent",k=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=v(x,e.__scopeCollapsible);return(0,f.jsx)(d.C,{present:r||i.open,children:e=>{let{present:r}=e;return(0,f.jsx)(S,{...n,ref:t,present:r})}})});k.displayName=x;var S=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,l=v(x,r),[d,p]=n.useState(i),h=n.useRef(null),m=(0,a.s)(t,h),y=n.useRef(0),g=y.current,b=n.useRef(0),w=b.current,_=l.open||d,k=n.useRef(_),S=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.N)(()=>{let e=h.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,b.current=t.width,k.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),p(i)}},[l.open,i]),(0,f.jsx)(c.sG.div,{"data-state":E(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!_,...s,ref:m,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:_&&o})});function E(e){return e?"open":"closed"}var A=b,C=_,O=k,T=r(66218),R="Accordion",j=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[P,M,I]=(0,o.N)(R),[N,D]=(0,i.A)(R,[I,y]),L=y(),U=n.forwardRef((e,t)=>
5{let{type:r,...n}=e,i=n,o=n;return(0,f.jsx)(P.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,f.jsx)($,{...o,ref:t}):(0,f.jsx)(W,{...i,ref:t})})});U.displayName=R;var[F,H]=N(R),[B,z]=N(R,{collapsible:!1}),W=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[c,u]=(0,l.i)({prop:r,defaultProp:null!=i?i:"",onChange:o,caller:R});return(0,f.jsx)(F,{scope:e.__scopeAccordion,value:n.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:n.useCallback(()=>a&&u(""),[a,u]),children:(0,f.jsx)(B,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)(V,{...s,ref:t})})})}),$=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,c]=(0,l.i)({prop:r,defaultProp:null!=i?i:[],onChange:o,caller:R}),u=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),d=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,f.jsx)(F,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:(0,f.jsx)(B,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(V,{...a,ref:t})})})}),[q,K]=N(R),V=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:i,dir:o,orientation:l="vertical",...u}=e,d=n.useRef(null),p=(0,a.s)(d,t),h=M(r),m="ltr"===(0,T.jH)(o),y=(0,s.mK)(e.onKeyDown,e=>{var t;if(!j.includes(e.key))return;let r=e.target,n=h().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i,s=0,c=o-1,u=()=>{(a=i+1)>c&&(a=s)},d=()=>{(a=i-1)<s&&(a=c)};switch(e.key){case"Home":a=s;break;case"End":a=c;break;case"ArrowRight":"horizontal"===l&&(m?u():d());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(m?d():u());break;case"ArrowUp":"vertical"===l&&d()}null==(t=n[a%o].ref.current)||t.focus()});return(0,f.jsx)(q,{scope:r,disabled:i,direction:o,orientation:l,children:(0,f.jsx)(P.Slot,{scope:r,children:(0,f.jsx)(c.sG.div,{...u,"data-orientation":l,ref:p,onKeyDown:i?void 0:y})})})}),J="AccordionItem",[G,Z]=N(J),X=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=K(J,r),a=H(J,r),s=L(r),l=(0,p.B)(),c=n&&a.value.includes(n)||!1,u=o.disabled||e.disabled;return(0,f.jsx)(G,{scope:r,open:c,disabled:u,triggerId:l,children:(0,f.jsx)(A,{"data-orientation":o.orientation,"data-state":ei(c),...s,...i,ref:t,disabled:u,open:c,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});X.displayName=J;var Y="AccordionHeader",Q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=K(R,r),o=Z(Y,r);return(0,f.jsx)(c.sG.h3,{"data-orientation":i.orientation,"data-state":ei(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Q.displayName=Y;var ee="AccordionTrigger",et=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=K(R,r),o=Z(ee,r),a=z(ee,r),s=L(r);return(0,f.jsx)(P.ItemSlot,{scope:r,children:(0,f.jsx)(C,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})});et.displayName=ee;var er="AccordionContent",en=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=K(R,r),o=Z(er,r),a=L(r);return(0,f.jsx)(O,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ei(e){return e?"open":"closed"}en.displayName=er;var eo=U,ea=X,es=Q,el=et,ec=en},16746:(e,t,r)=>{var n=r(97826);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},16809:(e,t,r)=>{var n=r(38185);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},17030:e=>{e.exports.isAnEarlyCloseHost=function(e){return e&&e.match(".*google(apis)?.com$")}},17283:(e,t,r)=>{var n=r(15376).Buffer,i=r(33018),o=r(8369),a=r(23431),s=r(89220),l=r(92313),c=r(62521),u=r(17030);t.OAuth=function(e,t,r,n,i,o,a,s,l){if(this._isEcho=!1,this._requestUrl=e,this._accessUrl=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==a&&(this._privateKey=n),this._version=i,void 0===o?this._authorize_callback="oob":this._authorize_callback=o,"PLAINTEXT"!=a&&"HMAC-SHA1"!=a&&"RSA-SHA1"!=a)throw Error("Un-supported signature method: "+a);this._signatureMethod=a,this._nonceSize=s||32,this._headers=l||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","}
5,t.OAuthEcho=function(e,t,r,n,i,o,a,s){if(this._isEcho=!0,this._realm=e,this._verifyCredentials=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==o&&(this._privateKey=n),this._version=i,"PLAINTEXT"!=o&&"HMAC-SHA1"!=o&&"RSA-SHA1"!=o)throw Error("Un-supported signature method: "+o);this._signatureMethod=o,this._nonceSize=a||32,this._headers=s||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},t.OAuthEcho.prototype=t.OAuth.prototype,t.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},t.OAuth.prototype._encodeData=function(e){return null==e||""==e?"":encodeURIComponent(e).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},t.OAuth.prototype._decodeData=function(e){return null!=e&&(e=e.replace(/\+/g," ")),decodeURIComponent(e)},t.OAuth.prototype._getSignature=function(e,t,r,n){var i=this._createSignatureBase(e,t,r);return this._createSignature(i,n)},t.OAuth.prototype._normalizeUrl=function(e){var t=l.parse(e,!0),r="";return t.port&&("http:"==t.protocol&&"80"!=t.port||"https:"==t.protocol&&"443"!=t.port)&&(r=":"+t.port),t.pathname&&""!=t.pathname||(t.pathname="/"),t.protocol+"//"+t.hostname+r+t.pathname},t.OAuth.prototype._isParameterNameAnOAuthParameter=function(e){var t=e.match("^oauth_");return!!t&&"oauth_"===t[0]},t.OAuth.prototype._buildAuthorizationHeaders=function(e){var t="OAuth ";this._isEcho&&(t+='realm="'+this._realm+'",');for(var r=0;r<e.length;r++)this._isParameterNameAnOAuthParameter(e[r][0])&&(t+=""+this._encodeData(e[r][0])+'="'+this._encodeData(e[r][1])+'"'+this._oauthParameterSeperator);return t.substring(0,t.length-this._oauthParameterSeperator.length)},t.OAuth.prototype._makeArrayOfArgumentsHash=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)t[t.length]=[r,n[i]];else t[t.length]=[r,n]}return t}
5,t.OAuth.prototype._sortRequestParams=function(e){return e.sort(function(e,t){return e[0]==t[0]?e[1]<t[1]?-1:1:e[0]<t[0]?-1:1}),e},t.OAuth.prototype._normaliseRequestParams=function(e){for(var t=this._makeArrayOfArgumentsHash(e),r=0;r<t.length;r++)t[r][0]=this._encodeData(t[r][0]),t[r][1]=this._encodeData(t[r][1]);t=this._sortRequestParams(t);for(var e="",r=0;r<t.length;r++)e+=t[r][0],e+="=",e+=t[r][1],r<t.length-1&&(e+="&");return e},t.OAuth.prototype._createSignatureBase=function(e,t,r){return t=this._encodeData(this._normalizeUrl(t)),r=this._encodeData(r),e.toUpperCase()+"&"+t+"&"+r},t.OAuth.prototype._createSignature=function(e,t){if(void 0===t)var t="";else t=this._encodeData(t);var r=this._consumerSecret+"&"+t,n="";return"PLAINTEXT"==this._signatureMethod?n=r:"RSA-SHA1"==this._signatureMethod?(r=this._privateKey||"",n=i.createSign("RSA-SHA1").update(e).sign(r,"base64")):n=i.Hmac?i.createHmac("sha1",r).update(e).digest("base64"):o.HMACSHA1(r,e),n},t.OAuth.prototype.NONCE_CHARS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],t.OAuth.prototype._getNonce=function(e){for(var t,r=[],n=this.NONCE_CHARS,i=n.length,o=0;o<e;o++)t=Math.floor(Math.random()*i),r[o]=n[t];return r.join("")},t.OAuth.prototype._createClient=function(e,t,r,n,i,o){var l,c={host:t,port:e,path:n,method:r,headers:i};return(l=o?s:a).request(c)},t.OAuth.prototype._prepareParameters=function(e,t,r,n,i){var o={oauth_timestamp:this._getTimestamp(),oauth_nonce:this._getNonce(this._nonceSize),oauth_version:this._version,oauth_signature_method:this._signatureMethod,oauth_consumer_key:this._consumerKey};if(e&&(o.oauth_token=e),this._isEcho)u=this._getSignature("GET",this._verifyCredentials,this._normaliseRequestParam
5s(o),t);else{if(i)for(var a in i)i.hasOwnProperty(a)&&(o[a]=i[a]);var s=l.parse(n,!1);if(s.query){var u,d,p=c.parse(s.query);for(var a in p){var f=p[a];if("object"==typeof f)for(d in f)o[a+"["+d+"]"]=f[d];else o[a]=f}}u=this._getSignature(r,n,this._normaliseRequestParams(o),t)}var h=this._sortRequestParams(this._makeArrayOfArgumentsHash(o));return h[h.length]=["oauth_signature",u],h},t.OAuth.prototype._performSecureRequest=function(e,t,r,i,o,a,s,d){var p,f,h=this._prepareParameters(e,t,r,i,o);s||(s="application/x-www-form-urlencoded");var m=l.parse(i,!1);"http:"!=m.protocol||m.port||(m.port=80),"https:"!=m.protocol||m.port||(m.port=443);var y={},g=this._buildAuthorizationHeaders(h);for(var v in this._isEcho?y["X-Verify-Credentials-Authorization"]=g:y.Authorization=g,y.Host=m.host,this._headers)this._headers.hasOwnProperty(v)&&(y[v]=this._headers[v]);for(var v in o)this._isParameterNameAnOAuthParameter(v)&&delete o[v];("POST"==r||"PUT"==r)&&null==a&&null!=o&&(a=c.stringify(o).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")),a?n.isBuffer(a)?y["Content-length"]=a.length:y["Content-length"]=n.byteLength(a):y["Content-length"]=0,y["Content-Type"]=s,m.pathname&&""!=m.pathname||(m.pathname="/"),p=m.query?m.pathname+"?"+m.query:m.pathname,f="https:"==m.protocol?this._createClient(m.port,m.hostname,r,p,y,!0):this._createClient(m.port,m.hostname,r,p,y);var b=this._clientOptions;if(!d)return("POST"==r||"PUT"==r)&&null!=a&&""!=a&&f.write(a),f;var w="",_=this,x=u.isAnEarlyCloseHost(m.hostname),k=!1,S=function(n){k||(k=!0,n.statusCode>=200&&n.statusCode<=299?d(null,w,n):(301==n.statusCode||302==n.statusCode)&&b.followRedirects&&n.headers&&n.headers.location?_._performSecureRequest(e,t,r,n.headers.location,o,a,s,d):d({statusCode:n.statusCode,data:w},w,n))};f.on("response",function(e){e.setEncoding("utf8"),e.on("data",function(e){w+=e}),e.on("end",function(){S(e)}),e.on("close",function(){x&&S(e)})}),f.on("error",function(e){k||(k=!0,d(e))}),("POST"==r||"PUT"==r)&&null!=a&&""!=a&&f.write(a),f.end()},t.OAuth.prototype.setClientOptions=function(e){var t,r={},n=Object.prototype.hasOwnProperty;for(t in this._defaultClientOptions)n.call(e,t)?r[t]=e[t]:r[t]=this._defaultClientOptions[t];this._clientOptions=r},t.OAuth.prototype.getOAuthAccessToken=function(e,t,r,n){var i={};"function"==typeof r?n=r:i.oauth_verifier=r,this._performSecureRequest(e,t,this._clientOptions.accessTokenHttpMethod,this._accessUrl,i,null,null,function(e,t,r){if(e)n(e);else{var i=c.parse(t),o=i.oauth_token;delete i.oauth_token;var a=i.oauth_token_secret;delete i.oauth_token_secret,n(null,o,a,i)}})},t.OAuth.prototype.getProtectedResource=function(e,t,r,n,i){this._performSecureRequest(r,n,t,e,null,"",null,i)},t.OAuth.prototype.delete=function(e,t,r,n){return this._performSecureRequest(t,r,"DELETE",e,null,"",null,n)},t.OAuth.prototype.get=function(e,t,r,n){return this._performSecureRequest(t,r,"GET",e,null,"",null,n)},t.OAuth.prototype._putOrPost=function(e,t,r,i,o,a,s){var l=null;return"function"==typeof a&&(s=a,a=null),"string"==typeof o||n.isBuffer(o)||(a="application/x-www-form-urlencoded",l=o,o=null),this._performSecureRequest(r,i,e,t,l,o,a,s)},t.OAuth.prototype.put=function(e,t,r,n,i,o){return this._putOrPost("PUT",e,t,r,n,i,o)},t.OAuth.prototype.post=function(e,t,r,n,i,o){return this._putOrPost("POST",e,t,r,n,i,o)},t.OAuth.prototype.getOAuthRequestToken=function(e,t){"function"==typeof e&&(t=e,e={}),this._authorize_callback&&(e.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,e,null,null,function(e,r,n){if(e)t(e);else{var i=c.parse(r),o=i.oauth_token,a=i.oauth_token_secret;delete i.oauth_token,delete i.oauth_token_secret,t(null,o,a,i)}})},t.OAuth.prototype.signUrl=function(e,t,r,n){if(void 0===n)var n="GET";for(var i=this._prepareParameters(t,r,n,e,{}),o=l.parse(e,!1),a="",s=0;s<i.length;s++)a+=i[s][0]+"="+this._encodeData(i[s][1])+"&";return a=a.substring(0,a.length-1),o.protocol+"//"+o.host+o.pathname+"?"+a},t.OAuth.prototype.authHeader=function(e,t,r,n){if(void 0===n)var n="GET";var i=this._prepareParameters(t,r,n,e,{});return this._buildAuthorizationHeaders(i)}},17480:(e,t)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return i}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17719:(e,t,r)=>{e.exports=r(83558)(r(51483),"Map")},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},18135:(e,t,r)=>{var n=r(14344);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},18365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},18981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var i=r(57650);
5Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))});var o=s(r(53149));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},19298:(e,t,r)=>{"use strict";var n=r(53341);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
5;return r.PropTypes=r,r}},19526:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(12115),i=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},19551:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.assertConfig=c;var i=r(74090),o=n(r(36880)),a=r(935);let s=!1;function l(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch(e){return!1}}function c(e){var t,r,n,c,u,d,p;let f,h,m,{options:y,req:g}=e,v=[];if(!s&&(g.origin||v.push("NEXTAUTH_URL"),y.secret,y.debug&&v.push("DEBUG_ENABLED")),!y.secret)return new i.MissingSecret("Please define a `secret` in production.");if(!(null!=(t=g.query)&&t.nextauth)&&!g.action)return new i.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let b=null==(r=g.query)?void 0:r.callbackUrl,w=(0,o.default)(g.origin);if(b&&!l(b,w.base))return new i.InvalidCallbackUrl(`Invalid callback URL. Received: ${b}`);let{callbackUrl:_}=(0,a.defaultCookies)(null!=(n=y.useSecureCookies)?n:w.base.startsWith("https://")),x=null==(c=g.cookies)?void 0:c[null!=(u=null==(d=y.cookies)||null==(d=d.callbackUrl)?void 0:d.name)?u:_.name];if(x&&!l(x,w.base))return new i.InvalidCallbackUrl(`Invalid callback URL. Received: ${x}`);for(let e of y.providers)"credentials"===e.type?f=!0:"email"===e.type?h=!0:"twitter"===e.id&&"2.0"===e.version&&(m=!0);if(f){let e=(null==(p=y.session)?void 0:p.strategy)==="database",t=!y.providers.some(e=>
5"credentials"!==e.type);if(e&&t)return new i.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(y.providers.some(e=>"credentials"===e.type&&!e.authorize))return new i.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(h){let{adapter:e}=y;if(!e)return new i.MissingAdapter("E-mail login requires an adapter.");let t=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(t=>!e[t]);if(t.length)return new i.MissingAdapterMethods(`Required adapter methods were missing: ${t.join(", ")}`)}return s||(m&&v.push("TWITTER_OAUTH_2_BETA"),s=!0),v}},20508:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},20684:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__esModule:()=>n.B,cookies:()=>n.U,draftMode:()=>o.r,headers:()=>i.b});var n=r(66410),i=r(14771),o=r(44706)},21107:e=>{e.exports=()=>Math.floor(Date.now()/1e3)},21187:(e,t,r)=>{var n=r(25411),i=r(31326),o=r(81864),a=r(32438);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},21281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(52135);function i(e){let{url:t,providerId:r}=e,i=e.providers.map(({options:e,...r})=>{var i,a;if("oauth"===r.type){let i=o(r),s=o(e,!0),l=null!=(a=null==s?void 0:s.id)?a:r.id;return(0,n.merge)(i,{...s,signinUrl:`${t}/signin/${l}`,callbackUrl:`${t}/callback/${l}`})}let s=null!=(i=null==e?void 0:e.id)?i:r.id;return(0,n.merge)(r,{...e,signinUrl:`${t}/signin/${s}`,callbackUrl:`${t}/callback/${s}`})});return{providers:i,provider:i.find(({id:e})=>e===r)}}function o(e,t=!1){var r,n,i,a,s;if(!e)return;let l=Object.entries(e).reduce((e,[t,r])=>{if(["authorization","token","userinfo"].includes(t)&&"string"==typeof r){var n;let i=new URL(r);e[t]={url:`${i.origin}${i.pathname}`,params:Object.fromEntries(null!=(n=i.searchParams)?n:[])}}else e[t]=r;return e},{});return t||null!=(r=l.version)&&r.startsWith("1.")||(l.idToken=!!(null!=(n=null!=(i=l.idToken)?i:null==(a=l.wellKnown)?void 0:a.includes("openid-configuration"))?n:null==(s=l.authorization)||null==(s=s.params)||null==(s=s.scope)?void 0:s.includes("openid")),l.checks||(l.checks=["state"])),l}},22544:(e,t,r)=>{"use strict";r.d(t,{Gb:()=>W,Jt:()=>b,Op:()=>z,as:()=>U,hZ:()=>x,jz:()=>eq,mN:()=>eK,xI:()=>F,xW:()=>B});var n=r(12115),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),c=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,u=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(u(t)),p=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(f&&(e instanceof Blob||t))return e;let r=Array.isArray(e);if(!r&&!(l(e)&&p(e)))return e;let n=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=h(e[t]));return n}var m=e=>/^\w*$/.test(e),y=e=>void 0===e,g=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>g(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,r)=>{if(!t||!l(e))return r;let n=(m(t)?[t]:v(t)).reduce((e,t)=>a(e)?e:e[t],e);return y(n)||n===e?y(e[t])?r:e[t]:n},w=e=>"boolean"==typeof e,_=e=>"function"==typeof e,x=(e,t,r)=>{let n=-1,i=m(t)?[t]:v(t),o=i.length,a=o-1;for(;++n<o;){let t=i[n],o=r;if(n!==a){let r=e[t];
vendor: 4,354 bytes, line 5
5o=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=o,e=e[t]}};let k={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},E={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},A="form",C="root",O=n.createContext(null);O.displayName="HookFormControlContext";let T=()=>n.useContext(O);var R=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>{let i=o;return t._proxyFormState[i]!==S.all&&(t._proxyFormState[i]=!n||S.all),r&&(r[i]=!0),e[i]}});return i};let j="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function P(e){let t=T(),{control:r=t,disabled:i,name:o,exact:a}=e||{},[s,l]=n.useState(r._formState),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return j(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:e=>{i||l({...r._formState,...e})}}),[o,i,a]),n.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),n.useMemo(()=>R(s,r,c.current,!1),[s,r])}var M=e=>"string"==typeof e,I=(e,t,r,n,i)=>M(e)?(n&&t.watch.add(e),b(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),b(r,e))):(n&&(t.watchAll=!0),r),N=e=>a(e)||!s(e);function D(e,t,r=new WeakSet){if(N(e)||N(t))return Object.is(e,t);if(o(e)&&o(t))return Object.is(e.getTime(),t.getTime());let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;for(let a of(r.add(e),r.add(t),n)){let n=e[a];if(!i.includes(a))return!1;if("ref"!==a){let e=t[a];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!D(n,e,r):!Object.is(n,e))return!1}}return!0}function L(e){let t=T(),{control:r=t,name:i,defaultValue:o,disabled:a,exact:s,compute:l}=e||{},c=n.useRef(o),u=n.useRef(l),d=n.useRef(void 0),p=n.useRef(r),f=n.useRef(i);u.current=l;let[h,m]=n.useState(()=>{let e=r._getWatch(i,c.current);return u.current?u.current(e):e}),y=n.useCallback(e=>{let t=I(i,r._names,e||r._formValues,!1,c.current);return u.current?u.current(t):t},[r._formValues,r._names,i]),g=n.useCallback(e=>{if(!a){let t=I(i,r._names,e||r._formValues,!1,c.current);if(u.current){let e=u.current(t);D(e,d.current)||(m(e),d.current=e)}else m(t)}},[r._formValues,r._names,a,i]);j(()=>(p.current===r&&D(f.current,i)||(p.current=r,f.current=i,g()),r._subscribe({name:i,formState:{values:!0},exact:s,callback:e=>{g(e.values)}})),[r,s,i,g]),n.useEffect(()=>r._removeUnmounted());let v=p.current!==r,b=f.current,w=n.useMemo(()=>{if(a)return null;let e=!v&&!D(b,i);return v||e?y():null},[a,v,i,b,y]);return null!==w?w:h}function U(e){let t=T(),{name:r,disabled:i,control:o=t,shouldUnregister:a,defaultValue:s,exact:l=!0}=e,u=d(o._names.array,r),p=n.useMemo(()=>b(o._formValues,r,b(o._defaultValues,r,s)),[o,r,s]),f=L({control:o,name:r,defaultValue:p,exact:l}),m=P({control:o,name:r,exact:l}),g=n.useRef(e),v=n.useRef(void 0),S=n.useRef(o.register(r,{...e.rules,value:f,...w(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;let E=n.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(m.errors,r)},isDirty:{enumerable:!0,get:()=>!!b(m.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!b(m.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!b(m.validatingFields,r)},error:{enumerable:!0,get:()=>b(m.errors,r)}}),[m,r]),A=n.useCallback(e=>S.current.onChange({target:{value:c(e),name:r},type:k.CHANGE}),[r]),C=n.useCallback(()=>S.current.onBlur({target:{value:b(o._formValues,r),name:r},type:k.BLUR}),[r,o._formValues]),O=n.useCallback(e=>{let t=b(o._fields,r);t&&t._f&&e&&(t._f.ref={focus:()=>_(e.focus)&&e.focus(),select:()=>_(e.select)&&e.select(),setCustomValidity:t=>_(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>_(e.reportValidity)&&e.reportValidity()})},[o._fields,r]),R=n.useMemo(()=>({name:r,value:f,...w(i)||m.disabled?{disabled:m.disabled||i}:{},onChange:A,onBlur:C,ref:O}),[r,i,m.disabled,A,C,O,f]);return n.useEffect(()=>{let e=o._options.shouldUnregister||a,t=v.current;t&&t!==r&&!u&&o.unregister(t),o.register(r,{...g.current.rules,...w(g.current.disabled)?{disabled:g.current.disabled}:{}});let n=(e,t)=>
5{let r=b(o._fields,e);r&&r._f&&(r._f.mount=t)};if(n(r,!0),e){let e=h(b(o._options.defaultValues,r,g.current.defaultValue));x(o._defaultValues,r,e),y(b(o._formValues,r))&&x(o._formValues,r,e)}return u||o.register(r),v.current=r,()=>{(u?e&&!o._state.action:e)?o.unregister(r):n(r,!1)}},[r,o,u,a]),n.useEffect(()=>{o._setDisabledField({disabled:i,name:r})},[i,r,o]),n.useMemo(()=>({field:R,formState:m,fieldState:E}),[R,m,E])}let F=e=>e.render(U(e)),H=n.createContext(null);H.displayName="HookFormContext";let B=()=>n.useContext(H),z=e=>{let{children:t,watch:r,getValues:i,getFieldState:o,setError:a,clearErrors:s,setValue:l,trigger:c,formState:u,resetField:d,reset:p,handleSubmit:f,unregister:h,control:m,register:y,setFocus:g,subscribe:v}=e;return n.createElement(H.Provider,{value:n.useMemo(()=>({watch:r,getValues:i,getFieldState:o,setError:a,clearErrors:s,setValue:l,trigger:c,formState:u,resetField:d,reset:p,handleSubmit:f,unregister:h,control:m,register:y,setFocus:g,subscribe:v}),[s,m,u,o,i,f,y,p,d,a,g,l,v,c,h,r])},n.createElement(O.Provider,{value:m},t))};var W=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},$=e=>Array.isArray(e)?e:[e],q=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function K(e,t){let r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=t[n];if(i&&l(i)&&o){let e=K(i,o);l(e)&&(r[n]=e)}else e[n]&&(r[n]=o)}return r}var V=e=>l(e)&&!Object.keys(e).length,J=e=>"file"===e.type,G=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Z=e=>"select-multiple"===e.type,X=e=>"radio"===e.type,Y=e=>X(e)||i(e),Q=e=>G(e)&&e.isConnected;function ee(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=y(e)?n++:e[t[n++]];return e}function et(e){for(let t in e)if(e.hasOwnProperty(t)&&!y(e[t]))return!1;return!0}function er(e,t){let r=Array.isArray(t)?t:m(t)?[t]:v(t),n=1===r.length?e:ee(e,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(l(n)&&V(n)||Array.isArray(n)&&et(n))&&er(e,r.slice(0,-1)),e}var en=e=>{for(let t in e)if(_(e[t]))return!0;return!1};function ei(e){return Array.isArray(e)||l(e)&&!en(e)}function eo(e,t={}){for(let r in e){let n=e[r];ei(n)?(t[r]=Array.isArray(n)?[]:{},eo(n,t[r])):y(n)||(t[r]=!0)}return t}function ea(e,t,r){for(let n in r||(r=eo(t)),e){let i=e[n];if(ei(i))y(t)||N(r[n])?r[n]=eo(i,Array.isArray(i)?[]:{}):ea(i,a(t)?{}:t[n],r[n]);else{let e=t[n];r[n]=!D(i,e)}}return r}let es={value:!1,isValid:!1},el={value:!0,isValid:!0};var ec=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?el:{value:e[0].value,isValid:!0}:el:es}return es},eu=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&M(e)?new Date(e):n?n(e):e;let ed={isValid:!1,value:null};var ep=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ed):ed;function ef(e){let t=e.ref;return J(t)?t.files:X(t)?ep(e.refs).value:Z(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?ec(e.refs).value:eu(y(t.value)?e.ref.value:t.value,e)}var eh=(e,t,r,n)=>{let i={};for(let r of e){let e=b(t,r);e&&x(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},em=e=>e instanceof RegExp,ey=e=>y(e)?e:em(e)?e.source:l(e)?em(e.value)?e.value.source:e.value:e,eg=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched});let ev="AsyncFunction";var eb=e=>!!e&&!!e.validate&&!!(_(e.validate)&&e.validate.constructor.name===ev||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===ev)),ew=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),e_=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ex=(e,t,r,n)=>
vendor: 12,157 bytes, line 5
5{for(let i of r||Object.keys(e)){let r=b(e,i);if(r){let{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(ex(o,t))break}else if(l(o)&&ex(o,t))break}}};function ek(e,t,r){let n=b(e,r);if(n||m(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),o=b(t,n),a=b(e,n);if(o&&!Array.isArray(o)&&r!==n)break;if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};i.pop()}return{name:r}}var eS=(e,t,r,n)=>{r(e);let{name:i,...o}=e;return V(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||S.all))},eE=(e,t,r)=>!e||!t||e===t||$(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),eA=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),eC=(e,t)=>!g(b(e,t)).length&&er(e,t),eO=(e,t,r)=>{let n=$(b(e,r));return x(n,C,t[r]),x(e,r,n),e};function eT(e,t,r="validate"){if(M(e)||Array.isArray(e)&&e.every(M)||w(e)&&!e)return{type:r,message:M(e)?e:"",ref:t}}var eR=e=>l(e)&&!em(e)?e:{value:e,message:""},ej=async(e,t,r,n,o,s)=>{let{ref:c,refs:u,required:d,maxLength:p,minLength:f,min:h,max:m,pattern:g,validate:v,name:x,valueAsNumber:k,mount:S}=e._f,A=b(r,x);if(!S||t.has(x))return{};let C=u?u[0]:c,O=e=>{o&&C.reportValidity&&(C.setCustomValidity(w(e)?"":e||""),C.reportValidity())},T={},R=X(c),j=i(c),P=R||j,I=(k||J(c))&&y(c.value)&&y(A)||G(c)&&""===c.value||""===A||Array.isArray(A)&&!A.length,N=W.bind(null,x,n,T),D=(e,t,r,n=E.maxLength,i=E.minLength)=>{let o=e?t:r;T[x]={type:e?n:i,message:o,ref:c,...N(e?n:i,o)}};if(s?!Array.isArray(A)||!A.length:d&&(!P&&(I||a(A))||w(A)&&!A||j&&!ec(u).isValid||R&&!ep(u).isValid)){let{value:e,message:t}=M(d)?{value:!!d,message:d}:eR(d);if(e&&(T[x]={type:E.required,message:t,ref:C,...N(E.required,t)},!n))return O(t),T}if(!I&&(!a(h)||!a(m))){let e,t,r=eR(m),i=eR(h);if(a(A)||isNaN(A)){let n=c.valueAsDate||new Date(A),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==c.type,s="week"==c.type;M(r.value)&&A&&(e=a?o(A)>o(r.value):s?A>r.value:n>new Date(r.value)),M(i.value)&&A&&(t=a?o(A)<o(i.value):s?A<i.value:n<new Date(i.value))}else{let n=c.valueAsNumber||(A?+A:A);a(r.value)||(e=n>r.value),a(i.value)||(t=n<i.value)}if((e||t)&&(D(!!e,r.message,i.message,E.max,E.min),!n))return O(T[x].message),T}if((p||f)&&!I&&(M(A)||s&&Array.isArray(A))){let e=eR(p),t=eR(f),r=!a(e.value)&&A.length>+e.value,i=!a(t.value)&&A.length<+t.value;if((r||i)&&(D(r,e.message,t.message),!n))return O(T[x].message),T}if(g&&!I&&M(A)){let{value:e,message:t}=eR(g);if(em(e)&&!A.match(e)&&(T[x]={type:E.pattern,message:t,ref:c,...N(E.pattern,t)},!n))return O(t),T}if(v){if(_(v)){let e=eT(await v(A,r),C);if(e&&(T[x]={...e,...N(E.validate,e.message)},!n))return O(e.message),T}else if(l(v)){let e={};for(let t in v){if(!V(e)&&!n)break;let i=eT(await v[t](A,r),C,t);i&&(e={...i,...N(t,i.message)},O(i.message),n&&(T[x]=e))}if(!V(e)&&(T[x]={ref:C,...e},!n))return T}}return O(!0),T};let eP={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function eM(e={}){let t,r={...eP,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:_(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},p=(l(r.defaultValues)||l(r.values))&&h(r.defaultValues||r.values)||{},m=r.shouldUnregister?{}:h(p),v={action:!1,mount:!1,watch:!1,keepIsValid:!1},O={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},T=0,R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},j={...R},P={...j},N={array:q(),state:q()},L=r.criteriaMode===S.all,U=e=>t=>{clearTimeout(T),T=setTimeout(e,t)},F=async e=>{if(!v.keepIsValid&&!r.disabled&&(j.isValid||P.isValid||e)){let e;r.resolver?(e=V((await et()).errors),H()):e=await eo({fields:s,onlyCheckValid:!0,eventType:k.VALID}),e!==n.isValid&&N.state.next({isValid:e})}},H=(e,t)=>{!r.disabled&&(j.isValidating||j.validatingFields||P.isValidating||P.validatingFields)&&((e||Array.from(O.mount)).forEach(e=>{e&&(t?x(n.validatingFields,e,t):er(n.validatingFields,e))}),N.state.next({validatingFields:n.validatingFields,isValidating:!V(n.validatingFields)}))},B=(e,t=[],i,o,a=!0,l=!0)=>{if(o&&i&&!r.disabled){if(v.action=!0,l&&Array.isArray(b(s,e))){let t=i(b(s,e),o.argA,o.argB);a&&x(s,e,t)}if(l&&Array.isArray(b(n.errors,e))){let t=i(b(n.errors,e),o.argA,o.argB);a&&x(n.errors,e,t),eC(n.errors,e)}if((j.touchedFields||P.touchedFields)&&l&&Array.isArray(b(n.touchedFields,e))){let t=i(b(n.touchedFields,e),o.argA,o.argB);a&&x(n.touchedFields,e,t)}if(j.dirtyFields||P.dirtyFields){let t=ea(p,m),r=u(e);x(n.dirtyFields,r,b(t,r))}N.state.next({name:e,isDirty:el(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(m,e,t)},z=(e,t)=>{x(n.errors,e,t),N.state.next({errors:n.errors})},W=(e,t,r,n)=>{let i=b(s,e);if(i){let o=b(m,e,y(r)?b(p,e):r);y(o)||n&&n.defaultChecked||t?x(m,e,t?o:ef(i._f)):ed(e,o),v.mount&&!v.action&&F()}},X=(e,t,i,o,a)=>{let s=!1,l=!1,c={name:e};if(!r.disabled){if(!i||o){(j.isDirty||P.isDirty)&&(l=n.isDirty,n.isDirty=c.isDirty=el(),s=l!==c.isDirty);let r=D(b(p,e),t);l=!!b(n.dirtyFields,e),r?er(n.dirtyFields,e):x(n.dirtyFields,e,!0),c.dirtyFields=n.dirtyFields,s=s||(j.dirtyFields||P.dirtyFields)&&!r!==l}if(i){let t=b(n.touchedFields,e);t||(x(n.touchedFields,e,i),c.touchedFields=n.touchedFields,s=s||(j.touchedFields||P.touchedFields)&&t!==i)}s&&a&&N.state.next(c)}return s?c:{}},ee=(e,i,o,a)=>{let s=b(n.errors,e),l=(j.isValid||P.isValid)&&w(i)&&n.isValid!==i;if(r.delayError&&o?(t=U(()=>z(e,o)))(r.delayError):(clearTimeout(T),t=null,o?x(n.errors,e,o):er(n.errors,e)),(o?!D(s,o):s)||!V(a)||l){let t={...a,...l&&w(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},N.state.next(t)}},et=async e=>(H(e,!0),await r.resolver(m,r.context,eh(e||O.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),en=async e=>{let{errors:t}=await et(e);if(H(e),e)for(let r of e){let e=b(t,r);e?x(n.errors,r,e):er(n.errors,r)}else n.errors=t;return t},ei=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:m,formState:n,name:t,eventType:r});if(l(i))for(let e in i)i[e]&&eL(`${A}.${e}`,{message:M(i.message)?i.message:"",type:E.validate});else M(i)||!i?eL(A,{message:i||"",type:E.validate}):eD(A);return i}return!0},eo=async({fields:t,onlyCheckValid:i,name:o,eventType:a,context:s={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(s.runRootValidation=!0,!await ei({name:o,eventType:a}))&&(s.valid=!1,i))return s.valid;for(let o in t){let l=t[o];if(l){let{_f:t,...c}=l;if(t){let o=O.array.has(t.name),a=l._f&&eb(l._f);a&&j.validatingFields&&H([t.name],!0);let c=await ej(l,O.disabled,m,L,r.shouldUseNativeValidation&&!i,o);if(a&&j.validatingFields&&H([t.name]),c[t.name]&&(s.valid=!1,i)||(i||(b(c,t.name)?o?eO(n.errors,c,t.name):x(n.errors,t.name,c[t.name]):er(n.errors,t.name)),e.shouldUseNativeValidation&&c[t.name]))break}V(c)||await eo({context:s,onlyCheckValid:i,fields:c,name:o,eventType:a})}}return s.valid},es=()=>{for(let e of O.unMount){let t=b(s,e);t&&(t._f.refs?t._f.refs.every(e=>!Q(e)):!Q(t._f.ref))&&eB(e)}O.unMount=new Set},el=(e,t)=>!r.disabled&&(e&&t&&x(m,e,t),!D(eI(),p)),ec=(e,t,r)=>I(e,O,{...v.mount?m:y(t)?p:M(e)?{[e]:t}:t},r,t),ed=(e,t,r={})=>{let n=b(s,e),o=t;if(n){let r=n._f;r&&(r.disabled||x(m,e,eu(t,r)),o=G(r.ref)&&a(t)?"":t,Z(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):r.refs.forEach(e=>e.checked=e.value===o):J(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||N.state.next({name:e,values:h(m)})))}(r.shouldDirty||r.shouldTouch)&&X(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eR(e)},ep=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let i=t[n],a=e+"."+n,c=b(s,a);(O.array.has(e)||l(i)||c&&!c._f)&&!o(i)?ep(a,i,r):ed(a,i,r)}},em=(e,t,r={})=>{let i=b(s,e),o=O.array.has(e),l=h(t);x(m,e,l),o?(N.array.next({name:e,values:h(m)}),(j.isDirty||j.dirtyFields||P.isDirty||P.dirtyFields)&&r.shouldDirty&&N.state.next({name:e,dirtyFields:ea(p,m),isDirty:el(e,l)})):!i||i._f||a(l)?ed(e,l,r):ep(e,l,r),e_(e,O)?N.state.next({...n,name:e,values:h(m)}):N.state.next({name:v.mount?e:void 0,values:h(m)})},ev=async i=>{v.mount=!0;let a=i.target,l=a.name,u=!0,d=b(s,l),p=e=>{u=Number.isNaN(e)||o(e)&&isNaN(e.getTime())||D(e,b(m,l,e))},f=eg(r.mode),y=eg(r.reValidateMode);if(d){let o,g,v=a.type?ef(d._f):c(i),w=i.type===k.BLUR||i.type===k.FOCUS_OUT,_=!ew(d._f)&&!e.validate&&!r.resolver&&!b(n.errors,l)&&!d._f.deps||eA(w,b(n.touchedFields,l),n.isSubmitted,y,f),S=e_(l,O,w);x(m,l,v),w?a&&a.readOnly||(d._f.onBlur&&d._f.onBlur(i),t&&t(0)):d._f.onChange&&d._f.onChange(i);let E=X(l,v,w),A=!V(E)||S;if(w||N.state.next({name:l,type:i.type,values:h(m)}),_)return(j.isValid||P.isValid)&&("onBlur"===r.mode?w&&F():w||F()),A&&N.state.next({name:l,...S?{}:E});if(!r.resolver&&e.validate&&await ei({name:l,eventType:i.type}),!w&&S&&N.state.next({...n}),r.resolver){let{errors:e}=await et([l]);if(H([l]),p(v),u){let t=ek(n.errors,s,l),r=ek(e,s,t.name||l);o=r.error,l=r.name,g=V(e)}}else H([l],!0),o=(await ej(d,O.disabled,m,L,r.shouldUseNativeValidation))[l],H([l]),p(v),u&&(o?g=!1:(j.isValid||P.isValid)&&(g=await eo({fields:s,onlyCheckValid:!0,name:l,eventType:i.type})));u&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&eR(d._f.deps),ee(l,g,o,E))}},eT=(e,t)=>{if(b(n.errors,t)&&e.focus)return e.focus(),1},eR=async(e,t={})=>{let i,o,a=$(e);if(r.resolver){let t=await en(y(e)?e:a);i=V(t),o=e?!a.some(e=>b(t,e)):i}else e?((o=(await Promise.all(a.map(async e=>{let t=b(s,e);return await eo({fields:t&&t._f?{[e]:t}:t,eventType:k.TRIGGER})}))).every(Boolean))||n.isValid)&&F():o=i=await eo({fields:s,name:e,eventType:k.TRIGGER});return N.state.next({...!M(e)||(j.isValid||P.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!o&&ex(s,eT,e?a:O.mount),o},eI=(e,t)=>{let r={...v.mount?m:p};return t&&(r=K(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),y(e)?r:M(e)?b(r,e):e.map(e=>b(r,e))},eN=(e,t)=>({invalid:!!b((t||n).errors,e),isDirty:!!b((t||n).dirtyFields,e),error:b((t||n).errors,e),isValidating:!!b(n.validatingFields,e),isTouched:!!b((t||n).touchedFields,e)}),eD=e=>{let t=e?$(e):void 0;null==t||t.forEach(e=>er(n.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:n.errors})}):N.state.next({errors:{}})},eL=(e,t,r)=>{let i=(b(s,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:l,...c}=b(n.errors,e)||{};x(n.errors,e,{...c,...t,ref:i}),N.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eU=(e,t)=>_(e)?N.state.subscribe({next:r=>"values"in r&&e(ec(void 0,t),r)}):ec(e,t,!0),eF=e=>N.state.subscribe({next:t=>{eE(e.name,t.name,e.exact)&&eS(t,e.formState||j,eZ,e.reRenderRoot)&&e.callback({values:{...m},...n,...t,defaultValues:p})}}).unsubscribe,eH=e=>(v.mount=!0,P={...P,...e.formState},eF({...e,formState:{...R,...e.formState}})),eB=(e,t={})=>{for(let i of e?$(e):O.mount)O.mount.delete(i),O.array.delete(i),t.keepValue||(er(s,i),er(m,i)),t.keepError||er(n.errors,i),t.keepDirty||er(n.dirtyFields,i),t.keepTouched||er(n.touchedFields,i),t.keepIsValidating||er(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||er(p,i);N.state.next({values:h(m)}),N.state.next({...n,...!t.keepDirty?{}:{isDirty:el()}}),t.keepIsValid||F()},ez=({disabled:e,name:t})=>{if(w(e)&&v.mount||e||O.disabled.has(t)){let r=!!e!==O.disabled.has(t);e?O.disabled.add(t):O.disabled.delete(t),r&&v.mount&&!v.action&&F()}},eW=(e,t={})=>{let n=b(s,e),i=w(t.disabled)||w(r.disabled);return x(s,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),O.mount.add(e),n?ez({disabled:w(t.disabled)?t.disabled:r.disabled,name:e}):W(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:ey(t.min),max:ey(t.max),minLength:ey(t.minLength),maxLength:ey(t.maxLength),pattern:ey(t.pattern)}:{}
5,name:e,onChange:ev,onBlur:ev,ref:i=>{if(i){eW(e,t),n=b(s,e);let r=y(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=Y(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(x(s,e,{_f:{...n._f,...o?{refs:[...a.filter(Q),r,...Array.isArray(b(p,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),W(e,!1,void 0,r))}else(n=b(s,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(O.array,e)&&v.action)&&O.unMount.add(e)}}},e$=()=>r.shouldFocusError&&ex(s,eT,O.mount),eq=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let a=h(m);if(N.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await et();H(),n.errors=e,a=h(t)}else await eo({fields:s,eventType:k.SUBMIT});if(O.disabled.size)for(let e of O.disabled)er(a,e);if(er(n.errors,C),V(n.errors)){N.state.next({errors:{}});try{await e(a,i)}catch(e){o=e}}else t&&await t({...n.errors},i),e$(),setTimeout(e$);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:V(n.errors)&&!o,submitCount:n.submitCount+1,errors:n.errors}),o)throw o},eK=(e,t={})=>{b(s,e)&&(y(t.defaultValue)?em(e,h(b(p,e))):(em(e,t.defaultValue),x(p,e,h(t.defaultValue))),t.keepTouched||er(n.touchedFields,e),t.keepDirty||(er(n.dirtyFields,e),n.isDirty=t.defaultValue?el(e,h(b(p,e))):el()),!t.keepError&&(er(n.errors,e),j.isValid&&F()),N.state.next({...n}))},eV=(e,t={})=>{let i=e?h(e):p,o=h(i),a=V(e),l=a?p:o;if(t.keepDefaultValues||(p=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...O.mount,...Object.keys(ea(p,m))]))){let t=b(n.dirtyFields,e),r=b(m,e),i=b(l,e);t&&!y(r)?x(l,e,r):t||y(i)||em(e,i)}else{if(f&&y(e))for(let e of O.mount){let t=b(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(G(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of O.mount)em(e,b(l,e));else s={}}m=r.shouldUnregister?t.keepDefaultValues?h(p):{}:h(l),N.array.next({values:{...l}}),N.state.next({values:{...l}})}O={mount:t.keepDirtyValues?O.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},v.mount=!j.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!V(l),v.watch=!!r.shouldUnregister,v.keepIsValid=!!t.keepIsValid,v.action=!1,t.keepErrors||(n.errors={}),N.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!a&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!D(e,p))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&m?ea(p,m):n.dirtyFields:t.keepDefaultValues&&e?ea(p,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:p})},eJ=(e,t)=>eV(_(e)?e(m):e,{...r.resetOptions,...t}),eG=(e,t={})=>{let r=b(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&_(e.select)&&e.select()})}},eZ=e=>{n={...n,...e}},eX={control:{register:eW,unregister:eB,getFieldState:eN,handleSubmit:eq,setError:eL,_subscribe:eF,_runSchema:et,_updateIsValidating:H,_focusError:e$,_getWatch:ec,_getDirty:el,_setValid:F,_setFieldArray:B,_setDisabledField:ez,_setErrors:e=>{n.errors=e,N.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>g(b(v.mount?m:p,e,r.shouldUnregister?b(p,e,[]):[])),_reset:eV,_resetDefaultValues:()=>_(r.defaultValues)&&r.defaultValues().then(e=>{eJ(e,r.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:es,_disableForm:e=>{w(e)&&(N.state.next({disabled:e}),ex(s,(t,r)=>{let n=b(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:N,_proxyFormState:j,get _fields(){return s},get _formValues(){return m},get _state(){return v},set _state(value){v=value},get _defaultValues(){return p},get _names(){return O},set _names(value){O=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:eH,trigger:eR,register:eW,handleSubmit:eq,watch:eU,setValue:em,getValues:eI,reset:eJ,resetField:eK,clearErrors:eD,unregister:eB,setError:eL,setFocus:eG,getFieldState:eN};return{...eX,formControl:eX}}var eI=()=>
5{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();let e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)})},eN=(e,t,r={})=>r.shouldFocus||y(r.shouldFocus)?r.focusName||`${e}.${y(r.focusIndex)?t:r.focusIndex}.`:"",eD=(e,t)=>[...e,...$(t)],eL=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function eU(e,t,r){return[...e.slice(0,t),...$(r),...e.slice(t)]}var eF=(e,t,r)=>Array.isArray(e)?(y(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],eH=(e,t)=>[...$(t),...$(e)];function eB(e,t){let r=0,n=[...e];for(let e of t)n.splice(e-r,1),r++;return g(n).length?n:[]}var ez=(e,t)=>y(t)?[]:eB(e,$(t).sort((e,t)=>e-t)),eW=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},e$=(e,t,r)=>(e[t]=r,e);function eq(e){let t=T(),{control:r=t,name:i,keyName:o="id",shouldUnregister:a,rules:s}=e,[l,c]=n.useState(r._getFieldArray(i)),u=n.useRef(r._getFieldArray(i).map(eI)),d=n.useRef(!1);r._names.array.add(i),n.useMemo(()=>s&&l.length>=0&&r.register(i,s),[r,i,l.length,s]),j(()=>r._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===i||!t){let t=b(e,i);Array.isArray(t)&&(c(t),u.current=t.map(eI))}}}).unsubscribe,[r,i]);let p=n.useCallback(e=>{d.current=!0,r._setFieldArray(i,e)},[r,i]),f=(e,t)=>{let n=$(h(e)),o=eD(r._getFieldArray(i),n);r._names.focus=eN(i,o.length-1,t),u.current=eD(u.current,n.map(eI)),p(o),c(o),r._setFieldArray(i,o,eD,{argA:eL(e)})},m=(e,t)=>{let n=$(h(e)),o=eH(r._getFieldArray(i),n);r._names.focus=eN(i,0,t),u.current=eH(u.current,n.map(eI)),p(o),c(o),r._setFieldArray(i,o,eH,{argA:eL(e)})},y=e=>{let t=ez(r._getFieldArray(i),e);u.current=ez(u.current,e),p(t),c(t),Array.isArray(b(r._fields,i))||x(r._fields,i,void 0),r._setFieldArray(i,t,ez,{argA:e})},g=(e,t,n)=>{let o=$(h(t)),a=eU(r._getFieldArray(i),e,o);r._names.focus=eN(i,e,n),u.current=eU(u.current,e,o.map(eI)),p(a),c(a),r._setFieldArray(i,a,eU,{argA:e,argB:eL(t)})},v=(e,t)=>{let n=r._getFieldArray(i);eW(n,e,t),eW(u.current,e,t),p(n),c(n),r._setFieldArray(i,n,eW,{argA:e,argB:t},!1)},w=(e,t)=>{let n=r._getFieldArray(i);eF(n,e,t),eF(u.current,e,t),p(n),c(n),r._setFieldArray(i,n,eF,{argA:e,argB:t},!1)},_=(e,t)=>{let n=h(t),o=e$(r._getFieldArray(i),e,n);u.current=[...o].map((t,r)=>t&&r!==e?u.current[r]:eI()),p(o),c([...o]),r._setFieldArray(i,o,e$,{argA:e,argB:n},!0,!1)},k=e=>{let t=$(h(e));u.current=t.map(eI),p([...t]),c([...t]),r._setFieldArray(i,[...t],e=>e,{},!0,!1)};return n.useEffect(()=>{if(r._state.action=!1,e_(i,r._names)&&r._subjects.state.next({...r._formState}),d.current&&(!eg(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!eg(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([i]).then(e=>{r._updateIsValidating([i]);let t=b(e.errors,i),n=b(r._formState.errors,i);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?x(r._formState.errors,i,t):er(r._formState.errors,i),r._subjects.state.next({errors:r._formState.errors}))});else{let e=b(r._fields,i);e&&e._f&&!(eg(r._options.reValidateMode).isOnSubmit&&eg(r._options.mode).isOnSubmit)&&ej(e,r._names.disabled,r._formValues,r._options.criteriaMode===S.all,r._options.shouldUseNativeValidation,!0).then(e=>!V(e)&&r._subjects.state.next({errors:eO(r._formState.errors,e,i)}))}r._subjects.state.next({name:i,values:h(r._formValues)}),r._names.focus&&ex(r._fields,(e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1}),r._names.focus="",r._setValid(),d.current=!1},[l,i,r]),n.useEffect(()=>(b(r._formValues,i)||r._setFieldArray(i),()=>{let e=(e,t)=>{let n=b(r._fields,e);n&&n._f&&(n._f.mount=t)};r._options.shouldUnregister||a?r.unregister(i):e(i,!1)}),[i,r,o,a]),{swap:n.useCallback(v,[p,i,r]),move:n.useCallback(w,[p,i,r]),prepend:n.useCallback(m,[p,i,r]),append:n.useCallback(f,[p,i,r]),remove:n.useCallback(y,[p,i,r]),insert:n.useCallback(g,[p,i,r]),update:n.useCallback(_,[p,i,r]),replace:n.useCallback(k,[p,i,r]),fields:n.useMemo(()=>l.map((e,t)=>({...e,[o]:u.current[t]||eI()})),[l,o])}}function eK(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[i,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:_(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:_(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!_(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:r,...n}=eM(e);t.current={...n,formState:i}}let a=t.current.control;return a._options=e,j(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}
5),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),n.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),n.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),n.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),n.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),n.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==i.isDirty&&a._subjects.state.next({isDirty:e})}},[a,i.isDirty]),n.useEffect(()=>{var t;e.values&&!D(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),(null==(t=a._options.resetOptions)?void 0:t.keepIsValid)||a._setValid(),r.current=e.values,o(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),n.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=n.useMemo(()=>R(i,a),[a,i]),t.current}},23431:(e,t,r)=>{var n="/",i=r(95704),o=r(15376).Buffer;!function(){var t={523:function(e){e.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"}},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENT
5ED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(709),a=r(337);r(782)(u,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=O,n(361).EventEmitter;var o,a,s,l,c,u=function(e,t){return e.listeners(t).length},d=n(678),p=n(300).Buffer,f=r.g.Uint8Array||function(){};function h(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof f}var y=n(837);a=y&&y.debuglog?y.debuglog("stream"):function(){};var g=n(379),v=n(25),b=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,x=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(T,d);var E=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function C(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 22,521 bytes, line 5
5ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function O(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new g,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(o=o||n(403),!(this instanceof T))return new T(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=P(s,t)),o)E(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),n)s.endEmitted?E(e,new S):j(e,s,t,!0);else if(s.ended)E(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):F(e,s)):j(e,s,t,!1)}else n||(s.reading=!1,F(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),F(e,t)}function P(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var M=0x40000000;function I(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,U(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(U,e))}function U(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(H,e,t))}function H(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,K(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function W(e){a("readable nexttick read 0"),e.read(0)}function $(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function V(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(G,t,e))}function G(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):L(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?V(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){E(this,new k("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?g:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=B(r);e.on("drain",c);var d=!1;function p(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",f),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Z(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),g(),e.removeListener("error",h),0===u(e,"error")&&E(e,t)}function m(){e.removeListener("finish",y),g()}function y(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",f),C(e,"error",h),e.once("close",m),e.once("finish",y),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Z(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(W,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),r},T.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(z,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,$(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=V,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=u;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}e.exports=O,O.WritableState=C;var a,s,l={deprecate:n(769)},c=n(678),u=n(300).Buffer,d=r.g.Uint8Array||function(){};function p(e){return u.from(e)}function f(e){return u.isBuffer(e)||e instanceof d}var h=n(25),m=n(776).getHighWaterMark,y=n(646).q,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,b=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,x=y.ERR_STREAM_NULL_VALUES,k=y.ERR_STREAM_WRITE_AFTER_END,S=y.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function A(){}function C(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new C(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new k;E(e,r),i.nextTick(t,r)}function R(e,t,r,n){var o;return null===r?o=new x:"string"==typeof r||t.objectMode||(o=new g("chunk",["string","Buffer"],r)),!o||(E(e,o),i.nextTick(n,o),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var a=j(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else M(e,t,!1,s,n,i,o);return l}function M(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(W,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),W(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(N(r),t)I(e,r,n,t,o);else{var a=H(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||U(e,t),t.pendingcb--,n(),W(e,t)}function U(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,M(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(M(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function H(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),W(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(B,e,t)))}function W(e,t){var r=H(t);if(r&&(z(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function $(e,t,r){t.ending=!0,W(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function q(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(O,c),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof C}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){E(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&f(e);return o&&!u.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?T(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new v("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||$(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(h(r,!1)))}}function y(e){i.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[u])return void r(h(void 0,!0));t[p](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[f]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(h(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(h(o,!1));e=new Promise(this[p])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e)return void r(e);t(h(void 0,!0))})})}),o),v);e.exports=function(e){var t,r=Object.create(b,(n(t={},f,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[s]=null,r[l]=null,e(h(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(h(void 0,!0))),r[u]=!0}),e.on("readable",y.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 5
5t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,u=r(837).inspect,d=u&&u.custom||"inspect";function p(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
vendor: 2,421 bytes, line 5
5var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||p()},d=e._writableState&&e._writableState.finished,p=function(){c=!1,d=!0,l||r.call(e)},f=e._readableState&&e._readableState.endEmitted,h=function(){l=!1,f=!0,c||r.call(e)},m=function(t){r.call(e,t)},y=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},g=function(){e.req.on("finish",p)};return a(e)?(e.on("complete",p),e.on("abort",y),e.req?g():e.on("request",g)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",p),e.removeListener("abort",y),e.removeListener("request",g),e.req&&e.req.removeListener("finish",p),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",p),e.removeListener("end",h),e.removeListener("error",m),e.removeListener("close",y)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
5var l=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return u.apply(this,arguments)}function u(){return(u=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function p(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(p)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var n=r(781);"disable"===i.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(709)).Stream=n||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var i=n(450),o=n(254),a=n(911),s=n(523),l=n(310),c=t;c.request=function(e,t){e="string"==typeof e?l.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||n,s=e.hostname||e.host,c=e.port,u=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?o+"//"+s:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new i(e);return t&&d.on("response",t),d},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=i,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.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"]},301:function(e,t){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},450:function(e,t,n){var a=n(301),s=n(782),l=n(254),c=n(726),u=l.IncomingMessage,d=l.readyStates;function p(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var f=e.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+o.from(e.auth).toString("base64")),Object.keys(e.headers).forEac
5h(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else t=!0;r._mode=p(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function h(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}s(f,c.Writable),f.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===m.indexOf(n)&&(r._headers[n]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var l=null;if(a.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var u=e._xhr=new r.g.XMLHttpRequest;try{u.open(e._opts.method,e._opts.url,!0)}catch(t){i.nextTick(function(){e.emit("error",t)});return}"responseType"in u&&(u.responseType=e._mode),"withCredentials"in u&&(u.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in u&&u.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(u.timeout=t.requestTimeout,u.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){u.setRequestHeader(e[0],e[1])}),e._response=null,u.onreadystatechange=function(){switch(u.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(u.onprogress=function(){e._onXHRProgress()}),u.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{u.send(o)}catch(t){i.nextTick(function(){e.emit("error",t)});return}}}},f.prototype._onXHRProgress=function(){var e=this;h(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},f.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},f.prototype.abort=f.prototype.destroy=function(){var e=this;e._destroyed=!0,r.g.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},f.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.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"]},254:function(e,t,n){var a=n(301),s=n(782),l=n(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=t.IncomingMessage=function(e,t,n,s){var c=this;if(l.Readable.call(c),c._mode=n,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){i.nextTick(function(){c.emit("close")})}),"fetch"===n){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEac
5h(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(o.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(u).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var d=t.body.getReader();function p(){d.read().then(function(e){if(!c._destroyed){if(e.done){r.g.clearTimeout(s),c.push(null);return}c.push(o.from(e.value)),p()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}p()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var h=f.match(/;\s*charset=([^;])(;|$)/);h&&(c._charset=h[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(u,l.Readable),u.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=o.alloc(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(o.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(o.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var l=new r.g.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(o.from(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=y,this.end=g,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
5e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},911:function(e){e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e}},300:function(e){"use strict";e.exports=r(15376)},361:function(e){"use strict";e.exports=r(65240)},781:function(e){"use strict";e.exports=r(46561)},310:function(e){"use strict";e.exports=r(92313)},837:function(e){"use strict";e.exports=r(634)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},i=!0;try{t[e](n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.exports}s.ab=n+"/",e.exports=s(813)}()},24033:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},24325:(e,t,r)=>{"use strict";r.d(t,{$B:()=>d,Sd:()=>o,T2:()=>l});var n=r(62463),i=r(92322);function o(e,t=null){return function(r,n){let{$from:i,$to:o}=r.selection,s=i.blockRange(o);if(!s)return!1;let l=n?r.tr:null;return!!a(l,s,e,t)&&(n&&n(l.scrollIntoView()),!0)}}function a(e,t,r,o=null){let l=!1,c=t,u=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=u.resolve(t.start-2);c=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,u.resolve(t.$to.end(t.depth)),t.depth)),l=!0}let d=(0,n.oM)(c,r,o,t);return!!d&&(e&&s(e,t,d,l,r),!0)}function s(e,t,r,o,a){let s=i.FK.empty;for(let e=r.length-1;e>=0;e--)s=i.FK.from(r[e].type.create(r[e].attrs,s));e.step(new n.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(s,0,0),r.length,!0));let l=0;for(let e=0;e<r.length;e++)r[e].type==a&&(l=e+1);let c=r.length-l,u=t.start+r.length-2*!!o,d=t.parent;for(let r=t.startIndex,i=t.endIndex,o=!0;r<i;r++,o=!1)!o&&(0,n.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(r).nodeSize;return e}function l(e){return function(t,r){let{$from:n,$to:i}=t.selection,o=n.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return!!o&&(!r||(n.node(o.depth-1).type==e?c(t,r,e,o):u(t,r,o)))}}function c(e,t,r,o){let a=e.tr,s=o.end,l=o.$to.end(o.depth);s<l&&(a.step(new n.Wg(s-1,l,s,l,new i.Ji(i.FK.from(r.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(a.doc.resolve(o.$from.pos),a.doc.resolve(l),o.depth));let c=(0,n.jP)(o);if(null==c)return!1;a.lift(o,c);let u=a.doc.resolve(a.mapping.map(s,-1)-1);return(0,n.n9)(a.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&a.join(u.pos),t(a.scrollIntoView()),!0}function u(e,t,r){let o=e.tr,a=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=a.child(t).nodeSize,o.delete(e-1,e+1);let s=o.doc.resolve(r.start),l=s.nodeAfter;if(o.mapping.map(r.end)!=r.start+s.nodeAfter.nodeSize)return!1;let c=0==r.startIndex,u=r.endIndex==a.childCount,d=s.node(-1),p=s.index(-1);if(!d.canReplace(p+ +!c,p+1,l.content.append(u?i.FK.empty:i.FK.from(a))))return!1;let f=s.pos,h=f+l.nodeSize;return o.step(new n.Wg(f-!!c,h+ +!!u,f+1,h-1,new i.Ji((c?i.FK.empty:i.FK.from(a.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(a.copy(i.FK.empty))),+!c,+!u),+!c)),t(o.scrollIntoView()),!0}function d(e){return function(t,r){let{$from:o,$to:a}=t.selection,s=o.blockRange(a,t=>t.childCount>0&&t.firstChild.type==e);if(!s)return!1;let l=s.startIndex;if(0==l)return!1;let c=s.parent,u=c.child(l-1);if(u.type!=e)return!1;if(r){let o=u.lastChild&&u.lastChild.type==c.type,a=i.FK.from(o?e.create():null),l=new i.Ji(i.FK.from(e.create(null,i.FK.from(c.type.create(null,a)))),o?3:1,0),d=s.start,p=s.end;r(t.tr.step(new n.Wg(d-(o?3:1),p,d,p,l,1,!0)).scrollIntoView())}return!0}}},24402:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},24435:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.init=g;var i=r(33018),o=n(r(56445)),a=r(74090),s=n(r(21281)),l=r(46090),c=y(r(935)),u=y(r(44959)),d=r(28799),p=r(37239),f=r(50530),h=n(r(36880));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}
5function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function g({authOptions:e,providerId:t,action:r,origin:n,cookies:m,callbackUrl:y,csrfToken:g,isPost:v}){var b,w;let _=(0,h.default)(n),x=(0,l.createSecret)({authOptions:e,url:_}),{providers:k,provider:S}=(0,s.default)({providers:e.providers,url:_,providerId:t}),E=2592e3,A={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:_,action:r,provider:S,cookies:{...c.defaultCookies(null!=(b=e.useSecureCookies)?b:_.base.startsWith("https://")),...e.cookies},secret:x,providers:k,session:{strategy:e.adapter?"database":"jwt",maxAge:E,updateAge:86400,generateSessionToken:()=>{var e;return null!=(e=null===i.randomUUID||void 0===i.randomUUID?void 0:(0,i.randomUUID)())?e:(0,i.randomBytes)(32).toString("hex")},...e.session},jwt:{secret:x,maxAge:E,encode:u.encode,decode:u.decode,...e.jwt},events:(0,a.eventsErrorHandler)(null!=(w=e.events)?w:{},o.default),adapter:(0,a.adapterErrorHandler)(e.adapter,o.default),callbacks:{...d.defaultCallbacks,...e.callbacks},logger:o.default,callbackUrl:_.origin},C=[],{csrfToken:O,cookie:T,csrfTokenVerified:R}=(0,p.createCSRFToken)({options:A,cookieValue:null==m?void 0:m[A.cookies.csrfToken.name],isPost:v,bodyValue:g});A.csrfToken=O,A.csrfTokenVerified=R,T&&C.push({name:A.cookies.csrfToken.name,value:T,options:A.cookies.csrfToken.options});let{callbackUrl:j,callbackUrlCookie:P}=await (0,f.createCallbackUrl)({options:A,cookieValue:null==m?void 0:m[A.cookies.callbackUrl.name],paramValue:y});return A.callbackUrl=j,P&&C.push({name:A.cookies.callbackUrl.name,value:P,options:A.cookies.callbackUrl.options}),{options:A,cookies:C}}},24945:(e,t,r)=>{"use strict";r.d(t,{K:()=>g,w:()=>y});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)n[48+s]=n[96+s]=String(s);for(var s=1;s<=24;s++)n[s+111]="F"+s;for(var s=65;s<=90;s++)n[s]=String.fromCharCode(s+32),i[s]=String.fromCharCode(s);for(var l in n)i.hasOwnProperty(l)||(i[l]=n[l]);function c(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var u=r(51876);let d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),p="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function f(e){let t,r,n,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let e=0;e<o.length-1;e++){let a=o[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else if(/^mod$/i.test(a))d?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+a)}return t&&(a="Alt-"+a),r&&(a="Ctrl-"+a),i&&(a="Meta-"+a),n&&(a="Shift-"+a),a}function h(e){let t=Object.create(null);for(let r in e)t[f(r)]=e[r];return t}
5function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function y(e){return new u.k_({props:{handleKeyDown:g(e)}})}function g(e){let t=h(e);return function(e,r){let i=c(r),o,a=t[m(i,r)];if(a&&a(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(p&&r.ctrlKey&&r.altKey)&&(o=n[r.keyCode])&&o!=i){let n=t[m(o,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},25346:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,hkdf:()=>u});let n=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")},i=async(e,t,r,i,o)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),o<<3))};function o(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}function a(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}function s(e){let t=a(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}function l(e){let t=a(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}function c(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}async function u(e,t,r,n,u){return i(o(e),s(t),a(r,"salt"),l(n),c(u,e))}},25348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBody=o,t.setCookie=i,t.toResponse=a;var n=r(32641);function i(e,t){var r;let i=null!=(r=e.getHeader("Set-Cookie"))?r:[];Array.isArray(i)||(i=[i]);let{name:o,value:a,options:s}=t,l=(0,n.serialize)(o,a,s);i.push(l),e.setHeader("Set-Cookie",i)}async function o(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?await e.json():null!=t&&t.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}function a(e){var t,r,i;let o=new Headers(null==(t=e.headers)?void 0:t.reduce((e,{key:t,value:r})=>(e[t]=r,e),{}));null==(r=e.cookies)||r.forEach(e=>{let{name:t,value:r,options:i}=e,a=(0,n.serialize)(t,r,i);o.has("Set-Cookie")?o.append("Set-Cookie",a):o.set("Set-Cookie",a)});let a=e.body;"application/json"===o.get("content-type")?a=JSON.stringify(e.body):"application/x-www-form-urlencoded"===o.get("content-type")&&(a=new URLSearchParams(e.body).toString());let s=new Response(a,{headers:o,status:e.redirect?302:null!=(i=e.status)?i:200});return e.redirect&&s.headers.set("Location",e.redirect),s}},25411:e=>{e.exports=Array.isArray},26526:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},26630:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},26658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});let n=r(43319)},26683:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw Error("remov
5ing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(var a=[],n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(79473)(n)}catch(e){}},26745:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},27509:(e,t,r)=>{var n=r(18135);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},27638:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=n(r(87862)),o=n(r(56218)),a=n(r(3377));async function s(e){let{options:t,query:r,body:n}=e,{url:s,callbacks:l,logger:c,provider:u}=t;if(!u.type)return{status:500,text:`Error: Type not specified for ${u.name}`};if("oauth"===u.type)try{return await (0,i.default)({options:t,query:r})}catch(e){return c.error("SIGNIN_OAUTH_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=OAuthSignin`}}if("email"===u.type){var d;let e=null==n?void 0:n.email;if(!e)return{redirect:`${s}/error?error=EmailSignin`};
5let r=null!=(d=u.normalizeIdentifier)?d:e=>{var t;let r=e.trim();if(1!==(null!=(t=r.match(/@/g))?t:[]).length||r.includes('"'))throw Error("Invalid email address format.");let[n,i]=r.toLowerCase().split("@");if(!n||!i||!(i=i.split(",")[0]).includes("."))throw Error("Invalid email address format.");return`${n}@${i}`};try{e=r(null==n?void 0:n.email)}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=EmailSignin`}}let i=await (0,a.default)({email:e,adapter:t.adapter}),p={providerAccountId:e,userId:e,type:"email",provider:u.id};try{let e=await l.signIn({user:i,account:p,email:{verificationRequest:!0}});if(!e)return{redirect:`${s}/error?error=AccessDenied`};if("string"==typeof e)return{redirect:e}}catch(e){return{redirect:`${s}/error?${new URLSearchParams({error:e})}`}}try{return{redirect:await (0,o.default)(e,t)}}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:u.id}),{redirect:`${s}/error?error=EmailSignin`}}}return{redirect:`${s}/signin`}}},27818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27937:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},28007:(e,t,r)=>{var n=r(55428),i=r(60044),o=r(27509),a=r(92441),s=r(72377);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},28799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCallbacks=void 0,t.defaultCallbacks={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>e,jwt:({token:e})=>e}},30125:(e,t,r)=>{"use strict";var n=r(12115);function i(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var o="function"==typeof Object.is?Object.is:i,a=n.useState,s=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function u(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return l(function(){i.value=r,i.getSnapshot=t,d(i)&&o({inst:i})},[e,r,t]),s(function(){return d(i)&&o({inst:i}),e(function(){d(i)&&o({inst:i})})},[e]),c(r),r}function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}function p(e,t){return t()}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?p:u;t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:f},30126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openidClient=i;var n=r(83980);async function i(e){let t,r=e.provider;if(r.httpOptions&&n.custom.setHttpOptionsDefaults(r.httpOptions),r.wellKnown)t=await n.Issuer.discover(r.wellKnown);else{var i,o,a;t=new n.Issuer({issuer:r.issuer,authorization_endpoint:null==(i=r.authorization)?void 0:i.url,token_endpoint:null==(o=r.token)?void 0:o.url,userinfo_endpoint:null==(a=r.userinfo)?void 0:a.url,jwks_uri:r.jwks_endpoint})}let s=new t.Client({client_id:r.clientId,client_secret:r.clientSecret,redirect_uris:[r.callbackUrl],...r.client},r.jwks);return s[n.custom.clock_tolerance]=10,s}},30508:(e,t,r)=>{var n=r(94897);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},31138:(e,t,r)=>{"use strict";r.d(t,{UC:()=>X,ZL:()=>Z,bL:()=>J,l9:()=>G});var n=r(12115),i=r(92556),o=r(94446),a=r(3468),s=r(44831),l=r(19526),c=r(69666),u=r(68946),d=r(66093),p=r(75433),f=r(76842),h=r(88142),m=r(95155);function y(e){let t=g(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(b);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,m.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,m.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}function g(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e=_(r),a=w(i,r.props);return r.type!==n.Fragment&&(a.ref=t?(0,o.t)(t,e):e),n.cloneElement(r,a)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v=Symbol("radix.slottable");function b(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}function w(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>
5{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}var x=r(23558),k=r(97745),S=r(14432),E="Popover",[A,C]=(0,a.A)(E,[d.Bk]),O=(0,d.Bk)(),[T,R]=A(E),j=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=O(t),c=n.useRef(null),[p,f]=n.useState(!1),[h,y]=(0,x.i)({prop:i,defaultProp:null!=o&&o,onChange:a,caller:E});return(0,m.jsx)(d.bL,{...l,children:(0,m.jsx)(T,{scope:t,contentId:(0,u.B)(),triggerRef:c,open:h,onOpenChange:y,onOpenToggle:n.useCallback(()=>y(e=>!e),[y]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:s,children:r})})};j.displayName=E;var P="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,o=R(P,r),a=O(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,m.jsx)(d.Mz,{...a,...i,ref:t})}).displayName=P;var M="PopoverTrigger",I=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=R(M,r),s=O(r),l=(0,o.s)(t,a.triggerRef),c=(0,m.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":V(a.open),...n,ref:l,onClick:(0,i.mK)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:(0,m.jsx)(d.Mz,{asChild:!0,...s,children:c})});I.displayName=M;var N="PopoverPortal",[D,L]=A(N,{forceMount:void 0}),U=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=R(N,t);return(0,m.jsx)(D,{scope:t,forceMount:r,children:(0,m.jsx)(f.C,{present:r||o.open,children:(0,m.jsx)(p.Z,{asChild:!0,container:i,children:n})})})};U.displayName=N;var F="PopoverContent",H=n.forwardRef((e,t)=>{let r=L(F,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=R(F,e.__scopePopover);return(0,m.jsx)(f.C,{present:n||o.open,children:o.modal?(0,m.jsx)(z,{...i,ref:t}):(0,m.jsx)(W,{...i,ref:t})})});H.displayName=F;var B=y("PopoverContent.RemoveScroll"),z=n.forwardRef((e,t)=>{let r=R(F,e.__scopePopover),a=n.useRef(null),s=(0,o.s)(t,a),l=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,k.Eq)(e)},[]),(0,m.jsx)(S.A,{as:B,allowPinchZoom:!0,children:(0,m.jsx)($,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=n.forwardRef((e,t)=>{let r=R(F,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,m.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(i.current||null==(a=r.triggerRef.current)||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,a;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),$=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,...y}=e,g=R(F,r),v=O(r);return(0,l.Oh)(),(0,m.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,m.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),children:(0,m.jsx)(d.UC,{"data-state":V(g.open),role:"dialog",id:g.contentId,...v,...y,ref:t,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),q="PopoverClose";n.forwardRef((e,t)=>
5{let{__scopePopover:r,...n}=e,o=R(q,r);return(0,m.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=q;var K="PopoverArrow";function V(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=O(r);return(0,m.jsx)(d.i3,{...i,...n,ref:t})}).displayName=K;var J=j,G=I,Z=U,X=H},31326:(e,t,r)=>{var n=r(25411),i=r(36702),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},32198:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},32338:(e,t,r)=>{let n=r(62160),i=r(12018),o=r(47913),a=Symbol(),s=(e,{alg:t,use:r})=>{let n=0;return t&&e.alg&&n++,r&&e.use&&n++,n};function l(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}function c(e,t,r,i){if(t)return new Set([t]);switch(r){case"EC":{let t=[];if(("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===e||void 0===e)switch(i){case"P-256":case"P-384":t=t.concat([`ES${i.slice(-3)}`]);break;case"P-521":t=t.concat(["ES512"]);break;case"secp256k1":"node:crypto"===n.cryptoRuntime&&(t=t.concat(["ES256K"]))}return new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===n.cryptoRuntime&&(t=t.concat(["RSA1_5"]))),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}e.exports=class{#e;constructor(e,t){if(e!==a)throw Error("invalid constructor call");this.#e=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:n,dq:i,qi:o,...a}})=>a)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let n=l(e),i={alg:e,use:r};return this.filter(i=>{let o=!0;return void 0!==n&&i.jwk.kty!==n&&(o=!1),o&&void 0!==t&&i.jwk.kid!==t&&(o=!1),o&&void 0!==r&&void 0!==i.jwk.use&&i.jwk.use!==r&&(o=!1),o&&i.jwk.alg&&i.jwk.alg!==e?o=!1:i.algorithms.has(e)||(o=!1),o}).sort((e,t)=>s(t,i)-s(e,i))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!o(e)||!Array.isArray(e.keys)||e.keys.some(e=>!o(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let s=[];for(let o of e.keys){let{kty:e,kid:a,crv:l}=o=i(o),{alg:u,use:d}=o;if("string"==typeof e&&e&&(void 0===d||"sig"===d||"enc"===d)&&("string"==typeof u||void 0===u)&&("string"==typeof a||void 0===a)){if("EC"===e&&"sig"===d)switch(l){case"P-256":u="ES256";break;case"P-384":u="ES384";break;case"P-521":u="ES512"}if("secp256k1"===l&&(d="sig",u="ES256K"),"OKP"===e)switch(l){case"Ed25519":case"E
5d448":d="sig",u="EdDSA";break;case"X25519":case"X448":d="enc"}if(u&&!d)switch(!0){case u.startsWith("ECDH"):case u.startsWith("RSA"):d="enc"}if(r&&("oct"===o.kty||!o.d))throw Error("jwks must only contain private keys");t&&(o.d||o.k)||s.push({jwk:{...o,alg:u,use:d},async keyObject(e){if(this[e])return this[e];let t=await n.importJWK(this.jwk,e);return this[e]=t,t},get algorithms(){return Object.defineProperty(this,"algorithms",{value:c(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(a,s)}filter(...e){return this.#e.filter(...e)}find(...e){return this.#e.find(...e)}every(...e){return this.#e.every(...e)}some(...e){return this.#e.some(...e)}map(...e){return this.#e.map(...e)}forEach(...e){return this.#e.forEach(...e)}reduce(...e){return this.#e.reduce(...e)}sort(...e){return this.#e.sort(...e)}*[Symbol.iterator](){for(let e of this.#e)yield e}}},32438:(e,t,r)=>{var n=r(50030);e.exports=function(e){return null==e?"":n(e)}},32467:(e,t,r)=>{"use strict";r.d(t,{DX:()=>p,TL:()=>d});var n,i=r(12115),o=r(94446),a=r(95155),s=Symbol.for("react.lazy"),l=(n||(n=r.t(i,2)))[" use ".trim().toString()];function c(e){return"object"==typeof e&&null!==e&&"then"in e}function u(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&c(e._payload)}function d(e){let t=f(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;u(n)&&"function"==typeof l&&(n=l(n._payload));let s=i.Children.toArray(n),c=s.find(m);if(c){let e=c.props.children,n=s.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,a.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var p=d("Slot");function f(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(u(r)&&"function"==typeof l&&(r=l(r._payload)),i.isValidElement(r)){let e=g(r),a=y(n,r.props);return r.type!==i.Fragment&&(a.ref=t?(0,o.t)(t,e):e),i.cloneElement(r,a)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var h=Symbol("radix.slottable");function m(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}function y(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function g(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}},32641:(e,t)=>{"use strict";t.parse=l,t.serialize=d;var r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var o=t&&t.decode||p,a=0,s=0,l=0;do{if(-1===(s=e.indexOf("=",a)))break;if(-1===(l=e.indexOf(";",a)))l=i;else if(s>l){a=e.lastIndexOf(";",s-1)+1;continue}var d=c(e,a,s),f=u(e,s,d),m=e.slice(d,f);if(!n.call(r,m)){var y=c(e,s+1,l),g=u(e,l,y);34===e.charCodeAt(y)&&34===e.charCodeAt(g-1)&&(y++,g--);var v=e.slice(y,g);r[m]=h(v,o)}a=l+1}while(a<i);return r}function c(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function u(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}function d(e,t,r){var n=r&&r.encode||encodeURIComponent;if("function"!=typeof n)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var l=n(t);if(!o.test(l))throw TypeError("argument val is invalid");var c=e+"="+l;if(!r)return c;if(null!=r.maxAge){var u=Math.floor(r.maxAge);
5if(!isFinite(u))throw TypeError("option maxAge is invalid");c+="; Max-Age="+u}if(r.domain){if(!a.test(r.domain))throw TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){var d=r.expires;if(!f(d)||isNaN(d.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+d.toUTCString()}if(r.httpOnly&&(c+="; HttpOnly"),r.secure&&(c+="; Secure"),r.partitioned&&(c+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c}
5function p(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function f(e){return"[object Date]"===r.call(e)}function h(e,t){try{return t(e)}catch(t){return e}}},32894:(e,t,r)=>{"use strict";r.d(t,{b:()=>c});var n=r(12115);r(47650);var i=r(32467),o=r(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e,s=i?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s="Label",l=n.forwardRef((e,t)=>(0,o.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName=s;var c=l},33413:e=>{e.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},33497:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return c}});let n=o(r(12115));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}let a={current:null},s="function"==typeof n.cache?n.cache:e=>e,l=console.warn;function c(e){return function(...t){l(e(...t))}}s(e=>{try{l(a.current)}finally{a.current=null}})},34212:(e,t,r)=>{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},34282:(e,t,r)=>{let n;var i=r(15376).Buffer;if(i.isEncoding("base64url"))n=(e,t="utf8")=>i.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=(t,r="utf8")=>e(i.from(t,r).toString("base64"))}let o=e=>i.from(e,"base64");e.exports.decode=o,e.exports.encode=n},34731:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var i=n(r(15366)),o=n(r(77487)),a=r(46090),s=n(r(3377));async function l(e){var t,r,n,l,c,u;let{options:d,query:p,body:f,method:h,headers:m,sessionStore:y}=e,{provider:g,adapter:v,url:b,callbackUrl:w,pages:_,jwt:x,events:k,callbacks:S,session:{strategy:E,maxAge:A},logger:C}=d,O=[],T="jwt"===E;if("oauth"===g.type)try{let{profile:n,account:a,OAuthProfile:s,cookies:l}=await (0,i.default)({query:p,body:f,method:h,options:d,cookies:e.cookies});l.length&&O.push(...l);try{if(C.debug("OAUTH_CALLBACK_RESPONSE",{profile:n,account:a,OAuthProfile:s}),!n||!a||!s)return{redirect:`${b}/signin`,cookies:O};let e=n;if(v){let{getUserByAccount:t}=v,r=await t({providerAccountId:a.providerAccountId,provider:g.id});r&&(e=r)}try{let t=await S.signIn({user:e,account:a,profile:s});if(!t)return{redirect:`${b}/error?error=AccessDenied`,cookies:O};if("string"==typeof t)return{redirect:t,cookies:O}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:O}}let{user:i,session:l,isNewUser:c}=await (0,o.default)({sessionToken:y.value,profile:n,account:a,options:d});if(T){let e={name:i.name,email:i.email,picture:i.image,sub:null==(r=i.id)?void 0:r.toString()},t=await S.jwt({token:e,user:i,account:a,profile:s,isNewUser:c,trigger:c?"signUp":"signIn"}),n=await x.encode({...x,token:t}),o=new Date;o.setTime(o.getTime()+1e3*A);let l=y.chunk(n,{expires:o});O.push(...l)}else O.push({name:d.cookies.sessionToken.name,value:l.sessionToken,options:{...d.cookies.sessionToken.options,expires:l.expires}});if(await (null==(t=k.signIn)?void 0:t.call(k,{user:i,account:a,profile:n,isNewUser:c})),c&&_.newUser)return{redirect:`${_.newUser}${_.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:O};return{redirect:w,cookies:O}}catch(e){if("AccountNotLinkedError"===e.name)return{redirect:`${b}/error?error=OAuthAccountNotLinked`,cookies:O};if("CreateUserError"===e.name)return{redirect:`${b}/error?error=OAuthCreateAccount`,cookies:O};return C.error("OAUTH_CALLBACK_HANDLER_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:O}}}catch(e){if("OAuthCallbackError"===e.name)return C.error("OAUTH_CALLBACK_ERROR",{error:e,providerId:g.id}),{redirect:`${b}/error?error=OAuthCallback`,cookies:O};return C.error("OAUTH_CALLBACK_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:O}}if("email"===g.type)try{let e=null==p?void 0:p.token,t=null==p?void 0:p.email;if(!e)return{redirect:`${b}/error?error=configuration`,cookies:O};let r=await v.useVerificationToken({identifier:t,token:(0,a.hashToken)(e,d)});if(!r||r.expires.valueOf()<Date.now()||t&&r.identifier!==t)return{redirect:`${b}/error?error=Verification`,cookies:O};let i=await (0,s.default)({email:r.identifier,adapter:v}),c={providerAccountId:i.email,type:"email",provider:g.id};try{let e=await S.signIn({user:i,account:c});if(!e)return{redirect:`${b}
5/error?error=AccessDenied`,cookies:O};if("string"==typeof e)return{redirect:e,cookies:O}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:O}}let{user:u,session:f,isNewUser:h}=await (0,o.default)({sessionToken:y.value,profile:i,account:c,options:d});if(T){let e={name:u.name,email:u.email,picture:u.image,sub:null==(l=u.id)?void 0:l.toString()},t=await S.jwt({token:e,user:u,account:c,isNewUser:h,trigger:h?"signUp":"signIn"}),r=await x.encode({...x,token:t}),n=new Date;n.setTime(n.getTime()+1e3*A);let i=y.chunk(r,{expires:n});O.push(...i)}else O.push({name:d.cookies.sessionToken.name,value:f.sessionToken,options:{...d.cookies.sessionToken.options,expires:f.expires}});if(await (null==(n=k.signIn)?void 0:n.call(k,{user:u,account:c,isNewUser:h})),h&&_.newUser)return{redirect:`${_.newUser}${_.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:O};return{redirect:w,cookies:O}}catch(e){if("CreateUserError"===e.name)return{redirect:`${b}/error?error=EmailCreateAccount`,cookies:O};return C.error("CALLBACK_EMAIL_ERROR",e),{redirect:`${b}/error?error=Callback`,cookies:O}}if("credentials"===g.type&&"POST"===h){let e,t=f;try{if(!(e=await g.authorize(t,{query:p,body:f,headers:m,method:h})))return{status:401,redirect:`${b}/error?${new URLSearchParams({error:"CredentialsSignin",provider:g.id})}`,cookies:O}}catch(e){return{status:401,redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:O}}let r={providerAccountId:e.id,type:"credentials",provider:g.id};try{let n=await S.signIn({user:e,account:r,credentials:t});if(!n)return{status:403,redirect:`${b}/error?error=AccessDenied`,cookies:O};if("string"==typeof n)return{redirect:n,cookies:O}}catch(e){return{redirect:`${b}/error?error=${encodeURIComponent(e.message)}`,cookies:O}}let n={name:e.name,email:e.email,picture:e.image,sub:null==(c=e.id)?void 0:c.toString()},i=await S.jwt({token:n,user:e,account:r,isNewUser:!1,trigger:"signIn"}),o=await x.encode({...x,token:i}),a=new Date;a.setTime(a.getTime()+1e3*A);let s=y.chunk(o,{expires:a});return O.push(...s),await (null==(u=k.signIn)?void 0:u.call(k,{user:e,account:r})),{redirect:w,cookies:O}}return{status:500,body:`Error: Callback for provider type ${g.type} not supported`,cookies:O}}},35299:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},35443:(e,t,r)=>{var n=r(73423),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},36702:(e,t,r)=>{var n=r(80942),i=r(26526),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==o}},37183:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},37239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCSRFToken=i;var n=r(33018);function i({options:e,cookieValue:t,isPost:r,bodyValue:i}){if(t){let[o,a]=t.split("|");if(a===(0,n.createHash)("sha256").update(`${o}${e.secret}`).digest("hex"))return{csrfTokenVerified:r&&o===i,csrfToken:o}}let o=(0,n.randomBytes)(32).toString("hex"),a=(0,n.createHash)("sha256").update(`${o}${e.secret}`).digest("hex");return{cookie:`${o}|${a}`,csrfToken:o}}},37290:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j,render:()=>S,renderToStaticMarkup:()=>S,renderToString:()=>S,shallowRender:()=>x});var n=r(94056),i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,o=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,a=/[\s\n\\/='"\0<>]/,s=/^xlink:?./,l=/["&<]/;function c(e){if(!1===l.test(e+=""))return e;for(var t=0,r=0,n="",i="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 60:i="&lt;";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=i,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var u=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||"	"))},d=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},p={},f=/([A-Z])/g;function h(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:p[r]||(p[r]=r.replace(f,"-$1").toLowerCase()),t="number"==typeof n&&!1===i.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function m(e,t){return Array.isArray(t)?t.reduce(m,e):null!=t&&!1!==t&&e.push(t),e}function y(){this.__d=!0}function g(e,t){return{__v:e,context:t,props:e.props,setState:y,forceUpdate:y,__d:!0,__h:[]}}function v(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var b=[];function w(e,t,r,i,l,p){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);var f=r.pretty,y=f&&"string"==typeof f?f:"	";if(Array.isArray(e)){for(var _="",x=0;x<e.length;x++)f&&x>0&&(_+="\n"),_+=w(e[x],t,r,i,l,p);return _}if(void 0!==e.constructor)return"";var k,S=e.type,E=e.props,A=!1;if("function"==typeof S){if(A=!0,!r.shallow||!i&&!1!==r.renderRootComponent){if(S===n.Fragment){var C=[];return m(C,e.props.children),w(C,t,r,!1!==r.shallowHighOrder,l,p)}var O,T=e.__c=g(e,t);n.options.__b&&n.options.__b(e);var R=n.options.__r;if(S.prototype&&"function"==typeof S.prototype.render){var j=v(S,t);(T=e.__c=new S(E,j)).__v=e,T._dirty=T.__d=!0,T.props=E,null==T.state&&(T.state={}),null==T._nextState&&null==T.__s&&(T._nextState=T.__s=T.state),T.context=j,S.getDerivedStateFromProps?T.state=Object.assign({},T.state,S.getDerivedStateFromProps(T.props,T.state)):T.componentWillMount&&(T.componentWillMount(),T.state=T._nextState!==T.state?T._nextState:T.__s!==T.state?T.__s:T.state),R&&R(e),O=T.render(T.props,T.state,T.context)}else for(var P=v(S,t),M=0;T.__d&&M++<25;)T.__d=!1,R&&R(e),O=S.call(e.__c,E,P);return T.getChildContext&&(t=Object.assign({},t,T.getChildContext())),n.options.diffed&&n.options.diffed(e),w(O,t,r,!1!==r.shallowHighOrder,l,p)}S=(k=S).displayName||k!==Function&&k.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=b.length;n--;)if(b[n]===e){r=n;break}r<0&&(r=b.push(e)-1),t="UnnamedComponent"+r}return t}(k)}var I,N,D="<"+S;if(E){var L=Object.keys(E);
5r&&!0===r.sortAttributes&&L.sort();for(var U=0;U<L.length;U++){var F=L[U],H=E[F];if("children"!==F){if(!a.test(F)&&(r&&r.allAttributes||"key"!==F&&"ref"!==F&&"__self"!==F&&"__source"!==F)){if("defaultValue"===F)F="value";else if("defaultChecked"===F)F="checked";else if("defaultSelected"===F)F="selected";else if("className"===F){if(void 0!==E.class)continue;F="class"}else l&&s.test(F)&&(F=F.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===F){if(E.for)continue;F="for"}"style"===F&&H&&"object"==typeof H&&(H=h(H)),"a"===F[0]&&"r"===F[1]&&"boolean"==typeof H&&(H=String(H));var B=r.attributeHook&&r.attributeHook(F,H,t,r,A);if(B||""===B)D+=B;else if("dangerouslySetInnerHTML"===F)N=H&&H.__html;else if("textarea"===S&&"value"===F)I=H;else if((H||0===H||""===H)&&"function"!=typeof H){if(!(!0!==H&&""!==H||(H=F,r&&r.xml))){D=D+" "+F;continue}if("value"===F){if("select"===S){p=H;continue}"option"===S&&p==H&&void 0===E.selected&&(D+=" selected")}D=D+" "+F+'="'+c(H)+'"'}}}else I=H}}if(f){var z=D.replace(/\n\s*/," ");z===D||~z.indexOf("\n")?f&&~D.indexOf("\n")&&(D+="\n"):D=z}if(D+=">",a.test(S))throw Error(S+" is not a valid HTML tag name in "+D);var W,$=o.test(S)||r.voidElements&&r.voidElements.test(S),q=[];if(N)f&&d(N)&&(N="\n"+y+u(N,y)),D+=N;else if(null!=I&&m(W=[],I).length){for(var K=f&&~D.indexOf("\n"),V=!1,J=0;J<W.length;J++){var G=W[J];if(null!=G&&!1!==G){var Z=w(G,t,r,!0,"svg"===S||"foreignObject"!==S&&l,p);if(f&&!K&&d(Z)&&(K=!0),Z)if(f){var X=Z.length>0&&"<"!=Z[0];V&&X?q[q.length-1]+=Z:q.push(Z),V=X}else q.push(Z)}}if(f&&K)for(var Y=q.length;Y--;)q[Y]="\n"+y+u(q[Y],y)}if(q.length||N)D+=q.join("");else if(r&&r.xml)return D.substring(0,D.length-1)+" />";return!$||W||N?(f&&~D.indexOf("\n")&&(D+="\n"),D=D+"</"+S+">"):D=D.replace(/>$/," />"),D}var _={shallow:!0};S.render=S;var x=function(e,t){return S(e,t,_)},k=[];function S(e,t,r){t=t||{};var i=n.options.__s;n.options.__s=!0;var o,a=(0,n.h)(n.Fragment,null);return a.__k=[e],o=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?w(e,t,r):R(e,t,!1,void 0,a),n.options.__c&&n.options.__c(e,k),n.options.__s=i,k.length=0,o}function E(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,n.h)(null,null,e):e}function A(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&s.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function C(e,t){return"style"===e&&null!=t&&"object"==typeof t?h(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var O=Array.isArray,T=Object.assign;function R(e,t,r,i,s){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);if(O(e)){var l="";s.__k=e;for(var u=0;u<e.length;u++)l+=R(e[u],t,r,i,s),e[u]=E(e[u]);return l}if(void 0!==e.constructor)return"";e.__=s,n.options.__b&&n.options.__b(e);var d=e.type,p=e.props;if("function"==typeof d){if(d===n.Fragment)f=p.children;else{var f=d.prototype&&"function"==typeof d.prototype.render?function(e,t){var r=e.type,i=v(r,t),o=new r(e.props,i);e.__c=o,o.__v=e,o.__d=!0,o.props=e.props,null==o.state&&(o.state={}),null==o.__s&&(o.__s=o.state),o.context=i,r.getDerivedStateFromProps?o.state=T({},o.state,r.getDerivedStateFromProps(o.props,o.state)):o.componentWillMount&&(o.componentWillMount(),o.state=o.__s!==o.state?o.__s:o.state);var a=n.options.__r;return a&&a(e),o.render(o.props,o.state,o.context)}(e,t):function(e,t){var r,i=g(e,t),o=v(e.type,t);e.__c=i;for(var a=n.options.__r,s=0;i.__d&&s++<25;)i.__d=!1,a&&a(e),r=e.type.call(i,e.props,o);return r}(e,t),h=e.__c;h.getChildContext&&(t=T({},t,h.getChildContext()))}var m=R(f=null!=f&&f.type===n.Fragment&&null==f.key?f.props.children:f,t,r,i,e);return n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),m}var y,b,w="<";if(w+=d,p)for(var _ in y=p.children,p){var x=p[_];if(!("key"===_||"ref"===_||"__self"===_||"__source"===_||"children"===_||"className"===_&&"class"in p||"htmlFor"===_&&"for"in p||a.test(_))){if(x=C(_=A(_,r),x),"dangerouslySetInnerHTML"===_)b=
5x&&x.__html;else if("textarea"===d&&"value"===_)y=x;else if((x||0===x||""===x)&&"function"!=typeof x){if(!0===x||""===x){x=_,w=w+" "+_;continue}if("value"===_){if("select"===d){i=x;continue}"option"!==d||i!=x||"selected"in p||(w+=" selected")}w=w+" "+_+'="'+c(x)+'"'}}}var k=w;if(w+=">",a.test(d))throw Error(d+" is not a valid HTML tag name in "+w);var S="",j=!1;if(b)S+=b,j=!0;else if("string"==typeof y)S+=c(y),j=!0;else if(O(y)){e.__k=y;for(var P=0;P<y.length;P++){var M=y[P];if(y[P]=E(M),null!=M&&!1!==M){var I=R(M,t,"svg"===d||"foreignObject"!==d&&r,i,e);I&&(S+=I,j=!0)}}}else if(null!=y&&!1!==y&&!0!==y){e.__k=[E(y)];var N=R(y,t,"svg"===d||"foreignObject"!==d&&r,i,e);N&&(S+=N,j=!0)}if(n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),j)w+=S;else if(o.test(d))return k+" />";return w+"</"+d+">"}S.shallowRender=x;let j=S},37467:(e,t,r)=>{var n=r(30508),i=r(14344),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},37738:(e,t,r)=>{"use strict";r.d(t,{H_:()=>tB,UC:()=>tL,YJ:()=>tU,q7:()=>tH,VF:()=>t$,JU:()=>tF,ZL:()=>tD,z6:()=>tz,hN:()=>tW,bL:()=>tI,wv:()=>tq,Pb:()=>tK,G5:()=>tJ,ZP:()=>tV,l9:()=>tN});var n=r(12115),i=r(92556),o=r(94446),a=r(3468),s=r(23558),l=r(88142),c=r(78625),u=r(66218),d=r(44831),p=r(19526),f=r(69666),h=r(68946),m=r(66093),y=r(75433),g=r(76842),v=r(72431),b=r(95155);function w(e){let t=_(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(k);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,b.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,b.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}function _(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e=E(r),a=S(i,r.props);return r.type!==n.Fragment&&(a.ref=t?(0,o.t)(t,e):e),n.cloneElement(r,a)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var x=Symbol("radix.slottable");function k(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}function S(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function E(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}var A=r(70222),C=r(97745),O=r(14432),T=["Enter"," "],R=["ArrowUp","PageDown","End"],j=["ArrowDown","PageUp","Home",...R],P={ltr:[...T,"ArrowRight"],rtl:[...T,"ArrowLeft"]},M={ltr:["ArrowLeft"],rtl:["ArrowRight"]},I="Menu",[N,D,L]=(0,c.N)(I),[U,F]=(0,a.A)(I,[L,m.Bk,v.RG]),H=(0,m.Bk)(),B=(0,v.RG)(),[z,W]=U(I),[$,q]=U(I),K=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=H(t),[c,d]=n.useState(null),p=n.useRef(!1),f=(0,A.c)(a),h=(0,u.jH)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.jsx)(m.bL,{...l,children:(0,b.jsx)(z,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:(0,b.jsx)($,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};K.displayName=I;var V="MenuAnchor",J=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=H(r);return(0,b.jsx)(m.Mz,{...i,...n,ref:t})});J.displayName=V;var G="MenuPortal",[Z,X]=U(G,{forceMount:void 0}),Y=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=W(G,t);return(0,b.jsx)(Z,{scope:t,forceMount:r,children:(0,b.jsx)(g.C,{present:r||o.open,children:(0,b.jsx)(y.Z,{asChild:!0,container:i,children:n})})})};Y.displayName=G;var Q="MenuContent",[ee,et]=U(Q),er=n.forwardRef((e,t)=>
5{let r=X(Q,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=W(Q,e.__scopeMenu),a=q(Q,e.__scopeMenu);return(0,b.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:n||o.open,children:(0,b.jsx)(N.Slot,{scope:e.__scopeMenu,children:a.modal?(0,b.jsx)(en,{...i,ref:t}):(0,b.jsx)(ei,{...i,ref:t})})})})}),en=n.forwardRef((e,t)=>{let r=W(Q,e.__scopeMenu),a=n.useRef(null),s=(0,o.s)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,C.Eq)(e)},[]),(0,b.jsx)(ea,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ei=n.forwardRef((e,t)=>{let r=W(Q,e.__scopeMenu);return(0,b.jsx)(ea,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eo=w("MenuContent.ScrollLock"),ea=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:h,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:_,onDismiss:x,disableOutsideScroll:k,...S}=e,E=W(Q,r),A=q(Q,r),C=H(r),T=B(r),P=D(r),[M,I]=n.useState(null),N=n.useRef(null),L=(0,o.s)(t,N,E.onContentChange),U=n.useRef(0),F=n.useRef(""),z=n.useRef(0),$=n.useRef(null),K=n.useRef("right"),V=n.useRef(0),J=k?O.A:n.Fragment,G=k?{as:eo,allowPinchZoom:!0}:void 0,Z=e=>{var t,r;let n=F.current+e,i=P().filter(e=>!e.disabled),o=document.activeElement,a=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,s=e$(i.map(e=>e.textValue),n,a),l=null==(r=i.find(e=>e.textValue===s))?void 0:r.ref.current;!function e(t){F.current=t,window.clearTimeout(U.current),""!==t&&(U.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(U.current),[]),(0,p.Oh)();let X=n.useCallback(e=>{var t,r;return K.current===(null==(t=$.current)?void 0:t.side)&&eK(e,null==(r=$.current)?void 0:r.area)},[]);return(0,b.jsx)(ee,{scope:r,searchRef:F,onItemEnter:n.useCallback(e=>{X(e)&&e.preventDefault()},[X]),onItemLeave:n.useCallback(e=>{var t;X(e)||(null==(t=N.current)||t.focus(),I(null))},[X]),onTriggerLeave:n.useCallback(e=>{X(e)&&e.preventDefault()},[X]),pointerGraceTimerRef:z,onPointerGraceIntentChange:n.useCallback(e=>{$.current=e},[]),children:(0,b.jsx)(J,{...G,children:(0,b.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.mK)(l,e=>{var t;e.preventDefault(),null==(t=N.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,b.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:y,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:_,onDismiss:x,children:(0,b.jsx)(v.bL,{asChild:!0,...T,dir:A.dir,orientation:"vertical",loop:a,currentTabStopId:M,onCurrentTabStopIdChange:I,onEntryFocus:(0,i.mK)(h,e=>{A.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eF(E.open),"data-radix-menu-content":"",dir:A.dir,...C,...S,ref:L,style:{outline:"none",...S.style},onKeyDown:(0,i.mK)(S.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Z(e.key));let i=N.current;if(e.target!==i||!j.includes(e.key))return;e.preventDefault();let o=P().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&o.reverse(),ez(o)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(U.current),F.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eV(e=>{let t=e.target,r=V.current!==e.clientX;e.currentTarget.contains(t)&&r&&(K.current=e.clientX>V.current?"right":"left",V.current=e.clientX)}))})})})})})})});er.displayName=Q;var es="MenuGroup",el=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"group",...n,ref:t})});el.displayName=es;var ec="MenuLabel",eu=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{...n,ref:t})});eu.displayName=ec;var ed="MenuItem",ep="menu.itemSelect",ef=n.forwardRef((e,t)=>
5{let{disabled:r=!1,onSelect:a,...s}=e,c=n.useRef(null),u=q(ed,e.__scopeMenu),d=et(ed,e.__scopeMenu),p=(0,o.s)(t,c),f=n.useRef(!1),h=()=>{let e=c.current;if(!r&&e){let t=new CustomEvent(ep,{bubbles:!0,cancelable:!0});e.addEventListener(ep,e=>null==a?void 0:a(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:u.onClose()}};return(0,b.jsx)(eh,{...s,ref:p,disabled:r,onClick:(0,i.mK)(e.onClick,h),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),f.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;f.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||T.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ef.displayName=ed;var eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...c}=e,u=et(ed,r),d=B(r),p=n.useRef(null),f=(0,o.s)(t,p),[h,m]=n.useState(!1),[y,g]=n.useState("");return n.useEffect(()=>{let e=p.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[c.children]),(0,b.jsx)(N.ItemSlot,{scope:r,disabled:a,textValue:null!=s?s:y,children:(0,b.jsx)(v.q7,{asChild:!0,...d,focusable:!a,children:(0,b.jsx)(l.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,eV(e=>{a?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eV(e=>u.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>m(!0)),onBlur:(0,i.mK)(e.onBlur,()=>m(!1))})})})}),em="MenuCheckboxItem",ey=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,b.jsx)(eS,{scope:e.__scopeMenu,checked:r,children:(0,b.jsx)(ef,{role:"menuitemcheckbox","aria-checked":eH(r)?"mixed":r,...o,ref:t,"data-state":eB(r),onSelect:(0,i.mK)(o.onSelect,()=>null==n?void 0:n(!!eH(r)||!r),{checkForDefaultPrevented:!1})})})});ey.displayName=em;var eg="MenuRadioGroup",[ev,eb]=U(eg,{value:void 0,onValueChange:()=>{}}),ew=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,A.c)(n);return(0,b.jsx)(ev,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,b.jsx)(el,{...i,ref:t})})});ew.displayName=eg;var e_="MenuRadioItem",ex=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=eb(e_,e.__scopeMenu),a=r===o.value;return(0,b.jsx)(eS,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(ef,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eB(a),onSelect:(0,i.mK)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});ex.displayName=e_;var ek="MenuItemIndicator",[eS,eE]=U(ek,{checked:!1}),eA=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=eE(ek,r);return(0,b.jsx)(g.C,{present:n||eH(o.checked)||!0===o.checked,children:(0,b.jsx)(l.sG.span,{...i,ref:t,"data-state":eB(o.checked)})})});eA.displayName=ek;var eC="MenuSeparator",eO=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eO.displayName=eC;var eT="MenuArrow",eR=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=H(r);return(0,b.jsx)(m.i3,{...i,...n,ref:t})});eR.displayName=eT;var ej="MenuSub",[eP,eM]=U(ej),eI=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,a=W(ej,t),s=H(t),[l,c]=n.useState(null),[u,d]=n.useState(null),p=(0,A.c)(o);return n.useEffect(()=>(!1===a.open&&p(!1),()=>p(!1)),[a.open,p]),(0,b.jsx)(m.bL,{...s,children:(0,b.jsx)(z,{scope:t,open:i,onOpenChange:p,content:u,onContentChange:d,children:(0,b.jsx)(eP,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:l,onTriggerChange:c,children:r})})})};eI.displayName=ej;var eN="MenuSubTrigger",eD=n.forwardRef((e,t)=>{let r=W(eN,e.__scopeMenu),a=q(eN,e.__scopeMenu),s=eM(eN,e.__scopeMenu),l=et(eN,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=l,p={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),d(null)}},[u,d]),(0,b.jsx)(J,{asChild:!0,...p,children:(0,b.jsx)(eh,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":eF(r.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focu
5s(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eV(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||c.current||(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eV(e=>{var t,n;f();let i=null==(t=r.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(n=r.content)?void 0:n.dataset.side,o="right"===t,a=o?-5:5,s=i[o?"left":"right"],c=i[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:i.top},{x:c,y:i.top},{x:c,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&P[a.dir].includes(t.key)){var i;r.onOpenChange(!0),null==(i=r.content)||i.focus(),t.preventDefault()}})})})});eD.displayName=eN;var eL="MenuSubContent",eU=n.forwardRef((e,t)=>{let r=X(Q,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=W(Q,e.__scopeMenu),c=q(Q,e.__scopeMenu),u=eM(eL,e.__scopeMenu),d=n.useRef(null),p=(0,o.s)(t,d);return(0,b.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(g.C,{present:a||l.open,children:(0,b.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(ea,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==u.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=M[c.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null==(n=u.trigger)||n.focus(),e.preventDefault()}})})})})})});function eF(e){return e?"open":"closed"}function eH(e){return"indeterminate"===e}function eB(e){return eH(e)?"indeterminate":e?"checked":"unchecked"}function ez(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function eW(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function e$(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=eW(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let a=o.find(e=>e.toLowerCase().startsWith(n.toLowerCase()));return a!==r?a:void 0}function eq(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,c=a.y,u=s.x,d=s.y;c>n!=d>n&&r<(u-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function eK(e,t){return!!t&&eq({x:e.clientX,y:e.clientY},t)}function eV(e){return t=>"mouse"===t.pointerType?e(t):void 0}eU.displayName=eL;var eJ=K,eG=J,eZ=Y,eX=er,eY=el,eQ=eu,e0=ef,e1=ey,e2=ew,e3=ex,e5=eA,e4=eO,e6=eR,e8=eI,e9=eD,e7=eU,te="DropdownMenu",[tt,tr]=(0,a.A)(te,[F]),tn=F(),[ti,to]=tt(te),ta=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,u=tn(t),d=n.useRef(null),[p,f]=(0,s.i)({prop:o,defaultProp:null!=a&&a,onChange:l,caller:te});return(0,b.jsx)(ti,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>
5!e),[f]),modal:c,children:(0,b.jsx)(eJ,{...u,open:p,onOpenChange:f,dir:i,modal:c,children:r})})};ta.displayName=te;var ts="DropdownMenuTrigger",tl=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=to(ts,r),c=tn(r);return(0,b.jsx)(eG,{asChild:!0,...c,children:(0,b.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tl.displayName=ts;var tc=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tn(t);return(0,b.jsx)(eZ,{...n,...r})};tc.displayName="DropdownMenuPortal";var tu="DropdownMenuContent",td=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,a=to(tu,r),s=tn(r),l=n.useRef(!1);return(0,b.jsx)(eX,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=a.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});td.displayName=tu;var tp="DropdownMenuGroup",tf=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(eY,{...i,...n,ref:t})});tf.displayName=tp;var th="DropdownMenuLabel",tm=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(eQ,{...i,...n,ref:t})});tm.displayName=th;var ty="DropdownMenuItem",tg=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e0,{...i,...n,ref:t})});tg.displayName=ty;var tv="DropdownMenuCheckboxItem",tb=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e1,{...i,...n,ref:t})});tb.displayName=tv;var tw="DropdownMenuRadioGroup",t_=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e2,{...i,...n,ref:t})});t_.displayName=tw;var tx="DropdownMenuRadioItem",tk=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e3,{...i,...n,ref:t})});tk.displayName=tx;var tS="DropdownMenuItemIndicator",tE=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e5,{...i,...n,ref:t})});tE.displayName=tS;var tA="DropdownMenuSeparator",tC=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e4,{...i,...n,ref:t})});tC.displayName=tA;var tO="DropdownMenuArrow";n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e6,{...i,...n,ref:t})}).displayName=tO;var tT=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,a=tn(t),[l,c]=(0,s.i)({prop:n,defaultProp:null!=o&&o,onChange:i,caller:"DropdownMenuSub"});return(0,b.jsx)(e8,{...a,open:l,onOpenChange:c,children:r})},tR="DropdownMenuSubTrigger",tj=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e9,{...i,...n,ref:t})});tj.displayName=tR;var tP="DropdownMenuSubContent",tM=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=tn(r);return(0,b.jsx)(e7,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tM.displayName=tP;var tI=ta,tN=tl,tD=tc,tL=td,tU=tf,tF=tm,tH=tg,tB=tb,tz=t_,tW=tk,t$=tE,tq=tC,tK=tT,tV=tj,tJ=tM},38162:(e,t,r)=>{"use strict";r.d(t,{C1:()=>k,bL:()=>_});var n=r(12115),i=r(94446),o=r(3468),a=r(92556),s=r(23558),l=r(78108),c=r(84288),u=r(76842),d=r(88142),p=r(95155),f="Checkbox",[h,m]=(0,o.A)(f),[y,g]=h(f);function v(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:a,form:l,name:c,onCheckedChange:u,required:d,value:h="on",internal_do_not_use_render:m}=e,[g,v]=(0,s.i)({prop:r,defaultProp:null!=o&&o,onChange:u,caller:f}),[b,w]=n.useState(null),[_,x]=n.useState(null),k=n.useRef(!1),S=!b||!!l||!!b.closest("form"),E={checked:g,disabled:a,setChecked:v,control:b,setControl:w,name:c,form:l,value:h,hasConsumerStoppedPropagationRef:k,required:d,defaultChecked:!C(o)&&o,isFormControl:S,bubbleInput:_,setBubbleInput:x};return(0,p.jsx)(y,{scope:t,...E,children:A(m)?m(E):i})}var b="CheckboxTrigger",w=n.forwardRef((e,t)=>
5{let{__scopeCheckbox:r,onKeyDown:o,onClick:s,...l}=e,{control:c,value:u,disabled:f,checked:h,required:m,setControl:y,setChecked:v,hasConsumerStoppedPropagationRef:w,isFormControl:_,bubbleInput:x}=g(b,r),k=(0,i.s)(t,y),S=n.useRef(h);return n.useEffect(()=>{let e=null==c?void 0:c.form;if(e){let t=()=>v(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,v]),(0,p.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":C(h)?"mixed":h,"aria-required":m,"data-state":O(h),"data-disabled":f?"":void 0,disabled:f,value:u,...l,ref:k,onKeyDown:(0,a.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(s,e=>{v(e=>!!C(e)||!e),x&&_&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})})});w.displayName=b;var _=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return(0,p.jsx)(v,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(w,{...d,ref:t,__scopeCheckbox:r}),n&&(0,p.jsx)(E,{__scopeCheckbox:r})]})}})});_.displayName=f;var x="CheckboxIndicator",k=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=g(x,r);return(0,p.jsx)(u.C,{present:n||C(o.checked)||!0===o.checked,children:(0,p.jsx)(d.sG.span,{"data-state":O(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});k.displayName=x;var S="CheckboxBubbleInput",E=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,...o}=e,{control:a,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:f,required:h,disabled:m,name:y,value:v,form:b,bubbleInput:w,setBubbleInput:_}=g(S,r),x=(0,i.s)(t,_),k=(0,l.Z)(u),E=(0,c.X)(a);n.useEffect(()=>{let e=w;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,r=!s.current;if(k!==u&&t){let n=new Event("click",{bubbles:r});e.indeterminate=C(u),t.call(e,!C(u)&&u),e.dispatchEvent(n)}},[w,k,u,s]);let A=n.useRef(!C(u)&&u);return(0,p.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=f?f:A.current,required:h,disabled:m,name:y,value:v,form:b,...o,tabIndex:-1,ref:x,style:{...o.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(e){return"function"==typeof e}function C(e){return"indeterminate"===e}function O(e){return C(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=S},38185:(e,t,r)=>{var n=r(26630);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},38464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkce=t.nonce=t.PKCE_CODE_CHALLENGE_METHOD=void 0,t.signCookie=s,t.state=void 0;var n=r(83980),i=a(r(44959));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&({}).hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}async function s(e,t,r,n){let{cookies:o,logger:a}=n;a.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let{name:s}=o[e],l=new Date;return l.setTime(l.getTime()+1e3*r),{name:s,value:await i.encode({...n.jwt,maxAge:r,token:{value:t},salt:s}),options:{...o[e].options,expires:l}}}let l=900,c=t.PKCE_CODE_CHALLENGE_METHOD="S256";t.pkce={async create(e,t,r){var i,o;if(!(null!=(i=e.provider)&&null!=(i=i.checks)&&i.includes("pkce")))return;let a=n.generators.codeVerifier();r.code_challenge=n.generators.codeChallenge(a),r.code_challenge_method=c;let u=null!=(o=e.cookies.pkceCodeVerifier.options.maxAge)?o:l;t.push(await s("pkceCodeVerifier",a,u,e))},async use(e,t,r,n){var o;if(!(null!=(o=r.provider)&&null!=(o=o.checks)&&o.includes("pkce")))return;let a=null==e?void 0:e[r.cookies.pkceCodeVerifier.name];if(!a)throw TypeError("PKCE code_verifier cookie was missing.");let{name:s}=r.cookies.pkceCodeVerifier,l=await i.decode({...r.jwt,token:a,salt:s});if(!(null!=l&&l.value))throw TypeError("PKCE code_verifier value could not be parsed.");
5t.push({name:s,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),n.code_verifier=l.value}};let u=900;t.state={async create(e,t,r){var i,o;if(!(null!=(i=e.provider.checks)&&i.includes("state")))return;let a=n.generators.state();r.state=a;let l=null!=(o=e.cookies.state.options.maxAge)?o:u;t.push(await s("state",a,l,e))},async use(e,t,r,n){var o;if(!(null!=(o=r.provider.checks)&&o.includes("state")))return;let a=null==e?void 0:e[r.cookies.state.name];if(!a)throw TypeError("State cookie was missing.");let{name:s}=r.cookies.state,l=await i.decode({...r.jwt,token:a,salt:s});if(!(null!=l&&l.value))throw TypeError("State value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.state.options,maxAge:0}}),n.state=l.value}};let d=900;t.nonce={async create(e,t,r){var i,o;if(!(null!=(i=e.provider.checks)&&i.includes("nonce")))return;let a=n.generators.nonce();r.nonce=a;let l=null!=(o=e.cookies.nonce.options.maxAge)?o:d;t.push(await s("nonce",a,l,e))},async use(e,t,r,n){var o;if(!(null!=(o=r.provider)&&null!=(o=o.checks)&&o.includes("nonce")))return;let a=null==e?void 0:e[r.cookies.nonce.name];if(!a)throw TypeError("Nonce cookie was missing.");let{name:s}=r.cookies.nonce,l=await i.decode({...r.jwt,token:a,salt:s});if(!(null!=l&&l.value))throw TypeError("Nonce value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),n.nonce=l.value}}},39029:e=>{let t=/^\d+$/;function r(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),n=r.slice(e+1);if(!t.test(n))return!0}return!1}function n(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}e.exports=function(e){let t;if("string"!=typeof e)throw TypeError("input must be a string");return(t=r(e)?e:n(e)?`acct:${e}`:`https://${e}`).split("#")[0]}},39058:(e,t,r)=>{var n=r(78363),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},42196:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},43161:(e,t,r)=>{var n=r(70300),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},43319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64338).createAsyncLocalStorage)()},43535:(e,t)=>{"use strict";async function r(e){var t,r;let{options:n,sessionStore:i}=e,{adapter:o,events:a,jwt:s,callbackUrl:l,logger:c,session:u}=n,d=null==i?void 0:i.value;if(!d)return{redirect:l};if("jwt"===u.strategy)try{let e=await s.decode({...s,token:d});await (null==(t=a.signOut)?void 0:t.call(a,{token:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}else try{let e=await o.deleteSession(d);await (null==(r=a.signOut)?void 0:r.call(a,{session:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}return{redirect:l,cookies:i.clean()}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},44193:(e,t,r)=>{"use strict";r.d(t,{G:()=>o,eq:()=>i});var n=r(88658);
5let i=n.ZS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},44483:e=>{let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},44615:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])},44706:(e,t,r)=>{"use strict";var n;n={value:!0},Object.defineProperty(t,"r",{enumerable:!0,get:function(){return d}});let i=r(11332),o=r(8567),a=r(90332),s=r(33497),l=r(97412),c=r(17480),u=r(48302);function d(){let e="draftMode",t=o.workAsyncStorage.getStore(),r=i.workUnitAsyncStorage.getStore();switch((!t||!r)&&(0,i.throwForMissingRequestStore)(e),r.type){case"prerender-runtime":return(0,a.delayUntilRuntimeStage)(r,p(r.draftMode,t));case"request":return p(r.draftMode,t);case"cache":case"private-cache":case"unstable-cache":let n=(0,i.getDraftModeProviderForCacheScope)(t,r);if(n)return p(n,t);case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return p(null,t);default:return r}}function p(e,t){let r,n=null!=e?e:f,i=h.get(n);return i||(r=m(e),h.set(n,r),r)}r(13972);let f={},h=new WeakMap;function m(e){let t=new y(e),r=Promise.resolve(t);return Object.defineProperty(r,"isEnabled",{get:()=>t.isEnabled,enumerable:!0,configurable:!0}),r.enable=t.enable.bind(t),r.disable=t.disable.bind(t),r}class y{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()}constructor(e){this._provider=e}}function g(e,t){let r=e?'Route "'.concat(e,'" '):"This route ";return Object.defineProperty(Error("".concat(r,"used ").concat(t,". ")+"`draftMode()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"),"__NEXT_ERROR_CODE",{value:"E377",enumerable:!1,configurable:!0})}function v(e,t){let r=o.workAsyncStorage.getStore(),n=i.workUnitAsyncStorage.getStore();if(r){if((null==n?void 0:n.phase)==="after")throw Object.defineProperty(Error("Route ".concat(r.route,' used "').concat(e,'" 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:"E348",enumerable:!1,
5configurable:!0});if(r.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError("Route ".concat(r.route,' with `dynamic = "error"` couldn\'t be rendered statically because it used `').concat(e,"`. 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"cache":case"private-cache":{var s,d;let n=Object.defineProperty(Error("Route ".concat(r.route,' used "').concat(e,'" 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:"E246",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,t),null!=(d=(s=r).invalidDynamicUsageError)||(s.invalidDynamicUsageError=n),n}case"unstable-cache":throw Object.defineProperty(Error("Route ".concat(r.route,' used "').concat(e,'" 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:"E259",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let t=Object.defineProperty(Error("Route ".concat(r.route," used ").concat(e," 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,a.abortAndThrowOnSynchronousRequestDataAccess)(r.route,e,t,n)}case"prerender-client":let i="`draftMode`";throw Object.defineProperty(new u.InvariantError("".concat(i," must not be used within a client component. Next.js should be preventing ").concat(i," from being included in client components statically, but did not in this case.")),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,a.postponeWithTracking)(r.route,e,n.dynamicTracking);case"prerender-legacy":n.revalidate=0;let o=Object.defineProperty(new c.DynamicServerError("Route ".concat(r.route," couldn't be rendered statically because it used `").concat(e,"`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error")),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.dynamicUsageDescription=e,r.dynamicUsageStack=o.stack,o;case"request":(0,a.trackDynamicDataInDynamicRender)(n)}}}(0,s.createDedupedByCallsiteServerErrorLoggerDev)(g)},44959:(e,t,r)=>{"use strict";var n=r(95704),i=r(22455);Object.defineProperty(t,"__esModule",{value:!0});var o={encode:!0,decode:!0,getToken:!0};t.decode=h,t.encode=f,t.getToken=m;var a=r(62160),s=i(r(25346)),l=r(92496),c=r(935),u=r(27818);Object.keys(u).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))});let d=2592e3,p=()=>Date.now()/1e3|0;async function f(e){let{token:t={},secret:r,maxAge:n=d,salt:i=""}=e,o=await y(r,i);return await new a.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(p()+n).setJti((0,l.v4)()).encrypt(o)}async function h(e){let{token:t,secret:r,salt:n=""}=e;if(!t)return null;let i=await y(r,n),{payload:o}=await (0,a.jwtDecrypt)(t,i,{clockTolerance:15});return o}async function m(e){var t,r,i,o;let{req:a,secureCookie:s=null!=(t=null==(r=n.env.NEXTAUTH_URL)?void 0:r.startsWith("https://"))?t:!!n.env.VERCEL,cookieName:l=s?"__Secure-next-auth.session-token":"next-auth.session-token",raw:u,decode:d=h,logger:p=console,secret:f=null!=(i=n.env.NEXTAUTH_SECRET)?i:n.env.AUTH_SECRET}=e;if(!a)throw Error("Must pass `req` to JWT getToken()");let m=new c.SessionStore({name:l,options:{secure:s}},{cookies:a.cookies,headers:a.headers},p).value,y=a.headers instanceof Headers?a.headers.get("authorization"):null==(o=a.headers)?void 0:o.authorization;if(m||(null==y?void 0:y.split(" ")[0])!=="Bearer"||(m=decodeURIComponent(y.split(" ")[1])),!m)return null;if(u)return m;try{return await d({token:m,secret:f})}catch(e){return null}}async function y(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},45062:(e,t,r)=>{var n="/";!function(){var t={55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},300:function(e){"use strict";e.exports=r(15376)}},i={};function o(e){var r=i[e];
5if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a={};!function(){"use strict";var e=a,t=o(55).Buffer,r=t.isEncoding||function(e){switch((e=""+e)&&e.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 n(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var i=n(e);if("string"!=typeof i&&(t.isEncoding===r||!r(e)))throw Error("Unknown encoding: "+e);return i||e}function s(e){var r;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=h,this.end=m,r=4;break;case"utf8":this.fillLast=d,r=4;break;case"base64":this.text=y,this.end=g,r=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(r)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}e.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}(),e.exports=a}()},45186:e=>{let t=Symbol();e.exports={CLOCK_TOLERANCE:Symbol(),HTTP_OPTIONS:t}},45520:e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let l of n(o))i.call(e,l)||l===a||t(e,l,{get:()=>o[l],enumerable:!(s=r(o,l))||s.enumerable});return e},a=e=>o(t({},"__esModule",{value:!0}),e),s={};function l(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}
5`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,i]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=i?i:"true"))}catch{}}return t}function u(e){if(!e)return;let[[t,r],...n]=c(e),{domain:i,expires:o,httponly:a,maxage:s,path:l,samesite:u,secure:p,partitioned:h,priority:y}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase().replace(/-/g,""),t]));return d({name:t,value:decodeURIComponent(r),domain:i,...o&&{expires:new Date(o)},...a&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:l,...u&&{sameSite:f(u)},...p&&{secure:!0},...y&&{priority:m(y)},...h&&{partitioned:!0}})}function d(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>g,ResponseCookies:()=>v,parseCookie:()=>c,parseSetCookie:()=>u,stringifyCookie:()=>l}),e.exports=a(s);var p=["strict","lax","none"];function f(e){return e=e.toLowerCase(),p.includes(e)?e:void 0}var h=["low","medium","high"];function m(e){return e=e.toLowerCase(),h.includes(e)?e:void 0}function y(e){if(!e)return[];var t,r,n,i,o,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),i=s;s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}var g=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>l(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>l(t)).join("; ")),r}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(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},v=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let i=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(i)?i:y(i)){let t=u(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,w({name:t,value:r,...n})),b(i,this._headers),this}delete(...e){let[t,r]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:t,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 b(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=l(r);t.append("set-cookie",e)}}function w(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}},46090:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.createSecret=a,t.fromDate=i,t.hashToken=o;var n=r(33018);function i(e,t=Date.now()){return new Date(t+1e3*e)}function o(e,t){var r;let{provider:i,secret:o}=t;return(0,n.createHash)("sha256").update(`${e}${null!=(r=i.secret)?r:o}`).digest("hex")}function a(e){var t;let{authOptions:r,url:i}=e;return null!=(t=r.secret)?t:(0,n.createHash)("sha256").update(JSON.stringify({...i,...r})).digest("hex")}},46098:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>m,hG:()=>k});var n=r(12115),i=r(47650),o=r(14806),a=r(95155),s=r(76908),l=r(70428),c=r(8828),u=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},d=({contentComponent:e})=>{let t=(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,a.jsx)(a.Fragment,{children:Object.values(t)})};function p(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var f=class extends n.Component{constructor(e){var t;super(e),this.editorContentRef=n.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=p(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;let t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:u(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,a.jsx)(d,{contentComponent:e.contentComponent})]})}},h=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(f,{key:r,innerRef:t,...e})}),m=n.memo(h),y="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,g=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function v(e){var t;let[r]=(0,n.useState)(()=>new g(e.editor)),i=(0,c.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:l.bD);return y(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var b=!1,w="undefined"==typeof window,_=w||!!("undefined"!=typeof window&&window.next),x=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.get
5ServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(w||_){if(b)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&w&&b)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new s.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function k(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new x(r)),a=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(a),(0,n.useEffect)(i.onRender(t)),v({editor:a,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),a}var S=(0,n.createContext)({editor:null});S.Consumer;var E=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),A=()=>(0,n.useContext)(E);n.forwardRef((e,t)=>
5{let{onDragStart:r}=A(),n=e.as||"div";return(0,a.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),s.Db,s.Yv;var C=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});C.displayName="TiptapContext";var O=()=>(0,n.useContext)(C);function T({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let o=(0,n.useMemo)(()=>({editor:i}),[i]),s=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,a.jsx)(S.Provider,{value:s,children:(0,a.jsx)(C.Provider,{value:o,children:r})})}function R({...e}){let{editor:t}=O();return(0,a.jsx)(m,{editor:t,...e})}T.displayName="Tiptap",R.displayName="Tiptap.Content",Object.assign(T,{Content:R})},46216:(e,t,r)=>{let n=r(47913);function i(e,t,...r){for(let o of r)if(n(o))for(let[r,a]of Object.entries(o))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==a&&(t[r]=a),e&&n(t[r])&&n(a)&&i(!0,t[r],a));return t}e.exports=i.bind(void 0,!1),e.exports.deep=i.bind(void 0,!0)},46561:(e,t,r)=>{var n="/",i=r(95704);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,l;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))l=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${s} ${n(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(709),a=r(337);r(782)(u,o);for(var s=n(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=O,n(361).EventEmitter;var o,a,s,l,c,u=function(e,t){return e.listeners(t).length},d=n(678),p=n(300).Buffer,f=r.g.Uint8Array||function(){};function h(e){return p.from(e)}function m(e){return p.isBuffer(e)||e instanceof f}var y=n(837);a=y&&y.debuglog?y.debuglog("stream"):function(){};var g=n(379),v=n(25),b=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,x=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 22,717 bytes, line 5
5ED,S=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(T,d);var E=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function C(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function O(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new g,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(o=o||n(403),!(this instanceof T))return new T(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function R(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=P(s,t)),o)E(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),n)s.endEmitted?E(e,new S):j(e,s,t,!0);else if(s.ended)E(e,new x);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):F(e,s)):j(e,s,t,!1)}else n||(s.reading=!1,F(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),F(e,t)}function P(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=v.destroy,T.prototype._undestroy=v.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var M=0x40000000;function I(e){return e>=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=I(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,U(e)))}}function L(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(U,e))}function U(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,K(e)}function F(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(H,e,t))}function H(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,K(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function W(e){a("readable nexttick read 0"),e.read(0)}function $(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),K(e),t.flowing&&!t.reading&&e.read(0)}function K(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function V(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(G,t,e))}function G(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):L(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?V(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){E(this,new k("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?g:l;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function l(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=B(r);e.on("drain",c);var d=!1;function p(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",f),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function f(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Z(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),g(),e.removeListener("error",h),0===u(e,"error")&&E(e,t)}function m(){e.removeListener("finish",y),g()}function y(){a("onfinish"),e.removeListener("close",m),g()}function g(){a("unpipe"),r.unpipe(e)}return r.on("data",f),C(e,"error",h),e.once("close",m),e.once("finish",y),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Z(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?L(this):n.reading||i.nextTick(W,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),r},T.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(z,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,$(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(871)),l(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=V,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=u;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}e.exports=O,O.WritableState=C;var a,s,l={deprecate:n(769)},c=n(678),u=n(300).Buffer,d=r.g.Uint8Array||function(){};function p(e){return u.from(e)}function f(e){return u.isBuffer(e)||e instanceof d}var h=n(25),m=n(776).getHighWaterMark,y=n(646).q,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_METHOD_NOT_IMPLEMENTED,b=y.ERR_MULTIPLE_CALLBACK,w=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,x=y.ERR_STREAM_NULL_VALUES,k=y.ERR_STREAM_WRITE_AFTER_END,S=y.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function A(){}function C(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(O,this))return new O(e);this._writableState=new C(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new k;E(e,r),i.nextTick(t,r)}function R(e,t,r,n){var o;return null===r?o=new x:"string"==typeof r||t.objectMode||(o=new g("chunk",["string","Buffer"],r)),!o||(E(e,o),i.nextTick(n,o),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var a=j(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else M(e,t,!1,s,n,i,o);return l}function M(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function I(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(W,e,t),e._writableState.errorEmitted=!0,E(e,n)):(o(n),e._writableState.errorEmitted=!0,E(e,n),W(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(N(r),t)I(e,r,n,t,o);else{var a=H(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||F(e,r),n?i.nextTick(L,e,r,a,o):L(e,r,a,o)}}function L(e,t,r,n){r||U(e,t),t.pendingcb--,n(),W(e,t)}function U(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function F(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,M(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(M(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function H(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final(function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),W(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(B,e,t)))}function W(e,t){var r=H(t);if(r&&(z(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function $(e,t,r){t.ending=!0,W(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function q(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(O,c),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===O&&e&&e._writableState instanceof C}})):s=function(e){return e instanceof this},O.prototype.pipe=function(){E(this,new w)},O.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&f(e);return o&&!u.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?T(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||F(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new v("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||$(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[s]=null,e[l]=null,t(h(r,!1)))}}function y(e){i.nextTick(m,e)}function g(e,t){return function(r,n){e.then(function(){if(t[u])return void r(h(void 0,!0));t[p](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((n(o={get stream(){return this[f]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(h(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(h(o,!1));e=new Promise(this[p])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e)return void r(e);t(h(void 0,!0))})})}),o),v);e.exports=function(e){var t,r=Object.create(b,(n(t={},f,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,u,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[s]=null,r[l]=null,e(h(n,!1))):(r[s]=e,r[l]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[s]=null,r[l]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[l]=null,n(h(void 0,!0))),r[u]=!0}),e.on("readable",y.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 5
5t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,u=r(837).inspect,d=u&&u.custom||"inspect";function p(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
vendor: 2,421 bytes, line 5
5var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||p()},d=e._writableState&&e._writableState.finished,p=function(){c=!1,d=!0,l||r.call(e)},f=e._readableState&&e._readableState.endEmitted,h=function(){l=!1,f=!0,c||r.call(e)},m=function(t){r.call(e,t)},y=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},g=function(){e.req.on("finish",p)};return a(e)?(e.on("complete",p),e.on("abort",y),e.req?g():e.on("request",g)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",m),e.on("close",y),function(){e.removeListener("complete",p),e.removeListener("abort",y),e.removeListener("request",g),e.req&&e.req.removeListener("finish",p),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",p),e.removeListener("end",h),e.removeListener("error",m),e.removeListener("close",y)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
5var l=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return u.apply(this,arguments)}function u(){return(u=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,a){a=n(a);var l=!1;e.on("close",function(){l=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function d(e){e()}function p(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return u(t,a,n>0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(p)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
5case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=y,this.end=g,t=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=f,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(15376)},361:function(e){"use strict";e.exports=r(65240)},781:function(e){"use strict";e.exports=r(65240).EventEmitter},837:function(e){"use strict";e.exports=r(634)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},47913:e=>{e.exports=e=>!!e&&e.constructor===Object},49035:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;var n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},50030:(e,t,r)=>{var n=r(73423),i=r(91426),o=r(25411),a=r(36702),s=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if(o(e))return i(e,u)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},50530:(e,t)=>{"use strict";async function r({options:e,paramValue:t,cookieValue:r}){let{url:n,callbacks:i}=e,o=n.origin;return t?o=await i.redirect({url:t,baseUrl:n.origin}):r&&(o=await i.redirect({url:r,baseUrl:n.origin}
5)),{callbackUrl:o,callbackUrlCookie:o!==r?o:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackUrl=r},51204:(e,t,r)=>{var n=r(70300);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},51483:(e,t,r)=>{var n=r(24402),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},51773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return d},NEXT_ACTION_NOT_FOUND_HEADER:function(){return v},NEXT_DID_POSTPONE_HEADER:function(){return h},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return l},NEXT_HMR_REFRESH_HEADER:function(){return s},NEXT_IS_PRERENDER_HEADER:function(){return g},NEXT_REWRITTEN_PATH_HEADER:function(){return m},NEXT_REWRITTEN_QUERY_HEADER:function(){return y},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_STALE_TIME_HEADER:function(){return f},NEXT_ROUTER_STATE_TREE_HEADER:function(){return i},NEXT_RSC_UNION_QUERY:function(){return p},NEXT_URL:function(){return c},RSC_CONTENT_TYPE_HEADER:function(){return u},RSC_HEADER:function(){return r}});let r="rsc",n="next-action",i="next-router-state-tree",o="next-router-prefetch",a="next-router-segment-prefetch",s="next-hmr-refresh",l="__next_hmr_refresh_hash__",c="next-url",u="text/x-component",d=[r,i,o,s,a],p="_rsc",f="x-nextjs-stale-time",h="x-nextjs-postponed",m="x-nextjs-rewritten-path",y="x-nextjs-rewritten-query",g="x-nextjs-prerender",v="x-nextjs-action-not-found";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51826:(e,t)=>{"use strict";var r;r={value:!0},t.A=function e(e){return{id:"credentials",name:"Credentials",type:"credentials",credentials:{},authorize:()=>null,options:e}}},51876:(e,t,r)=>{"use strict";r.d(t,{$t:()=>A,LN:()=>a,U3:()=>u,hs:()=>j,i5:()=>h,k_:()=>O,nh:()=>p});var n=r(92322),i=r(62463);let o=Object.create(null);class a{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let o=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),s?n.Ji.empty:t),0==s&&g(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:o,$to:a}=n[i],s=e.mapping.slice(r),l=s.map(o.pos),c=s.map(a.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),g(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new u(e):y(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?y(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):y(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}
vendor: 6,614 bytes, line 5
5static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new h(e.node(0))}static atStart(e){return y(e,e,0,0,1)||new h(e)}static atEnd(e){return y(e,e,e.content.size,e.childCount,-1)||new h(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=o[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends a{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return a.near(r);let n=e.resolve(t.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,r,!0)||a.findFrom(t,-r,!0);if(!e)return a.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(a.findFrom(e,-r,!0)||a.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new u(e,t)}}a.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends a{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?a.near(i):new p(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,a.jsonID("node",p);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new d(r,r):new f(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&p.isSelectable(r)?new p(t):a.near(t)}}class h extends a{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=a.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new h(e)}map(e){return new h(e)}eq(e){return e instanceof h}getBookmark(){return m}}a.jsonID("all",h);let m={map(){return this},resolve:e=>new h(e)};function y(e,t,r,n,i,o=!1){if(t.inlineContent)return u.create(e,r);for(let a=n-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let n=t.child(a);if(n.isAtom){if(!o&&p.isSelectable(n))return p.create(e,r-(i<0?n.nodeSize:0))}else{let t=y(e,n,r+i,i<0?n.childCount:0,i,o);if(t)return t}r+=n.nodeSize*i}return null}function g(e,t,r){let n,o=e.steps.length-1;if(o<t)return;let s=e.steps[o];(s instanceof i.Ln||s instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(a.near(e.doc.resolve(n),r)))}let v=1,b=2,w=4;class _ extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|v)&~b,this.storedMarks=null,this}get selectionSet(){return(this.updated&v)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=b,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&b)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~b,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=w,this}get scrolledIntoView(){return(this.updated&w)>0}}function x(e,t){return t&&e?e.bind(t):e}class k{constructor(e,t,r){this.name=e,this.init=x(t.init,r),this.apply=x(t.apply,r)}}let S=[new k("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new k("selection",{init:(e,t)=>
5e.selection||a.atStart(t.doc),apply:e=>e.selection}),new k("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new k("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class E{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=S.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new k(e.key,e.spec.state,e))})}}class A{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let s=n?n[o].n:0,l=n?n[o].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<o?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),i=!0}n&&(n[o]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new A(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new _(this)}static create(e){let t=new E(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new A(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new E(this.schema,e.plugins),r=t.fields,n=new A(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new E(e.schema,e.plugins),o=new A(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let a=r[n],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){o[i.name]=s.fromJSON.call(a,e,t[n],o);return}}o[i.name]=i.init(e,o)}}),o}}function C(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=C(i,t,{})),r[n]=i}return r}class O{constructor(e){this.spec=e,this.props={},e.props&&C(e.props,this,this.props),this.key=e.key?e.key.key:R("plugin")}getState(e){return e[this.key]}}let T=Object.create(null);function R(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class j{constructor(e="key"){this.key=R(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},52135:(e,t)=>{"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}function n(e,...t){if(!t.length)return e;let i=t.shift();if(r(e)&&r(i))for(let t in i)r(i[t])?(e[t]||Object.assign(e,{[t]:{}}),n(e[t],i[t])):Object.assign(e,{[t]:i[t]});return n(e,...t)}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=n},52962:e=>{"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.7.1","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/openid-client","repository":"panva/openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"}
5,"dependencies":{"jose":"^4.15.9","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.106","@types/passport":"^1.0.16","base64url":"^3.0.1","chai":"^4.5.0","mocha":"^10.7.3","nock":"^13.5.5","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')},52987:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},53149:(e,t,r)=>{"use strict";var n=r(95704);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getServerSession=l,t.unstable_getServerSession=c;var i=r(96455),o=r(25348);async function a(e,t,r){var a,s,l,c,u,d,p,f,h;let{nextauth:m,...y}=e.query;null!=(a=r.secret)||(r.secret=null!=(s=null!=(l=null==(c=r.jwt)?void 0:c.secret)?l:n.env.NEXTAUTH_SECRET)?s:n.env.AUTH_SECRET);let g=await (0,i.AuthHandler)({req:{body:e.body,query:y,cookies:e.cookies,headers:e.headers,method:e.method,action:null==m?void 0:m[0],providerId:null==m?void 0:m[1],error:null!=(u=e.query.error)?u:null==m?void 0:m[1]},options:r});if(t.status(null!=(d=g.status)?d:200),null==(p=g.cookies)||p.forEach(e=>(0,o.setCookie)(t,e)),null==(f=g.headers)||f.forEach(e=>t.setHeader(e.key,e.value)),g.redirect){if((null==(h=e.body)?void 0:h.json)!=="true"){t.status(302).setHeader("Location",g.redirect),t.end();return}return t.json({url:g.redirect})}return t.send(g.body)}async function s(e,t,a){var s,l,c,u;null!=(s=a.secret)||(a.secret=null!=(l=n.env.NEXTAUTH_SECRET)?l:n.env.AUTH_SECRET);let{headers:d,cookies:p}=r(20684),f=null==(c=await t.params)?void 0:c.nextauth,h=Object.fromEntries(e.nextUrl.searchParams),m=await (0,o.getBody)(e),y=await (0,i.AuthHandler)({req:{body:m,query:h,cookies:Object.fromEntries((await p()).getAll().map(e=>[e.name,e.value])),headers:Object.fromEntries(await d()),method:e.method,action:null==f?void 0:f[0],providerId:null==f?void 0:f[1],error:null!=(u=h.error)?u:null==f?void 0:f[1]},options:a}),g=(0,o.toResponse)(y),v=g.headers.get("Location");return(null==m?void 0:m.json)==="true"&&v?(g.headers.delete("Location"),g.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:v}),{status:y.status,headers:g.headers})):g}async function l(...e){var t,a,s;let c,u,d,p=0===e.length||1===e.length;if(p){d=Object.assign({},e[0],{providers:[]});let{headers:t,cookies:n}=r(20684);c={headers:Object.fromEntries(await t()),cookies:Object.fromEntries((await n()).getAll().map(e=>[e.name,e.value]))},u={getHeader(){},setCookie(){},setHeader(){}}}else c=e[0],u=e[1],d=Object.assign({},e[2],{providers:[]});null!=(a=(t=d).secret)||(t.secret=null!=(s=n.env.NEXTAUTH_SECRET)?s:n.env.AUTH_SECRET);let{body:f,cookies:h,status:m=200}=await (0,i.AuthHandler)({options:d,req:{action:"session",method:"GET",cookies:c.cookies,headers:c.headers}});if(null==h||h.forEach(e=>(0,o.setCookie)(u,e)),f&&"string"!=typeof f&&Object.keys(f).length){if(200===m)return p&&delete f.expires,f;throw Error(f.message)}return null}t.default=function(...e){var t;return 1===e.length?async(t,r)=>null!=r&&r.params?await s(t,r,e[0]):await a(t,r,e[0]):null!=(t=e[1])&&t.params?s(...e):a(...e)};async function c(...e){return await l(...e)}},53341:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(28140),i=r(75040),o=r(81356),a=n._(r(71124));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},55286:(e,t,r)=>{let n=r(47913);function i(e,...t){for(let r of t)if(n(r))for(let[t,o]of Object.entries(r))"__proto__"!==t&&"constructor"!==t&&(n(e[t])&&n(o)?e[t]=i(e[t],o):void 0!==o&&(e[t]=o));return e}e.exports=i},55428:e=>{e.exports=function(){this.__data__=[],this.size=0}},56218:(e,t,r)=>{"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(33018),i=r(46090);async function o(e,t){var r,o,a,s;let{url:l,adapter:c,provider:u,callbackUrl:d,theme:p}=t,f=null!=(r=await (null==(o=u.generateVerificationToken)?void 0:o.call(u)))?r:(0,n.randomBytes)(32).toString("hex"),h=86400,m=new Date(Date.now()+(null!=(a=u.maxAge)?a:h)*1e3),y=new URLSearchParams({callbackUrl:d,token:f,email:e}),g=`${l}/callback/${u.id}?${y}`;return await Promise.all([u.sendVerificationRequest({identifier:e,token:f,expires:m,url:g,provider:u,theme:p}),null==(s=c.createVerificationToken)?void 0:s.call(c,{identifier:e,token:(0,i.hashToken)(f,t),expires:m})]),`${l}/verify-request?${new URLSearchParams({provider:u.id,type:u.type})}`}},57488:(e,t,r)=>{t.OAuth=r(17283).OAuth,t.OAuthEcho=r(17283).OAuthEcho,t.OAuth2=r(1947).OAuth2},57527:(e,t,r)=>{"use strict";r.d(t,{A:()=>r4});var n=r(76908),i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);let{children:r,...n}=null!=t?t:{};if("svg"===e)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},o=/^\s*>\s$/,a=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return i("blockquote",{...(0,n.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},parseMarkdown:(e,t)=>{var r;let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren;return t.createNode("blockquote",void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";let r=">",n=[];return e.content.forEach((e,i)=>{var o,a;let s=(null!=(a=null==(o=t.renderChild)?void 0:o.call(t,e,i))?a:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?r:`${r} ${e}`);n.push(s.join("\n"))}),n.join(`
6${r}
7`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
7,addInputRules(){return[(0,n.tG)({find:o,type:this.type})]}}),s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,d=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return i("strong",{...(0,n.KV)(this.options.HTMLAttributes,e),children:i("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
7,addInputRules(){return[(0,n.OX)({find:s,type:this.type}),(0,n.OX)({find:c,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:l,type:this.type}),(0,n.Zc)({find:u,type:this.type})]}}),p=/(^|[^`])`([^`]+)`(?!`)$/,f=/(^|[^`])`([^`]+)`(?!`)/g,h=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,n.OX)({find:p,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:f,type:this.type})]}}),m=r(51876),y=4,g=/^```([a-z]+)?[\s\n]$/,v=/^~~~([a-z]+)?[\s\n]$/,b=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:y,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:r}=this.options;if(!r)return null;let n=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,n.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return(null==(r=e.raw)?void 0:r.startsWith("```"))===!1&&(null==(n=e.raw)?void 0:n.startsWith("~~~"))===!1&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.language)||"";return e.content?[`\`\`\`${n}`,t.renderChildren(e.content),"```"].join("\n"):`\`\`\`${n}
8
9\`\`\``},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!r||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:y,{state:n}=e,{selection:i}=n,{$from:o,empty:a}=i;if(o.parent.type!==this.type)return!1;let s=" ".repeat(r);return a?e.commands.insertContent(s):e.commands.command(({tr:e})=>{let{from:t,to:r}=i,o=n.doc.textBetween(t,r,"\n","\n").split("\n").map(e=>s+e).join("\n");return e.replaceWith(t,r,n.schema.text(o)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;let r=null!=(t=this.options.tabSize)?t:y,{state:n}=e,{selection:i}=n,{$from:o,empty:a}=i;return o.parent.type===this.type&&(a?e.commands.command(({tr:e})=>{var t;let{pos:i}=o,a=o.start(),s=o.end(),l=n.doc.textBetween(a,s,"\n","\n").split("\n"),c=0,u=0,d=i-a;for(let e=0;e<l.length;e+=1){if(u+l[e].length>=d){c=e;break}u+=l[e].length+1}let p=Math.min(((null==(t=l[c].match(/^ */))?void 0:t[0])||"").length,r);if(0===p)return!0;let f=a;for(let e=0;e<c;e+=1)f+=l[e].length+1;return e.delete(f,f+p),i-f<=p&&e.setSelection(m.U3.create(e.doc,f)),!0}):e.commands.command(({tr:e})=>{let{from:t,to:o}=i,a=n.doc.textBetween(t,o,"\n","\n").split("\n").map(e=>{var t;let n=Math.min(((null==(t=e.match(/^ */))?void 0:t[0])||"").length,r);return e.slice(n)}).join("\n");return e.replaceWith(t,o,n.schema.text(a)),!0}))},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:r}=t,{$from:n,empty:i}=r;if(!i||n.parent.type!==this.type)return!1;let o=n.parentOffset===n.parent.nodeSize-2,a=n.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>
9{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:r,doc:n}=t,{$from:i,empty:o}=r;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let a=i.after();return void 0!==a&&(n.nodeAt(a)?e.commands.command(({tr:e})=>(e.setSelection(m.LN.near(n.resolve(a))),!0)):e.commands.exitCode())}}},addInputRules(){return[(0,n.JJ)({find:g,type:this.type,getAttributes:e=>({language:e[1]})}),(0,n.JJ)({find:v,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new m.k_({key:new m.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),i=n?JSON.parse(n):void 0,o=null==i?void 0:i.mode;if(!r||!o)return!1;let{tr:a,schema:s}=e.state,l=s.text(r.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:o},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(m.U3.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),w=n.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),_=n.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,n.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>`  
10`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:a}=n.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&o){let t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),x=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;let n=(null==(r=e.attrs)?void 0:r.level)?parseInt(e.attrs.level,10):1,i="#".repeat(n);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
10)\\s$`),type:this.type,getAttributes:{level:e}}))}}),k=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$to:i}=r,o=e();return(0,n.BQ)(r)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({state:e,tr:t,dispatch:r})=>{if(r){let{$to:r}=t.selection,n=r.end();if(r.nodeAfter)r.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,r.pos+1)):r.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,r.pos)):t.setSelection(m.U3.create(t.doc,r.pos));else{let i=e.schema.nodes[this.options.nextNodeType]||r.parent.type.contentMatch.defaultType,o=null==i?void 0:i.create();o&&(t.insert(n,o),t.setSelection(m.U3.create(t.doc,n+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.Ce)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
10ype})]}}),S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,E=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,A=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,C=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,O=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
10,addInputRules(){return[(0,n.OX)({find:S,type:this.type}),(0,n.OX)({find:A,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:E,type:this.type}),(0,n.Zc)({find:C,type:this.type})]}});let T="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yac
10hts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",R="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",j="numeric",P="ascii",M="alpha",I="asciinumeric",N="alphanumeric",D="domain",L="emoji",U="scheme",F="slashscheme",H="whitespace";function B(e,t){return e in t||(t[e]=[]),t[e]}function z(e,t,r){for(let n in t[j]&&(t[I]=!0,t[N]=!0),t[P]&&(t[I]=!0,t[M]=!0),t[I]&&(t[N]=!0),t[M]&&(t[N]=!0),t[N]&&(t[D]=!0),t[L]&&(t[D]=!0),t){let t=B(n,r);0>t.indexOf(e)&&t.push(e)}}function W(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function $(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}$.groups={},$.prototype={accepts(){return!!this.t},go(e){let t=this,r=t.j[e];if(r)return r;for(let r=0;r<t.jr.length;r++){let n=t.jr[r][0],i=t.jr[r][1];if(i&&n.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||$.groups,t&&t.j?i=t:(i=new $(t),r&&n&&z(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,r,n)},tt(e,t,r,n){n=n||$.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let o=t,a,s=i.go(e);return s?(Object.assign((a=new $).j,s.j),a.jr.push.apply(a.jr,s.jr),a.jd=s.jd,a.t=s.t):a=new $,o&&(n&&(a.t&&"string"==typeof a.t?z(o,Object.assign(W(a.t,n),r),n):r&&z(o,r,n)),a.t=o),i.j[e]=a,a}};let q=(e,t,r,n,i)=>e.ta(t,r,n,i),K=(e,t,r,n,i)=>e.tr(t,r,n,i),V=(e,t,r,n,i)=>e.ts(t,r,n,i),J=(e,t,r,n,i)=>e.tt(t,r,n,i),G="WORD",Z="UWORD",X="ASCIINUMERICAL",Y="ALPHANUMERICAL",Q="LOCALHOST",ee="TLD",et="UTLD",er="SCHEME",en="SLASH_SCHEME",ei="NUM",eo="WS",ea="NL",es="OPENBRACE",el="CLOSEBRACE",ec="OPENBRACKET",eu="CLOSEBRACKET",ed="OPENPAREN",ep="CLOSEPAREN",ef="OPENANGLEBRACKET",eh="CLOSEANGLEBRACKET",em="FULLWIDTHLEFTPAREN",ey="FULLWIDTHRIGHTPAREN",eg="LEFTCORNERBRACKET",ev="RIGHTCORNERBRACKET",eb="LEFTWHITECORNERBRACKET",ew="RIGHTWHITECORNERBRACKET",e_="FULLWIDTHLESSTHAN",ex="FULLWIDTHGREATERTHAN",ek="AMPERSAND",eS="APOSTROPHE",eE="ASTERISK",eA="AT",eC="BACKSLASH",eO="BACKTICK",eT="CARET",eR="COLON",ej="COMMA",eP="DOLLAR",eM="DOT",eI="EQUALS",eN="EXCLAMATION",eD="HYPHEN",eL="PERCENT",eU="PIPE",eF="PLUS",eH="POUND",eB="QUERY",ez="QUOTE",eW="FULLWIDTHMIDDLEDOT",e$="SEMI",eq="SLASH",eK="TILDE",eV="UNDERSCORE",eJ="EMOJI",eG="SYM";var eZ=Object.freeze({__proto__:null,ALPHANUMERICAL:Y,AMPERSAND:ek,APOSTROPHE:eS,ASCIINUMERICAL:X,ASTERISK:eE,AT:eA,BACKSLASH:eC,BACKTICK:eO,CARET:eT,CLOSEANGLEBRACKET:eh,CLOSEBRACE:el,CLOSEBRACKET:eu,CLOSEPAREN:ep,COLON:eR,COMMA:ej,DOLLAR:eP,DOT:eM,EMOJI:eJ,EQUALS:eI,EXCLAMATION:eN,FULLWIDTHGREATERTHAN:ex,FULLWIDTHLEFTPAREN:em,FULLWIDTHLESSTHAN:e_,FULLWIDTHMIDDLEDOT:eW,FULLWIDTHRIGHTPAREN:ey,HYPHEN:eD,LEFTCORNERBRACKET:eg,LEFTWHITECORNERBRACKET:eb,LOCALHOST:Q,NL:ea,NUM:ei,OPENANGLEBRACKET:ef,OPENBRACE:es,OPENBRACKET:ec,OPENPAREN:ed,PERCENT:eL,PIPE:eU,PLUS:eF,POUND:eH,QUERY:eB,QUOTE:ez,RIGHTCORNERBRACKET:ev,RIGHTWHITECORNERBRACKET:ew,SCHEME:er,SEMI:e$,SLASH:eq,SLASH_SCHEME:en,SYM:eG,TILDE:eK,TLD:ee,UNDERSCORE:eV,UTLD:et,UWORD:Z,WORD:G,WS:eo});let eX=/[a-z]/,eY=/\p{L}/u,eQ=/\p{Emoji}/u,e0=/\d/,e1=/\s/,e2="\r",e3="\n",e5="️",e4="‍",e6="",e8=null,e9=null;function e7(e=[]){let t={};$.groups=t;let r=new $;null==e8&&(e8=tn(T)),null==e9&&(e9=tn(R)),J(r,"'",eS),J(r,"{",es),J(r,"}
10",el),J(r,"[",ec),J(r,"]",eu),J(r,"(",ed),J(r,")",ep),J(r,"<",ef),J(r,">",eh),J(r,"(",em),J(r,")",ey),J(r,"「",eg),J(r,"」",ev),J(r,"『",eb),J(r,"』",ew),J(r,"<",e_),J(r,">",ex),J(r,"&",ek),J(r,"*",eE),J(r,"@",eA),J(r,"`",eO),J(r,"^",eT),J(r,":",eR),J(r,",",ej),J(r,"$",eP),J(r,".",eM),J(r,"=",eI),J(r,"!",eN),J(r,"-",eD),J(r,"%",eL),J(r,"|",eU),J(r,"+",eF),J(r,"#",eH),J(r,"?",eB),J(r,'"',ez),J(r,"/",eq),J(r,";",e$),J(r,"~",eK),J(r,"_",eV),J(r,"\\",eC),J(r,"・",eW);let n=K(r,e0,ei,{[j]:!0});K(n,e0,n);let i=K(n,eX,X,{[I]:!0}),o=K(n,eY,Y,{[N]:!0}),a=K(r,eX,G,{[P]:!0});K(a,e0,i),K(a,eX,a),K(i,e0,i),K(i,eX,i);let s=K(r,eY,Z,{[M]:!0});K(s,eX),K(s,e0,o),K(s,eY,s),K(o,e0,o),K(o,eX),K(o,eY,o);let l=J(r,e3,ea,{[H]:!0}),c=J(r,e2,eo,{[H]:!0}),u=K(r,e1,eo,{[H]:!0});J(r,e6,u),J(c,e3,l),J(c,e6,u),K(c,e1,u),J(u,e2),J(u,e3),K(u,e1,u),J(u,e6,u);let d=K(r,eQ,eJ,{[L]:!0});J(d,"#"),K(d,eQ,d),J(d,e5,d);let p=J(d,e4);J(p,"#"),K(p,eQ,d);let f=[[eX,a],[e0,i]],h=[[eX,null],[eY,s],[e0,o]];for(let e=0;e<e8.length;e++)tr(r,e8[e],ee,G,f);for(let e=0;e<e9.length;e++)tr(r,e9[e],et,Z,h);z(ee,{tld:!0,ascii:!0},t),z(et,{utld:!0,alpha:!0},t),tr(r,"file",er,G,f),tr(r,"mailto",er,G,f),tr(r,"http",en,G,f),tr(r,"https",en,G,f),tr(r,"ftp",en,G,f),tr(r,"ftps",en,G,f),z(er,{scheme:!0,ascii:!0},t),z(en,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],i=e[t][1]?{[U]:!0}:{[F]:!0};n.indexOf("-")>=0?i[D]=!0:eX.test(n)?e0.test(n)?i[I]=!0:i[P]=!0:i[j]=!0,V(r,n,n,i)}return V(r,"localhost",Q,{ascii:!0}),r.jd=new $(eG),{start:r,tokens:Object.assign({groups:t},eZ)}}function te(e,t){let r=tt(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],o=0,a=0;for(;a<n;){let s=e,l=null,c=0,u=null,d=-1,p=-1;for(;a<n&&(l=s.go(r[a]));)(s=l).accepts()?(d=0,p=0,u=s):d>=0&&(d+=r[a].length,p++),c+=r[a].length,o+=r[a].length,a++;o-=d,a-=p,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function tt(e){let t=[],r=e.length,n=0;for(;n<r;){let i,o=e.charCodeAt(n),a=o<55296||o>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(a),n+=a.length}return t}function tr(e,t,r,n,i){let o,a=t.length;for(let r=0;r<a-1;r++){let a=t[r];e.j[a]?o=e.j[a]:((o=new $(n)).jr=i.slice(),e.j[a]=o),e=o}return(o=new $(r)).jr=i.slice(),e.j[t[a-1]]=o,o}function tn(e){let t=[],r=[],n=0,i="0123456789";for(;n<e.length;){let o=0;for(;i.indexOf(e[n+o])>=0;)o++;if(o>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+o),10);t>0;t--)r.pop();n+=o}else r.push(e[n]),n++}return t}let ti={defaultProtocol:"http",events:null,format:ta,formatHref:ta,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function to(e,t=null){let r=Object.assign({},ti);e&&(r=Object.assign(r,e instanceof to?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function ta(e){return e}function ts(e,t){this.t="token",this.v=e,this.tk=t}function tl(e,t){class r extends ts{constructor(t,r){super(t,r),this.t=e}}for(let e in t)r.prototype[e]=t[e];return r.t=e,r}to.prototype={o:ti,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:ti[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},ts.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=ti.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),i=e.get("tagName",r,t),o=this.toFormattedString(e),a={}
10,s=e.get("className",r,t),l=e.get("target",r,t),c=e.get("rel",r,t),u=e.getObj("attributes",r,t),d=e.getObj("events",r,t);return a.href=n,s&&(a.class=s),l&&(a.target=l),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:i,attributes:a,content:o,eventListeners:d}}};let tc=tl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),tu=tl("text"),td=tl("nl"),tp=tl("url",{isLink:!0,toHref(e=ti.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==Q&&e[1].t===eR}}),tf=e=>new $(e);function th({groups:e}){let t=e.domain.concat([ek,eE,eA,eC,eO,eT,eP,eI,eD,ei,eL,eU,eF,eH,eq,eG,eK,eV]),r=[eS,eR,ej,eM,eN,eL,eB,ez,e$,ef,eh,es,el,eu,ec,ed,ep,em,ey,eg,ev,eb,ew,e_,ex],n=[ek,eS,eE,eC,eO,eT,eP,eI,eD,es,el,eL,eU,eF,eH,eB,eq,eG,eK,eV],i=tf(),o=J(i,eK);q(o,n,o),q(o,e.domain,o);let a=tf(),s=tf(),l=tf();q(i,e.domain,a),q(i,e.scheme,s),q(i,e.slashscheme,l),q(a,n,o),q(a,e.domain,a);let c=J(a,eA);J(o,eA,c),J(s,eA,c),J(l,eA,c);let u=J(o,eM);q(u,n,o),q(u,e.domain,o);let d=tf();q(c,e.domain,d),q(d,e.domain,d);let p=J(d,eM);q(p,e.domain,d);let f=tf(tc);q(p,e.tld,f),q(p,e.utld,f),J(c,Q,f);let h=J(d,eD);J(h,eD,h),q(h,e.domain,d),q(f,e.domain,d),J(f,eM,p),J(f,eD,h),q(J(f,eR),e.numeric,tc);let m=J(a,eD),y=J(a,eM);J(m,eD,m),q(m,e.domain,a),q(y,n,o),q(y,e.domain,a);let g=tf(tp);q(y,e.tld,g),q(y,e.utld,g),q(g,e.domain,a),q(g,n,o),J(g,eM,y),J(g,eD,m),J(g,eA,c);let v=J(g,eR),b=tf(tp);q(v,e.numeric,b);let w=tf(tp),_=tf();q(w,t,w),q(w,r,_),q(_,t,w),q(_,r,_),J(g,eq,w),J(b,eq,w);let x=J(s,eR),k=J(l,eR),S=J(k,eq),E=J(S,eq);q(s,e.domain,a),J(s,eM,y),J(s,eD,m),q(l,e.domain,a),J(l,eM,y),J(l,eD,m),q(x,e.domain,w),J(x,eq,w),J(x,eB,w),q(E,e.domain,w),q(E,t,w),J(E,eq,w);let A=[[es,el],[ec,eu],[ed,ep],[ef,eh],[em,ey],[eg,ev],[eb,ew],[e_,ex]];for(let e=0;e<A.length;e++){let[n,i]=A[e],o=J(w,n);J(_,n,o),J(o,i,w);let a=tf(tp);q(o,t,a);let s=tf();q(o,r),q(a,t,a),q(a,r,s),q(s,t,a),q(s,r,s),J(a,i,w),J(s,i,w)}return J(i,Q,g),J(i,ea,td),{start:i,tokens:eZ}}function tm(e,t,r){let n=r.length,i=0,o=[],a=[];for(;i<n;){let s=e,l=null,c=null,u=0,d=null,p=-1;for(;i<n&&!(l=s.go(r[i].t));)a.push(r[i++]);for(;i<n&&(c=l||s.go(r[i].t));)l=null,(s=c).accepts()?(p=0,d=s):p>=0&&p++,i++,u++;if(p<0)(i-=u)<n&&(a.push(r[i]),i++);else{a.length>0&&(o.push(ty(tu,t,a)),a=[]),i-=p,u-=p;let e=d.t,n=r.slice(i-u,i);o.push(ty(e,t,n))}}return a.length>0&&o.push(ty(tu,t,a)),o}function ty(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let tg="undefined"!=typeof console&&console&&console.warn||(()=>{}),tv="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",tb={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function tw(){return $.groups={},tb.scanner=null,tb.parser=null,tb.tokenQueue=[],tb.pluginQueue=[],tb.customSchemes=[],tb.initialized=!1,tb}function t_(e,t=!1){if(tb.initialized&&tg(`linkifyjs: already initialized - will not register custom scheme "${e}" ${tv}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
111. Must only contain digits, lowercase ASCII letters or "-"
122. Cannot start or end with "-"
133. "-" cannot repeat`);tb.customSchemes.push([e,t])}function tx(){tb.scanner=e7(tb.customSchemes);for(let e=0;e<tb.tokenQueue.length;e++)tb.tokenQueue[e][1]({scanner:tb.scanner});tb.parser=th(tb.scanner.tokens);for(let e=0;e<tb.pluginQueue.length;e++)tb.pluginQueue[e][1]({scanner:tb.scanner,parser:tb.parser});return tb.initialized=!0,tb}function tk(e){return tb.initialized||tx(),tm(tb.parser.start,e,te(tb.scanner.start,e))}function tS(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new to(r),i=tk(e),o=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&o.push(r.toFormattedObject(n))}return o}tk.scan=te;var tE="[\0- \xa0 ᠎ -\u2029  ]",tA=new RegExp(tE),tC=RegExp(`${tE}$`),tO=RegExp(tE,"g");function tT(e){return 1===e.length?e[0].isLink:3===e.length&&!!e[1].isLink&&["()","[]"].includes(e[0].value+e[2].value)}function tR(e){return new m.k_({key:new m.hs("autolink"),appendTransaction:(t,r,i)=>{let o=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),a=t.some(e=>e.getMeta("preventAutolink"));if(!o||a)return;let{tr:s}=i,l=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(l).forEach(({newRange:t})=>{let r,o,a=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(a.length>1)r=a[0],o=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(a.length){let e=i.doc.textBetween(t.from,t.to," "," ");
13if(!tC.test(e))return;r=a[0],o=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&o){let t=o.split(tA).filter(Boolean);if(t.length<=0)return!1;let a=t[t.length-1],l=r.pos+o.lastIndexOf(a);if(!a)return!1;let c=tk(a).map(t=>t.toObject(e.defaultProtocol));if(!tT(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||s.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),s.steps.length)return s}})}function tj(e){return new m.k_({key:new m.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var o,a;if(0!==i.button||!t.editable)return!1;let s=null;if(i.target instanceof HTMLAnchorElement)s=i.target;else{let t=i.target;if(!t)return!1;let r=e.editor.view.dom;(s=t.closest("a"))&&!r.contains(s)&&(s=null)}if(!s)return!1;let l=!1;if(e.enableClickSelection&&(l=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let r=(0,n.gu)(t.state,e.type.name),i=null!=(o=s.href)?o:r.href,c=null!=(a=s.target)?a:r.target;i&&(window.open(i,c),l=!0)}return l}}})}function tP(e){return new m.k_({key:new m.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{let{shouldAutoLink:i}=e,{state:o}=t,{selection:a}=o,{empty:s}=a;if(s)return!1;let l="";n.content.forEach(e=>{l+=e.textContent});let c=tS(l,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!!l&&!!c&&(void 0===i||!!i(c.value))&&e.editor.commands.setMark(e.type,{href:c.href})}}})}function tM(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(tO,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var tI=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e)return void t_(e);t_(e.scheme,e.optionalSlashes)})},onDestroy(){tw()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!tM(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;let n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!tM(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!tM(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,o;let a=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",s=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",l=t.renderChildren(e);return s?`[${l}](${a} "${s}")`:`[${l}](${a})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tM(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e||{};return(!r||!!this.options.isAllowedUri(r,{defaultValidate:e=>!!tM(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=tS(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!tM(e,r),protocols:r,defaultProtocol:n}));
13i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(tR({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!tM(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(tj({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(tP({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),tN=Object.defineProperty,tD=(e,t)=>{for(var r in t)tN(e,r,{get:t[r],enumerable:!0})},tL="listItem",tU="textStyle",tF=/^\s*([-+*])\s$/,tH=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(tL,this.editor.getAttributes(tU)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
13,addInputRules(){let e=(0,n.tG)({find:tF,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:tF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(tU),editor:this.editor})),[e]}}),tB=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var r;if("list_item"!==e.type)return[];let n=null!=(r=t.parseBlockChildren)?r:t.parseChildren,i=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(e=>"paragraph"===e.type))i=n(e.tokens);else{let r=e.tokens[0];if(r&&"text"===r.type&&r.tokens&&r.tokens.length>0){if(i=[{type:"paragraph",content:t.parseInline(r.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));i.push(...t)}}else i=n(e.tokens)}return 0===i.length&&(i=[{type:"paragraph",content:[]}]),{type:"listItem",content:i}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){let n=(null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1;return`${n+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});tD({},{findListItemPos:()=>tz,getNextListDepth:()=>tW,handleBackspace:()=>tV,handleDelete:()=>tZ,hasListBefore:()=>t$,hasListItemAfter:()=>tX,hasListItemBefore:()=>tq,listItemHasSubList:()=>tK,nextListIsDeeper:()=>tJ,nextListIsHigher:()=>tG});var tz=(e,t)=>{let{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema),o=null,a=r.depth,s=r.pos,l=null;for(;a>0&&null===l;)(o=r.node(a)).type===i?l=a:(a-=1,s-=1);return null===l?null:{$pos:t.doc.resolve(s),depth:l}},tW=(e,t)=>{let r=tz(e,t);if(!r)return!1;let[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},t$=(e,t,r)=>{let{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),o=e.doc.resolve(i).node();return!!o&&!!r.includes(o.type.name)},tq=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},tK=(e,t,r)=>{if(!r)return!1;let i=(0,n.Pg)(e,t.schema),o=!1;return r.descendants(e=>{e.type===i&&(o=!0)}),o},tV=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&t$(e.state,t,r)){let{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});let o=i.at(-1);if(!o)return!1;let a=e.state.doc.resolve(n.start()+o.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},a.end()).joinForward().run()}if(!(0,n.rU)(e.state,t)||!(0,n.J_)(e.state))return!1;let i=tz(t,e.state);if(!i)return!1;let o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),a=tK(t,e.state,o);return tq(t,e.state)&&!a?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},tJ=(e,t)=>{let r=tW(e,t),n=tz(e,t);return!!n&&!!r&&r>n.depth},tG=(e,t)=>{let r=tW(e,t),n=tz(e,t);return!!n&&!!r&&r<n.depth},tZ=(e,t)=>{if(!(0,n.rU)(e.state,t)||!(0,n.QN)(e.state,t))return!1;let{selection:r}=e.state,{$from:i,$to:o}=r;return!(!r.empty&&i.sameParent(o))&&(tJ(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():tG(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},tX=(e,t)=>{var r;let{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},tY=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&tZ(e,r)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;
13return this.options.listTypes.forEach(({itemName:r})=>{void 0!==e.state.schema.nodes[r]&&tZ(e,r)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&tV(e,r,n)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{void 0!==e.state.schema.nodes[r]&&tV(e,r,n)&&(t=!0)}),t}}}}),tQ=/^(\s*)(\d+)\.\s+(.*)$/,t0=/^\s/;function t1(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r],o=i.match(tQ);if(!o)break;let[,a,s,l]=o,c=a.length,u=l,d=r+1,p=[i];for(;d<e.length;){let t=e[d];if(t.match(tQ))break;if(""===t.trim())p.push(t),u+="\n",d+=1;else if(t.match(t0))p.push(t),u+=`
14${t.slice(c+2)}`,d+=1;else break}t.push({indent:c,number:parseInt(s,10),content:u.trim(),raw:p.join("\n")}),n=d,r=d}return[t,n]}function t2(e,t,r){var n;let i=[],o=0;for(;o<e.length;){let a=e[o];if(a.indent===t){let s=a.content.split("\n"),l=(null==(n=s[0])?void 0:n.trim())||"",c=[];l&&c.push({type:"paragraph",raw:l,tokens:r.inlineTokens(l)});let u=s.slice(1).join("\n").trim();if(u){let e=r.blockTokens(u);c.push(...e)}let d=o+1,p=[];for(;d<e.length&&e[d].indent>t;)p.push(e[d]),d+=1;if(p.length>0){let e=Math.min(...p.map(e=>e.indent)),t=t2(p,e,r);c.push({type:"list",ordered:!0,start:p[0].number,items:t,raw:p.map(e=>e.raw).join("\n")})}i.push({type:"list_item",raw:a.raw,tokens:c}),o=d}else o+=1}return i}function t3(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];let r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){let n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{let n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}var t5="listItem",t4="textStyle",t6=/^(\d+)\.\s$/,t8=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];let r=e.start||1,n=e.items?t3(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1},tokenize:(e,t,r)=>{var n;let i=e.split("\n"),[o,a]=t1(i);if(0===o.length)return;let s=t2(o,0,r);if(0!==s.length)return{type:"list",ordered:!0,start:(null==(n=o[0])?void 0:n.number)||1,items:s,raw:i.slice(0,a).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(t5,this.editor.getAttributes(t4)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}
14,addInputRules(){let e=(0,n.tG)({find:t6,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:t6,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(t4)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),t9=/^\s*(\[([( |x])?\])\s$/,t7=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{let r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){let n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;let i=(null==(r=e.attrs)?void 0:r.checked)?"x":" ",o=`- [${i}] `;return(0,n.kj)(e,t,o)},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:r,editor:i})=>{let o=document.createElement("li"),a=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),c=document.createElement("div"),u=e=>{var t,r;l.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,l.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};u(e),a.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",e=>e.preventDefault()),l.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof r&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=r();if("number"!=typeof t)return!1;let i=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(l.checked=!l.checked)}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{o.setAttribute(e,t)}),o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,a.append(l,s),o.append(a,c),Object.entries(t).forEach(([e,t])=>{o.setAttribute(e,t)});let d=new Set(Object.keys(t));return{dom:o,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,u(e);let t=i.extensionManager.attributes,r=(0,n.zU)(e,t),a=new Set(Object.keys(r)),s=this.options.HTMLAttributes;return d.forEach(e=>{a.has(e)||(e in s?o.setAttribute(e,s[e]):o.removeAttribute(e))}),Object.entries(r).forEach(([e,t])=>{null==t?e in s?o.setAttribute(e,s[e]):o.removeAttribute(e):o.setAttribute(e,t)}),d=a,!0}}}},addInputRules(){return[(0,n.tG)({find:t9,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),re=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;let r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1}
14,tokenize(e,t,r){let i=e=>{let t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},o=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});n.YY.create({name:"listKit",addExtensions(){let e=[];return!1!==this.options.bulletList&&e.push(tH.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(tB.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(tY.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(t8.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(t7.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(re.configure(this.options.taskList)),e}});var rt="&nbsp;",rr="\xa0",rn=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);let n=t.parseInline(r);return 1===r.length&&"text"===r[0].type&&(r[0].raw===rt||r[0].text===rt||r[0].raw===rr||r[0].text===rr)&&1===n.length&&"text"===n[0].type&&(n[0].text===rt||n[0].text===rr)?t.createNode("paragraph",void 0,[]):t.createNode("paragraph",void 0,n)},renderMarkdown:(e,t,r)=>{var n,i;if(!e)return"";let o=Array.isArray(e.content)?e.content:[];if(0===o.length){let e=Array.isArray(null==(n=null==r?void 0:r.previousNode)?void 0:n.content)?r.previousNode.content:[];return(null==(i=null==r?void 0:r.previousNode)?void 0:i.type)==="paragraph"&&0===e.length?rt:""}return t.renderChildren(o)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ri=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,ro=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,ra=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}}
14,addInputRules(){return[(0,n.OX)({find:ri,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:ro,type:this.type})]}}),rs=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),rl=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){let n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;let i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),rc=r(62463);function ru(e={}){return new m.k_({view:t=>new rd(t,e)})}class rd{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,o=this.editorView.dom,a=o.getBoundingClientRect(),s=a.width/o.offsetWidth,l=a.height/o.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),o=e?n.bottom:n.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let a=this.width/2*l;i={left:n.left,right:n.right,top:o-a,bottom:o+a}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*s;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let r=c.getBoundingClientRect(),n=r.width/c.offsetWidth,i=r.height/c.offsetHeight;e=r.left-c.scrollLeft*n,t=r.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/s+"px",this.element.style.top=(i.top-t)/l+"px",this.element.style.width=(i.right-i.left)/s+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,rc.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}
vendor: 6,324 bytes, line 14
14var rp=r(32806),rf=r(24945),rh=r(92322);class rm extends m.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return rm.valid(r)?new rm(r):m.LN.near(r)}content(){return rh.Ji.empty}eq(e){return e instanceof rm&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new rm(e.resolve(t.pos))}getBookmark(){return new ry(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!rv(e)||!rb(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&rm.valid(e))return e;let n=e.pos,i=null;for(let r=e.depth;;r--){let o=e.node(r);if(t>0?e.indexAfter(r)<o.childCount:e.index(r)>0){i=o.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let a=e.doc.resolve(n);if(rm.valid(a))return a}for(;;){let o=t>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!m.nh.isSelectable(i)){e=e.doc.resolve(n+i.nodeSize*t),r=!1;continue e}break}i=o,n+=t;let a=e.doc.resolve(n);if(rm.valid(a))return a}return null}}}rm.prototype.visible=!1,rm.findFrom=rm.findGapCursorFrom,m.LN.jsonID("gapcursor",rm);class ry{constructor(e){this.pos=e}map(e){return new ry(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return rm.valid(t)?new rm(t):m.LN.near(t)}}function rg(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function rv(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||rg(e.type))return!0;if(e.inlineContent)return!1}}return!0}function rb(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||rg(e.type))return!0;if(e.inlineContent)return!1}}return!0}function rw(){return new m.k_({props:{decorations:rE,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&rm.valid(r)?new rm(r):null,handleClick:rk,handleKeyDown:r_,handleDOMEvents:{beforeinput:rS}}})}let r_=(0,rf.K)({ArrowLeft:rx("horiz",-1),ArrowRight:rx("horiz",1),ArrowUp:rx("vert",-1),ArrowDown:rx("vert",1)});function rx(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,i){let o=e.selection,a=t>0?o.$to:o.$from,s=o.empty;if(o instanceof m.U3){if(!i.endOfTextblock(r)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let l=rm.findGapCursorFrom(a,t,s);return!!l&&(n&&n(e.tr.setSelection(new rm(l))),!0)}}function rk(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!rm.valid(n))return!1;let i=e.posAtCoords({left:r.clientX,top:r.clientY});return!(i&&i.inside>-1&&m.nh.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new rm(n))),!0)}function rS(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof rm))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let i=rh.FK.empty;for(let e=n.length-1;e>=0;e--)i=rh.FK.from(n[e].createAndFill(null,i));let o=e.state.tr.replace(r.pos,r.pos,new rh.Ji(i,0,0));return o.setSelection(m.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function rE(e){if(!(e.selection instanceof rm))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",rp.zF.create(e.doc,[rp.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var rA=200,rC=function(){};rC.prototype.append=function(e){return e.length?(e=rC.from(e),!this.length&&e||e.length<rA&&this.leafAppend(e)||this.length<rA&&e.leafPrepend(this)||this.appendInner(e)):this},rC.prototype.prepend=function(e){return e.length?rC.from(e).append(this):this},rC.prototype.appendInner=function(e){return new rT(this,e)},rC.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?rC.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},rC.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},rC.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},rC.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},rC.from=function(e){return e instanceof rC?e:e&&e.length?new rO(e):rC.empty};var rO=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=rA)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=rA)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(rC);rC.empty=new rO([]);var rT=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>
14i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(rC);let rR=rC,rj=500;class rP{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(n=(r=this.remapping(a,this.items.length)).maps.length);let s=e.tr,l=[],c=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(a,t+1)).maps.length),n--,c.push(e);return}if(r){c.push(new rI(e.map));let t=e.step.map(r.slice(n)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],l.push(new rI(i,void 0,void 0,l.length+c.length))),n--,i&&r.appendMap(i,n)}else s.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,o=new rP(this.items.slice(0,a).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:s,selection:i}}addTransform(e,t,r,n){let i=[],o=this.eventCount,a=this.items,s=!n&&a.length?a.get(a.length-1):null;for(let r=0;r<e.steps.length;r++){let l=e.steps[r].invert(e.docs[r]),c=new rI(e.mapping.maps[r],l,t),u;(u=s&&s.merge(c))&&(c=u,r?i.pop():a=a.slice(0,a.length-1)),i.push(c),t&&(o++,t=void 0),n||(s=c)}let l=o-r.depth;return l>rD&&(a=rM(a,l),o-=l),new rP(a.append(i),o)}remapping(e,t){let r=new rc.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new rP(this.items.append(e.map(e=>new rI(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},n);let s=t;this.items.forEach(t=>{let n=i.getMirror(--s);if(null==n)return;o=Math.min(o,n);let l=i.maps[n];if(t.step){let o=e.steps[n].invert(e.docs[n]),c=t.selection&&t.selection.map(i.slice(s+1,n));c&&a++,r.push(new rI(l,o,c))}else r.push(new rI(l))},n);let l=[];for(let e=t;e<o;e++)l.push(new rI(i.maps[e]));let c=new rP(this.items.slice(0,n).append(l).append(r),a);return c.emptyItemCount()>rj&&(c=c.compress(this.items.length-r.length)),c}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)n.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(r)),a=e&&e.getMap();if(r--,a&&t.appendMap(a,r),e){let s=o.selection&&o.selection.map(t.slice(r));s&&i++;let l=new rI(a.invert(),e,s),c,u=n.length-1;(c=n.length&&n[u].merge(l))?n[u]=c:n.push(l)}}else o.map&&r--},this.items.length,0),new rP(rR.from(n.reverse()),i)}}function rM(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}rP.empty=new rP(rR.empty,0);class rI{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new rI(t.getMap().invert(),t,this.selection)}}}class rN{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let rD=20;function rL(e,t,r,n){let i=r.getMeta(rq),o;if(i)return i.historyState;r.getMeta(rK)&&(e=new rN(e.done,e.undone,null,0,-1));let a=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(a&&a.getMeta(rq))if(a.getMeta(rq).redo)return new rN(e.done.addTransform(r,void 0,n,r$(t)),e.undone,rF(r.mapping.maps),e.prevTime,e.prevComposition);else return new rN(e.done,e.undone.addTransform(r,void 0,n,r$(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))if(o=r.getMeta("rebased"))return new rN(e.done.rebased(r,o),e.undone.rebased(r,o),rH(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new rN(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),rH(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!rU(r,e.prevRanges)),s=a?rH(e.prevRanges,r.mapping):rF(r.mapping.maps);return new rN(e.done.addTransform(r,o?t.selection.getBookmark():void 0,n,r$(t)),rP.empty,s,r.time,null==i?e.prevComposition:i)}}function rU(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;
14return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}function rF(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function rH(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),o=t.map(e[n+1],-1);i<=o&&r.push(i,o)}return r}function rB(e,t,r){let n=r$(t),i=rq.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,n);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,n),l=new rN(r?s:o.remaining,r?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(rq,{redo:r,historyState:l})}let rz=!1,rW=null;function r$(e){let t=e.plugins;if(rW!=t){rz=!1,rW=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){rz=!0;break}}return rz}let rq=new m.hs("history"),rK=new m.hs("closeHistory");function rV(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new m.k_({key:rq,state:{init:()=>new rN(rP.empty,rP.empty,null,0,-1),apply:(t,r,n)=>rL(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?rG:"historyRedo"==r?rZ:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function rJ(e,t){return(r,n)=>{let i=rq.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let o=rB(i,r,e);o&&n(t?o.scrollIntoView():o)}return!0}}let rG=rJ(!1,!0),rZ=rJ(!0,!0);rJ(!1,!1),rJ(!0,!1),n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){let e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new m.k_({key:new m.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;let i=this.options.limit;if(null==i||0===i){e=!0;return}let o=this.storage.characters({node:n.doc});if(o>i){let t=0,r=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let a=n.tr.deleteRange(t,r);return e=!0,a}e=!0},filterTransaction:(e,t)=>{let r=this.options.limit;if(!e.docChanged||0===r||null==r)return!0;let n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r||n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n||!e.getMeta("paste"))return!1;let o=e.selection.$head.pos,a=o-(i-r),s=o;return e.deleteRange(a,s),!(this.storage.characters({node:e.doc})>r)}})]}});var rX=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[ru(this.options)]}});n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new m.k_({key:new m.hs("focus"),props:{decorations:({doc:e,selection:t})=>{let{isEditable:r,isFocused:n}=this.editor,{anchor:i}=t,o=[];if(!r||!n)return rp.zF.create(e,[]);let a=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;a+=1}});let s=0;return e.descendants((e,t)=>!e.isText&&!!(i>=t&&i<=t+e.nodeSize-1)&&((s+=1,"deepest"===this.options.mode&&a-s>0||"shallowest"===this.options.mode&&s>1)?"deepest"===this.options.mode:void o.push(rp.NZ.node(t,t+e.nodeSize,{class:this.options.className})))),rp.zF.create(e,o)}}})]}});var rY=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[rw()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),rQ="placeholder";function r0(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:rQ,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${r0(this.options.dataAttribute)}`:`data-${rQ}`;return[new m.k_({key:new m.hs("placeholder"),props:{decorations:({doc:t,selection:r})=>{let i=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=r,a=[];if(!i)return null;let s=this.editor.isEmpty;
14return t.descendants((t,r)=>{let i=o>=r&&o<=r+t.nodeSize,l=!t.isLeaf&&(0,n.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((i||!this.options.showOnlyCurrent)&&l){let n=[this.options.emptyNodeClass];s&&n.push(this.options.emptyEditorClass);let o=rp.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});a.push(o)}return this.options.includeChildren}),rp.zF.create(t,a)}}})]}}),n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new m.k_({key:new m.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:rp.zF.create(r.doc,[rp.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});var r1="skipTrailingNode";function r2({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var r3=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;let t=new m.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new m.k_({key:t,appendTransaction:(e,n,i)=>{let{doc:o,tr:a,schema:s}=i,l=t.getState(i),c=o.content.size,u=s.nodes[r];if(!e.some(e=>e.getMeta(r1))&&l)return a.insert(c,u.create())},state:{init:(e,t)=>!r2({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>!e.docChanged||e.getMeta("__uniqueIDTransaction")?t:!r2({node:e.doc.lastChild,types:n})}})]}}),r5=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>rG(e,t),redo:()=>({state:e,dispatch:t})=>rZ(e,t)}),addProseMirrorPlugins(){return[rV(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),r4=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;let i=[];return!1!==this.options.bold&&i.push(d.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(a.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(tH.configure(this.options.bulletList)),!1!==this.options.code&&i.push(h.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(b.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(w.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(rX.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(rY.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(_.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(x.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(r5.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(k.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(O.configure(this.options.italic)),!1!==this.options.listItem&&i.push(tB.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(tY.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(tI.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(t8.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(rn.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(ra.configure(this.options.strike)),!1!==this.options.text&&i.push(rs.configure(this.options.text)),!1!==this.options.underline&&i.push(rl.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push(r3.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},57650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},57792:e=>{e.exports={assertSigningAlgValuesSupport:function(e,t,r){if(!t[`${e}_endpoint`])return;let n=`${e}_endpoint_auth_method`,i=`${e}_endpoint_auth_signing_alg`,o=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[n]&&r[n].endsWith("_jwt")&&!r[i]&&!t[o])throw TypeError(`${o} must be configured on the issuer if ${i} is not defined on a client`)},assertIssuerConfiguration:function(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}}},58840:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59034:(e,t,r)=>{"use strict";r.d(t,{LM:()=>X,OK:()=>Y,VM:()=>S,bL:()=>Z,lr:()=>N});var n=r(12115),i=r(88142),o=r(76842),a=r(3468),s=r(94446),l=r(70222),c=r(66218),u=r(4129),d=r(34212),p=r(92556),f=r(95155);function h(e,t){return n.useReducer((e,r)=>{let n=t[e][r];return null!=n?n:e},e)}var m="ScrollArea",[y,g]=(0,a.A)(m),[v,b]=y(m),w=n.forwardRef((e,t)=>
14{let{__scopeScrollArea:r,type:o="hover",dir:a,scrollHideDelay:l=600,...u}=e,[d,p]=n.useState(null),[h,m]=n.useState(null),[y,g]=n.useState(null),[b,w]=n.useState(null),[_,x]=n.useState(null),[k,S]=n.useState(0),[E,A]=n.useState(0),[C,O]=n.useState(!1),[T,R]=n.useState(!1),j=(0,s.s)(t,e=>p(e)),P=(0,c.jH)(a);return(0,f.jsx)(v,{scope:r,type:o,dir:P,scrollHideDelay:l,scrollArea:d,viewport:h,onViewportChange:m,content:y,onContentChange:g,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:C,onScrollbarXEnabledChange:O,scrollbarY:_,onScrollbarYChange:x,scrollbarYEnabled:T,onScrollbarYEnabledChange:R,onCornerWidthChange:S,onCornerHeightChange:A,children:(0,f.jsx)(i.sG.div,{dir:P,...u,ref:j,style:{position:"relative","--radix-scroll-area-corner-width":k+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});w.displayName=m;var _="ScrollAreaViewport",x=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:a,...l}=e,c=b(_,r),u=n.useRef(null),d=(0,s.s)(t,u,c.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});x.displayName=_;var k="ScrollAreaScrollbar",S=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,o=b(k,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return n.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,f.jsx)(E,{...i,ref:t,forceMount:r}):"scroll"===o.type?(0,f.jsx)(A,{...i,ref:t,forceMount:r}):"auto"===o.type?(0,f.jsx)(C,{...i,ref:t,forceMount:r}):"always"===o.type?(0,f.jsx)(O,{...i,ref:t}):null});S.displayName=k;var E=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,a=b(k,e.__scopeScrollArea),[s,l]=n.useState(!1);return n.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,f.jsx)(o.C,{present:r||s,children:(0,f.jsx)(C,{"data-state":s?"visible":"hidden",...i,ref:t})})}),A=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,a=b(k,e.__scopeScrollArea),s="horizontal"===e.orientation,l=J(()=>u("SCROLL_END"),100),[c,u]=h("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return n.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,a.scrollHideDelay,u]),n.useEffect(()=>{let e=a.viewport,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(u("SCROLL"),l()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[a.viewport,s,u,l]),(0,f.jsx)(o.C,{present:r||"hidden"!==c,children:(0,f.jsx)(O,{"data-state":"hidden"===c?"hidden":"visible",...i,ref:t,onPointerEnter:(0,p.mK)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,p.mK)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),C=n.forwardRef((e,t)=>{let r=b(k,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=n.useState(!1),c="horizontal"===e.orientation,u=J(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(c?e:t)}},10);return G(r.viewport,u),G(r.content,u),(0,f.jsx)(o.C,{present:i||s,children:(0,f.jsx)(O,{"data-state":s?"visible":"hidden",...a,ref:t})})}),O=n.forwardRef((e,t)=>{let{orientation:r="vertical",...i}=e,o=b(k,e.__scopeScrollArea),a=n.useRef(null),s=n.useRef(0),[l,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=B(l.viewport,l.content),d={...i,sizes:l,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return W(e,s.current,l,t)}return"horizontal"===r?(0,f.jsx)(T,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=$(o.viewport.scrollLeft,l,o.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=p(e,o.dir))}}):"vertical"===r?(0,f.jsx)(R,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=$(o.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=p(e))}}):null}),T=n.forwardRef((e,t)=>
vendor: 1,640 bytes, line 14
14{let{sizes:r,onSizesChange:i,...o}=e,a=b(k,e.__scopeScrollArea),[l,c]=n.useState(),u=n.useRef(null),d=(0,s.s)(t,u,a.onScrollbarXChange);return n.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,f.jsx)(M,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),K(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:H(l.paddingLeft),paddingEnd:H(l.paddingRight)}})}})}),R=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=b(k,e.__scopeScrollArea),[l,c]=n.useState(),u=n.useRef(null),d=(0,s.s)(t,u,a.onScrollbarYChange);return n.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,f.jsx)(M,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),K(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:
14a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:H(l.paddingTop),paddingEnd:H(l.paddingBottom)}})}})}),[j,P]=y(k),M=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:a,onThumbChange:c,onThumbPointerUp:u,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:y,onResize:g,...v}=e,w=b(k,r),[_,x]=n.useState(null),S=(0,s.s)(t,e=>x(e)),E=n.useRef(null),A=n.useRef(""),C=w.viewport,O=o.content-o.viewport,T=(0,l.c)(y),R=(0,l.c)(h),P=J(g,10);function M(e){E.current&&m({x:e.clientX-E.current.left,y:e.clientY-E.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==_?void 0:_.contains(t))&&T(e,O)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[C,_,O,T]),n.useEffect(R,[o,R]),G(_,P),G(w.content,P),(0,f.jsx)(j,{scope:r,scrollbar:_,hasThumb:a,onThumbChange:(0,l.c)(c),onThumbPointerUp:(0,l.c)(u),onThumbPositionChange:R,onThumbPointerDown:(0,l.c)(d),children:(0,f.jsx)(i.sG.div,{...v,ref:S,style:{position:"absolute",...v.style},onPointerDown:(0,p.mK)(e.onPointerDown,e=>{let t=0;e.button===t&&(e.target.setPointerCapture(e.pointerId),E.current=_.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),M(e))}),onPointerMove:(0,p.mK)(e.onPointerMove,M),onPointerUp:(0,p.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=A.current,w.viewport&&(w.viewport.style.scrollBehavior=""),E.current=null})})})}),I="ScrollAreaThumb",N=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=P(I,e.__scopeScrollArea);return(0,f.jsx)(o.C,{present:r||i.hasThumb,children:(0,f.jsx)(D,{ref:t,...n})})}),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...a}=e,l=b(I,r),c=P(I,r),{onThumbPositionChange:u}=c,d=(0,s.s)(t,e=>c.onThumbChange(e)),h=n.useRef(void 0),m=J(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),h.current||(h.current=V(e,u),u())};return u(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,u]),(0,f.jsx)(i.sG.div,{"data-state":c.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,p.mK)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;c.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,p.mK)(e.onPointerUp,c.onThumbPointerUp)})});N.displayName=I;var L="ScrollAreaCorner",U=n.forwardRef((e,t)=>{let r=b(L,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,f.jsx)(F,{...e,ref:t}):null});U.displayName=L;var F=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,a=b(L,r),[s,l]=n.useState(0),[c,u]=n.useState(0),d=!!(s&&c);return G(a.scrollbarX,()=>{var e;let t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),u(t)}),G(a.scrollbarY,()=>{var e;let t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)}),d?(0,f.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:c,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function H(e){return e?parseInt(e,10):0}function B(e,t){let r=e/t;return isNaN(r)?0:r}function z(e){let t=B(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function W(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=z(r),o=i/2,a=t||o,s=i-a,l=r.scrollbar.paddingStart+a,c=r.scrollbar.size-r.scrollbar.paddingEnd-s,u=r.content-r.viewport;return q([l,c],"ltr"===n?[0,u]:[-1*u,0])(e)}function $(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=z(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=o-n,l="ltr"===r?[0,a]:[-1*a,0],c=(0,d.q)(e,l);return q([0,a],[0,s])(c)}function q(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function K(e,t){return e>0&&e<t}var V=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;
14(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function J(e,t){let r=(0,l.c)(e),i=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),n.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function G(e,t){let r=(0,l.c)(t);(0,u.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var Z=w,X=x,Y=U},59798:(e,t,r)=>{var n=r(95704);let{inspect:i}=r(634),{RPError:o,OPError:a}=r(95059),s=r(21107);class l{#t;#r;#n;#i;#o;#a;#s;#l;#c;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:n,maxAge:i,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof n[e]||!n[e])throw new o(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}),!Number.isSafeInteger(n.expires_in))throw new o("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in);this.#a=s()+n.expires_in,this.#r=e,this.#i=a,this.#l=i,this.#o=t,this.#n=r,this.#c=n,this.#s=1e3*n.interval||5e3}abort(){this.#t=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#t)throw new o("polling aborted");if(this.expired())throw new o("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#s));try{t=await this.#r.grant({...this.#o,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#n,DPoP:this.#i})}catch(t){switch(t instanceof a&&t.error){case"slow_down":this.#s+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#r.decryptIdToken(t),await this.#r.validateIdToken(t,void 0,"token",this.#l)),t}get device_code(){return this.#c.device_code}get user_code(){return this.#c.user_code}get verification_uri(){return this.#c.verification_uri}get verification_uri_complete(){return this.#c.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#a-s(),0])}expired(){return 0===this.expires_in}[i.custom](){return`${this.constructor.name} ${i(this.#c,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=l},60044:(e,t,r)=>{var n=r(18135),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},61174:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=r(94056),o=n(r(4095));function a(e,t=1){if(!e)return;3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=parseInt(e,16),n=r>>16&255,i=r>>8&255,o=255&r;return t=Math.min(Math.max(t,0),1),`rgba(${n}, ${i}, ${o}, ${t})`}function s(e){var t;let{csrfToken:r,providers:n,callbackUrl:s,theme:l,email:c,error:u}=e,d=n.filter(e=>"oauth"===e.type||"email"===e.type||"credentials"===e.type&&!!e.credentials);"undefined"!=typeof document&&l.buttonText&&document.documentElement.style.setProperty("--button-text-color",l.buttonText),"undefined"!=typeof document&&l.brandColor&&document.documentElement.style.setProperty("--brand-color",l.brandColor);let p={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"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.",default:"Unable to sign in."},f=u&&(null!=(t=p[u])?t:p.default),h="https://authjs.dev/img/providers";return(0,i.h)("div",{className:"signin"},l.brandColor&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:`
15        :root {
16          --brand-color: ${l.brandColor}
17        }
18      `}}),l.buttonText&&(0,i.h)("style",{dangerouslySetInnerHTML:{__html:`
19        :root {
20          --button-text-color: ${l.buttonText}
21        }
22      `}}),(0,i.h)("div",{className:"card"},l.logo&&(0,i.h)("img",{src:l.logo,alt:"Logo",className:"logo"}),f&&(0,i.h)("div",{className:"error"},(0,i.h)("p",null,f)),d.map((e,t)=>{let n,l,u,p,f,m;if("oauth"===e.type){var y;({bg:n="",text:l="",logo:u="",bgDark:f=n,textDark:m=l,logoDark:p=""}=null!=(y=e.style)?y:{}),u=u.startsWith("/")?`${h}${u}`:u,(p=p.startsWith("/")?`${h}${p}`:p||u)||(p=u)}return(0,i.h)("div",{key:e.id,className:"provider"},"oauth"===e.type&&(0,i.h)("form",{action:e.signinUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),s&&(0,i.h)("input",{type:"hidden",name:"callbackUrl",value:s}),(0,i.h)("button",{type:"submit",className:"button",style:{"--provider-bg":n,"--provider-dark-bg":f,"--provider-color":l,"--provider-dark-color":m,"--provider-bg-hover":a(n,.8),"--provider-dark-bg-hover":a(f,.8)}},u&&(0,i.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${u.startsWith("/")?h:""}${u}`}),p&&(0,i.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${u.startsWith("/")?h:""}${p}`}),(0,i.h)("span",null,"Sign in with ",e.name))),("email"===e.type||"credentials"===e.type)&&t>
220&&"email"!==d[t-1].type&&"credentials"!==d[t-1].type&&(0,i.h)("hr",null),"email"===e.type&&(0,i.h)("form",{action:e.signinUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,i.h)("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`},"Email"),(0,i.h)("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:c,placeholder:"[email protected]",required:!0}),(0,i.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",e.name)),"credentials"===e.type&&(0,i.h)("form",{action:e.callbackUrl,method:"POST"},(0,i.h)("input",{type:"hidden",name:"csrfToken",value:r}),Object.keys(e.credentials).map(t=>{var r,n,a;return(0,i.h)("div",{key:`input-group-${e.id}`},(0,i.h)("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`},null!=(r=e.credentials[t].label)?r:t),(0,i.h)("input",(0,o.default)({name:t,id:`input-${t}-for-${e.id}-provider`,type:null!=(n=e.credentials[t].type)?n:"text",placeholder:null!=(a=e.credentials[t].placeholder)?a:""},e.credentials[t])))}),(0,i.h)("button",{type:"submit"},"Sign in with ",e.name)),("email"===e.type||"credentials"===e.type)&&t+1<d.length&&(0,i.h)("hr",null))})))}},61379:e=>{e.exports.keystores=new WeakMap},61877:(e,t,r)=>{var n=r(70300),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return r===i?void 0:r}return o.call(t,e)?t[e]:void 0}}
22,62160:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CompactEncrypt:()=>tC,CompactSign:()=>tR,EmbeddedJWK:()=>tF,EncryptJWT:()=>tN,FlattenedEncrypt:()=>to,FlattenedSign:()=>tT,GeneralEncrypt:()=>ts,GeneralSign:()=>tP,SignJWT:()=>tI,UnsecuredJWT:()=>tX,base64url:()=>i,calculateJwkThumbprint:()=>tL,calculateJwkThumbprintUri:()=>tU,compactDecrypt:()=>e8,compactVerify:()=>tp,createLocalJWKSet:()=>tK,createRemoteJWKSet:()=>tZ,cryptoRuntime:()=>t8,decodeJwt:()=>t1,decodeProtectedHeader:()=>t0,errors:()=>n,exportJWK:()=>tr,exportPKCS8:()=>tt,exportSPKI:()=>te,flattenedDecrypt:()=>e6,flattenedVerify:()=>td,generalDecrypt:()=>e9,generalVerify:()=>tf,generateKeyPair:()=>t4,generateSecret:()=>t6,importJWK:()=>eJ,importPKCS8:()=>eV,importSPKI:()=>eq,importX509:()=>eK,jwtDecrypt:()=>tA,jwtVerify:()=>tE});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:()=>E,JOSEError:()=>x,JOSENotSupported:()=>A,JWEDecompressionFailed:()=>O,JWEDecryptionFailed:()=>C,JWEInvalid:()=>T,JWKInvalid:()=>P,JWKSInvalid:()=>M,JWKSMultipleMatchingKeys:()=>N,JWKSNoMatchingKey:()=>I,JWKSTimeout:()=>D,JWSInvalid:()=>R,JWSSignatureVerificationFailed:()=>L,JWTClaimValidationFailed:()=>k,JWTExpired:()=>S,JWTInvalid:()=>j});var i={};r.r(i),r.d(i,{decode:()=>tQ,encode:()=>tY});let o=crypto,a=e=>e instanceof CryptoKey,s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await o.subtle.digest(r,t))},l=new TextEncoder,c=new TextDecoder,u=0x100000000;function d(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;return e.forEach(e=>{t.set(e,r),r+=e.length}),t}function p(e,t){return d(l.encode(e),new Uint8Array([0]),t)}function f(e,t,r){if(t<0||t>=u)throw RangeError(`value must be >= 0 and <= ${u-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function h(e){let t=Math.floor(e/u),r=e%u,n=new Uint8Array(8);return f(n,t,0),f(n,r,4),n}function m(e){let t=new Uint8Array(4);return f(t,e),t}function y(e){return d(m(e.length),e)}async function g(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(m(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await s("sha256",n),32*t)}return i.slice(0,t>>3)}let v=e=>{let t=e;"string"==typeof t&&(t=l.encode(t));let r=32768,n=[];for(let e=0;e<t.length;e+=r)n.push(String.fromCharCode.apply(null,t.subarray(e,e+r)));return btoa(n.join(""))},b=e=>v(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),w=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},_=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return w(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};class x extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null==(t=Error.captureStackTrace)||t.call(Error,this,this.constructor)}}class k extends x{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class S extends x{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class E extends x{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class A extends x{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class C extends x{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class O extends x{constructor(){super(...arguments),this.code="ERR_JWE_DECOMPRESSION_FAILED",this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}class T extends x{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class R extends x{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class j extends x{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class P extends x{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class M extends x{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class I extends x{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class N extends x{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator;class D extends x{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class L extends x{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}let U=o.getRandomValues.bind(o);
22function F(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new A(`Unsupported JWE Algorithm: ${e}`)}}let H=e=>U(new Uint8Array(F(e)>>3)),B=(e,t)=>{if(t.length<<3!==F(e))throw new T("Invalid Initialization Vector length")},z=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new T(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},W=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};function $(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function q(e,t){return e.name===t}function K(e){return parseInt(e.name.slice(4),10)}function V(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function J(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function G(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!q(e.algorithm,"HMAC"))throw $("HMAC");let r=parseInt(t.slice(2),10);if(K(e.algorithm.hash)!==r)throw $(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw $("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(K(e.algorithm.hash)!==r)throw $(`SHA-${r}`,"algorithm.hash");break}
22case"PS256":case"PS384":case"PS512":{if(!q(e.algorithm,"RSA-PSS"))throw $("RSA-PSS");let r=parseInt(t.slice(2),10);if(K(e.algorithm.hash)!==r)throw $(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw $("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!q(e.algorithm,"ECDSA"))throw $("ECDSA");let r=V(t);if(e.algorithm.namedCurve!==r)throw $(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}J(e,r)}function Z(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!q(e.algorithm,"AES-GCM"))throw $("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw $(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!q(e.algorithm,"AES-KW"))throw $("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw $(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw $("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!q(e.algorithm,"PBKDF2"))throw $("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!q(e.algorithm,"RSA-OAEP"))throw $("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(K(e.algorithm.hash)!==r)throw $(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}J(e,r)}function X(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let Y=(e,...t)=>X("Key must be ",e,...t);function Q(e,t,...r){return X(`Key for the ${e} algorithm must be `,t,...r)}let ee=e=>a(e),et=["CryptoKey"];async function er(e,t,r,n,i,a){let s,l;if(!(t instanceof Uint8Array))throw TypeError(Y(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),u=await o.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),p=await o.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),f=d(a,n,r,h(a.length<<3)),m=new Uint8Array((await o.subtle.sign("HMAC",p,f)).slice(0,c>>3));try{s=W(i,m)}catch(e){}if(!s)throw new C;try{l=new Uint8Array(await o.subtle.decrypt({iv:n,name:"AES-CBC"},u,r))}catch(e){}if(!l)throw new C;return l}async function en(e,t,r,n,i,a){let s;t instanceof Uint8Array?s=await o.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Z(t,e,"decrypt"),s=t);try{return new Uint8Array(await o.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,d(r,i)))}catch(e){throw new C}}let ei=async(e,t,r,n,i,o)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(Y(t,...et,"Uint8Array"));switch(B(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&z(t,parseInt(e.slice(-3),10)),er(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&z(t,parseInt(e.slice(1,4),10)),en(e,t,r,n,i,o);default:throw new A("Unsupported JWE Content Encryption Algorithm")}},eo=async()=>{throw new A('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},ea=async()=>{throw new A('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')},es=(...e)=>{let t,r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function el(e){return"object"==typeof e&&null!==e}function ec(e){if(!el(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}
22let eu=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ed(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ep(e,t,r){if(a(e))return Z(e,t,r),e;if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(Y(e,...et,"Uint8Array"))}let ef=async(e,t,r)=>{let n=await ep(t,e,"wrapKey");ed(n,e);let i=await o.subtle.importKey("raw",r,...eu);return new Uint8Array(await o.subtle.wrapKey("raw",i,n,"AES-KW"))},eh=async(e,t,r)=>{let n=await ep(t,e,"unwrapKey");ed(n,e);let i=await o.subtle.unwrapKey("raw",r,n,"AES-KW",...eu);return new Uint8Array(await o.subtle.exportKey("raw",i))};async function em(e,t,r,n,i=new Uint8Array(0),s=new Uint8Array(0)){let c;if(!a(e))throw TypeError(Y(e,...et));if(Z(e,"ECDH"),!a(t))throw TypeError(Y(t,...et));Z(t,"ECDH","deriveBits");let u=d(y(l.encode(r)),y(i),y(s),m(n));return c="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,g(new Uint8Array(await o.subtle.deriveBits({name:e.algorithm.name,public:e},t,c)),n,u)}async function ey(e){if(!a(e))throw TypeError(Y(e,...et));return o.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function eg(e){if(!a(e))throw TypeError(Y(e,...et));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function ev(e){if(!(e instanceof Uint8Array)||e.length<8)throw new T("PBES2 Salt Input must be 8 or more octets")}function eb(e,t){if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return Z(e,t,"deriveBits","deriveKey"),e;throw TypeError(Y(e,...et,"Uint8Array"))}async function ew(e,t,r,n){ev(e);let i=p(t,e),a=parseInt(t.slice(13,16),10),s={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},l={length:a,name:"AES-KW"},c=await eb(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await o.subtle.deriveBits(s,c,a));if(c.usages.includes("deriveKey"))return o.subtle.deriveKey(s,c,l,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let e_=async(e,t,r,n=2048,i=U(new Uint8Array(16)))=>{let o=await ew(i,e,n,t);return{encryptedKey:await ef(e.slice(-6),o,r),p2c:n,p2s:b(i)}},ex=async(e,t,r,n,i)=>{let o=await ew(i,e,n,t);return eh(e.slice(-6),o,r)};function ek(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new A(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let eS=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},eE=async(e,t,r)=>{if(!a(t))throw TypeError(Y(t,...et));if(Z(t,e,"encrypt","wrapKey"),eS(e,t),t.usages.includes("encrypt"))return new Uint8Array(await o.subtle.encrypt(ek(e),t,r));if(t.usages.includes("wrapKey")){let n=await o.subtle.importKey("raw",r,...eu);return new Uint8Array(await o.subtle.wrapKey("raw",n,t,ek(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eA=async(e,t,r)=>{if(!a(t))throw TypeError(Y(t,...et));if(Z(t,e,"decrypt","unwrapKey"),eS(e,t),t.usages.includes("decrypt"))return new Uint8Array(await o.subtle.decrypt(ek(e),t,r));if(t.usages.includes("unwrapKey")){let n=await o.subtle.unwrapKey("raw",r,t,ek(e),...eu);return new Uint8Array(await o.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eC(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new A(`Unsupported JWE Algorithm: ${e}`)}}let eO=e=>U(new Uint8Array(eC(e)>>3)),eT=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----
23${r}
24-----END ${t}-----`},eR=async(e,t,r)=>{if(!a(r))throw TypeError(Y(r,...et));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eT(v(new Uint8Array(await o.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},ej=e=>eR("public","spki",e),eP=e=>eR("private","pkcs8",e),eM=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eM(e,t,n+1))},eI=e=>{switch(!0){case eM(e,[42,134,72,206,61,3,1,7]):return"P-256";case eM(e,[43,129,4,0,34]):return"P-384";case eM(e,[43,129,4,0,35]):return"P-521";case eM(e,[43,101,110]):return"X25519";case eM(e,[43,101,111]):return"X448";case eM(e,[43,101,112]):return"Ed25519";case eM(e,[43,101,113]):return"Ed448";default:throw new A("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eN=async(e,t,r,n,i)=>{var a;let s,l,c=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),u="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},l=u?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},l=u?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},l=u?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},l=u?["verify"]:["sign"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},l=u?["verify"]:["sign"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},l=u?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eI(c);s=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},l=u?[]:["deriveBits"];break}
24case"EdDSA":s={name:eI(c)},l=u?["verify"]:["sign"];break;default:throw new A('Invalid or unsupported "alg" (Algorithm) value')}return o.subtle.importKey(t,c,s,null!=(a=null==i?void 0:i.extractable)&&a,l)},eD=(e,t,r)=>eN(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),eL=(e,t,r)=>eN(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eU(e){let t=[],r=0;for(;r<e.length;){let n=eF(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eF(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}function eH(e){let t=eU(eU(eF(e).contents)[0].contents);return v(t[160===t[0].raw[0]?6:5].raw)}function eB(e){return eT(eH(w(e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}let ez=(e,t,r)=>{let n;try{n=eB(e)}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return eL(n,t,r)};function eW(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new A(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new A('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}let e$=async e=>{var t,r;if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:n,keyUsages:i}=eW(e),a=[n,null!=(t=e.ext)&&t,null!=(r=e.key_ops)?r:i];if("PBKDF2"===n.name)return o.subtle.importKey("raw",_(e.k),...a);let s={...e};return delete s.alg,delete s.use,o.subtle.importKey("jwk",s,...a)};async function eq(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eL(e,t,r)}async function eK(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return ez(e,t,r)}async function eV(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eD(e,t,r)}async function eJ(e,t,r){var n;if(!ec(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');
24if(null!=r||(r=!0!==e.ext),r)return e$({...e,alg:t,ext:null!=(n=e.ext)&&n});return _(e.k);case"RSA":if(void 0!==e.oth)throw new A('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return e$({...e,alg:t});default:throw new A('Unsupported "kty" (Key Type) Parameter value')}}let eG=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ee(t))throw TypeError(Q(e,t,...et,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${et.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},eZ=(e,t,r)=>{if(!ee(t))throw TypeError(Q(e,t,...et));if("secret"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},eX=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?eG(e,t):eZ(e,t,r)};async function eY(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(Y(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await o.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),l=await o.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await o.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),u=d(i,n,c,h(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await o.subtle.sign("HMAC",l,u)).slice(0,a>>3))}}async function eQ(e,t,r,n,i){let a;r instanceof Uint8Array?a=await o.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Z(r,e,"encrypt"),a=r);let s=new Uint8Array(await o.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},a,t)),l=s.slice(-16);return{ciphertext:s.slice(0,-16),tag:l}}let e0=async(e,t,r,n,i)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(Y(r,...et,"Uint8Array"));switch(B(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&z(r,parseInt(e.slice(-3),10)),eY(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&z(r,parseInt(e.slice(1,4),10)),eQ(e,t,r,n,i);default:throw new A("Unsupported JWE Content Encryption Algorithm")}};async function e1(e,t,r,n){let i=e.slice(0,7);n||(n=H(i));let{ciphertext:o,tag:a}=await e0(i,r,t,n,new Uint8Array(0));return{encryptedKey:o,iv:b(n),tag:b(a)}}async function e2(e,t,r,n,i){return ei(e.slice(0,7),t,r,n,i,new Uint8Array(0))}let e3=async function(e,t,r,n,i){switch(eX(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ec(n.epk))throw new T('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!eg(t))throw new A("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eJ(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new T('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=_(n.apu)}catch(e){throw new T("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new T('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=_(n.apv)}catch(e){throw new T("Failed to base64url decode the apv")}}let s=await em(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eC(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new T("JWE Encrypted Key missing");return eh(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new T("JWE Encrypted Key missing");return eA(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new T("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new T('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=(null==i?void 0:i.maxPBES2Count)||1e4;if(n.p2c>a)throw new T('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new T('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=_(n.p2s)}catch(e){throw new T("Failed to base64url decode the p2s")}return ex(e,t,r,n.p2c,o)}
24case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new T("JWE Encrypted Key missing");return eh(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new T("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new T('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new T('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=_(n.iv)}catch(e){throw new T("Failed to base64url decode the iv")}try{o=_(n.tag)}catch(e){throw new T("Failed to base64url decode the tag")}return e2(e,t,r,i,o)}default:throw new A('Invalid or unsupported "alg" (JWE Algorithm) header value')}},e5=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new A(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},e4=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function e6(e,t,r){var n;let i,o,a,s,u,p,f;if(!ec(e))throw new T("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new T("JOSE Header missing");if("string"!=typeof e.iv)throw new T("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new T("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new T("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new T("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new T("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new T("JWE AAD incorrect type");if(void 0!==e.header&&!ec(e.header))throw new T("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ec(e.unprotected))throw new T("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=_(e.protected);i=JSON.parse(c.decode(t))}catch(e){throw new T("JWE Protected Header is invalid")}if(!es(i,e.header,e.unprotected))throw new T("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let h={...i,...e.header,...e.unprotected};if(e5(T,new Map,null==r?void 0:r.crit,i,h),void 0!==h.zip){if(!i||!i.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==h.zip)throw new A('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:m,enc:y}=h;if("string"!=typeof m||!m)throw new T("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof y||!y)throw new T("missing JWE Encryption Algorithm (enc) in JWE Header");let g=r&&e4("keyManagementAlgorithms",r.keyManagementAlgorithms),v=r&&e4("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(g&&!g.has(m))throw new E('"alg" (Algorithm) Header Parameter not allowed');if(v&&!v.has(y))throw new E('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{o=_(e.encrypted_key)}catch(e){throw new T("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(i,e),b=!0);try{a=await e3(m,t,o,h,r)}catch(e){if(e instanceof TypeError||e instanceof T||e instanceof A)throw e;a=eO(y)}try{s=_(e.iv)}catch(e){throw new T("Failed to base64url decode the iv")}try{u=_(e.tag)}catch(e){throw new T("Failed to base64url decode the tag")}let w=l.encode(null!=(n=e.protected)?n:"");p=void 0!==e.aad?d(w,l.encode("."),l.encode(e.aad)):w;try{f=_(e.ciphertext)}catch(e){throw new T("Failed to base64url decode the ciphertext")}let x=await ei(y,a,f,s,u,p);"DEF"===h.zip&&(x=await ((null==r?void 0:r.inflateRaw)||eo)(x));let k={plaintext:x};if(void 0!==e.protected&&(k.protectedHeader=i),void 0!==e.aad)try{k.additionalAuthenticatedData=_(e.aad)}catch(e){throw new T("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(k.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(k.unprotectedHeader=e.header),b)?{...k,key:t}:k}async function e8(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new T("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:l}=e.split(".");if(5!==l)throw new T("Invalid Compact JWE");
24let u=await e6({ciphertext:a,iv:o||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:i||void 0},t,r),d={plaintext:u.plaintext,protectedHeader:u.protectedHeader};return"function"==typeof t?{...d,key:u.key}:d}async function e9(e,t,r){if(!ec(e))throw new T("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ec))throw new T("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new T("JWE Recipients has no members");for(let n of e.recipients)try{return await e6({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new C}let e7=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:b(e)};if(!a(e))throw TypeError(Y(e,...et,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...s}=await o.subtle.exportKey("jwk",e);return s};async function te(e){return ej(e)}async function tt(e){return eP(e)}async function tr(e){return e7(e)}let tn=async function(e,t,r,n,i={}){let o,a,s;switch(eX(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!eg(r))throw new A("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:l,apv:c}=i,{epk:u}=i;u||(u=(await ey(r)).privateKey);let{x:d,y:p,crv:f,kty:h}=await tr(u),m=await em(r,u,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eC(t):parseInt(e.slice(-5,-2),10),l,c);if(a={epk:{x:d,crv:f,kty:h}},"EC"===h&&(a.epk.y=p),l&&(a.apu=b(l)),c&&(a.apv=b(c)),"ECDH-ES"===e){s=m;break}s=n||eO(t);let y=e.slice(-6);o=await ef(y,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eO(t),o=await eE(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eO(t);let{p2c:l,p2s:c}=i;({encryptedKey:o,...a}=await e_(e,r,s,l,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||eO(t),o=await ef(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eO(t);let{iv:l}=i;({encryptedKey:o,...a}=await e1(e,r,s,l));break}default:throw new A('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}},ti=Symbol();class to{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a,s,u;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new T("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!es(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let p={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(e5(T,new Map,null==t?void 0:t.crit,this._protectedHeader,p),void 0!==p.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==p.zip)throw new A('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:f,enc:h}=p;if("string"!=typeof f||!f)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof h||!h)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===f){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===f&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:n,encryptedKey:r,parameters:i}=await tn(f,h,e,this._cek,this._keyManagementParameters)),i&&(t&&ti in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=H(h)),o=this._protectedHeader?l.encode(b(JSON.stringify(this._protectedHeader))):l.encode(""),this._aad?(a=b(this._aad),i=d(o,l.encode("."),l.encode(a))):i=o,"DEF"===p.zip){let e=await ((null==t?void 0:t.deflateRaw)||ea)(this._plaintext);({ciphertext:s,tag:u}
24=await e0(h,e,n,this._iv,i))}else({ciphertext:s,tag:u}=await e0(h,this._plaintext,n,this._iv,i));let m={ciphertext:b(s),iv:b(this._iv),tag:b(u)};return r&&(m.encrypted_key=b(r)),a&&(m.aad=a),this._protectedHeader&&(m.protected=c.decode(o)),this._sharedUnprotectedHeader&&(m.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(m.header=this._unprotectedHeader),m}}class ta{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class ts{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new ta(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let i;if(!this._recipients.length)throw new T("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new to(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!es(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new T('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(i){if(i!==r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else i=r.enc;
24if(e5(T,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let o=eO(i),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let l=this._recipients[s],c={};a.recipients.push(c);let u=({...this._protectedHeader,...this._unprotectedHeader,...l.unprotectedHeader}).alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new to(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(o).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(l.unprotectedHeader).setKeyManagementParameters({p2c:u}).encrypt(l.key,{...l.options,...e,[ti]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:d,parameters:p}=await tn((null==(t=l.unprotectedHeader)?void 0:t.alg)||(null==(r=this._protectedHeader)?void 0:r.alg)||(null==(n=this._unprotectedHeader)?void 0:n.alg),i,l.key,o,{p2c:u});c.encrypted_key=b(d),(l.unprotectedHeader||p)&&(c.header={...l.unprotectedHeader,...p})}return a}}function tl(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new A(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function tc(e,t,r){if(a(t))return G(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(Y(t,...et));return o.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(Y(t,...et,"Uint8Array"))}let tu=async(e,t,r,n)=>{let i=await tc(e,t,"verify");eS(e,i);let a=tl(e,i.algorithm);try{return await o.subtle.verify(a,i,r,n)}catch(e){return!1}};async function td(e,t,r){var n;let i,o;if(!ec(e))throw new R("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new R('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new R("JWS Protected Header incorrect type");if(void 0===e.payload)throw new R("JWS Payload missing");if("string"!=typeof e.signature)throw new R("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ec(e.header))throw new R("JWS Unprotected Header incorrect type");let a={};if(e.protected)try{let t=_(e.protected);a=JSON.parse(c.decode(t))}catch(e){throw new R("JWS Protected Header is invalid")}if(!es(a,e.header))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let s={...a,...e.header},u=e5(R,new Map([["b64",!0]]),null==r?void 0:r.crit,a,s),p=!0;if(u.has("b64")&&"boolean"!=typeof(p=a.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:f}=s;if("string"!=typeof f||!f)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');let h=r&&e4("algorithms",r.algorithms);if(h&&!h.has(f))throw new E('"alg" (Algorithm) Header Parameter not allowed');if(p){if("string"!=typeof e.payload)throw new R("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new R("JWS Payload must be a string or an Uint8Array instance");let m=!1;"function"==typeof t&&(t=await t(a,e),m=!0),eX(f,t,"verify");let y=d(l.encode(null!=(n=e.protected)?n:""),l.encode("."),"string"==typeof e.payload?l.encode(e.payload):e.payload);try{i=_(e.signature)}catch(e){throw new R("Failed to base64url decode the signature")}if(!await tu(f,t,i,y))throw new L;if(p)try{o=_(e.payload)}catch(e){throw new R("Failed to base64url decode the payload")}else o="string"==typeof e.payload?l.encode(e.payload):e.payload;let g={payload:o};return(void 0!==e.protected&&(g.protectedHeader=a),void 0!==e.header&&(g.unprotectedHeader=e.header),m)?{...g,key:t}:g}async function tp(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new R("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new R("Invalid Compact JWS");let s=await td({payload:i,protected:n,signature:o},t,r),l={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...l,key:s.key}:l}
24async function tf(e,t,r){if(!ec(e))throw new R("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ec))throw new R("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await td({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new L}let th=e=>Math.floor(e.getTime()/1e3),tm=60,ty=3600,tg=86400,tv=604800,tb=0x1e187e0,tw=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i,t_=e=>{let t=tw.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(r*tm);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(r*ty);case"day":case"days":case"d":return Math.round(r*tg);case"week":case"weeks":case"w":return Math.round(r*tv);default:return Math.round(r*tb)}},tx=e=>e.toLowerCase().replace(/^application\//,""),tk=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),tS=(e,t,r={})=>{let n,i,{typ:o}=r;if(o&&("string"!=typeof e.typ||tx(e.typ)!==tx(o)))throw new k('unexpected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(c.decode(t))}catch(e){}if(!ec(n))throw new j("JWT Claims Set must be a top-level JSON object");let{requiredClaims:a=[],issuer:s,subject:l,audience:u,maxTokenAge:d}=r;for(let e of(void 0!==d&&a.push("iat"),void 0!==u&&a.push("aud"),void 0!==l&&a.push("sub"),void 0!==s&&a.push("iss"),new Set(a.reverse())))if(!(e in n))throw new k(`missing required "${e}" claim`,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new k('unexpected "iss" claim value',"iss","check_failed");if(l&&n.sub!==l)throw new k('unexpected "sub" claim value',"sub","check_failed");if(u&&!tk(n.aud,"string"==typeof u?[u]:u))throw new k('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=t_(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:p}=r,f=th(p||new Date);if((void 0!==n.iat||d)&&"number"!=typeof n.iat)throw new k('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new k('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>f+i)throw new k('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new k('"exp" claim must be a number',"exp","invalid");if(n.exp<=f-i)throw new S('"exp" claim timestamp check failed',"exp","check_failed")}if(d){let e=f-n.iat;if(e-i>("number"==typeof d?d:t_(d)))throw new S('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-i)throw new k('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tE(e,t,r){var n;let i=await tp(e,t,r);if((null==(n=i.protectedHeader.crit)?void 0:n.includes("b64"))&&!1===i.protectedHeader.b64)throw new j("JWTs MUST NOT use unencoded payload");let o={payload:tS(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return"function"==typeof t?{...o,key:i.key}:o}async function tA(e,t,r){let n=await e8(e,t,r),i=tS(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new k('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new k('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new k('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tC{constructor(e){this._flattened=new to(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}
24async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let tO=async(e,t,r)=>{let n=await tc(e,t,"sign");return eS(e,n),new Uint8Array(await o.subtle.sign(tl(e,n.algorithm),n,r))};class tT{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new R("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!es(this._protectedHeader,this._unprotectedHeader))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=e5(R,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
24if("string"!=typeof a||!a)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');eX(a,e,"sign");let s=this._payload;o&&(s=l.encode(b(s)));let u=d(r=this._protectedHeader?l.encode(b(JSON.stringify(this._protectedHeader))):l.encode(""),l.encode("."),s),p={signature:b(await tO(a,e,u)),payload:""};return o&&(p.payload=c.decode(s)),this._unprotectedHeader&&(p.header=this._unprotectedHeader),this._protectedHeader&&(p.protected=c.decode(r)),p}}class tR{constructor(e){this._flattened=new tT(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tj{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tP{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tj(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new R("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tT(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new R("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(o)}return e}}class tM{constructor(e){if(!ec(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:th(new Date)+t_(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:th(new Date)+t_(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:th(new Date)}:this._payload={...this._payload,iat:e},this}}class tI extends tM{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tR(l.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null==(r=this._protectedHeader)?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new j("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tN extends tM{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new tC(l.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tD=(e,t)=>{if("string"!=typeof e||!e)throw new P(`${t} missing or invalid`)};async function tL(e,t){let r;if(!ec(e))throw TypeError("JWK must be an object");
24if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tD(e.crv,'"crv" (Curve) Parameter'),tD(e.x,'"x" (X Coordinate) Parameter'),tD(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tD(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tD(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tD(e.e,'"e" (Exponent) Parameter'),tD(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tD(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new A('"kty" (Key Type) Parameter missing or unsupported')}let n=l.encode(JSON.stringify(r));return b(await s(t,n))}async function tU(e,t){null!=t||(t="sha256");let r=await tL(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tF(e,t){let r={...e,...null==t?void 0:t.header};if(!ec(r.jwk))throw new R('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eJ({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new R('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tH(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new A('Unsupported "alg" value for a JSON Web Key Set')}}function tB(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tz)}function tz(e){return ec(e)}function tW(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class t${constructor(e){if(this._cached=new WeakMap,!tB(e))throw new M("JSON Web Key Set malformed");this._jwks=tW(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...null==t?void 0:t.header},i=tH(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new I;if(1!==s){let e=new N,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await tq(t,e,r)}catch(e){continue}},e}return tq(this._cached,a,r)}}async function tq(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await eJ({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new M("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function tK(e){let t=new t$(e);return async function(e,r){return t.getKey(e,r)}}let tV=async(e,t,r)=>{let n,i,o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new D;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new x("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new x("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function tJ(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}class tG extends t${constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof I&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}
24async reload(){this._pendingFetch&&tJ()&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=tV(this._url,this._timeoutDuration,this._options).then(e=>{if(!tB(e))throw new M("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tZ(e,t){let r=new tG(e,t);return async function(e,t){return r.getKey(e,t)}}class tX extends tM{encode(){let e=b(JSON.stringify({alg:"none"})),t=b(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new j("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new j("Invalid Unsecured JWT");try{if(r=JSON.parse(c.decode(_(n))),"none"!==r.alg)throw Error()}catch(e){throw new j("Invalid Unsecured JWT")}return{payload:tS(r,_(i),t),header:r}}}let tY=b,tQ=_;function t0(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e)if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header");try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(c.decode(tQ(t)));if(!ec(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function t1(e){let t,r;if("string"!=typeof e)throw new j("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new j("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new j("Invalid JWT");if(!n)throw new j("JWTs must contain a payload");try{t=tQ(n)}catch(e){throw new j("Failed to base64url decode the payload")}try{r=JSON.parse(c.decode(t))}catch(e){throw new j("Failed to parse the decoded payload as JSON")}if(!ec(r))throw new j("Invalid JWT Claims Set");return r}async function t2(e,t){var r;let n,i,a;switch(e){case"HS256":case"HS384":case"HS512":n=parseInt(e.slice(-3),10),i={name:"HMAC",hash:`SHA-${n}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return U(new Uint8Array((n=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":i={name:"AES-KW",length:n=parseInt(e.slice(1,4),10)},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":i={name:"AES-GCM",length:n=parseInt(e.slice(1,4),10)},a=["encrypt","decrypt"];break;default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(i,null!=(r=null==t?void 0:t.extractable)&&r,a)}function t3(e){var t;let r=null!=(t=null==e?void 0:e.modulusLength)?t:2048;if("number"!=typeof r||r<2048)throw new A("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function t5(e,t){var r,n,i;let a,s;switch(e){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t3(t)},s=["sign","verify"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t3(t)},s=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t3(t)},s=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign","verify"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign","verify"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign","verify"];break;case"EdDSA":s=["sign","verify"];let l=null!=(r=null==t?void 0:t.crv)?r:"Ed25519";
24switch(l){case"Ed25519":case"Ed448":a={name:l};break;default:throw new A("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{s=["deriveKey","deriveBits"];let e=null!=(n=null==t?void 0:t.crv)?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":a={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":a={name:e};break;default:throw new A("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new A('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(a,null!=(i=null==t?void 0:t.extractable)&&i,s)}async function t4(e,t){return t5(e,t)}async function t6(e,t){return t2(e,t)}let t8="WebCryptoAPI"},62463:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>S,N0:()=>J,Um:()=>X,Wg:()=>E,X9:()=>m,Ys:()=>_,dL:()=>ey,jP:()=>j,n9:()=>q,oM:()=>M,zy:()=>W});var n=r(92322);let i=65535,o=65536;function a(e,t){return e+t*o}function s(e){return e&i}function l(e){return(e-(e&i))/o}let c=1,u=2,d=4,p=8;class f{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&p)>0}get deletedBefore(){return(this.delInfo&(c|d))>0}get deletedAfter(){return(this.delInfo&(u|d))>0}get deletedAcross(){return(this.delInfo&d)>0}}class h{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&h.empty)return h.empty}recover(e){let t=0,r=s(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+l(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;let h=this.ranges[s+i],m=this.ranges[s+o],y=l+h;if(e<=y){let i=h?e==l?-1:e==y?1:t:t,o=l+n+(i<0?0:m);if(r)return o;let g=e==(t<0?l:y)?null:a(s/3,e-l),v=e==l?u:e==y?c:d;return(t<0?e!=l:e!=y)&&(v|=p),new f(o,v,g)}n+=m-h}return r?e+n:new f(e+n,0,null)}touches(e,t){let r=0,n=s(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?r:0);if(a>e)break;let s=this.ranges[t+i];if(e<=a+s&&t==3*n)return!0;r+=this.ranges[t+o]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let o=this.ranges[n],a=o-(this.inverted?i:0),s=o+(this.inverted?0:i),l=this.ranges[n+t],c=this.ranges[n+r];e(a,a+l,s,s+c),i+=c-l}}invert(){return new h(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?h.empty:new h(e<0?[0,-e,0]:[0,0,e])}}h.empty=new h([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new f(e,n,null)}}let y=Object.create(null);class g{getMap(){return h.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=y[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in y)throw RangeError("Duplicate use of step JSON ID "+e);return y[e]=t,t.prototype.jsonID=e,t}}class v{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new v(e,null)}static fail(e){return new v(null,e)}
vendor: 25,986 bytes, line 24
24static fromReplace(e,t,r,i){try{return v.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return v.fail(e.message);throw e}}}function b(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let o=e.child(n);o.content.size&&(o=o.copy(b(o.content,t,o))),o.isInline&&(o=t(o,r,n)),i.push(o)}return n.FK.fromArray(i)}class w extends g{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new n.Ji(b(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,o)}invert(){return new _(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",w);class _ extends g{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(b(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,r)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new _(t.pos,r.pos,this.mark)}merge(e){return e instanceof _&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new _(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new _(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("removeMark",_);class x extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return v.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return v.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new k(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}g.jsonID("addNodeMark",x);class k extends g{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return v.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return v.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new k(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new k(t.pos,e.markFromJSON(t.mark))}}g.jsonID("removeNodeMark",k);class S extends g{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&A(e,this.from,this.to)?v.fail("Structure replace would overwrite content"):v.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new h([this.from,this.to-this.from,this.slice.size])}invert(e){return new S(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&S.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new S(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof S)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new S(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new S(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new S(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}S.MAP_BIAS=1,g.jsonID("replace",S);class E extends g{constructor(e,t,r,n,i,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=o,this.structure=a}apply(e){if(this.structure&&(A(e,this.from,this.gapFrom)||A(e,this.gapTo,this.to)))return v.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return v.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?v.fromReplace(e,this.from,this.to,r):v.fail("Content does not fit in gap")}getMap(){return new h([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new E(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new E(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new E(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function A(e,t,r){let n=e.resolve(t),i=r-t,o=n.depth;for(;i>0&&o>0&&n.indexAfter(o)==n.node(o).childCount;)o--,i--;if(i>0){let e=n.node(o).maybeChild(n.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function C(e,t,r,n){let i,o,a=[],s=[];e.doc.nodesBetween(t,r,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,r),p=n.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=d:a.push(i=new _(c,d,u[e])));o&&o.to==c?o.to=d:s.push(o=new w(c,d,n))}}),a.forEach(t=>e.step(t)),s.forEach(t=>e.step(t))}function O(e,t,r,i){let o=[],a=0;e.doc.nodesBetween(t,r,(e,s)=>{if(!e.isInline)return;a++;let l=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(l||(l=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length){let n=Math.min(s+e.nodeSize,r);for(let e=0;e<l.length;e++){let r=l[e],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==a-1&&r.eq(o[e].style)&&(i=t)}i?(i.to=n,i.step=a):o.push({style:r,from:Math.max(s,t),to:n,step:a})}}}),o.forEach(t=>e.step(new _(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,o=!0){let a=e.doc.nodeAt(t),s=[],l=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),u=l+c.nodeSize,d=i.matchType(c.type);if(d){i=d;for(let t=0;t<c.marks.length;t++)r.allowsMarkType(c.marks[t].type)||e.step(new _(l,u,c.marks[t]));if(o&&c.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(c.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(c.marks))),0,0)),s.push(new S(l+e.index,l+e.index+e[0].length,i))}}else s.push(new S(l,u,n.Ji.empty));l=u}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(l,l,new n.Ji(t,0,0))}for(let t=s.length-1;t>=0;t--)e.step(s[t])}function R(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function j(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let o=e.$from.node(r),a=e.$from.index(r)+n,s=e.$to.indexAfter(r)-i;if(r<e.depth&&o.canReplace(a,s,t))return r;if(0==r||o.type.spec.isolating||!R(o,a,s))break;a&&(n=1),s<o.childCount&&(i=1)}return null}function P(e,t,r){let{$from:i,$to:o,depth:a}=t,s=i.before(a+1),l=o.after(a+1),c=s,u=l,d=n.FK.empty,p=0;for(let e=a,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,d=n.FK.from(i.node(e).copy(d)),p++):c--;let f=n.FK.empty,h=0;for(let e=a,t=!1;e>r;e--)t||o.after(e+1)<o.end(e)?(t=!0,f=n.FK.from(o.node(e).copy(f)),h++):u++;e.step(new E(c,u,s,l,new n.Ji(d.append(f),p,h),d.size-p,!0))}function M(e,t,r=null,n=e){let i=N(e,t),o=i&&D(n,t);return o?i.map(I).concat({type:t,attrs:r}).concat(o.map(I)):null}function I(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.contentMatchAt(n).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return r.canReplaceWith(n,i,a)?o:null}function D(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.child(n),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=n;s&&e<i;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?a:null}function L(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let o=t.start,a=t.end;e.step(new E(o,a,o,a,new n.Ji(i,0,0),r.length,!0))}function U(e,t,r,i,o){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let s="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(i,s)&&B(e.doc,e.mapping.slice(a).map(r),i)){let o=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&H(e,t,r,a),T(e,e.mapping.slice(a).map(r,1),i,void 0,null===o);let l=e.mapping.slice(a),c=l.map(r,1),u=l.map(r+t.nodeSize,1);return e.step(new E(c,u,c+1,u-1,new n.Ji(n.FK.from(i.create(s,null,t.marks)),0,0),1,!0)),!0===o&&F(e,t,r,a),!1}})}function F(e,t,r,n){t.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let i=e.mapping.slice(n).map(r+1+o+a.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function H(e,t,r,n){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function B(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function z(e,t,r,i,o){let a=e.doc.nodeAt(t);if(!a)throw RangeError("No node at given position");r||(r=a.type);let s=r.create(i,null,o||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!r.validContent(a.content))throw RangeError("Invalid content for node type "+r.name);e.step(new E(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new n.Ji(n.FK.from(s),0,0),1,!0))}function W(e,t,r=1,n){let i=e.resolve(t),o=i.depth-r,a=n&&n[n.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>o;e--,t--){let r=i.node(e),o=i.index(e);if(r.type.spec.isolating)return!1;let a=r.content.cutByIndex(o,r.childCount),s=n&&n[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[t]||r;if(!r.canReplace(o+1,r.childCount)||!l.type.validContent(a))return!1}let s=i.indexAfter(o),l=n&&n[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function $(e,t,r=1,i){let o=e.doc.resolve(t),a=n.FK.empty,s=n.FK.empty;for(let e=o.depth,t=o.depth-r,l=r-1;e>t;e--,l--){a=n.FK.from(o.node(e).copy(a));let t=i&&i[l];s=n.FK.from(t?t.type.create(t.attrs,s):o.node(e).copy(s))}e.step(new S(t,t,new n.Ji(a.append(s),r,r),!0))}function q(e,t){let r=e.resolve(t),n=r.index();return V(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function K(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),a=o.type==n?e.type.schema.nodes.text:o.type;if(!(r=r.matchType(a))||!e.type.allowsMarks(o.marks))return!1}return r.validEnd}function V(e,t){return!!(e&&t&&!e.isLeaf&&K(e,t))}function J(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,o,a=n.index(e);if(e==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(e+1),a++,o=n.node(e).maybeChild(a)):(i=n.node(e).maybeChild(a-1),o=n.node(e+1)),i&&!i.isTextblock&&V(i,o)&&n.node(e).canReplace(a,a+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:o}=e.doc.type.schema,a=e.doc.resolve(t-r),s=a.node().type;if(o&&s.inlineContent){let e="pre"==s.whitespace,t=!!s.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);H(e,n.node(),n.before(),l)}s.inlineContent&&T(e,t+r-1,s,a.node().contentMatchAt(a.index()),null==i);let c=e.mapping.slice(l),u=c.map(t-r);if(e.step(new S(u,c.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);F(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,o=n.index(t)+ +(r>0),a=n.node(t),s=!1;if(1==e)s=a.canReplace(o,o,i);else{let e=a.contentMatchAt(o).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(o,o,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let o=e.resolve(t),a=e.resolve(r);return Q(o,a,i)?new S(t,r,i):new ee(o,a,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}g.jsonID("replaceAround",E);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&1==o.childCount;)o=o.firstChild.content,a--,s--;let l=new n.Ji(o,a,s);return e>-1?new E(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new S(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,o=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:s}=this.frontier[e],l,c=null;if(1==t&&(o?s.matchType(o.type)||(c=s.fillBefore(n.FK.from(o),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:c};if(2==t&&o&&(l=s.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:l};if(i&&s.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let a=this.unplaced,s=r?r.content:a.content,l=a.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));d=d.matchFragment(i)}let f=s.size+e-(a.content.size-a.openEnd);for(;c<s.childCount;){let e=s.child(c),t=d.matchType(e.type);if(!t)break;(++c>1||0==l||e.content.size)&&(d=t,u.push(ei(e.mark(p.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?f:-1)))}let h=c==s.childCount;h||(f=-1),this.placed=er(this.placed,t,n.FK.from(u)),this.frontier[t].match=d,h&&f<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=h?0==e?n.Ji.empty:new n.Ji(et(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new n.Ji(et(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!eo(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=eo(e,t,n,r,i);if(o){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=eo(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function eo(e,t,r,n,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!r.compatibleContent(o.type))return null;let s=n.fillBefore(o.content,!0,a);return s&&!ea(r,o.content,a)?s:null}function ea(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function es(e){return e.spec.defining||e.spec.definingForContent}function el(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),a=e.doc.resolve(r);if(Q(o,a,i))return e.step(new S(t,r,i));let s=ep(o,a);0==s[s.length-1]&&s.pop();let l=-(o.depth+1);s.unshift(l);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;s.indexOf(e)>-1?l=e:o.before(e)==t&&s.splice(1,0,-e)}let c=s.indexOf(l),u=[],d=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(u.push(r),t==i.openStart)break;e=r.content}for(let e=d-1;e>=0;e--){let t=u[e],r=es(t.type);if(r&&!t.sameMarkup(o.node(Math.abs(l)-1)))d=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let l=(t+d+1)%(i.openStart+1),p=u[l];if(p)for(let t=0;t<s.length;t++){let u=s[(t+c)%s.length],d=!0;u<0&&(d=!1,u=-u);let f=o.node(u-1),h=o.index(u-1);if(f.canReplaceWith(h,h,p.type,p.marks))return e.replace(o.before(u),d?a.after(u):r,new n.Ji(ec(i.content,0,i.openStart,l),l,i.openEnd))}}let p=e.steps.length;for(let n=s.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>p));n--){let e=s[n];e<0||(t=o.before(e),r=a.after(e))}}function ec(e,t,r,i,o){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(ec(n.content,t+1,r,i,n)))}if(t>i){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function eu(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function ed(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let o=n.sharedDepth(r),a=!1;for(let e=n.depth;e>o;e--)n.node(e).type.spec.isolating&&(a=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(a=!0);if(!a){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let o=ep(n,i);for(let t=0;t<o.length;t++){let r=o[t],a=t==o.length-1;if(a&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(a||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let o=1;o<=n.depth&&o<=i.depth;o++)if(t-n.start(o)==n.depth-o&&r>n.end(o)&&i.end(o)-r!=i.depth-o&&n.start(o-1)==i.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),i.index(o-1)))return e.delete(n.before(o),r);e.delete(t,r)}function ep(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ef extends g{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return v.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return v.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return h.empty}invert(e){return new ef(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ef(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ef(t.pos,t.attr,t.value)}}g.jsonID("attr",ef);class eh extends g{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return v.ok(r)}getMap(){return h.empty}invert(e){return new eh(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new eh(t.attr,t.value)}}g.jsonID("docAttr",eh);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class ey{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];
24r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return el(this,e,t,r),this}replaceRangeWith(e,t,r){return eu(this,e,t,r),this}deleteRange(e,t){return ed(this,e,t),this}lift(e,t){return P(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return L(this,e,t),this}setBlockType(e,t=e,r,n=null){return U(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return z(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ef(e,t,r)),this}setDocAttribute(e,t){return this.step(new eh(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new k(e,t));else{let n=r.marks,i,o=[];for(;i=t.isInSet(n);)o.push(new k(e,i)),n=i.removeFromSet(n);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,r){return $(this,e,t,r),this}addMark(e,t,r){return C(this,e,t,r),this}removeMark(e,t,r){return O(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},62521:e=>{var t="/";!function(){"use strict";var r={815:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,i,o){n=n||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,p,f,h,m=e[u].replace(s,"%20"),y=m.indexOf(i);y>=0?(d=m.substr(0,y),p=m.substr(y+1)):(d=m,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),t(a,f)?r(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/";var o={};!function(){var e=o;e.decode=e.parse=i(815),e.encode=e.stringify=i(577)}(),e.exports=o}()},62731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HeadersAdapter:function(){return o},ReadonlyHeadersError:function(){return i}});let n=r(13972);class i extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new i}}class o extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,i){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,i);let o=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);if(void 0!==a)return n.ReflectAdapter.get(t,a,i)},set(t,r,i,o){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,i,o);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,s??r,i,o)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0!==o&&n.ReflectAdapter.has(t,o)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let i=r.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===i);return void 0===o||n.ReflectAdapter.deleteProperty(t,o)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return i.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new o(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];
24return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},63195:()=>{},63413:(e,t,r)=>{"use strict";let n=r(26683),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1;class m{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[i]=e.max||1/0;let t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){let n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){let n=r.next;_(this,e,r,t),r=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[c]&&this[d]&&this[d].length&&this[d].forEach(e=>this[c](e.key,e.value)),this[p]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map(e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[i])return b(this,this[p].get(e)),!1;let a=this[p].get(e).value;return this[c]&&!this[u]&&this[c](e,a.value),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}let f=new w(e,t,s,n,r);return f.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=f.length,this[d].unshift(f),this[p].set(e,this[d].head),v(this),!0)}has(e){return!!this[p].has(e)&&!g(this,this[p].get(e).value)}get(e){return y(this,e,!0)}peek(e){return y(this,e,!1)}pop(){let e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach((e,t)=>y(this,t,!1))}}let y=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(g(e,t)){if(b(e,n),!e[s])return}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},v=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){let r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}};class w{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}let _=(e,t,r,n)=>{let i=r.value;g(e,i)&&(b(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=m},63431:(e,t,r)=>{var n=r(51204),i=r(13132),o=r(61877),a=r(43161),s=r(6745);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},64054:(e,t)=>
24{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},64338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return s}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function s(){return i?i.snapshot():function(e,...t){return e(...t)}}},64815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(94056);function i(e){let{url:t,csrfToken:r,theme:i}=e;return(0,n.h)("div",{className:"signout"},i.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
25        :root {
26          --brand-color: ${i.brandColor}
27        }
28      `}}),i.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
29        :root {
30          --button-text-color: ${i.buttonText}
31        }
32      `}}),(0,n.h)("div",{className:"card"},i.logo&&(0,n.h)("img",{src:i.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Signout"),(0,n.h)("p",null,"Are you sure you want to sign out?"),(0,n.h)("form",{action:`${t}/signout`,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,n.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))}},65240:e=>{var t="/";!function(){"use strict";var r={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=v,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(l(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,i(u)}return e}function d(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?g(i):m(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}w(e,t,o,{once:!0}),"error"!==t&&b(e,i,{once:!0})})}function b(e,t,r){"function"==typeof e.on&&w(e,"error",t,r)}function w(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var c=l.length,u=m(l,c),r=0;r<c;++r)n(u[r],this,t);return!0},a.prototype.addListener=function(e,t){return u(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return u(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,a;if(l(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
32("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():y(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab=t+"/",e.exports=i(864)}()},66093:(e,t,r)=>{"use strict";let n;r.d(t,{Mz:()=>tP,i3:()=>tI,UC:()=>tM,bL:()=>tj,Bk:()=>tm});var i=r(12115);let o=["top","right","bottom","left"],a=Math.min,s=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function p(e,t,r){return s(e,a(t,r))}function f(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e){return y(v(e))}function w(e,t,r){void 0===r&&(r=!1);let n=m(e),i=b(e),o=g(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=T(a)),[a,T(a)]}function _(e){let t=T(e);return[x(e),t,x(t)]}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let k=["left","right"],S=["right","left"],E=["top","bottom"],A=["bottom","top"];function C(e,t,r){switch(e){case"top":case"bottom":if(r)return t?S:k;return t?k:S;case"left":case"right":return t?E:A;default:return[]}}function O(e,t,r,n){let i=m(e),o=C(h(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}function T(e){let t=h(e);return d[t]+e.slice(t.length)}function R(e){return{top:0,right:0,bottom:0,left:0,...e}}function j(e){return"number"!=typeof e?R(e):{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function M(e,t,r){let n,{reference:i,floating:o}=e,a=v(t),s=b(t),l=g(s),c=h(t),u="y"===a,d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(c){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:p};break;case"left":n={x:i.x-o.width,y:p};break;default:n={x:i.x,y:i.y}}switch(m(t)){case"start":n[s]-=f*(r&&u?-1:1);break;case"end":n[s]+=f*(r&&u?-1:1)}return n}async function I(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),m=j(h),y="floating"===d?"reference":"floating",g=s[p?y:d],v=P(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},x=P(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:l}):b);return{top:(v.top-x.top+m.top)/_.y,bottom:(x.bottom-v.bottom+m.bottom)/_.y,left
32:(v.left-x.left+m.left)/_.x,right:(x.right-v.right+m.right)/_.x}}let N=50,D=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:I},l=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=M(c,n,l),p=n,f=0,h={};for(let r=0;r<o.length;r++){let m=o[r];if(!m)continue;let{name:y,fn:g}=m,{x:v,y:b,data:w,reset:_}=await g({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=b?b:d,h[y]={...h[y],...w},_&&f<N&&(f++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:d}=M(c,p,l)),r=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}},L=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=f(e,t)||{};if(null==u)return{};let h=j(d),y={x:r,y:n},v=b(i),w=g(v),_=await s.getDimensions(u),x="y"===v,k=x?"top":"left",S=x?"bottom":"right",E=x?"clientHeight":"clientWidth",A=o.reference[w]+o.reference[v]-y[v]-o.floating[w],C=y[v]-o.reference[v],O=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),T=O?O[E]:0;T&&await (null==s.isElement?void 0:s.isElement(O))||(T=l.floating[E]||o.floating[w]);let R=A/2-C/2,P=T/2-_[w]/2-1,M=a(h[k],P),I=a(h[S],P),N=M,D=T-_[w]-I,L=T/2-_[w]/2+R,U=p(N,L,D),F=!c.arrow&&null!=m(i)&&L!==U&&o.reference[w]/2-(L<N?M:I)-_[w]/2<0,H=F?L<N?L-N:L-D:0;return{[v]:y[v]+H,data:{[v]:U,centerOffset:L-U-H,...F&&{alignmentOffset:H}},reset:F}}}),U=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:s,middlewareData:l,rects:c,initialPlacement:u,platform:d,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:k=!0,...S}=f(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let E=h(s),A=v(u),C=h(u)===u,R=await (null==d.isRTL?void 0:d.isRTL(p.floating)),j=g||(C||!k?[T(u)]:_(u)),P="none"!==x;!g&&P&&j.push(...O(u,k,x,R));let M=[u,...j],I=await d.detectOverflow(t,S),N=[],D=(null==(n=l.flip)?void 0:n.overflows)||[];if(m&&N.push(I[E]),y){let e=w(s,c,R);N.push(I[e[0]],I[e[1]])}if(D=[...D,{placement:s,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=M[e];if(t&&("alignment"!==y||A===v(t)||D.every(e=>v(e.placement)!==A||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let r=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(b){case"bestFit":{let e=null==(a=D.filter(e=>{if(P){let t=v(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=u}if(s!==r)return{reset:{placement:r}}}return{}}}};function F(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function H(e){return o.some(t=>e[t]>=0)}let B=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=f(e,t);switch(i){case"referenceHidden":{let e=F(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:H(e)}}}case"escaped":{let e=F(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:H(e)}}}default:return{}}}}},z=new Set(["left","top"]);async function W(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=h(r),s=m(r),l="y"===v(r),c=z.has(a)?-1:1,u=o&&l?-1:1,d=f(t,e),{mainAxis:p,crossAxis:y,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(y="end"===s?-1*g:g),l?{x:y*u,y:p*c}:{x:p*c,y:y*u}}let $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await W(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},q=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=f(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),m=v(h(i)),g=y(m),b=u[g],w=u[m];if(a){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=b+d[e],n=b-d[t];b=p(r,b,n)}if(s){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",r=w+d[e],n=w-d[t];w=p(r,w,n)}let _=l.fn({...t,[g]:b,[m]:w});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[g]:a,[m]:s}}}}}},K=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=f(e,t),u={x:r,y:n},d=v(i),p=y(d),m=u[p],g=u[d],b=f(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+w.mainAxis,r=o.reference[p]+o.reference[e]-w.mainAxis;m<t?m=t:m>r&&(m=r)}if(c){var _,x;let e="y"===p?"width":"height",t=z.has(h(i)),r=o.reference[d]-o.floating[e]+(t&&(null==(_=a.offset)?void 0:_[d])||0)+(t?0:w.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?w.crossAxis:0);g<r?g=r:g>n&&(g=n)}return{[p]:m,[d]:g}}}},V=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,o,{placement:l,rects:c,platform:u,elements:d}=t,{apply:p=()=>{},...y}
32=f(e,t),g=await u.detectOverflow(t,y),b=h(l),w=m(l),_="y"===v(l),{width:x,height:k}=c.floating;"top"===b||"bottom"===b?(i=b,o=w===(await (null==u.isRTL?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(o=b,i="end"===w?"top":"bottom");let S=k-g.top-g.bottom,E=x-g.left-g.right,A=a(k-g[i],S),C=a(x-g[o],E),O=!t.middlewareData.shift,T=A,R=C;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(R=E),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(T=S),O&&!w){let e=s(g.left,0),t=s(g.right,0),r=s(g.top,0),n=s(g.bottom,0);_?R=x-2*(0!==e||0!==t?e+t:s(g.left,g.right)):T=k-2*(0!==r||0!==n?r+n:s(g.top,g.bottom))}await p({...t,availableWidth:R,availableHeight:T});let j=await u.getDimensions(d.floating);return x!==j.width||k!==j.height?{reset:{rects:!0}}:{}}}};function J(){return"undefined"!=typeof window}function G(e){return Y(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function X(e){var t;return null==(t=(Y(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Y(e){return!!J()&&(e instanceof Node||e instanceof Z(e).Node)}function Q(e){return!!J()&&(e instanceof Element||e instanceof Z(e).Element)}function ee(e){return!!J()&&(e instanceof HTMLElement||e instanceof Z(e).HTMLElement)}function et(e){return!!J()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot)}function er(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=ep(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function en(e){return/^(table|td|th)$/.test(G(e))}function ei(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eo=/transform|translate|scale|rotate|perspective|filter/,ea=/paint|layout|strict|content/,es=e=>!!e&&"none"!==e;function el(e){let t=Q(e)?ep(e):e;return es(t.transform)||es(t.translate)||es(t.scale)||es(t.rotate)||es(t.perspective)||!eu()&&(es(t.backdropFilter)||es(t.filter))||eo.test(t.willChange||"")||ea.test(t.contain||"")}function ec(e){let t=eh(e);for(;ee(t)&&!ed(t);){if(el(t))return t;if(ei(t))break;t=eh(t)}return null}function eu(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function ed(e){return/^(html|body|#document)$/.test(G(e))}function ep(e){return Z(e).getComputedStyle(e)}function ef(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eh(e){if("html"===G(e))return e;let t=e.assignedSlot||e.parentNode||et(e)&&e.host||X(e);return et(t)?t.host:t}function em(e){let t=eh(e);return ed(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&er(t)?t:em(t)}function ey(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=em(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=Z(i);if(!o)return t.concat(i,ey(i,[],r));{let e=eg(a);return t.concat(a,a.visualViewport||[],er(i)?i:[],e&&r?ey(e):[])}}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ev(e){let t=ep(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=ee(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=l(r)!==o||l(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function eb(e){return Q(e)?e:e.contextElement}function ew(e){let t=eb(e);if(!ee(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ev(t),a=(o?l(r.width):r.width)/n,s=(o?l(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let e_=u(0);function ex(e){let t=Z(e);return eu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e_}function ek(e,t,r){return void 0===t&&(t=!1),!!r&&(!t||r===Z(e))&&t}function eS(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=eb(e),a=u(1);t&&(n?Q(n)&&(a=ew(n)):a=ew(e));let s=ek(o,r,n)?ex(o):u(0),l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(o){let e=Z(o),t=n&&Q(n)?Z(n):n,r=e,i=eg(r);for(;i&&n&&t!==r;){let e=ew(i),t=i.getBoundingClientRect(),n=ep(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.to
32p+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=o,c+=a,i=eg(r=Z(i))}}return P({width:d,height:p,x:l,y:c})}function eE(e,t){let r=ef(e).scrollLeft;return t?t.left+r:eS(X(e)).left+r}function eA(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eE(e,r),y:r.top+t.scrollTop}}function eC(e){let t=X(e),r=ef(e),n=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+eE(e),l=-r.scrollTop;return"rtl"===ep(n).direction&&(a+=s(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:l}}let eO=25;function eT(e,t){let r=Z(e),n=X(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eu();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let c=eE(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=eO&&(o-=a)}else c<=eO&&(o+=c);return{width:o,height:a,x:s,y:l}}function eR(e,t){let r=eS(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=ee(e)?ew(e):u(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}function ej(e,t,r){let n;if("viewport"===t)n=eT(e,r);else if("document"===t)n=eC(X(e));else if(Q(t))n=eR(t,r);else{let r=ex(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return P(n)}function eP(e,t){let r=eh(e);return!(r===t||!Q(r)||ed(r))&&("fixed"===ep(r).position||eP(r,t))}function eM(e,t){let r=t.get(e);if(r)return r;let n=ey(e,[],!1).filter(e=>Q(e)&&"body"!==G(e)),i=null,o="fixed"===ep(e).position,a=o?eh(e):e;for(;Q(a)&&!ed(a);){let t=ep(a),r=el(a);r||"fixed"!==t.position||(i=null),(o?r||i:!(!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||er(a)&&!r&&eP(e,a)))?i=t:n=n.filter(e=>e!==a),a=eh(a)}return t.set(e,n),n}function eI(e,t,r){let n=ee(t),i=X(t),o="fixed"===r,a=eS(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);function c(){l.x=eE(i)}if(n||!n&&!o)if(("body"!==G(t)||er(i))&&(s=ef(t)),n){let e=eS(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&c();o&&!n&&i&&c();let d=!i||n||o?u(0):eA(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function eN(e){return"static"===ep(e).position}function eD(e,t){if(!ee(e)||"fixed"===ep(e).position)return null;if(t)return t(e);let r=e.offsetParent;return X(e)===r&&(r=r.ownerDocument.body),r}function eL(e,t){let r=Z(e);if(ei(e))return r;if(!ee(e)){let t=eh(e);for(;t&&!ed(t);){if(Q(t)&&!eN(t))return t;t=eh(t)}return r}let n=eD(e,t);for(;n&&en(n)&&eN(n);)n=eD(n,t);return n&&ed(n)&&eN(n)&&!el(n)?r:n||ec(e)||r}let eU=async function(e){let t=this.getOffsetParent||eL,r=this.getDimensions,n=await r(e.floating);return{reference:eI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eF={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=X(n),s=!!t&&ei(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),p=ee(n);if((p||!p&&!o)&&(("body"!==G(n)||er(a))&&(l=ef(n)),p)){let e=eS(n);c=ew(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let f=!a||p||o?u(0):eA(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:X,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?ei(t)?[]:eM(t,this._c):[].concat(r),n],l=ej(t,o[0],i),c=l.top,u=l.right,d=l.bottom,p=l.left;for(let e=1;e<o.length;e++){let r=ej(t,o[e],i);c=s(r.top,c),u=a(r.right,u),d=a(r.bottom,d),p=s(r.left,p)}return{width:u-p,height:d-c,x:p,y:c}},getOffsetParent:eL,getElementRects:eU,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ev(e);return{width:t,height:r}},getScale:ew,isElement:Q,isRTL:function(e){return"rtl"===ep(e).direction}};function eH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eB(e,t){let r,n=null,i=X(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}function l(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),o();let p=e.getBoundingClientRect(),{left:f,top:h,width:m,height:y}=p;if(u||t(),!m||!y)return;let g=c(h),v=c(i.clientWidth-(f+m)),b={rootMargin:-g+"px "+-v+"px "+-c(i.clientHeight-(h+y))+"px "+-c(f)+"px",threshold:s(0,a(1,d))||1},w=!0;function _(t){let n=t[0].intersectionRatio;if(n!==d){if(!w)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||eH(p,e.getBoundingClientRect())||l(),w=!1}try{n=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(_,b)}n.observe(e)}return l(!0),o}function ez(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=eb(e),d=o||a?[...u?ey(u):[],...t?ey(t):[]]:[];
32d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let p=u&&l?eB(u,r):null,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?eS(e):null;function y(){let t=eS(e);m&&!eH(m,t)&&r(),m=t,i=requestAnimationFrame(y)}return c&&y(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(i)}}let eW=$,e$=q,eq=U,eK=V,eV=B,eJ=L,eG=K,eZ=(e,t,r)=>{let n=new Map,i={platform:eF,...r},o={...i.platform,_c:n};return D(e,t,{...i,platform:o})};var eX=r(47650),eY=function(){},eQ="undefined"!=typeof document?i.useLayoutEffect:eY;function e0(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!e0(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!e0(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function e1(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e2(e,t){let r=e1(e);return Math.round(t*r)/r}function e3(e){let t=i.useRef(e);return eQ(()=>{t.current=e}),t}function e5(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=i.useState(n);e0(f,n)||h(n);let[m,y]=i.useState(null),[g,v]=i.useState(null),b=i.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=i.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),_=a||m,x=s||g,k=i.useRef(null),S=i.useRef(null),E=i.useRef(d),A=null!=c,C=e3(c),O=e3(o),T=e3(u),R=i.useCallback(()=>{if(!k.current||!S.current)return;let e={placement:t,strategy:r,middleware:f};O.current&&(e.platform=O.current),eZ(k.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};j.current&&!e0(E.current,t)&&(E.current=t,eX.flushSync(()=>{p(t)}))})},[f,t,r,O,T]);eQ(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let j=i.useRef(!1);eQ(()=>(j.current=!0,()=>{j.current=!1}),[]),eQ(()=>{if(_&&(k.current=_),x&&(S.current=x),_&&x){if(C.current)return C.current(_,x,R);R()}},[_,x,R,C,A]);let P=i.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:w}),[b,w]),M=i.useMemo(()=>({reference:_,floating:x}),[_,x]),I=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!M.floating)return e;let t=e2(M.floating,d.x),n=e2(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...e1(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:R,refs:P,elements:M,floatingStyles:I}),[d,R,P,M,I])}let e4=e=>{function t(e){return({}).hasOwnProperty.call(e,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:i}="function"==typeof e?e(r):e;return n&&t(n)?null!=n.current?eJ({element:n.current,padding:i}).fn(r):{}:n?eJ({element:n,padding:i}).fn(r):{}}}},e6=(e,t)=>{let r=eW(e);return{name:r.name,fn:r.fn,options:[e,t]}},e8=(e,t)=>{let r=e$(e);return{name:r.name,fn:r.fn,options:[e,t]}},e9=(e,t)=>({fn:eG(e).fn,options:[e,t]}),e7=(e,t)=>{let r=eq(e);return{name:r.name,fn:r.fn,options:[e,t]}},te=(e,t)=>{let r=eK(e);return{name:r.name,fn:r.fn,options:[e,t]}},tt=(e,t)=>{let r=eV(e);return{name:r.name,fn:r.fn,options:[e,t]}},tr=(e,t)=>{let r=e4(e);return{name:r.name,fn:r.fn,options:[e,t]}};var tn=r(88142),ti=r(95155),to="Arrow",ta=i.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,ti.jsx)(tn.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,ti.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ta.displayName=to;var ts=ta,tl=r(94446),tc=r(3468),tu=r(70222),td=r(4129),tp=r(84288),tf="Popper",[th,tm]=(0,tc.A)(tf),[ty,tg]=th(tf),tv=e=>{let{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,ti.jsx)(ty,{scope:t,anchor:n,onAnchorChange:o,children:r})};tv.displayName=tf;var tb="PopperAnchor",tw=i.forwardRef((e,t)=>
32{let{__scopePopper:r,virtualRef:n,...o}=e,a=tg(tb,r),s=i.useRef(null),l=(0,tl.s)(t,s),c=i.useRef(null);return i.useEffect(()=>{let e=c.current;c.current=(null==n?void 0:n.current)||s.current,e!==c.current&&a.onAnchorChange(c.current)}),n?null:(0,ti.jsx)(tn.sG.div,{...o,ref:l})});tw.displayName=tb;var t_="PopperContent",[tx,tk]=th(t_),tS=i.forwardRef((e,t)=>{var r,n,o,a,s,l,c,u;let{__scopePopper:d,side:p="bottom",sideOffset:f=0,align:h="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:_=!1,updatePositionStrategy:x="optimized",onPlaced:k,...S}=e,E=tg(t_,d),[A,C]=i.useState(null),O=(0,tl.s)(t,e=>C(e)),[T,R]=i.useState(null),j=(0,tp.X)(T),P=null!=(c=null==j?void 0:j.width)?c:0,M=null!=(u=null==j?void 0:j.height)?u:0,I=p+("center"!==h?"-"+h:""),N="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},D=Array.isArray(v)?v:[v],L=D.length>0,U={padding:N,boundary:D.filter(tO),altBoundary:L},{refs:F,floatingStyles:H,placement:B,isPositioned:z,middlewareData:W}=e5({strategy:"fixed",placement:I,whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ez(...t,{animationFrame:"always"===x})},elements:{reference:E.anchor},middleware:[e6({mainAxis:f+M,alignmentAxis:m}),g&&e8({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?e9():void 0,...U}),g&&e7({...U}),te({...U,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:a}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),T&&tr({element:T,padding:y}),tT({arrowWidth:P,arrowHeight:M}),_&&tt({strategy:"referenceHidden",...U})]}),[$,q]=tR(B),K=(0,tu.c)(k);(0,td.N)(()=>{z&&(null==K||K())},[z,K]);let V=null==(r=W.arrow)?void 0:r.x,J=null==(n=W.arrow)?void 0:n.y,G=(null==(o=W.arrow)?void 0:o.centerOffset)!==0,[Z,X]=i.useState();return(0,td.N)(()=>{A&&X(window.getComputedStyle(A).zIndex)},[A]),(0,ti.jsx)("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:z?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[null==(a=W.transformOrigin)?void 0:a.x,null==(s=W.transformOrigin)?void 0:s.y].join(" "),...(null==(l=W.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ti.jsx)(tx,{scope:d,placedSide:$,onArrowChange:R,arrowX:V,arrowY:J,shouldHideArrow:G,children:(0,ti.jsx)(tn.sG.div,{"data-side":$,"data-align":q,...S,ref:O,style:{...S.style,animation:z?void 0:"none"}})})})});tS.displayName=t_;var tE="PopperArrow",tA={top:"bottom",right:"left",bottom:"top",left:"right"},tC=i.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=tk(tE,r),o=tA[i.placedSide];return(0,ti.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ti.jsx)(ts,{...n,ref:t,style:{...n.style,display:"block"}})})});function tO(e){return null!==e}tC.displayName=tE;var tT=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;let{placement:s,rects:l,middlewareData:c}=t,u=(null==(r=c.arrow)?void 0:r.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,h]=tR(s),m={start:"0%",center:"50%",end:"100%"}[h],y=(null!=(o=null==(n=c.arrow)?void 0:n.x)?o:0)+d/2,g=(null!=(a=null==(i=c.arrow)?void 0:i.y)?a:0)+p/2,v="",b="";return"bottom"===f?(v=u?m:"".concat(y,"px"),b="".concat(-p,"px")):"top"===f?(v=u?m:"".concat(y,"px"),b="".concat(l.floating.height+p,"px")):"right"===f?(v="".concat(-p,"px"),b=u?m:"".concat(g,"px")):"left"===f&&(v="".concat(l.floating.width+p,"px"),b=u?m:"".concat(g,"px")),{data:{x:v,y:b}}}});function tR(e){let[t,r="center"]=e.split("-");return[t,r]}var tj=tv,tP=tw,tM=tS,tI=tC},66126:(e,t,r)=>{var n=r(81495),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},66218:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(12115);r(95155);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}}
32,66410:(e,t,r)=>{"use strict";Object.defineProperty(t,"B",{value:!0}),Object.defineProperty(t,"U",{enumerable:!0,get:function(){return f}});let n=r(88314),i=r(5425),o=r(8567),a=r(11332),s=r(90332),l=r(97412),c=r(10939),u=r(33497),d=r(76840),p=r(48302);function f(){let e="cookies",t=o.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t){if(r&&"after"===r.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error("Route ".concat(t.route,' used "cookies" inside "after(...)". 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/canary/app/api-reference/functions/after')),"__NEXT_ERROR_CODE",{value:"E88",enumerable:!1,configurable:!0});if(t.forceStatic)return v(h());if(t.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError("Route ".concat(t.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:"E549",enumerable:!1,configurable:!0});if(r)switch(r.type){case"cache":var i,c;let o=Object.defineProperty(Error("Route ".concat(t.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:"E398",enumerable:!1,configurable:!0});throw Error.captureStackTrace(o,f),null!=(c=(i=t).invalidDynamicUsageError)||(i.invalidDynamicUsageError=o),o;case"unstable-cache":throw Object.defineProperty(Error("Route ".concat(t.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:"E157",enumerable:!1,configurable:!0});case"prerender":return y(t,r);case"prerender-client":let a="`cookies`";throw Object.defineProperty(new p.InvariantError("".concat(a," must not be used within a client component. Next.js should be preventing ").concat(a," from being included in client components statically, but did not in this case.")),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,r.dynamicTracking);case"prerender-legacy":return(0,s.throwToInterruptStaticGeneration)(e,t,r);case"prerender-runtime":return(0,s.delayUntilRuntimeStage)(r,g(r.cookies));case"private-cache":return v(r.cookies);case"request":return(0,s.trackDynamicDataInDynamicRender)(r),v((0,n.areCookiesMutableInCurrentPhase)(r)?r.userspaceMutableCookies:r.cookies)}}(0,a.throwForMissingRequestStore)(e)}function h(){return n.RequestCookiesAdapter.seal(new i.RequestCookies(new Headers({})))}r(13972);let m=new WeakMap;function y(e,t){let r=m.get(t);if(r)return r;let n=(0,c.makeHangingPromise)(t.renderSignal,e.route,"`cookies()`");return m.set(t,n),n}function g(e){let t=m.get(e);if(t)return t;let r=Promise.resolve(e);return m.set(e,r),r}function v(e){let t=m.get(e);if(t)return t;let r=Promise.resolve(e);return m.set(e,r),Object.defineProperties(r,{[Symbol.iterator]:{value:e[Symbol.iterator]?e[Symbol.iterator].bind(e):w.bind(e)},size:{get:()=>e.size},get:{value:e.get.bind(e)},getAll:{value:e.getAll.bind(e)},has:{value:e.has.bind(e)},set:{value:e.set.bind(e)},delete:{value:e.delete.bind(e)},clear:{value:"function"==typeof e.clear?e.clear.bind(e):_.bind(e,r)},toString:{value:e.toString.bind(e)}}),r}function b(e,t){let r=e?'Route "'.concat(e,'" '):"This route ";return Object.defineProperty(Error("".concat(r,"used ").concat(t,". ")+"`cookies()` should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis"),"__NEXT_ERROR_CODE",{value:"E223",enumerable:!1,
32configurable:!0})}function w(){return this.getAll().map(e=>[e.name,e]).values()}function _(e){for(let e of this.getAll())this.delete(e.name);return e}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(b)},66519:(e,t,r)=>{"use strict";let n;var i=r(95704),o=r(15376).Buffer;Object.defineProperty(t,"__esModule",{value:!0});let a=r(67325),s=r(75777),l=r(15378),{inspect:c}=r(634),u=r(23431),d=r(33018),{strict:p}=r(5450),f=r(62521),h=r(92313),{URL:m,URLSearchParams:y}=r(92313),g=r(62160),v=r(2523),b=r(8196),w=r(97070),_=r(34282),x=r(46216),k=r(44483),{assertSigningAlgValuesSupport:S,assertIssuerConfiguration:E}=r(57792),A=r(90815),C=r(47913),O=r(13511),T=r(7746),{OPError:R,RPError:j}=r(95059),P=r(21107),{random:M}=r(14072),I=r(85983),{CLOCK_TOLERANCE:N}=r(45186),{keystores:D}=r(61379),L=r(32338),U=r(12018),{authenticatedPost:F,resolveResponseType:H,resolveRedirectUri:B}=r(98729),{queryKeyStore:z}=r(91837),W=r(59798),[$,q]=i.version.slice(1).split(".").map(e=>parseInt(e,10)),K=$>=17||16===$&&q>=9,V=Symbol(),J=Symbol(),G=Symbol();function Z(e){return A(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Bearer";return"".concat(t," ").concat(e)}function Y(e){let t=h.parse(e);return t.search?f.parse(t.search.substring(1)):{}}function Q(e,t,r){if(void 0===e[r])throw new j({message:"missing required JWT property ".concat(r),jwt:t})}function ee(e){let t={client_id:this.client_id,scope:"openid",response_type:H.call(this),redirect_uri:B.call(this),...e};return Object.entries(t).forEach(e=>{let[r,n]=e;null==n?delete t[r]:"claims"===r&&"object"==typeof n?t[r]=JSON.stringify(n):"resource"===r&&Array.isArray(n)?t[r]=n:"string"!=typeof n&&(t[r]=String(n))}),t}function et(e){if(!C(e)||!Array.isArray(e.keys)||e.keys.some(e=>!C(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return L.fromJWKS(e,{onlyPrivate:!0})}function er(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}function en(e,t,r){if(t.token_endpoint_auth_method||er(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}function ei(e,t,r){if(!t["".concat(e,"_endpoint")])return;let n=r.token_endpoint_auth_method,i=r.token_endpoint_auth_signing_alg,o="".concat(e,"_endpoint_auth_method"),a="".concat(e,"_endpoint_auth_signing_alg");void 0===r[o]&&void 0===r[a]&&(void 0!==n&&(r[o]=n),void 0!==i&&(r[a]=i))}var eo=new WeakMap,ea=new WeakMap,es=new WeakMap,el=new WeakMap;let ec=c.custom;class eu{authorizationUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!C(e))throw TypeError("params must be a plain object");E(this.issuer,"authorization_endpoint");let t=new m(this.issuer.authorization_endpoint);for(let[r,n]of Object.entries(ee.call(this,e)))if(Array.isArray(n))for(let e of(t.searchParams.delete(r),n))t.searchParams.append(r,e);else t.searchParams.set(r,n);return t.href.replace(/\+/g,"%20")}authorizationPost(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!C(e))throw TypeError("params must be a plain object");let t=ee.call(this,e),r=Object.keys(t).map(e=>'<input type="hidden" name="'.concat(e,'" value="').concat(t[e],'"/>')).join("\n");return'<!DOCTYPE html>\n<head>\n<title>Requesting Authorization</title>\n</head>\n<body onload="javascript:document.forms[0].submit()">\n<form method="post" action="'.concat(this.issuer.authorization_endpoint,'">\n  ').concat(r,"\n</form>\n</body>\n</html>")}endSessionUrl(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this.issuer,"end_session_endpoint");let{0:r,length:n}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:i=1===n?r:void 0}=t;if({id_token_hint:e,...t}=t,e instanceof T){if(!e.id_token)throw TypeError("id_token not present in TokenSet");e=e.id_token}let o=h.parse(this.issuer.end_session_endpoint),a=x(Y(this.issuer.end_session_endpoint),t,{post_logout_redirect_uri:i,client_id:this.client_id},{id_token_hint:e});
32return Object.entries(a).forEach(e=>{let[t,r]=e;null==r&&delete a[t]}),o.search=null,o.query=a,h.format(o)}callbackParams(e){let t=e instanceof u.IncomingMessage||e&&e.method&&e.url;if("string"!=typeof e&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return Z(Y(e));switch(e.method){case"GET":return Z(Y(e.url));case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(o.isBuffer(e.body))return Z(f.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return Z(f.parse(e.body));return Z(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Z(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new j({message:"expected a JARM response",checks:r,params:a});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new j({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new j({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(E(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new j({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new j({message:"iss missing from the response",params:a});if(a.error)throw new R(a);let s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(a.code||a.id_token||a.access_token)throw new j({message:'unexpected params encountered for "none" response',checks:r,params:a})}else for(let t of s[e])if(!a[t])throw new j({message:"".concat(t," missing from response"),checks:r,params:a})}if(a.id_token){let e=new T(a);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!a.code)return e}if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),a.session_state&&(t.session_state=a.session_state),t}return new T(a)}async oauthCallback(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{exchangeBody:n,clientAssertionPayload:i,DPoP:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Z(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new j({message:"expected a JARM response",checks:r,params:a});if(a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new j({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new j({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(E(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new j({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new j({message:"iss missing from the response",params:a});if(a.error)throw new R(a);if("string"==typeof a.id_token&&a.id_token.length)throw new j({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});delete a.id_token;let s={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(a.code||a.id_token||a.access_token))throw new j({message:'unexpected params encountered for "none" response',checks:r,params:a});if(s[e]){for(let t of s[e])if(!a[t])throw new j({message:"".concat(t," missing from response"),checks:r,params:a})}}
32if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:i,DPoP:o});if("string"==typeof t.id_token&&t.id_token.length)throw new j({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});return delete t.id_token,t}return new T(a)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof T){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,n=this.id_token_encrypted_response_enc,i=await this.decryptJWE(t,r,n);return e instanceof T?(e.id_token=i,e):i}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A128CBC-HS256",i=JSON.parse(_.decode(e.split(".")[0]));if(i.alg!==t)throw new j({printf:["unexpected JWE alg received, expected %s, got: %s",t,i.alg],jwt:e});if(i.enc!==n)throw new j({printf:["unexpected JWE enc received, expected %s, got: %s",n,i.enc],jwt:e});let o=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await D.get(this),n=g.decodeProtectedHeader(e);for(let i of t.all({...n,use:"enc"}))if(r=await g.compactDecrypt(e,await i.keyObject(n.alg)).then(o,()=>{}))break}else r=await g.compactDecrypt(e,this.secretForAlg("dir"===t?n:t)).then(o,()=>{});if(!r)throw new j({message:"failed to decrypt JWE",jwt:e});return r}async validateIdToken(e,t,r,n,i){let o=e,a=this.id_token_signed_response_alg;if(o instanceof T){if(!o.id_token)throw TypeError("id_token not present in TokenSet");o=o.id_token}o=String(o);let s=P(),{protected:l,payload:c,key:u}=await this.validateJWT(o,a);if("number"==typeof n||n!==G&&this.require_auth_time){if(!c.auth_time)throw new j({message:"missing required JWT property auth_time",jwt:o});if("number"!=typeof c.auth_time)throw new j({message:"JWT auth_time claim must be a JSON numeric value",jwt:o})}if("number"==typeof n&&c.auth_time+n<s-this[N])throw new j({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",n,c.auth_time,s-this[N]],now:s,tolerance:this[N],auth_time:c.auth_time,jwt:o});if(t!==J&&(c.nonce||void 0!==t)&&c.nonce!==t)throw new j({printf:["nonce mismatch, expected %s, got: %s",t,c.nonce],jwt:o});if("authorization"===r){if(!c.at_hash&&e.access_token)throw new j({message:"missing required property at_hash",jwt:o});if(!c.c_hash&&e.code)throw new j({message:"missing required property c_hash",jwt:o});if(this.fapi1()&&!c.s_hash&&(e.state||i))throw new j({message:"missing required property s_hash",jwt:o});if(c.s_hash){if(!i)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{v.validate({claim:"s_hash",source:"state"},c.s_hash,i,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new j({message:e.message,jwt:o})}}}if(this.fapi()&&c.iat<s-3600)throw new j({printf:["JWT issued too far in the past, now %i, iat %i",s,c.iat],now:s,tolerance:this[N],iat:c.iat,jwt:o});if(e.access_token&&void 0!==c.at_hash)try{v.validate({claim:"at_hash",source:"access_token"},c.at_hash,e.access_token,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new j({message:e.message,jwt:o})}if(e.code&&void 0!==c.c_hash)try{v.validate({claim:"c_hash",source:"code"},c.c_hash,e.code,l.alg,u.jwk&&u.jwk.crv)}catch(e){throw new j({message:e.message,jwt:o})}return e}async validateJWT(e,t){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["iss","sub","aud","exp","iat"],s="https://self-issued.me"===this.issuer.issuer,l=P();try{({header:r,payload:n}=w(e,{complete:!0}))}catch(t){throw new j({printf:["failed to decode JWT (%s: %s)",t.name,t.message],jwt:e})}if(r.alg!==t)throw new j({printf:["unexpected JWT alg received, expected %s, got: %s",t,r.alg],jwt:e});if(s&&(o=[...o,"sub_jwk"]),o.forEach(Q.bind(void 0,n,e)),void 0!==n.iss){let t=this.issuer.issuer;if(a._(this,es)&&(t=this.issuer.issuer.replace("{tenantid}",n.tid)),n.iss!==t)throw new j({printf:["unexpected iss value, expected %s, got: %s",t,n.iss
32],jwt:e})}if(void 0!==n.iat&&"number"!=typeof n.iat)throw new j({message:"JWT iat claim must be a JSON numeric value",jwt:e});if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new j({message:"JWT nbf claim must be a JSON numeric value",jwt:e});if(n.nbf>l+this[N])throw new j({printf:["JWT not active yet, now %i, nbf %i",l+this[N],n.nbf],now:l,tolerance:this[N],nbf:n.nbf,jwt:e})}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new j({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(l-this[N]>=n.exp)throw new j({printf:["JWT expired, now %i, exp %i",l-this[N],n.exp],now:l,tolerance:this[N],exp:n.exp,jwt:e})}if(void 0!==n.aud){if(Array.isArray(n.aud)){if(n.aud.length>1&&!n.azp)throw new j({message:"missing required JWT property azp",jwt:e});if(!n.aud.includes(this.client_id))throw new j({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,n.aud],jwt:e})}else if(n.aud!==this.client_id)throw new j({printf:["aud mismatch, expected %s, got: %s",this.client_id,n.aud],jwt:e})}if(void 0!==n.azp){let t=a._(this,el);if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(n.azp))throw new j({printf:["azp mismatch, got: %s",n.azp],jwt:e})}if(s){try{p(C(n.sub_jwk));let e=await g.importJWK(n.sub_jwk,r.alg);p.equal(e.type,"public"),i=[{keyObject:()=>e}]}catch(t){throw new j({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await g.calculateJwkThumbprint(n.sub_jwk)!==n.sub)throw new j({message:"failed to match the subject with sub_jwk",jwt:e})}else r.alg.startsWith("HS")?i=[this.secretForAlg(r.alg)]:"none"!==r.alg&&(i=await z.call(this.issuer,{...r,use:"sig"}));if(!i&&"none"===r.alg)return{protected:r,payload:n};for(let t of i){let i=await g.compactVerify(e,t instanceof Uint8Array?t:await t.keyObject(r.alg)).catch(()=>{});if(i)return{payload:n,protected:i.protectedHeader,key:t}}throw new j({message:"failed to validate JWT signature",jwt:e})}async refresh(e){let{exchangeBody:t,clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e;if(i instanceof T){if(!i.refresh_token)throw TypeError("refresh_token not present in TokenSet");i=i.refresh_token}let o=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(i)},{clientAssertionPayload:r,DPoP:n});if(o.id_token&&(await this.decryptIdToken(o),await this.validateIdToken(o,J,"token",G),e instanceof T&&e.id_token)){let t=e.claims().sub,r=o.claims().sub;if(r!==t)throw new j({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:o.id_token})}return o}async requestResource(e,t){let{method:r,headers:n,body:i,DPoP:o,tokenType:a=o?"DPoP":t instanceof T?t.token_type:"Bearer"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(t instanceof T){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let l={headers:{Authorization:X(t,a),...n},body:i},c=!!this.tls_client_certificate_bound_access_tokens,u=await I.call(this,{...l,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:o}),d=u.headers["www-authenticate"];return s!==V&&d&&d.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===k(d).error?this.requestResource(e,t,{method:r,headers:n,body:i,DPoP:o,tokenType:a}):u}async userinfo(e){let t,{method:r="GET",via:n="header",tokenType:i,params:o,DPoP:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this.issuer,"userinfo_endpoint");let s={tokenType:i,method:String(r).toUpperCase(),DPoP:a};if("GET"!==s.method&&"POST"!==s.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===n&&"POST"!==s.method)throw TypeError("can only send body on POST");let l=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);l?s.headers={Accept:"application/jwt"}:s.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(t=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),t=new m(t||this.issuer.userinfo_endpoint),"body"===n&&(s.headers.Authorization=void 0,s.headers["Content-Type"]="application/x-www-form-urlencoded",s.body=new y,s.body.append("access_token",e instanceof T?e.access_token:e)),o&&("GET"===s.method?Object.entries(o).forEac
32h(e=>{let[r,n]=e;t.searchParams.append(r,n)}):s.body?Object.entries(o).forEach(e=>{let[t,r]=e;s.body.append(t,r)}):(s.body=new y,s.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(o).forEach(e=>{let[t,r]=e;s.body.append(t,r)}))),s.body&&(s.body=s.body.toString());let c=await this.requestResource(t,e,s),u=O(c,{bearer:!0});if(l){if(!/^application\/jwt/.test(c.headers["content-type"]))throw new j({message:"expected application/jwt response from the userinfo_endpoint",response:c});let e=c.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:u}=await this.validateJWTUserinfo(t));else try{u=JSON.parse(t),p(C(u))}catch(e){throw new j({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{u=JSON.parse(c.body)}catch(e){throw Object.defineProperty(e,"response",{value:c}),e}if(e instanceof T&&e.id_token){let t=e.claims().sub;if(u.sub!==t)throw new j({printf:["userinfo sub mismatch, expected %s, got: %s",t,u.sub],body:u,jwt:e.id_token})}return u}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return d.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e){let t,{clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;E(this.issuer,"token_endpoint");let o=await F.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:r,DPoP:n});try{t=O(o)}catch(t){if(i!==V&&t instanceof R&&"use_dpop_nonce"===t.error)return this.grant(e,{clientAssertionPayload:r,DPoP:n},V);throw t}return new T(t)}async deviceAuthorization(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{exchangeBody:t,clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this.issuer,"device_authorization_endpoint"),E(this.issuer,"token_endpoint");let i=ee.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),o=O(await F.call(this,"device_authorization",{responseType:"json",form:i},{clientAssertionPayload:r,endpointAuthMethod:"token"}));return new W({client:this,exchangeBody:t,clientAssertionPayload:r,response:o,maxAge:e.max_age,DPoP:n})}async revoke(e,t){let{revokeBody:r,clientAssertionPayload:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(E(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};t&&(i.token_type_hint=t),O(await F.call(this,"revocation",{form:i},{clientAssertionPayload:n}),{body:!1})}async introspect(e,t){let{introspectBody:r,clientAssertionPayload:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(E(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let i={...r,token:e};return t&&(i.token_type_hint=t),O(await F.call(this,"introspection",{form:i,responseType:"json"},{clientAssertionPayload:n}))}static async register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{initialAccessToken:r,jwks:n,...i}=t;return E(this.issuer,"registration_endpoint"),void 0===n||e.jwks||e.jwks_uri||(e.jwks=(await et.call(this,n)).toJWKS()),new this(O(await I.call(this,{headers:{Accept:"application/json",...r?{Authorization:X(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),n,i)}get metadata(){return U(Object.fromEntries(a._(this,eo).entries()))}static async fromUri(e,t,r,n){return new this(O(await I.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:X(t),Accept:"application/json"}}),{bearer:!0}),r,n)}async requestObject(){let e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{sign:n=this.request_object_signing_alg||"none",encrypt:{alg:i=this.request_object_encryption_alg,enc:o=this.request_object_encryption_enc||"A128CBC-HS256"}={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!C(r))throw TypeError("requestObject must be a plain object");let a=P(),s={alg:n,typ:"oauth-authz-req+jwt"},l=JSON.stringify(x({},r,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:M(),iat:a,exp:a+300,...this.fapi()?{nbf:a}:void 0}));if("none"===n)e=[_.encode(JSON.stringify(s)),_.encode(l),""].join(".");else{let r=n.startsWith("HS");if(r)t=this.secretForAlg(n);else{let e=await D.get(this);if(!e)throw TypeError("no keystore present for client, cannot sign using alg ".concat(n));if(!(t=e.get({alg:n,use:"sig"})))throw TypeError("no key to sign with found for alg ".concat(n))}e=await new g.CompactSign(new TextEncoder().encode(l)).setProtectedHeader({...s,kid:r?void 0:t.jwk.kid}).sign(r?t:await t.keyObject(n))}if(!i)return e;let c={alg:i,enc:o,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[t]=await z.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):t=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new g.CompactEncrypt(new TextEncoder().encode(e)).setProtectedHeader({...c,kid:t instanceof Uint8Array?void 0:t.jwk.kid}
32).encrypt(t instanceof Uint8Array?t:await t.keyObject(c.alg))}async pushedAuthorizationRequest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{clientAssertionPayload:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:ee.call(this,e),client_id:this.client_id},n=await F.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),i=O(n,{statusCode:201});if(!("expires_in"in i))throw new j({message:"expected expires_in in Pushed Authorization Successful Response",response:n});if("number"!=typeof i.expires_in)throw new j({message:"invalid expires_in value in Pushed Authorization Successful Response",response:n});if(!("request_uri"in i))throw new j({message:"expected request_uri in Pushed Authorization Successful Response",response:n});if("string"!=typeof i.request_uri)throw new j({message:"invalid request_uri value in Pushed Authorization Successful Response",response:n});return i}get issuer(){return a._(this,ea)}[ec](){return"".concat(this.constructor.name," ").concat(c(this.metadata,{depth:1/0,colors:i.stdout.isTTY,compact:!1,sorted:!0}))}fapi(){return this.fapi1()||this.fapi2()}fapi1(){return"FAPI1Client"===this.constructor.name}fapi2(){return"FAPI2Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return Z(r)}async dpopProof(e,t,r){let i;if(!C(e))throw TypeError("payload must be a plain object");if(b(t))i=t;else if("CryptoKey"===t[Symbol.toStringTag])i=t;else if("node:crypto"===g.cryptoRuntime)i=d.createPrivateKey(t);else throw TypeError("unrecognized crypto runtime");if("private"!==i.type)throw TypeError('"DPoP" option must be a private key');let o=n.call(this,i,t);if(!o)throw TypeError("could not determine DPoP JWS Algorithm");return new g.SignJWT({ath:r?_.encode(d.createHash("sha256").update(r).digest()):void 0,...e}).setProtectedHeader({alg:o,typ:"dpop+jwt",jwk:await em(i,t)}).setIssuedAt().setJti(M()).sign(i)}constructor(e,t,r={},n,i){if(s._(this,eo,{writable:!0,value:void 0}),s._(this,ea,{writable:!0,value:void 0}),s._(this,es,{writable:!0,value:void 0}),s._(this,el,{writable:!0,value:void 0}),l._(this,eo,new Map),l._(this,ea,e),l._(this,es,t),"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let o={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi1()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...this.fapi2()?{id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(o.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!n)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(this.fapi2()&&(o.tls_client_certificate_bound_access_tokens&&o.dpop_bound_access_tokens||!o.tls_client_certificate_bound_access_tokens&&!o.dpop_bound_access_tokens))throw TypeError("either tls_client_certificate_bound_access_tokens or dpop_bound_access_tokens must be set to true");if(en(this,r,o),S("token",this.issuer,o),["introspection","revocation"].forEach(e=>{ei(e,this.issuer,o),S(e,this.issuer,o)}),Object.entries(o).forEach(e=>{let[t,r]=e;a._(this,eo).set(t,r),this[t]||Object.defineProperty(this,t,{get(){return a._(this,eo).get(t)},enumerable:!0})}),void 0!==n){let e=et.call(this,n);D.set(this,e)}null!=i&&i.additionalAuthorizedParties&&l._(this,el,U(i.additionalAuthorizedParties)),this[N]=0}}
32function ed(e){switch(e.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return"RS".concat(e.algorithm.hash.name.slice(4));case"RSA-PSS":return"PS".concat(e.algorithm.hash.name.slice(4));default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===g.cryptoRuntime){n=function(e,t){if("CryptoKey"===t[Symbol.toStringTag])return ed(e);switch(e.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return ef(e,t);case"rsa":case K&&"rsa-pss":return ep(e,t,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let e=/^(?:RS|PS)(?:256|384|512)$/;function ep(t,r,n){if("object"==typeof r&&"jwk"===r.format&&r.key&&r.key.alg)return r.key.alg;if(Array.isArray(n)){let r=n.filter(RegExp.prototype.test.bind(e));return"rsa-pss"===t.asymmetricKeyType&&(r=r.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>r.includes(e))}return"PS256"}let t=o.from([42,134,72,206,61,3,1,7]),r=o.from([43,129,4,0,34]),i=o.from([43,129,4,0,35]),a=o.from([43,129,4,0,10]);function ef(e,n){switch("object"==typeof n&&"object"==typeof n.key&&n.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let o=e.export({format:"der",type:"pkcs8"}),s=o[1]<128?17:18,l=o[s],c=o.slice(s+1,s+1+l);if(c.equals(t))return"ES256";if(c.equals(r))return"ES384";if(c.equals(i))return"ES512";if(c.equals(a))return"ES256K";throw TypeError("unsupported DPoP private key curve")}}else n=ed;let eh=new WeakMap;async function em(e,t){if("node:crypto"===g.cryptoRuntime&&"object"==typeof t&&"object"==typeof t.key&&"jwk"===t.format)return A(t.key,"kty","crv","x","y","e","n");if(eh.has(t))return eh.get(t);let r=A(await g.exportJWK(e),"kty","crv","x","y","e","n");return(b(t)||"WebCryptoAPI"===g.cryptoRuntime)&&eh.set(t,r),r}e.exports=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class r extends eu{static get issuer(){return e}constructor(...r){super(e,t,...r)}}return r},e.exports.BaseClient=eu},66942:(e,t,r)=>{"use strict";r.d(t,{u:()=>c});var n=r(22544);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,n.Jt)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},o=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n.refs&&n.refs.forEach(t=>i(t,r,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&o(e,t);let r={};for(let i in e){let o=(0,n.Jt)(t.fields,i),a=Object.assign(e[i]||{},{ref:o&&o.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,n.Jt)(r,i));(0,n.hZ)(e,"root",a),(0,n.hZ)(r,i,e)}else(0,n.hZ)(r,i,a)}return r},s=(e,t)=>e.some(e=>e.startsWith(t+"."));var l=function(e,t){for(var r={};e.length;){var i=e[0],o=i.code,a=i.message,s=i.path.join(".");if(!r[s])if("unionErrors"in i){var l=i.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:a,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=r[s].types,u=c&&c[i.code];r[s]=(0,n.Gb)(s,t,r,o,u?[].concat(u,i.message):i.message)}e.shift()}return r},c=function(e,t,r){return void 0===r&&(r={}),function(n,i,s){try{return Promise.resolve(function(i,a){try{var l=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return s.shouldUseNativeValidation&&o({},s),{errors:{},values:r.raw?n:e}})}catch(e){return a(e)}return l&&l.then?l.then(void 0,a):l}(0,function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:a(l(e.errors,!s.shouldUseNativeValidation&&"all"===s.criteriaMode),s)};throw e}))}catch(e){return Promise.reject(e)}}}},67048:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},68946:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(12115),o=r(4129),a=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},69666:(e,t,r)=>{"use strict";r.d(t,{n:()=>p});var n=r(12115),i=r(94446),o=r(88142),a=r(70222),s=r(95155),l="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},d="FocusScope",p=n.forwardRef((e,t)=>
32{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:p,onUnmountAutoFocus:y,...g}=e,[v,_]=n.useState(null),x=(0,a.c)(p),S=(0,a.c)(y),E=n.useRef(null),A=(0,i.s)(t,e=>_(e)),C=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(C.paused||!v)return;let t=e.target;v.contains(t)?E.current=t:b(E.current,{select:!0})},t=function(e){if(C.paused||!v)return;let t=e.relatedTarget;null!==t&&(v.contains(t)||b(E.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&b(v)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(r);return v&&n.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,v,C.paused]),n.useEffect(()=>{if(v){w.add(C);let e=document.activeElement;if(!v.contains(e)){let t=new CustomEvent(l,u);v.addEventListener(l,x),v.dispatchEvent(t),t.defaultPrevented||(f(k(m(v)),{select:!0}),document.activeElement===e&&b(v))}return()=>{v.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(c,u);v.addEventListener(c,S),v.dispatchEvent(t),t.defaultPrevented||b(null!=e?e:document.body,{select:!0}),v.removeEventListener(c,S),w.remove(C)},0)}}},[v,x,S,C]);let O=n.useCallback(e=>{if(!r&&!d||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=h(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&b(o,{select:!0})):(e.preventDefault(),r&&b(i,{select:!0})):n===t&&e.preventDefault()}},[r,d,C.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...g,ref:A,onKeyDown:O})});function f(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(b(n,{select:t}),document.activeElement!==r)return}function h(e){let t=m(e);return[y(t,e),y(t.reverse(),e)]}function m(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function y(e,t){for(let r of e)if(!g(r,{upTo:t}))return r}function g(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function v(e){return e instanceof HTMLInputElement&&"select"in e}function b(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&v(e)&&t&&e.select()}}p.displayName=d;var w=_();function _(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=x(e,t)).unshift(t)},remove(t){var r;null==(r=(e=x(e,t))[0])||r.resume()}}}function x(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}function k(e){return e.filter(e=>"A"!==e.tagName)}},70300:(e,t,r)=>{e.exports=r(83558)(Object,"create")},70428:(e,t,r)=>{"use strict";r.d(t,{bD:()=>Y});let{getOwnPropertyNames:n,getOwnPropertySymbols:i}=Object,{hasOwnProperty:o}=Object.prototype;function a(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function s(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,o=i.get(t),a=i.get(r);if(o&&a)return o===r&&a===t;i.set(t,r),i.set(r,t);let s=e(t,r,n);return i.delete(t),i.delete(r),s}}function l(e){return null!=e?e[Symbol.toStringTag]:void 0}function c(e){return n(e).concat(i(e))}let u=Object.hasOwn||((e,t)=>o.call(e,t));function d(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let p="__v",f="__o",h="_owner",{getOwnPropertyDescriptor:m,keys:y}=Object;function g(e,t){return e.byteLength===t.byteLength&&R(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function b(e,t){return e.byteLength===t.byteLength&&R(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function w(e,t){return d(e.getTime(),t.getTime())}function _(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function x(e,t){return e===t}function k(e,t,r){let n,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let a=Array(o),s=e.entries(),l=0;for(;(n=s.next())&&!n.done;){let o=t.entries(),s=!1,c=0;for(;(i=o.next())&&!i.done;){if(a[c]){c++;continue}let o=n.value,u=i.value;if(r.equals(o[0],u[0],l,c,e,t,r)&&r.equals(o[1],u[1],o[0],u[0],e,t,r)){s=a[c]=!0;break}c++}if(!s)return!1;l++}return!0}let S=d;function E(e,t,r){let n=y(e),i=n.length;if(y(t).length!==i)return!1;for(;i-- >0;)if(!P(e,t,r,n[i]))return!1;return!0}function A(e,t,r){let n,i,o,a=c(e),s=a.length;if(c(t).length!==s)return!1;for(;s-- >0;
32)if(!P(e,t,r,n=a[s])||(i=m(e,n),o=m(t,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function C(e,t){return d(e.valueOf(),t.valueOf())}function O(e,t){return e.source===t.source&&e.flags===t.flags}function T(e,t,r){let n,i,o=e.size;if(o!==t.size)return!1;if(!o)return!0;let a=Array(o),s=e.values();for(;(n=s.next())&&!n.done;){let o=t.values(),s=!1,l=0;for(;(i=o.next())&&!i.done;){if(!a[l]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){s=a[l]=!0;break}l++}if(!s)return!1}return!0}function R(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function j(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function P(e,t,r,n){return(n===h||n===f||n===p)&&(!!e.$$typeof||!!t.$$typeof)||u(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let M="[object ArrayBuffer]",I="[object Arguments]",N="[object Boolean]",D="[object DataView]",L="[object Date]",U="[object Error]",F="[object Map]",H="[object Number]",B="[object Object]",z="[object RegExp]",W="[object Set]",$="[object String]",q={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},K="[object URL]",V=Object.prototype.toString;function J({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:p,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:m}){return function(y,g,v){if(y===g)return!0;if(null==y||null==g)return!1;let b=typeof y;if(b!==typeof g)return!1;if("object"!==b)return"number"===b?s(y,g,v):"function"===b&&o(y,g,v);let w=y.constructor;if(w!==g.constructor)return!1;if(w===Object)return c(y,g,v);if(Array.isArray(y))return t(y,g,v);if(w===Date)return n(y,g,v);if(w===RegExp)return d(y,g,v);if(w===Map)return a(y,g,v);if(w===Set)return p(y,g,v);let _=V.call(y);if(_===L)return n(y,g,v);if(_===z)return d(y,g,v);if(_===F)return a(y,g,v);if(_===W)return p(y,g,v);if(_===B)return"function"!=typeof y.then&&"function"!=typeof g.then&&c(y,g,v);if(_===K)return h(y,g,v);if(_===U)return i(y,g,v);if(_===I)return c(y,g,v);if(q[_])return f(y,g,v);if(_===M)return e(y,g,v);if(_===D)return r(y,g,v);if(_===N||_===H||_===$)return u(y,g,v);if(m){let e=m[_];if(!e){let t=l(y);t&&(e=m[t])}if(e)return e(y,g,v)}return!1}}function G({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:g,areArraysEqual:r?A:v,areDataViewsEqual:b,areDatesEqual:w,areErrorsEqual:_,areFunctionsEqual:x,areMapsEqual:r?a(k,A):k,areNumbersEqual:S,areObjectsEqual:r?A:E,arePrimitiveWrappersEqual:C,areRegExpsEqual:O,areSetsEqual:r?a(T,A):T,areTypedArraysEqual:r?a(R,A):R,areUrlsEqual:j,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=s(n.areArraysEqual),t=s(n.areMapsEqual),r=s(n.areObjectsEqual),i=s(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function Z(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function X({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(o,a){let{cache:s=e?new WeakMap:void 0,meta:l}=r();return t(o,a,{cache:s,equals:n,meta:l,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let o={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,o)}}let Y=Q();function Q(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=J(G(e)),a=r?r(o):Z(o);return X({circular:t,comparator:o,createState:n,equals:a,strict:i})}Q({strict:!0}),Q({circular:!0}),Q({circular:!0,strict:!0}),Q({createInternalComparator:()=>d}),Q({strict:!0,createInternalComparator:()=>d}),Q({circular:!0,createInternalComparator:()=>d}),Q({circular:!0,createInternalComparator:()=>d,strict:!0})},70637:e=>{var t=0x1fffffffffffff,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?t:n)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<n}},71220:(e,t,r)=>{"use strict";var n=r(22455);
32Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n(r(37290)),o=n(r(61174)),a=n(r(64815)),s=n(r(8289)),l=n(r(86150)),c=n(r(33413));function u(e){let{url:t,theme:r,query:n,cookies:u}=e;function d({html:e,title:t,status:n}){var o;return{cookies:u,status:n,headers:[{key:"Content-Type",value:"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>${(0,c.default)()}</style><title>${t}</title></head><body class="__next-auth-theme-${null!=(o=null==r?void 0:r.colorScheme)?o:"auto"}"><div class="page">${(0,i.default)(e)}</div></body></html>`}}return{signin:t=>d({html:(0,o.default)({csrfToken:e.csrfToken,providers:e.providers,callbackUrl:e.callbackUrl,theme:r,...n,...t}),title:"Sign In"}),signout:n=>d({html:(0,a.default)({csrfToken:e.csrfToken,url:t,theme:r,...n}),title:"Sign Out"}),verifyRequest:e=>d({html:(0,s.default)({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>d({...(0,l.default)({url:t,theme:r,...e}),title:"Error"})}}},71450:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,fX:()=>a,sH:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})}Object.create;function a(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},71730:(e,t,r)=>{var n=r(80942),i=r(26745),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=n(e);return t==a||t==s||t==o||t==l}},72107:(e,t,r)=>{"use strict";r.d(t,{$f:()=>M,G2:()=>b,I$:()=>S,Im:()=>N,Qv:()=>l,Sd:()=>g,Z1:()=>E,_G:()=>u,_e:()=>f,bh:()=>w,eB:()=>c,eT:()=>y,ec:()=>I,hy:()=>O,ic:()=>a,iz:()=>A,pC:()=>x,yY:()=>_,y_:()=>D});var n=r(62463),i=r(92322),o=r(51876);let a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let l=(e,t,r)=>{let a=s(e,r);if(!a)return!1;let l=h(a);if(!l){let r=a.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let c=l.nodeBefore;if(j(e,l,t,-1))return!0;if(0==a.parent.content.size&&(p(c,"end")||o.nh.isSelectable(c)))for(let r=a.depth;;r--){let s=(0,n.$L)(e.doc,a.before(r),a.after(r),i.Ji.empty);if(s&&s.slice.size<s.to-s.from){if(t){let r=e.tr.step(s);r.setSelection(p(c,"end")?o.LN.findFrom(r.doc.resolve(r.mapping.map(l.pos,-1)),-1):o.nh.create(r.doc,l.pos-c.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||a.node(r-1).childCount>1)break}return!!c.isAtom&&l.depth==a.depth-1&&(t&&t(e.tr.delete(l.pos-c.nodeSize,l.pos).scrollIntoView()),!0)},c=(e,t,r)=>{let n=s(e,r);if(!n)return!1;let i=h(n);return!!i&&d(e,i,t)},u=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=v(n);return!!i&&d(e,i,t)};function d(e,t,r){let a=t.nodeBefore,s=t.pos-1;for(;!a.isTextblock;s--){if(a.type.spec.isolating)return!1;let e=a.lastChild;if(!e)return!1;a=e}let l=t.nodeAfter,c=t.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let e=l.firstChild;if(!e)return!1;l=e}let u=(0,n.$L)(e.doc,s,c,i.Ji.empty);if(!u||u.from!=s||u instanceof n.Ln&&u.slice.size>=c-s)return!1;if(r){let t=e.tr.step(u);t.setSelection(o.U3.create(t.doc,s)),r(t.scrollIntoView())}return!0}function p(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;
32if(r&&1!=n.childCount)break}return!1}let f=(e,t,r)=>{let{$head:n,empty:i}=e.selection,a=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;a=h(n)}let s=a&&a.nodeBefore;return!!s&&!!o.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let y=(e,t,r)=>{let a=m(e,r);if(!a)return!1;let s=v(a);if(!s)return!1;let l=s.nodeAfter;if(j(e,s,t,1))return!0;if(0==a.parent.content.size&&(p(l,"start")||o.nh.isSelectable(l))){let r=(0,n.$L)(e.doc,a.before(),a.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(p(l,"start")?o.LN.findFrom(n.doc.resolve(n.mapping.map(s.pos)),1):o.nh.create(n.doc,n.mapping.map(s.pos))),t(n.scrollIntoView())}return!0}}return!!l.isAtom&&s.depth==a.depth-1&&(t&&t(e.tr.delete(s.pos,s.pos+l.nodeSize).scrollIntoView()),!0)},g=(e,t,r)=>{let{$head:n,empty:i}=e.selection,a=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;a=v(n)}let s=a&&a.nodeAfter;return!!s&&!!o.nh.isSelectable(s)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,a.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let b=(e,t)=>{let r=e.selection,i=r instanceof o.nh,a;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;a=r.from}else if(null==(a=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(a);i&&r.setSelection(o.nh.create(r.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},w=(e,t)=>{let r=e.selection,i;if(r instanceof o.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},_=(e,t)=>
32{let{$from:r,$to:i}=e.selection,o=r.blockRange(i),a=o&&(0,n.jP)(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)},x=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function k(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let S=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),a=r.indexAfter(-1),s=k(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,s.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},E=(e,t)=>{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof o.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let a=k(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,s=e.tr.insert(r,a.createAndFill());s.setSelection(o.U3.create(s.doc,r+1)),t(s.scrollIntoView())}return!0},A=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),o=i&&(0,n.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},C=function(e){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],s,l,c=!1,u=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){c=r.end(e)==r.pos+(r.depth-e),u=r.start(e)==r.pos-(r.depth-e),l=k(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));let t=void 0;a.unshift(t||(c&&l?{type:l}:null)),s=e;break}if(1==e)return!1;a.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let p=d.mapping.map(r.pos),f=(0,n.zy)(d.doc,p,a.length,a);if(f||(a[0]=l?{type:l}:null,f=(0,n.zy)(d.doc,p,a.length,a)),!f)return!1;if(d.split(p,a.length,a),!c&&u&&r.node(s).type!=l){let e=d.mapping.map(r.before(s)),t=d.doc.resolve(e);l&&r.node(s-1).canReplaceWith(t.index(),t.index()+1,l)&&d.setNodeMarkup(d.mapping.map(r.before(s)),l)}return t&&t(d.scrollIntoView()),!0}}(),O=(e,t)=>{let{$from:r,to:n}=e.selection,i,a=r.sharedDepth(n);return 0!=a&&(i=r.before(a),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)},T=(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0);function R(e,t,r){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!i&&!!o&&!!i.type.compatibleContent(o.type)&&(!i.content.size&&t.parent.canReplace(a-1,a)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(a,a+1)&&!!(o.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}function j(e,t,r,a){let s=t.nodeBefore,l=t.nodeAfter,c,u,d=s.type.spec.isolating||l.type.spec.isolating;if(!d&&R(e,t,r))return!0;let f=!d&&t.parent.canReplace(t.index(),t.index()+1);if(f&&(c=(u=s.contentMatchAt(s.childCount)).findWrapping(l.type))&&u.matchType(c[0]||l.type).validEnd){if(r){let o=t.pos+l.nodeSize,a=i.FK.empty;for(let e=c.length-1;e>=0;e--)a=i.FK.from(c[e].create(null,a));a=i.FK.from(s.copy(a));let u=e.tr.step(new n.Wg(t.pos-1,o,t.pos,o,new i.Ji(a,1,0),c.length,!0)),d=u.doc.resolve(o+2*c.length);d.nodeAfter&&d.nodeAfter.type==s.type&&(0,n.n9)(u.doc,d.pos)&&u.join(d.pos),r(u.scrollIntoView())}return!0}let h=l.type.spec.isolating||a>0&&d?null:o.LN.findFrom(t,1),m=h&&h.$from.blockRange(h.$to),y=m&&(0,n.jP)(m);if(null!=y&&y>=t.depth)return r&&r(e.tr.lift(m,y).scrollIntoView()),!0;if(f&&p(l,"start",!0)&&p(s,"end")){let o=s,a=[];for(;a.push(o),!o.isTextblock;)o=o.lastChild;let c=l,u=1;for(;!c.isTextblock;c=c.firstChild)u++;if(o.canReplace(o.childCount,o.childCount,c.content)){if(r){let o=i.FK.empty;for(let e=a.length-1;e>=0;e--)o=i.FK.from(a[e].copy(o));r(e.tr.step(new n.Wg(t.pos-a.length,t.pos+l.nodeSize,t.pos+u,t.pos+l.nodeSize-u,new i.Ji(o,a.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function P(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(r&&r(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}let M=P(-1),I=P(1);function N(e,t=null){return function(r,i){let{$from:o,$to:a}=r.selection,s=o.blockRange(a),l=s&&(0,n.oM)(s,e,t);return!!l&&(i&&i(r.tr.wrap(s,l).scrollIntoView()),!0)}}function D(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:o},$to:{pos:a}}=r.selection.ranges[n];r.doc.nodesBetween(o,a,(n,o)=>
32{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(o),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:o},$to:{pos:a}}=r.selection.ranges[n];i.setBlockType(o,a,e,t)}n(i.scrollIntoView())}return!0}}function L(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let U=L(a,l,f),F=L(a,y,g),H={Enter:L(x,E,A,C),"Mod-Enter":S,Backspace:U,"Mod-Backspace":U,"Shift-Backspace":U,Delete:F,"Mod-Delete":F,"Mod-a":T},B={"Ctrl-h":H.Backspace,"Alt-Backspace":H["Mod-Backspace"],"Ctrl-d":H.Delete,"Ctrl-Alt-Backspace":H["Mod-Delete"],"Alt-Delete":H["Mod-Delete"],"Alt-d":H["Mod-Delete"],"Ctrl-a":M,"Ctrl-e":I};for(let e in H)B[e]=H[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},72377:(e,t,r)=>{var n=r(18135);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},72431:(e,t,r)=>{"use strict";r.d(t,{RG:()=>_,bL:()=>M,q7:()=>I});var n=r(12115),i=r(92556),o=r(78625),a=r(94446),s=r(3468),l=r(68946),c=r(88142),u=r(70222),d=r(23558),p=r(66218),f=r(95155),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[g,v,b]=(0,o.N)(y),[w,_]=(0,s.A)(y,[b]),[x,k]=w(y),S=n.forwardRef((e,t)=>(0,f.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(E,{...e,ref:t})})}));S.displayName=y;var E=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:l,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:_,preventScrollOnEntryFocus:k=!1,...S}=e,E=n.useRef(null),A=(0,a.s)(t,E),C=(0,p.jH)(l),[O,T]=(0,d.i)({prop:g,defaultProp:null!=b?b:null,onChange:w,caller:y}),[R,P]=n.useState(!1),M=(0,u.c)(_),I=v(r),N=n.useRef(!1),[D,L]=n.useState(0);return n.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(h,M),()=>e.removeEventListener(h,M)},[M]),(0,f.jsx)(x,{scope:r,orientation:o,dir:C,loop:s,currentTabStopId:O,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>P(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,f.jsx)(c.sG.div,{tabIndex:R||0===D?-1:0,"data-orientation":o,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),k)}}N.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>P(!1))})})}),A="RovingFocusGroupItem",C=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...d}=e,p=(0,l.B)(),h=s||p,m=k(A,r),y=m.currentTabStopId===h,b=v(r),{onFocusableItemAdd:w,onFocusableItemRemove:_,currentTabStopId:x}=m;return n.useEffect(()=>{if(o)return w(),()=>_()},[o,w,_]),(0,f.jsx)(g.ItemSlot,{scope:r,id:h,focusable:o,active:a,children:(0,f.jsx)(c.sG.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=R(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?P(r,n+1):r.slice(n+1)}setTimeout(()=>j(r))}}),children:"function"==typeof u?u({isCurrentTabStop:y,hasTabStop:null!=x}):u})})});C.displayName=A;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function R(e,t,r){let n=T(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return O[n]}function j(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function P(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var M=S,I=C},73423:(e,t,r)=>{e.exports=r(51483).Symbol},74047:(e,t,r)=>{var n=r(95704);let{inspect:i}=r(634),o=r(92313),{RPError:a}=r(95059),s=r(66519),l=r(99719),c=r(13511),u=r(39029),d=r(85983),p=r(12018),{keystore:f}=r(91837),h=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],m=Symbol(),y={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class g{#u;constructor(e={}){let t=e[m];delete e[m],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#u=new Map,Object.entries(e).forEach(([e,t])=>{this.#u.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#u.get(e)},enumerable:!0})}),l.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0},FAPI2Client:{value:class extends r{},enumerable:!0}})}get metadata(){return p(Object.fromEntries(this.#u.entries()))}static async webfinger(e){let t=u(e),{host:r}=o.parse(t),n=`https://${r}/.well-known/webfinger`,i=c(await d.call(this,{method:"GET",url:n,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),s=Array.isArray(i.links)&&i.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!s)throw new a({message:"no issuer found in webfinger response",body:i});if("string"!=typeof s.href||!s.href.startsWith("https://"))throw new a({printf:["invalid issuer location %s",s.href],body:i});let p=s.href;if(l.has(p))return l.get(p);let f=await this.discover(p);if(f.issuer!==p)throw l.del(f.issuer),new a("discovered issuer mismatch, expected %s, got: %s",p,f.issuer);return f}static async discover(e){let t=v(e),r=c(await d.call(this,{method:"GET",responseType:"json",url:t,headers:{Accept:"application/json"}}));return new g({...y,...r,[m]:!!h.find(e=>t.startsWith(e))})}async reloadJwksUri(){await f.call(this,!0)}[i.custom](){return`${this.constructor.name} ${i(this.metadata,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0}
32)}`}}function v(e){let t=o.parse(e);if(t.pathname.includes("/.well-known/"))return e;{let e;return e=t.pathname.endsWith("/")?`${t.pathname}.well-known/openid-configuration`:`${t.pathname}/.well-known/openid-configuration`,o.format({...t,pathname:e})}}e.exports=g},74931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},76840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRequestAPICallableInsideAfter:function(){return l},throwForSearchParamsAccessInUseCache:function(){return s},throwWithStaticGenerationBailoutError:function(){return o},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return a}});let n=r(97412),i=r(26658);function o(e,t){throw Object.defineProperty(new n.StaticGenBailoutError("Route ".concat(e," couldn't be rendered statically because it used ").concat(t,". See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering")),"__NEXT_ERROR_CODE",{value:"E576",enumerable:!1,configurable:!0})}function a(e,t){throw Object.defineProperty(new n.StaticGenBailoutError("Route ".concat(e,' with `dynamic = "error"` couldn\'t be rendered statically because it used ').concat(t,". 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,configurable:!0})}function s(e,t){var r,n;let i=Object.defineProperty(Error("Route ".concat(e.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:"E779",enumerable:!1,configurable:!0});throw Error.captureStackTrace(i,t),null!=(n=(r=e).invalidDynamicUsageError)||(r.invali
32dDynamicUsageError=i),i}function l(){let e=i.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},76917:(e,t,r)=>{var n=r(36702),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},77487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(74090),i=r(46090);async function o(e){var t,r,o,a,s,l;let{sessionToken:c,profile:u,account:d,options:p}=e;if(!(null!=d&&d.providerAccountId)||!d.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(d.type))throw Error("Provider not supported");let{adapter:f,jwt:h,events:m,session:{strategy:y,generateSessionToken:g}}=p;if(!f)return{user:u,account:d};let v=u,{createUser:b,updateUser:w,getUser:_,getUserByAccount:x,getUserByEmail:k,linkAccount:S,createSession:E,getSessionAndUser:A,deleteSession:C}=f,O=null,T=null,R=!1,j="jwt"===y;if(c)if(j)try{(O=await h.decode({...h,token:c}))&&"sub"in O&&O.sub&&(T=await _(O.sub))}catch(e){}else{let e=await A(c);e&&(O=e.session,T=e.user)}if("email"===d.type){let e=await k(v.email);if(e)(null==(t=T)?void 0:t.id)!==e.id&&!j&&c&&await C(c),T=await w({id:e.id,emailVerified:new Date}),await (null==(r=m.updateUser)?void 0:r.call(m,{user:T}));else{let{id:e,...t}={...v,emailVerified:new Date};T=await b(t),await (null==(o=m.createUser)?void 0:o.call(m,{user:T})),R=!0}return{session:O=j?{}:await E({sessionToken:await g(),userId:T.id,expires:(0,i.fromDate)(p.session.maxAge)}),user:T,isNewUser:R}}if("oauth"===d.type){let e=await x({providerAccountId:d.providerAccountId,provider:d.provider});if(e){if(T){if(e.id===T.id)return{session:O,user:T,isNewUser:R};throw new n.AccountNotLinkedError("The account is already associated with another user")}return{session:O=j?{}:await E({sessionToken:await g(),userId:e.id,expires:(0,i.fromDate)(p.session.maxAge)}),user:e,isNewUser:R}}{if(T)return await S({...d,userId:T.id}),await (null==(l=m.linkAccount)?void 0:l.call(m,{user:T,account:d,profile:v})),{session:O,user:T,isNewUser:R};let e=v.email?await k(v.email):null;if(e){let t=p.provider;if(null!=t&&t.allowDangerousEmailAccountLinking)T=e;else throw new n.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:e,...t}={...v,emailVerified:null};T=await b(t)}return await (null==(a=m.createUser)?void 0:a.call(m,{user:T})),await S({...d,userId:T.id}),await (null==(s=m.linkAccount)?void 0:s.call(m,{user:T,account:d,profile:v})),{session:O=j?{}:await E({sessionToken:await g(),userId:T.id,expires:(0,i.fromDate)(p.session.maxAge)}),user:T,isNewUser:!0}}}throw Error("Unsupported account type")}},77852:(e,t,r)=>{var n=r(38185);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},78108:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(12115);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},78363:(e,t,r)=>{e.exports=r(51483)["__core-js_shared__"]},79452:e=>{!function(t){e.exports=t()}(function(){return(function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var l=void 0;if(!s&&l)return require(a,!0);if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(e,t,r){(function(n,i,o,a,s,l,c,u,d){"use strict";var p=e("crypto");function f(e,t){return function(e,t){if(void 0===(r="passthrough"!==t.algorithm?p.createHash(t.algorithm):new b).write&&(r.write=r.update,r.end=r.update),v(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"!==t.encoding?n.toString(t.encoding):n}(e,t=y(e,t))}(r=t.exports=f).sha1=function(e){return f(e)},r.keys=function(e){return f(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return f(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return f(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=p.getHashes?p.getHashes().slice():["sha1","md5"];h.push("passthrough");var m=["buffer","hex","binary","base64"];function y(e,t){var r={};if(r.algorithm=(t=t||{}).algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<h.length;++n)h[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=h[n]);if(-1===h.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'"  not supported. supported values: '+h.join(", "));if(-1===m.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'"  not supported. supported values: '+m.join(", "));return r}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function v(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var i,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(i=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+i+"]");if(r.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||g(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),n("object:"+l.length+":");var c=this;return l.forEach(function(r){c.dispatch(r),n(":"),e.excludeValues||c.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(n("array:"+t.length+":"),!i||t.length<=1)return t.forEach(function(e){return o.dispatch(e)});var a=[],s=t.map(function(t){var n=new b,i=r.slice();return v(e,n,i).dispatch(t),a=a.concat(i.slice(r.length)),n.read().toString()});return r=r.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())}
vendor: 4,215 bytes, line 32
32,_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function b(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),v(t=y(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,i,o,a,s,l,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r=43,n=47,i=48,o=97,a=65,s=45,l=95;function c(e){var t=e.charCodeAt(0);return t===r||t===s?62:t===n||t===l?63:t<i?-1:t<i+10?t-i+26+26:t<a+26?t-a:t<o+26?t-o+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var r,n,i=e.length,o="="===e.charAt(i-2)?2:+("="===e.charAt(i-1)),a=new t(3*e.length/4-o),s=0<o?e.length-4:e.length,l=0;function u(e){a[l++]=e}for(r=0;r<s;r+=4)u((0xff0000&(n=c(e.charAt(r))<<18|c(e.charAt(r+1))<<12|c(e.charAt(r+2))<<6|c(e.charAt(r+3))))>>16),u((65280&n)>>8),u(255&n);return 2==o?u(255&(n=c(e.charAt(r))<<2|c(e.charAt(r+1))>>4)):1==o&&(u((n=c(e.charAt(r))<<10|c(e.charAt(r+1))<<4|c(e.charAt(r+2))>>2)>>8&255),u(255&n)),a},e.fromByteArray=function(e){var t,r,n,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
32+/".charAt(e)}for(t=0,n=e.length-o;t<n;t+=3)a+=s((i=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((r=e[e.length-1])>>2),a+=s(r<<4&63),a+="==";break;case 2:a+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=s(r>>4&63),a+=s(r<<2&63),a+="="}return a}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,i,o,a,s,l,c,u){var d=e("base64-js"),p=e("ieee754");function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var n,o,a,s,l,c=typeof e;if("base64"===t&&"string"==c)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)o=R(e);else if("string"==c)o=i.byteLength(e,t);else{if("object"!=c)throw Error("First argument needs to be a number, array or string.");o=R(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(j(l=e)||i.isBuffer(l)||l&&"object"==typeof l&&"number"==typeof l.length)for(s=0;s<o;s++)i.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==c)a.write(e,0,t);else if("number"==c&&!i._useTypedArrays&&!r)for(s=0;s<o;s++)a[s]=0;return a}function f(e,t,r,n){return i._charsWritten=N(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function h(e,t,r,n){return i._charsWritten=N(function(e){for(var t,r,n=[],i=0;i<e.length;i++)r=(t=e.charCodeAt(i))>>8,n.push(t%256),n.push(r);return n}(t),e,r,n)}function m(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;i++)n+=String.fromCharCode(e[i]);return n}function y(e,t,r,n){n||(H("boolean"==typeof r,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+1<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(i=e[t],t+1<o&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<o&&(i|=e[t+1])),i}function g(e,t,r,n){n||(H("boolean"==typeof r,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+3<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return r?(t+2<o&&(i=e[t+2]<<16),t+1<o&&(i|=e[t+1]<<8),i|=e[t],t+3<o&&(i+=e[t+3]<<24>>>0)):(t+1<o&&(i=e[t+1]<<16),t+2<o&&(i|=e[t+2]<<8),t+3<o&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function v(e,t,r,n){if(n||(H("boolean"==typeof r,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=y(e,t,r,!0);return 32768&i?-1*(65535-i+1):i}}function b(e,t,r,n){if(n||(H("boolean"==typeof r,"missing or invalid endian"),H(null!=t,"missing offset"),H(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=g(e,t,r,!0);return 0x80000000&i?-1*(0xffffffff-i+1):i}}function w(e,t,r,n){return n||(H("boolean"==typeof r,"missing or invalid endian"),H(t+3<e.length,"Trying to read beyond buffer length")),p.read(e,t,r,23,4)}function _(e,t,r,n){return n||(H("boolean"==typeof r,"missing or invalid endian"),H(t+7<e.length,"Trying to read beyond buffer length")),p.read(e,t,r,52,8)}function x(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+1<e.length,"trying to write beyond buffer length"),L(t,65535));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,2);a<s;a++)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function k(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+3<e.length,"trying to write beyond buffer length"),L(t,0xffffffff));var o=e.length;if(!(o<=r))for(var a=0,s=Math.min(o-r,4);a<s;a++)e[r+a]=t>>>8*(n?a:3-a)&255}function S(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+1<e.length,"Trying to write beyond buffer length"),U(t,32767,-32768)),e.length<=r||x(e,0<=t?t:65535+t+1,r,n,i)}function E(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+3<e.length,"Trying to write beyond buffer length"),U(t,0x7fffffff,-0x80000000)),e.length<=r||k(e,0<=t?t:0xffffffff+t+1,r,n,i)}function A(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+3<e.length,"Trying to write beyond buffer length"),F(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||p.write(e,t,r,n,23,4)}function C(e,t,r,n,i){i||(H(null!=t,"missing value"),H("boolean"==typeof n,"missing or invalid endian"),H(null!=r,"missing offset"),H(r+7<e.length,"Trying to write beyond buffer length"),F(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||p.write(e,t,r,n,52,8)}r.Buffer=i,r.SlowBuffer=i,r.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=M(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=I(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r},i.concat=function(e,t){if(H(j(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var r=new i(t),n=0,o=0;o<e.length;o++){var a=e[o];a.copy(r,n),n+=a.length}return r}
vendor: 5,009 bytes, line 32
32,i.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(o=n,n=t,t=r,r=o),t=Number(t)||0;var o,a,s,l,c,u,d,p,m,y,g=this.length-t;switch((!r||g<(r=Number(r)))&&(r=g),n=String(n||"utf8").toLowerCase()){case"hex":a=function(e,t,r,n){r=Number(r)||0;var o=e.length-r;(!n||o<(n=Number(n)))&&(n=o);var a=t.length;H(a%2==0,"Invalid hex string"),a/2<n&&(n=a/2);for(var s=0;s<n;s++){var l=parseInt(t.substr(2*s,2),16);H(!isNaN(l),"Invalid hex string"),e[r+s]=l}return i._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":d=this,p=e,m=t,y=r,a=i._charsWritten=N(M(p),d,m,y);break;case"ascii":case"binary":a=f(this,e,t,r);break;case"base64":s=this,l=e,c=t,u=r,a=i._charsWritten=N(I(l),s,c,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=h(this,e,t,r);break;default:throw Error("Unknown encoding")}return a},i.prototype.toString=function(e,t,r){var n,i,o,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=s.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=t;o<r;o++)i+=P(e[o]);return i}(s,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;o<r;o++)e[o]<=127?(n+=D(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+D(i)}(s,t,r);break;case"ascii":case"binary":n=m(s,t,r);break;case"base64":i=s,a=r,n=0===(o=t)&&a===i.length?d.fromByteArray(i):d.fromByteArray(i.slice(o,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(s,t,r);break;default:throw Error("Unknown encoding")}return n},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){H(r<=n,"sourceEnd < sourceStart"),H(0<=t&&t<e.length,"targetStart out of bounds"),H(0<=r&&r<this.length,"sourceStart out of bounds"),H(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(o<100||!i._useTypedArrays)for(var a=0;a<o;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+o),t)}},i.prototype.slice=function(e,t){var r=this.length;if(e=T(e,r,0),t=T(t,r,r),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var n=t-e,o=new i(n,void 0,!0),a=0;a<n;a++)o[a]=this[a+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(H(null!=e,"missing offset"),H(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return g(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return g(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(H(null!=e,"missing offset"),H(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return b(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return b(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return _(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return _(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,r){r||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t<this.length,"trying to write beyond buffer length"),L(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,r){x(this,e,t,!0,r)},i.prototype.writeUInt16BE=function(e,t,r){x(this,e,t,!1,r)},i.prototype.writeUInt32LE=function(e,t,r){k(this,e,t,!0,r)},i.prototype.writeUInt32BE=function(e,t,r){k(this,e,t,!1,r)},i.prototype.writeInt8=function(e,t,r){r||(H(null!=e,"missing value"),H(null!=t,"missing offset"),H(t<this.length,"Trying to write beyond buffer length"),U(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},i.prototype.writeInt16LE=function(e,t,r){S(this,e,t,!0,r)},i.prototype.writeInt16BE=function(e,t,r){S(this,e,t,!1,r)},i.prototype.writeInt32LE=function(e,t,r){E(this,e,t,!0,r)},i.prototype.writeInt32BE=function(e,t,r){E(this,e,t,!1,r)},i.prototype.writeFloatLE=function(e,t,r){A(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){A(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){C(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){C(this,e,t,!1,r)}
32,i.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),H("number"==typeof e&&!isNaN(e),"value is not a number"),H(t<=r,"end < start"),r!==t&&0!==this.length){H(0<=t&&t<this.length,"start out of bounds"),H(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=P(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var O=i.prototype;function T(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function R(e){return(e=~~Math.ceil(+e))<0?0:e}function j(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function M(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var i=r;55296<=n&&n<=57343&&r++;for(var o=encodeURIComponent(e.slice(i,r+1)).substr(1).split("%"),a=0;a<o.length;a++)t.push(parseInt(o[a],16))}}return t}function I(e){return d.toByteArray(e)}function N(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function D(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function L(e,t){H("number"==typeof e,"cannot write a non-number as a number"),H(0<=e,"specified a negative value for writing an unsigned value"),H(e<=t,"value is larger than maximum value for type"),H(Math.floor(e)===e,"value has a fractional component")}function U(e,t,r){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(r<=e,"value smaller than minimum allowed value"),H(Math.floor(e)===e,"value has a fractional component")}function F(e,t,r){H("number"==typeof e,"cannot write a non-number as a number"),H(e<=t,"value larger than maximum allowed value"),H(r<=e,"value smaller than minimum allowed value")}function H(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=O.get,e.set=O.set,e.write=O.write,e.toString=O.toString,e.toLocaleString=O.toString,e.toJSON=O.toJSON,e.copy=O.copy,e.slice=O.slice,e.readUInt8=O.readUInt8,e.readUInt16LE=O.readUInt16LE,e.readUInt16BE=O.readUInt16BE,e.readUInt32LE=O.readUInt32LE,e.readUInt32BE=O.readUInt32BE,e.readInt8=O.readInt8,e.readInt16LE=O.readInt16LE,e.readInt16BE=O.readInt16BE,e.readInt32LE=O.readInt32LE,e.readInt32BE=O.readInt32BE,e.readFloatLE=O.readFloatLE,e.readFloatBE=O.readFloatBE,e.readDoubleLE=O.readDoubleLE,e.readDoubleBE=O.readDoubleBE,e.writeUInt8=O.writeUInt8,e.writeUInt16LE=O.writeUInt16LE,e.writeUInt16BE=O.writeUInt16BE,e.writeUInt32LE=O.writeUInt32LE,e.writeUInt32BE=O.writeUInt32BE,e.writeInt8=O.writeInt8,e.writeInt16LE=O.writeInt16LE,e.writeInt16BE=O.writeInt16BE,e.writeInt32LE=O.writeInt32LE,e.writeInt32BE=O.writeInt32BE,e.writeFloatLE=O.writeFloatLE,e.writeFloatBE=O.writeFloatBE,e.writeDoubleLE=O.writeDoubleLE,e.writeDoubleBE=O.writeDoubleBE,e.fill=O.fill,e.inspect=O.inspect,e.toArrayBuffer=O.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var i=e("buffer").Buffer,d=4,p=new i(4);p.fill(0),t.exports={hash:function(e,t,r,n){return i.isBuffer(e)||(e=new i(e)),function(e,t,r){for(var n=new i(t),o=r?n.writeInt32BE:n.writeInt32LE,a=0;a<e.length;a++)o.call(n,e[a],4*a,!0);return n}(t(function(e,t){var r;e.length%d!=0&&(r=e.length+(d-e.length%d),e=i.concat([e,p],r));for(var n=[],o=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=d)n.push(o.call(e,a));return n}
32(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,i,o,a,s,l,c,u){var i=e("buffer").Buffer,d=e("./sha"),p=e("./sha256"),f=e("./rng"),h={sha1:d,sha256:p,md5:e("./md5")},m=64,y=new i(64);function g(e,t){var r=h[e=e||"sha1"],n=[];return r||v("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),n.push(e),e.length,this},digest:function(e){var o=i.concat(n),a=t?function(e,t,r){i.isBuffer(t)||(t=new i(t)),i.isBuffer(r)||(r=new i(r)),t.length>m?t=e(t):t.length<m&&(t=i.concat([t,y],m));for(var n=new i(m),o=new i(m),a=0;a<m;a++)n[a]=54^t[a],o[a]=92^t[a];var s=e(i.concat([n,r]));return e(i.concat([o,s]))}(r,t,o):r(o);return n=null,e?a.toString(e):a}}}function v(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests\nhttp://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),r.createHash=function(e){return g(e)},r.createHmac=g,r.randomBytes=function(e,t){if(!t||!t.call)return new i(f(e));try{t.call(this,void 0,new i(f(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){v("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var d=e("./helpers");function p(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=0x67452301,n=-0x10325477,i=-0x67452302,o=0x10325476,a=0;a<e.length;a+=16){var s=r,l=n,c=i,u=o,r=h(r,n,i,o,e[a+0],7,-0x28955b88),o=h(o,r,n,i,e[a+1],12,-0x173848aa),i=h(i,o,r,n,e[a+2],17,0x242070db),n=h(n,i,o,r,e[a+3],22,-0x3e423112);r=h(r,n,i,o,e[a+4],7,-0xa83f051),o=h(o,r,n,i,e[a+5],12,0x4787c62a),i=h(i,o,r,n,e[a+6],17,-0x57cfb9ed),n=h(n,i,o,r,e[a+7],22,-0x2b96aff),r=h(r,n,i,o,e[a+8],7,0x698098d8),o=h(o,r,n,i,e[a+9],12,-0x74bb0851),i=h(i,o,r,n,e[a+10],17,-42063),n=h(n,i,o,r,e[a+11],22,-0x76a32842),r=h(r,n,i,o,e[a+12],7,0x6b901122),o=h(o,r,n,i,e[a+13],12,-0x2678e6d),i=h(i,o,r,n,e[a+14],17,-0x5986bc72),r=m(r,n=h(n,i,o,r,e[a+15],22,0x49b40821),i,o,e[a+1],5,-0x9e1da9e),o=m(o,r,n,i,e[a+6],9,-0x3fbf4cc0),i=m(i,o,r,n,e[a+11],14,0x265e5a51),n=m(n,i,o,r,e[a+0],20,-0x16493856),r=m(r,n,i,o,e[a+5],5,-0x29d0efa3),o=m(o,r,n,i,e[a+10],9,0x2441453),i=m(i,o,r,n,e[a+15],14,-0x275e197f),n=m(n,i,o,r,e[a+4],20,-0x182c0438),r=m(r,n,i,o,e[a+9],5,0x21e1cde6),o=m(o,r,n,i,e[a+14],9,-0x3cc8f82a),i=m(i,o,r,n,e[a+3],14,-0xb2af279),n=m(n,i,o,r,e[a+8],20,0x455a14ed),r=m(r,n,i,o,e[a+13],5,-0x561c16fb),o=m(o,r,n,i,e[a+2],9,-0x3105c08),i=m(i,o,r,n,e[a+7],14,0x676f02d9),r=y(r,n=m(n,i,o,r,e[a+12],20,-0x72d5b376),i,o,e[a+5],4,-378558),o=y(o,r,n,i,e[a+8],11,-0x788e097f),i=y(i,o,r,n,e[a+11],16,0x6d9d6122),n=y(n,i,o,r,e[a+14],23,-0x21ac7f4),r=y(r,n,i,o,e[a+1],4,-0x5b4115bc),o=y(o,r,n,i,e[a+4],11,0x4bdecfa9),i=y(i,o,r,n,e[a+7],16,-0x944b4a0),n=y(n,i,o,r,e[a+10],23,-0x41404390),r=y(r,n,i,o,e[a+13],4,0x289b7ec6),o=y(o,r,n,i,e[a+0],11,-0x155ed806),i=y(i,o,r,n,e[a+3],16,-0x2b10cf7b),n=y(n,i,o,r,e[a+6],23,0x4881d05),r=y(r,n,i,o,e[a+9],4,-0x262b2fc7),o=y(o,r,n,i,e[a+12],11,-0x1924661b),i=y(i,o,r,n,e[a+15],16,0x1fa27cf8),r=g(r,n=y(n,i,o,r,e[a+2],23,-0x3b53a99b),i,o,e[a+0],6,-0xbd6ddbc),o=g(o,r,n,i,e[a+7],10,0x432aff97),i=g(i,o,r,n,e[a+14],15,-0x546bdc59),n=g(n,i,o,r,e[a+5],21,-0x36c5fc7),r=g(r,n,i,o,e[a+12],6,0x655b59c3),o=g(o,r,n,i,e[a+3],10,-0x70f3336e),i=g(i,o,r,n,e[a+10],15,-1051523),n=g(n,i,o,r,e[a+1],21,-0x7a7ba22f),r=g(r,n,i,o,e[a+8],6,0x6fa87e4f),o=g(o,r,n,i,e[a+15],10,-0x1d31920),i=g(i,o,r,n,e[a+6],15,-0x5cfebcec),n=g(n,i,o,r,e[a+13],21,0x4e0811a1),r=g(r,
32n,i,o,e[a+4],6,-0x8ac817e),o=g(o,r,n,i,e[a+11],10,-0x42c50dcb),i=g(i,o,r,n,e[a+2],15,0x2ad7d2bb),n=g(n,i,o,r,e[a+9],21,-0x14792c6f),r=v(r,s),n=v(n,l),i=v(i,c),o=v(o,u)}return[r,n,i,o]}function f(e,t,r,n,i,o){var a,s;return v((a=v(v(t,e),v(n,o)))<<(s=i)|a>>>32-s,r)}function h(e,t,r,n,i,o,a){return f(t&r|~t&n,e,t,i,o,a)}function m(e,t,r,n,i,o,a){return f(t&n|r&~n,e,t,i,o,a)}function y(e,t,r,n,i,o,a){return f(t^r^n,e,t,i,o,a)}function g(e,t,r,n,i,o,a){return f(r^(t|~n),e,t,i,o,a)}function v(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return d.hash(e,p,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,i,o,a,s,l,c){var u,d;d=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=0x100000000*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r},t.exports=u||d}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){var d=e("./helpers");function p(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,i,o,a,s=Array(80),l=0x67452301,c=-0x10325477,u=-0x67452302,d=0x10325476,p=-0x3c2d1e10,m=0;m<e.length;m+=16){for(var y=l,g=c,v=u,b=d,w=p,_=0;_<80;_++){s[_]=_<16?e[m+_]:h(s[_-3]^s[_-8]^s[_-14]^s[_-16],1);var x=f(f(h(l,5),(i=c,o=u,a=d,(n=_)<20?i&o|~i&a:!(n<40)&&n<60?i&o|i&a|o&a:i^o^a)),f(f(p,s[_]),(r=_)<20?0x5a827999:r<40?0x6ed9eba1:r<60?-0x70e44324:-0x359d3e2a)),p=d,d=u,u=h(c,30),c=l,l=x}l=f(l,y),c=f(c,g),u=f(u,v),d=f(d,b),p=f(p,w)}return[l,c,u,d,p]}function f(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,p,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,i,o,a,s,l,c,u){function d(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function p(e,t){return e>>>t|e<<32-t}function f(e,t){var r,n,i,o,a,s,l,c,u,f,h=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],m=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],y=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,v,b,w,_,x,k,S,E=0;E<e.length;E+=16){r=m[0],n=m[1],i=m[2],o=m[3],a=m[4],s=m[5],l=m[6],c=m[7];for(var A=0;A<64;A++)y[A]=A<16?e[A+E]:d(d(d(p(S=y[A-2],17)^p(S,19)^S>>>10,y[A-7]),p(k=y[A-15],7)^p(k,18)^k>>>3),y[A-16]),u=d(d(d(d(c,p(x=a,6)^p(x,11)^p(x,25)),(_=a)&s^~_&l),h[A]),y[A]),f=d(p(w=r,2)^p(w,13)^p(w,22),(g=r)&(v=n)^g&(b=i)^v&b),c=l,l=s,s=a,a=d(o,u),o=i,i=n,n=r,r=d(u,f);m[0]=d(r,m[0]),m[1]=d(n,m[1]),m[2]=d(i,m[2]),m[3]=d(o,m[3]),m[4]=d(a,m[4]),m[5]=d(s,m[5]),m[6]=d(l,m[6]),m[7]=d(c,m[7]
32)}return m}var h=e("./helpers");t.exports=function(e){return h.hash(e,f,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,i,o,a,s,l,c){function u(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=u,e.addListener=u,e.once=u,e.off=u,e.removeListener=u,e.removeAllListeners=u,e.emit=u,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,i,o,a,s,l,c){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,p=r?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;0<u;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;0<u;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,p=5960464477539062e-23*(23===i),f=n?0:o-1,h=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+d?p/l:p*Math.pow(2,1-d))*l&&(a++,l/=2),u<=a+d?(s=0,a=u):1<=a+d?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));8<=i;e[r+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[r+f]=255&a,f+=h,a/=256,c-=8);e[r+f-h]|=128*m}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},79473:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},80003:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},80009:(e,t,r)=>{var n=r(38185);e.exports=function(e){return n(this,e).has(e)}},80389:(e,t,r)=>{var n=r(38185);e.exports=function(e){return n(this,e).get(e)}},80942:(e,t,r)=>{var n=r(73423),i=r(35443),o=r(58840),a="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},81495:(e,t,r)=>{var n=r(15668),i=r(77852),o=r(80389),a=r(80009),s=r(16809);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},81864:(e,t,r)=>{var n=r(4816),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;e.exports=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t})},83558:(e,t,r)=>{var n=r(94885),i=r(32198);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},83654:(e,t,r)=>{"use strict";var n=r(12115),i=r(14806);function o(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var a="function"==typeof Object.is?Object.is:o,s=i.useSyncExternalStore,l=n.useRef,c=n.useEffect,u=n.useMemo,d=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=l(null);if(null===o.current){var p={hasValue:!1,value:null};o.current=p}else p=o.current;var f=s(e,(o=u(function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,s=r)}
32var o,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],o[1]);return c(function(){p.hasValue=!0,p.value=f},[f]),d(f),f}},83980:(e,t,r)=>{let n=r(74047),{OPError:i,RPError:o}=r(95059),a=r(85346),s=r(7746),{CLOCK_TOLERANCE:l,HTTP_OPTIONS:c}=r(45186),u=r(14072),{setDefaults:d}=r(85983);e.exports={Issuer:n,Strategy:a,TokenSet:s,errors:{OPError:i,RPError:o},custom:{setHttpOptionsDefaults:d,http_options:c,clock_tolerance:l},generators:u}},84288:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(12115),i=r(4129);function o(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},84926:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},85346:(e,t,r)=>{let n=r(92313),{format:i}=r(634),o=r(12018),{RPError:a,OPError:s}=r(95059),{BaseClient:l}=r(66519),{random:c,codeChallenge:u}=r(14072),d=r(90815),{resolveResponseType:p,resolveRedirectUri:f}=r(98729);function h(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function m({client:e,params:t={},passReqToCallback:r=!1,sessionKey:i,usePKCE:a=!0,extras:s={}}={},c){if(!(e instanceof l))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=a,this._key=i||`oidc:${n.parse(this._issuer.issuer).hostname}`,this._params=o(t),delete this._params.state,delete this._params.nonce,this._extras=o(s),this._params.response_type||(this._params.response_type=p.call(e)),this._params.redirect_uri||(this._params.redirect_uri=f.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=n.parse(e.issuer.issuer).hostname}m.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let n=r.callbackParams(e),o=this._key,{0:s,length:l}=Object.keys(n);if(0===l||1===l&&"iss"===s){let n={state:c(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")&&(n.nonce=c()),e.session[o]=d(n,"nonce","state","max_age","response_type"),this._usePKCE&&n.response_type.includes("code")){let t=c();switch(e.session[o].code_verifier=t,this._usePKCE){case"S256":n.code_challenge=u(t),n.code_challenge_method="S256";break;case"plain":n.code_challenge=t}}this.redirect(r.authorizationUrl(n));return}let p=e.session[o];if(0===Object.keys(p||{}).length)throw Error(i('did not find expected authorization request details in session, req.session["%s"] is %j',o,p));let{state:f,nonce:m,max_age:y,code_verifier:g,response_type:v}=p;try{delete e.session[o]}catch(e){}let b={redirect_uri:this._params.redirect_uri,...t},w={state:f,nonce:m,max_age:y,code_verifier:g,response_type:v},_=await r.callback(b.redirect_uri,n,w,this._extras),x=this._passReqToCallback,k=this._verify.length>(x?3:2)&&r.issuer.userinfo_endpoint,S=[_,h.bind(this)];if(k){if(!_.access_token)throw new a({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:_});let e=await r.userinfo(_);S.splice(1,0,e)}x&&S.unshift(e),this._verify(...S)})().catch(e=>{e instanceof s&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof a?this.fail(e):this.error(e)})},e.exports=m},85983:(e,t,r)=>{let n;var i=r(15376).Buffer;let o=r(5450),a=r(62521),s=r(23431),l=r(89220),{once:c}=r(65240),{URL:u}
32=r(92313),d=r(63413),p=r(52962),{RPError:f}=r(95059),h=r(90815),{deep:m}=r(46216),{HTTP_OPTIONS:y}=r(45186),g=/^[\x21\x23-\x5B\x5D-\x7E]+$/,v=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],b=(e,t)=>{n=m({},e.length?h(t,...e):t,n)};function w(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",i.byteLength(t)),e.write(t)),e.end()}b([],{headers:{"User-Agent":`${p.name}/${p.version} (${p.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let _=new d({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:d}={}){let p,b,x,k,S,E,A;try{p=new u(e.url),delete e.url,o(/^(https?:)$/.test(p.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let C=this[y],O=e,T=`${p.origin}${p.pathname}`;if(d&&"dpopProof"in this&&(O.headers=O.headers||{},O.headers.DPoP=await this.dpopProof({htu:`${p.origin}${p.pathname}`,htm:e.method||"GET",nonce:_.get(T)},d,t)),C&&(b=h(C.call(this,p,m({},O,n)),...v)),O=m({},b,O,n),r&&!O.pfx&&!(O.key&&O.cert))throw TypeError("mutual-TLS certificate and key not set");if(O.searchParams)for(let[e,t]of Object.entries(O.searchParams))p.searchParams.delete(e),p.searchParams.set(e,t);for(let[e,t]of({form:k,responseType:x,json:S,body:E,...O}=O,Object.entries(O.headers||{})))void 0===t&&delete O.headers[e];let R=("https:"===p.protocol?l.request:s.request)(p.href,O);return(async()=>{if(S?w(R,JSON.stringify(S),"application/json"):k?w(R,a.stringify(k),"application/x-www-form-urlencoded"):E?w(R,E):w(R),[A]=await Promise.race([c(R,"response"),c(R,"timeout")]),!A)throw R.destroy(),new f(`outgoing request timed out after ${O.timeout}ms`);let e=[];for await(let t of A)e.push(t);if(e.length)switch(x){case"json":Object.defineProperty(A,"body",{get(){let t=i.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:A}),e}finally{Object.defineProperty(A,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(A,"body",{get(){let t=i.concat(e);return Object.defineProperty(A,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return A})().catch(e=>{throw A&&Object.defineProperty(e,"response",{value:A}),e}).finally(()=>{let e=A&&A.headers["dpop-nonce"];e&&g.test(e)&&_.set(T,e)})},e.exports.setDefaults=b.bind(void 0,v)},86150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(94056);function i(e){var t;let{url:r,error:i="default",theme:o}=e,a=`${r}/signin`,s={default:{status:200,heading:"Error",message:(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:null==r?void 0:r.origin},null==r?void 0:r.host))},configuration:{status:500,heading:"Server error",message:(0,n.h)("div",null,(0,n.h)("p",null,"There is a problem with the server configuration."),(0,n.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,n.h)("div",null,(0,n.h)("p",null,"You do not have permission to sign in."),(0,n.h)("p",null,(0,n.h)("a",{className:"button",href:a}
32,"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,n.h)("div",null,(0,n.h)("p",null,"The sign in link is no longer valid."),(0,n.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,n.h)("a",{className:"button",href:a},"Sign in")}},{status:l,heading:c,message:u,signin:d}=null!=(t=s[i.toLowerCase()])?t:s.default;return{status:l,html:(0,n.h)("div",{className:"error"},(null==o?void 0:o.brandColor)&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:`
33        :root {
34          --brand-color: ${null==o?void 0:o.brandColor}
35        }
36      `}}),(0,n.h)("div",{className:"card"},(null==o?void 0:o.logo)&&(0,n.h)("img",{src:o.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,c),(0,n.h)("div",{className:"message"},u),d))}}},86651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},87862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(30126),i=r(89790),o=s(r(38464));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function l({options:e,query:t}){var r,a,s;let{logger:l,provider:c}=e,u={};if("string"==typeof c.authorization){let e=Object.fromEntries(new URL(c.authorization).searchParams);u={...u,...e}}else u={...u,...null==(a=c.authorization)?void 0:a.params};if(u={...u,...t},null!=(r=c.version)&&r.startsWith("1.")){let t=(0,i.oAuth1Client)(e),r=await t.getOAuthRequestToken(u),n=`${null==(s=c.authorization)?void 0:s.url}?${new URLSearchParams({oauth_token:r.oauth_token,oauth_token_secret:r.oauth_token_secret,...r.params})}`;return i.oAuth1TokenStore.set(r.oauth_token,r.oauth_token_secret),l.debug("GET_AUTHORIZATION_URL",{url:n,provider:c}),{redirect:n}}let d=await (0,n.openidClient)(e),p=u,f=[];await o.state.create(e,f,p),await o.pkce.create(e,f,p),await o.nonce.create(e,f,p);let h=d.authorizationUrl(p);return l.debug("GET_AUTHORIZATION_URL",{url:h,cookies:f,provider:c}),{redirect:h,cookies:f}}},88314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MutableRequestCookiesAdapter:function(){return d},ReadonlyRequestCookiesError:function(){return a},RequestCookiesAdapter:function(){return s},appendMutableCookies:function(){return u},areCookiesMutableInCurrentPhase:function(){return f},createCookiesWithMutableAccessCheck:function(){return p},getModifiedCookieValues:function(){return c},responseCookiesToRequestCookies:function(){return m}});let n=r(5425),i=r(13972),o=r(8567);class a 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")}static callable(){throw new a}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return a.callable;default:return i.ReflectAdapter.get(e,t,r)}}})}}let l=Symbol.for("next.mutated.cookies");function c(e){let t=e[l];return t&&Array.isArray(t)&&0!==t.length?t:[]}function u(e,t){let r=c(t);if(0===r.length)return!1;let i=new n.ResponseCookies(e),o=i.getAll();for(let e of r)i.set(e);for(let e of o)i.set(e);return!0}class d{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let a=[],s=new Set,c=()=>{let e=o.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),a=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of a){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}},u=new Proxy(r,{get(e,t,r){switch(t){case l:return a;
36case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.delete(...t),u}finally{c()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t),u}finally{c()}};default:return i.ReflectAdapter.get(e,t,r)}}});return u}}function p(e){let t=new Proxy(e.mutableCookies,{get(r,n,o){switch(n){case"delete":return function(...n){return h(e,"cookies().delete"),r.delete(...n),t};case"set":return function(...n){return h(e,"cookies().set"),r.set(...n),t};default:return i.ReflectAdapter.get(r,n,o)}}});return t}function f(e){return"action"===e.phase}function h(e,t){if(!f(e))throw new a}function m(e){let t=new n.RequestCookies(new Headers);for(let r of e.getAll())t.set(r);return t}},88658:(e,t,r)=>{"use strict";var n,i;r.d(t,{CR:()=>a,ZS:()=>n,Zp:()=>o}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(n={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(i||(i={}));let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("undefined"!=typeof Map&&e instanceof Map)return o.map;if("undefined"!=typeof Set&&e instanceof Set)return o.set;if("undefined"!=typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},89220:(e,t,r)=>{var n="/";!function(){var t={528:function(e,t,r){var n=r(685),i=r(310),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(23431)},310:function(e){"use strict";e.exports=r(92313)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/",e.exports=o(528)}()},89715:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},89790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oAuth1Client=i,t.oAuth1TokenStore=void 0;var n=r(57488);function i(e){var t,r;let i=e.provider,o=new n.OAuth(i.requestTokenUrl,i.accessTokenUrl,i.clientId,i.clientSecret,null!=(t=i.version)?t:"1.0",i.callbackUrl,null!=(r=i.encoding)?r:"HMAC-SHA1"),a=o.get.bind(o);o.get=async(...e)=>await new Promise((t,r)=>{a(...e,(e,n)=>{if(e)return r(e);t(n)})});let s=o.getOAuthAccessToken.bind(o);o.getOAuthAccessToken=async(...e)=>await new Promise((t,r)=>{s(...e,(e,n,i)=>{if(e)return r(e);t({oauth_token:n,oauth_token_secret:i})})});let l=o.getOAuthRequestToken.bind(o);return o.getOAuthRequestToken=async(e={})=>await new Promise((t,r)=>{l(e,(e,n,i,o)=>
36{if(e)return r(e);t({oauth_token:n,oauth_token_secret:i,params:o})})}),o}t.oAuth1TokenStore=new Map},90332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return C},PreludeState:function(){return X},abortAndThrowOnSynchronousRequestDataAccess:function(){return S},abortOnSynchronousPlatformIOAccess:function(){return x},accessedDynamicData:function(){return N},annotateDynamicAccess:function(){return B},consumeDynamicAccess:function(){return D},createDynamicTrackingState:function(){return m},createDynamicValidationState:function(){return y},createHangingInputAbortSignal:function(){return H},createRenderInBrowserAbortSignal:function(){return F},delayUntilRuntimeStage:function(){return ee},formatDynamicAPIAccesses:function(){return L},getFirstDynamicReason:function(){return g},isDynamicPostpone:function(){return R},isPrerenderInterruptedError:function(){return I},logDisallowedDynamicError:function(){return Y},markCurrentScopeAsDynamic:function(){return v},postponeWithTracking:function(){return O},throwIfDisallowedDynamic:function(){return Q},throwToInterruptStaticGeneration:function(){return b},trackAllowedDynamicAccess:function(){return G},trackDynamicDataInDynamicRender:function(){return w},trackSynchronousPlatformIOAccessInDev:function(){return k},trackSynchronousRequestDataAccessInDev:function(){return A},useDynamicRouteParams:function(){return z},warnOnSyncDynamicError:function(){return E}});let n=f(r(12115)),i=r(17480),o=r(97412),a=r(11332),s=r(8567),l=r(10939),c=r(68440),u=r(10296),d=r(24553),p=r(48302);function f(e){return e&&e.__esModule?e:{default:e}}let h="function"==typeof n.default.unstable_postpone;function m(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function y(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function g(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function v(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError("Route ".concat(e.route,' with `dynamic = "error"` couldn\'t be rendered statically because it used `').concat(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,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return O(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new i.DynamicServerError("Route ".concat(e.route," couldn't be rendered statically because it used ").concat(r,". See more info here: https://nextjs.org/docs/messages/dynamic-server-error")),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function b(e,t,r){let n=Object.defineProperty(new i.DynamicServerError("Route ".concat(t.route," couldn't be rendered statically because it used `").concat(e,"`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error")),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function w(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function _(e,t,r){let n=M("Route ".concat(e," needs to bail out of prerendering at this point because it used ").concat(t,"."));r.controller.abort(n);let i=r.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function x(e,t,r,n){let i=n.dynamicTracking;_(e,t,n),i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}function k(e){e.prerenderPhase=!1}function S(e,t,r,n){if(!1===n.controller.signal.aborted){_(e,t,n);let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}throw M("Route ".concat(e," needs to bail out of prerendering at this point because it used ").concat(t,"."))}function E(e){e.syncDynamicErrorWithStack&&console.error(e.syncDynamicErrorWithStack)}let A=k;function C(e){let{reason:t,route:r}=e,n=a.workUnitAsyncStorage.getStore();O(r,t,n&&"prerender-ppr"===n.type?n.dynamicTracking:null)}function O(e,t,r){U(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),n.default.unstable_postpone(T(e,t))}function T(e,t){return"Route ".concat(e," needs to bail out of prerendering at this point because it used ").concat(t,". ")+"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 R(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&j(e.message)}function j(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===j(T("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,
36configurable:!0});let P="NEXT_PRERENDER_INTERRUPTED";function M(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=P,t}function I(e){return"object"==typeof e&&null!==e&&e.digest===P&&"name"in e&&"message"in e&&e instanceof Error}function N(e){return e.length>0}function D(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function L(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(e=>{let{expression:t,stack:r}=e;return r=r.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),"Dynamic API Usage Debug - ".concat(t,":\n").concat(r)})}function U(){if(!h)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 F(){let e=new AbortController;return e.abort(Object.defineProperty(new d.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function H(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else{let r=(0,a.getRuntimeStagePromise)(e);r?r.then(()=>(0,u.scheduleOnNextTick)(()=>t.abort())):(0,u.scheduleOnNextTick)(()=>t.abort())}return t.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return}}function B(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function z(e){let t=s.workAsyncStorage.getStore(),r=a.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let i=r.fallbackRouteParams;i&&i.size>0&&n.default.use((0,l.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return O(t.route,e,r.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new p.InvariantError("`".concat(e,"` was called during a runtime prerender. Next.js should be preventing ").concat(e," 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 p.InvariantError("`".concat(e,"` was called inside a cache scope. Next.js should be preventing ").concat(e," from being included in server components statically, but did not in this case.")),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0})}}let W=/\n\s+at Suspense \(<anonymous>\)/,$="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",q=new RegExp("\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:".concat($,") \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ").concat(c.ROOT_LAYOUT_BOUNDARY_NAME," \\([^\\n]*\\)")),K=new RegExp("\\n\\s+at ".concat(c.METADATA_BOUNDARY_NAME,"[\\n\\s]")),V=new RegExp("\\n\\s+at ".concat(c.VIEWPORT_BOUNDARY_NAME,"[\\n\\s]")),J=new RegExp("\\n\\s+at ".concat(c.OUTLET_BOUNDARY_NAME,"[\\n\\s]"));function G(e,t,r,n){if(!J.test(t)){if(K.test(t)){r.hasDynamicMetadata=!0;return}if(V.test(t)){r.hasDynamicViewport=!0;return}if(q.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(W.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=Z('Route "'.concat(e.route,'": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense'),t);return void r.dynamicErrors.push(i)}}}function Z(e,t){let r=null,n=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n.stack=n.name+": "+e+(null!=r?r:t),n}var X=function(e){return e[e.Full=0]="Full",e[e.Empty=1]="Empty",e[e.Errored=2]="Errored",e}({});function Y(e,t){console.error(t),e.dev||(e.hasReadableErrorStacks?console.error('To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running `next dev`, then open "'.concat(e.route,'" in your browser to investigate the error.')):console.error('To get a more detailed stack trace and pinpoint the issue, try one of the following:\n  - Start the app in development mode by running `next dev`, then open "'.concat(e.route,'" in your browser to investigate the error.\n  - Rerun the production build with `next build --debug-prerender` to generate better stack traces.')))}function Q(e,t,r,n){if(0!==t){if(r.hasSuspenseAboveBody)return;if(n.syncDynamicErrorWithStack)throw Y(e,n.syncDynamicErrorWithStack),new o.StaticGenBailoutError;let i=r.dynamicErrors;if(i.length>0){for(let t=0;t<i.length;t++)Y(e,i[t]);throw new o.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error('Route "'.concat(e.route,'" has a `generateViewport` that depends on Request data (`cookies()`, etc...) or uncached external data (`fetch(...)`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport')),new o.StaticGenBailoutError;if(1===t)throw console.error('Route "'.concat(e.route,'" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.')),new o.StaticGenBailoutError}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error('Route "'.concat(e.route,'" has a `generateMetadata` that depends on Request data (`cookies()`, etc...) or uncached external data (`fetch(...)`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata')),new o.StaticGenBailoutError}function ee(e,t){return e.runtimeStagePromise?e.runtimeStagePromise.then(()=>t):t}},90815:e=>{e.exports=function(e,...t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r}},91426:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},91837:(e,t,r)=>{let n=r(79452),i=r(63413),{RPError:o}=r(95059),{assertIssuerConfiguration:a}=r(57792),s=r(32338),{keystores:l}=r(61379),c=r(13511),u=r(85983),d=new WeakMap,p=new WeakMap,f=e=>(p.has(e)||p.set(e,new i({max:100})),p.get(e));async function h(e=!1){a(this,"jwks_uri");let t=l.get(this),r=f(this);return e||!t?(d.has(this)||(r.reset(),d.set(this,(async()=>{let e=c(await u.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{d.delete(this)})),t=s.fromJWKS(e,{onlyPublic:!0});return r.set("throttle",!0,6e4),l.set(this,t),t})())),d.get(this)):t}async function m({kid:e,kty:t,alg:r,use:i},{allowMulti:a=!1}={}){let s=f(this),l={kid:e,kty:t,alg:r,use:i},c=n(l,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0,respectType:!1}),u=s.get(c)||s.get("throttle"),d=await h.call(this,!u),p=d.all(l);
36if(delete l.use,0===p.length)throw new o({printf:["no valid key found in issuer's jwks_uri for key parameters %j",l],jwks:d});if(!a&&p.length>1&&!e)throw new o({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",l],jwks:d});return s.set(c,!0),p}e.exports.queryKeyStore=m,e.exports.keystore=h},92313:(e,t,r)=>{var n="/";!function(){var t={452:function(e){"use strict";e.exports=r(62521)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},a=!0;try{t[e](n,n.exports,o),a=!1}finally{a&&delete i[e]}return n.exports}o.ab=n+"/";var a={};!function(){var e,t=a,r=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function i(e){"string"==typeof e&&(e=b(e));var t=function(e,t,r){var n=e.auth,i=e.hostname,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?c=n+e.host:i&&(c=n+(~i.indexOf(":")?"["+i+"]":i),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=t.encode(l));var u=e.search||l&&"?"+l||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),{protocol:o,host:c,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:u=u.replace("#","%23"),hash:s}}(e,r,n);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var s="http://",l="w.w",c=s+l,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,d=/https?|ftp|gopher|file/;function p(e,t){var r="string"==typeof e?b(e):e;e="object"==typeof e?i(e):e;var n=b(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,t=t.replace(n.protocol,"")));var a=e.match(u);a&&!n.protocol&&(e=e.substr((o=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var l=new URL(e,c+"/"),p=new URL(t,l).toString().replace(c,""),f=n.protocol||r.protocol;return f+=r.slashes||n.slashes?"//":"",!o&&f?p=p.replace(s,f):o&&(p=p.replace(s,"")),d.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function f(){}f.prototype.parse=b,f.prototype.format=i,f.prototype.resolve=p,f.prototype.resolveObject=p;var h=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,y=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof f)return e;var o=(e=e.trim()).match(m);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(y),s=g.test(e),u="";a&&(h.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(s=!1,h.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var d,p=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=p&&p[1],w=new f,_="",x="";try{d=new URL(e)}catch(t){_=t,u||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(x="/",e=e.substr(1));try{d=new URL(e,c)}catch(e){return w.protocol=u,w.href=u,w}}w.slashes=s&&!x,w.host=d.host===l?"":d.host,w.hostname=d.hostname===l?"":d.hostname.replace(/(\[|\])/g,""),w.protocol=_?u||null:d.protocol,w.search=d.search.replace(/\\/g,"%5C"),w.hash=d.hash.replace(/\\/g,"%5C");var k=e.split("#");!w.search&&~k[0].indexOf("?")&&(w.search="?"),w.hash||""!==k[1]||(w.hash="#"),w.query=t?r.decode(d.search.substr(1)):w.search.substr(1),w.pathname=x+(a?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(d.pathname):d.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),u&&!h.test(u)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[d.username,d.password].map(decodeURIComponent).filter(
vendor: 4,223 bytes, line 36
36Boolean).join(":"),w.port=d.port,b&&!w.host.endsWith(b)&&(w.host+=b,w.port=b.slice(1)),w.href=x?""+w.pathname+w.search+w.hash:i(w);var S=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~S.indexOf(e)||(w[e]=w[e]||null)}),w}t.parse=b,t.format=i,t.resolve=p,t.resolveObject=function(e,t){return b(p(e,t))},t.Url=f}(),e.exports=a}()},92322:(e,t,r)=>{"use strict";function n(e){this.content=e}r.d(t,{S4:()=>es,ZF:()=>e_,FK:()=>s,CU:()=>d,sX:()=>er,bP:()=>P,u$:()=>R,vI:()=>p,Sj:()=>en,Ji:()=>f}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,o=i.find(e),a=i.content.slice();return -1==o?a.push(r||e,t):(a[o+1]=t,r&&(a[o]=r)),new n(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),o=i.content.slice(),a=i.find(e);return o.splice(-1==a?o.length:a,0,t,r),new n(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};let i=n;function o(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let i=e.child(n),a=t.child(n);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)r++;return r}if(i.content.size||a.content.size){let e=o(i.content,a.content,r+1);if(null!=e)return e}r+=i.nodeSize}}function a(e,t,r,n){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:r,b:n};let s=e.child(--i),l=t.child(--o),c=s.nodeSize;if(s==l){r-=c,n-=c;continue}if(!s.sameMarkup(l))return{a:r,b:n};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);for(;e<t&&s.text[s.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(s.content.size||l.content.size){let e=a(s.content,l.content,r-1,n-1);if(e)return e}r-=c,n-=c}}class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let o=0,a=0;a<t;o++){let s=this.content[o],l=a+s.nodeSize;if(l>e&&!1!==r(s,n+a,i||null,o)&&s.content.size){let i=a+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),r,n+i)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",o=!0;return this.nodesBetween(e,t,(a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(o?o=!1:i+=r),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new s(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,o=0;o<t;i++){let a=this.content[i],s=o+a.nodeSize;s>e&&((o<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),n+=a.nodeSize),o=s}return new s(r,n)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;
vendor: 3,719 bytes, line 36
36let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new s(n,i)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return o(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return a(this,e,t,r)}findIndex(e){if(0==e)return c(0,e);if(e==this.size)return c(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return c(t+1,n);return c(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new s(t||e,r)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);let l={index:0,offset:0};function c(e,t){return l.index=e,l.offset=t,l}function u(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}d.none=[];
vendor: 6,355 bytes, line 36
36class p extends Error{}class f{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=m(this.content,e+this.openStart,t);return r&&new f(r,this.openStart,this.openEnd)}removeBetween(e,t){return new f(h(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new f(e,r,n)}}function h(e,t,r){let{index:n,offset:i}=e.findIndex(t),o=e.maybeChild(n),{index:a,offset:s}=e.findIndex(r);if(i==t||o.isText){if(s!=r&&!e.child(a).isText)throw RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=a)throw RangeError("Removing non-flat range");return e.replaceChild(n,o.copy(h(o.content,t-i-1,r-i-1)))}function m(e,t,r,n){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));let s=m(a.content,t-o-1,r,a);return s&&e.replaceChild(i,a.copy(s))}function y(e,t,r){if(r.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new p("Inconsistent open depths");return g(e,t,r,0)}function g(e,t,r,n){let i=e.index(n),o=e.node(n);if(i==t.index(n)&&n<e.depth-r.openStart){let a=g(e,t,r,n+1);return o.copy(o.content.replaceChild(i,a))}if(!r.content.size)return x(o,S(e,t,n));if(r.openStart||r.openEnd||e.depth!=n||t.depth!=n){let{start:i,end:a}=E(r,e);return x(o,k(e,i,a,t,n))}{let n=e.parent,i=n.content;return x(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(t.parentOffset)))}}function v(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function b(e,t,r){let n=e.node(r);return v(n,t.node(r)),n}function w(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function _(e,t,r,n){let i=(t||e).node(r),o=0,a=t?t.index(r):i.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(w(e.nodeAfter,n),o++));for(let e=o;e<a;e++)w(i.child(e),n);t&&t.depth==r&&t.textOffset&&w(t.nodeBefore,n)}function x(e,t){return e.type.checkContent(t),e.copy(t)}function k(e,t,r,n,i){let o=e.depth>i&&b(e,t,i+1),a=n.depth>i&&b(r,n,i+1),l=[];return _(null,e,i,l),o&&a&&t.index(i)==r.index(i)?(v(o,a),w(x(o,k(e,t,r,n,i+1)),l)):(o&&w(x(o,S(e,t,i+1)),l),_(t,r,i,l),a&&w(x(a,S(r,n,i+1)),l)),_(n,null,i,l),new s(l)}function S(e,t,r){let n=[];return _(null,e,r,n),e.depth>r&&w(x(b(e,t,r+1),S(e,t,r+1)),n),_(t,null,r,n),new s(n)}function E(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(s.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}f.empty=new f(s.empty,0,0);class A{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||n&&i[o].isInSet(n.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new R(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),a=i-o;if(r.push(t,e,n+o),!a||(t=t.child(e)).isText)break;
vendor: 8,186 bytes, line 36
36i=a-1,n+=o+1}return new A(t,r,i)}static resolveCached(e,t){let r=T.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else T.set(e,r=new C);let n=r.elts[r.i]=A.resolve(e,t);return r.i=(r.i+1)%O,n}}class C{constructor(){this.elts=[],this.i=0}}let O=12,T=new WeakMap;class R{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let j=Object.create(null);class P{constructor(e,t,r,n=d.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&u(this.attrs,t||e.defaultAttrs||j)&&d.sameSet(this.marks,r||d.none)}copy(e=null){return e==this.content?this:new P(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return f.empty;let n=this.resolve(e),i=this.resolve(t),o=r?0:n.sharedDepth(t),a=n.start(o);return new f(n.node(o).content.cut(n.pos-a,i.pos-a),n.depth-o,i.depth-o)}replace(e,t,r){return y(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return A.resolveCached(this,e)}resolveNoCache(e){return A.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),I(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=s.empty,n=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,n,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=d.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!d.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=s.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}P.prototype.text=void 0;class M extends P{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):I(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new M(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new M(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function I(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class N{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new D(e,t);if(null==r.next)return N.empty;let n=L(r);r.next&&r.err("Unexpected trailing text");let i=V($(n));return J(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];function i(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return s.from(a.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:r}=o.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,a.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:a}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||n.type&&!a.validEnd||(r.push({match:o.contentMatch,type:o,via:n}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}return t(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}N.empty=new N(!0);class D{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?
36=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function L(e){let t=[];do t.push(U(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function U(e){let t=[];do t.push(F(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function F(e){let t=W(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=B(e,t);else break;return t}function H(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function B(e,t){let r=H(e),n=r;return e.eat(",")&&(n="}"!=e.next?H(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function z(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function W(e){if(e.eat("(")){let t=L(e);return e.eat(")")||e.err("Missing closing paren"),t}if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=z(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}}function $(e){let t=[[]];return i(o(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(o(r,t)),[]);if("seq"==e.type)for(let n=0;;n++){let a=o(e.exprs[n],t);if(n==e.exprs.length-1)return a;i(a,t=r())}else if("star"==e.type){let a=r();return n(t,a),i(o(e.expr,a),a),[n(a)]}else if("plus"==e.type){let a=r();return i(o(e.expr,t),a),i(o(e.expr,a),a),[n(a)]}else if("opt"==e.type)return[n(t)].concat(o(e.expr,t));else if("range"==e.type){let a=t;for(let t=0;t<e.min;t++){let t=r();i(o(e.expr,a),t),a=t}if(-1==e.max)i(o(e.expr,a),a);else for(let t=e.min;t<e.max;t++){let t=r();n(a,t),i(o(e.expr,a),t),a=t}return[n(a)]}else if("name"==e.type)return[n(t,void 0,e.value)];else throw Error("Unknown expr type")}}function q(e,t){return t-e}function K(e,t){let r=[];return n(t),r.sort(q);function n(t){let i=e[t];if(1==i.length&&!i[0].term)return n(i[0].to);r.push(t);for(let e=0;e<i.length;e++){let{term:t,to:o}=i[e];t||-1!=r.indexOf(o)||n(o)}}}function V(e){let t=Object.create(null);return r(K(e,0));function r(n){let i=[];n.forEach(t=>{e[t].forEach(({term:t,to:r})=>{let n;if(t){for(let e=0;e<i.length;e++)i[e][0]==t&&(n=i[e][1]);K(e,r).forEach(e=>{n||i.push([t,n=[]]),-1==n.indexOf(e)&&n.push(e)})}})});let o=t[n.join(",")]=new N(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(q);o.next.push({type:i[e][0],next:t[n.join(",")]||r(n)})}return o}}function J(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:r,next:a}=e.next[t];o.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(a)&&n.push(a)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function G(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function Z(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function X(e,t,r,n){for(let n in t)if(!(n in e))throw RangeError(`Unsupported attribute ${n} for ${r} of type ${n}`);for(let r in e){let n=e[r];n.validate&&n.validate(t[r])}}function Y(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new et(e,n,t[n]);return r}class Q{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Y(e,r.attrs),this.defaultAttrs=G(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==N.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Z(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new P(this,this.computeAttrs(e),s.from(t),d.setFrom(r))}createChecked(e=null,t,r){return t=s.from(t),this.checkContent(t),new P(this,this.computeAttrs(e),t,d.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=s.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(s.empty,!0);return i?new P(this,e,t.append(i),d.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
36if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){X(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:d.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new Q(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}function ee(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}class et{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?ee(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class er{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=Y(e,n.attrs),this.excluded=null;let i=G(this.attrs);this.instance=i?new d(this,i):null}create(e=null){return!e&&this.instance?this.instance:new d(this,Z(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new er(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){X(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class en{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=Q.compile(this.spec.nodes,this),this.marks=er.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=N.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?ei(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:ei(this,r.split(" "))}this.nodeFromJSON=e=>P.fromJSON(this,e),this.markFromJSON=e=>d.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof Q){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new M(r,r.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function ei(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],o=e.marks[i],a=o;if(o)r.push(o);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(a=n)}if(!a)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}function eo(e){return null!=e.tag}function ea(e){return null!=e.style}class es{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];
36t.forEach(e=>{if(eo(e))this.tags.push(e);else if(ea(e)){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new ey(this,t,!1);return r.addAll(e,d.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new ey(this,t,!0);return r.addAll(e,d.none,t.from,t.to),f.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(ev(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],o=n.style;if(0==o.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=eb(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=eb(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new es(e,es.schemaRules(e)))}}let el={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ec={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},eu={ol:!0,ul:!0},ed=1,ep=2,ef=4;function eh(e,t,r){return null!=t?(t?ed:0)|("full"===t?ep:0):e&&"pre"==e.whitespace?ed|ep:r&~ef}class em{constructor(e,t,r,n,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=o,this.content=[],this.activeMarks=d.none,this.match=i||(o&ef?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&ed)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let r=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-t[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!el.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ey{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,o=eh(null,t.preserveWhitespace,0)|(r?ef:0);i=n?new em(n.type,n.attrs,d.none,!0,t.topMatch||n.type.contentMatch,o):r?new em(null,null,d.none,!0,null,o):new em(e.schema.topNodeType,null,d.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=n.options&ep?"full":this.localPreserveWS||(n.options&ed)>0,{schema:o}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(o.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),a;eu.hasOwnProperty(o)&&this.parser.normalizeLists&&eg(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));r:if(s?s.ignore:ec.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let r,n=this.needsBlock;if(el.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break r}let a=s&&s.skip?t:this.readStyles(e,t);a&&this.addAll(e,a),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,s,r,!1===s.consuming?a:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;
vendor: 4,201 bytes, line 36
36if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,o;if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(o,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(a)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=null==n?null:e.childNodes[n];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,o=0;t>=0;t--){let a=this.nodes[t],s=a.findWrapping(e);if(s&&(!n||n.length>s.length+o)&&(n=s,i=a,!s.length))break;if(a.solid){if(r)break;o+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=d.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):ew(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=eh(e,i,o.options);o.options&ef&&0==o.content.length&&(a|=ef);let s=d.none;return r=r.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!ew(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new em(e,t,s,n,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=ed);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,o=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let e=a>0||0==a&&n?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;
36if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function eg(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&eu.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}function ev(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function eb(e){let t={};for(let r in e)t[r]=e[r];return t}function ew(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>o.indexOf(i)&&a(i))return!0}};if(a(i.contentMatch))return!0}}class e_{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=ek(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,o=0;for(;r<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,o++}for(;r<i.length;)n=i.pop()[1];for(;o<e.marks.length;){let r=e.marks[o++],a=this.serializeMark(r,e.isInline,t);a&&(i.push([r,n]),n.appendChild(a.dom),n=a.contentDOM||a.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=eC(ek(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&eC(ek(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return eC(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new e_(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ex(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ex(e.marks)}}function ex(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ek(e){return e.document||window.document}let eS=new WeakMap;function eE(e){let t=eS.get(e);return void 0===t&&eS.set(e,t=eA(e)),t}function eA(e){let t=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)r(e[t]);else for(let t in e)r(e[t])}return r(e),t}function eC(e,t,r,n){let i;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o=t[0],a;if("string"!=typeof o)throw RangeError("Invalid array passed to renderSpec");if(n&&(a=eE(n))&&a.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(r=o.slice(0,s),o=o.slice(s+1));let l=r?e.createElementNS(r,o):e.createElement(o),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){for(let e in u=2,c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):"style"==e&&l.style?l.style.cssText=c[e]:l.setAttribute(e,c[e])}}for(let o=u;o<t.length;o++){let a=t[o];if(0===a){if(o<t.length-1||o>u)throw RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:o}=eC(e,a,r,n);if(l.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:l,contentDOM:i}}},92441:(e,t,r)=>{var n=r(18135);e.exports=function(e){return n(this.__data__,e)>-1}},92496:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NIL:()=>L,parse:()=>y,stringify:()=>p,v1:()=>m,v3:()=>P,v4:()=>M,v5:()=>D,validate:()=>c,version:()=>U});var n,i,o,a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}let l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&l.test(e)};for(var u=[],d=0;d<256;++d)u.push((d+256).toString(16).substr(1));let p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();
36if(!c(r))throw TypeError("Stringified UUID is invalid");return r};var f=0,h=0;let m=function(e,t,r){var n=t&&r||0,a=t||Array(16),l=(e=e||{}).node||i,c=void 0!==e.clockseq?e.clockseq:o;if(null==l||null==c){var u=e.random||(e.rng||s)();null==l&&(l=i=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==c&&(c=o=(u[6]<<8|u[7])&16383)}var d=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,y=d-f+(m-h)/1e4;if(y<0&&void 0===e.clockseq&&(c=c+1&16383),(y<0||d>f)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");f=d,h=m,o=c;var g=((0xfffffff&(d+=122192928e5))*1e4+m)%0x100000000;a[n++]=g>>>24&255,a[n++]=g>>>16&255,a[n++]=g>>>8&255,a[n++]=255&g;var v=d/0x100000000*1e4&0xfffffff;a[n++]=v>>>8&255,a[n++]=255&v,a[n++]=v>>>24&15|16,a[n++]=v>>>16&255,a[n++]=c>>>8|128,a[n++]=255&c;for(var b=0;b<6;++b)a[n+b]=l[b];return t||p(a)},y=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function g(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var v="6ba7b810-9dad-11d1-80b4-00c04fd430c8",b="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function w(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=g(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return p(a)}try{n.name=e}catch(e){}return n.DNS=v,n.URL=b,n}function _(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}function x(e){return(e+64>>>9<<4)+14+1}function k(e,t){e[t>>5]|=128<<t%32,e[x(t)-1]=t;for(var r=0x67452301,n=-0x10325477,i=-0x67452302,o=0x10325476,a=0;a<e.length;a+=16){var s=r,l=n,c=i,u=o;r=O(r,n,i,o,e[a],7,-0x28955b88),o=O(o,r,n,i,e[a+1],12,-0x173848aa),i=O(i,o,r,n,e[a+2],17,0x242070db),n=O(n,i,o,r,e[a+3],22,-0x3e423112),r=O(r,n,i,o,e[a+4],7,-0xa83f051),o=O(o,r,n,i,e[a+5],12,0x4787c62a),i=O(i,o,r,n,e[a+6],17,-0x57cfb9ed),n=O(n,i,o,r,e[a+7],22,-0x2b96aff),r=O(r,n,i,o,e[a+8],7,0x698098d8),o=O(o,r,n,i,e[a+9],12,-0x74bb0851),i=O(i,o,r,n,e[a+10],17,-42063),n=O(n,i,o,r,e[a+11],22,-0x76a32842),r=O(r,n,i,o,e[a+12],7,0x6b901122),o=O(o,r,n,i,e[a+13],12,-0x2678e6d),i=O(i,o,r,n,e[a+14],17,-0x5986bc72),n=O(n,i,o,r,e[a+15],22,0x49b40821),r=T(r,n,i,o,e[a+1],5,-0x9e1da9e),o=T(o,r,n,i,e[a+6],9,-0x3fbf4cc0),i=T(i,o,r,n,e[a+11],14,0x265e5a51),n=T(n,i,o,r,e[a],20,-0x16493856),r=T(r,n,i,o,e[a+5],5,-0x29d0efa3),o=T(o,r,n,i,e[a+10],9,0x2441453),i=T(i,o,r,n,e[a+15],14,-0x275e197f),n=T(n,i,o,r,e[a+4],20,-0x182c0438),r=T(r,n,i,o,e[a+9],5,0x21e1cde6),o=T(o,r,n,i,e[a+14],9,-0x3cc8f82a),i=T(i,o,r,n,e[a+3],14,-0xb2af279),n=T(n,i,o,r,e[a+8],20,0x455a14ed),r=T(r,n,i,o,e[a+13],5,-0x561c16fb),o=T(o,r,n,i,e[a+2],9,-0x3105c08),i=T(i,o,r,n,e[a+7],14,0x676f02d9),n=T(n,i,o,r,e[a+12],20,-0x72d5b376),r=R(r,n,i,o,e[a+5],4,-378558),o=R(o,r,n,i,e[a+8],11,-0x788e097f),i=R(i,o,r,n,e[a+11],16,0x6d9d6122),n=R(n,i,o,r,e[a+14],23,-0x21ac7f4),r=R(r,n,i,o,e[a+1],4,-0x5b4115bc),o=R(o,r,n,i,e[a+4],11,0x4bdecfa9),i=R(i,o,r,n,e[a+7],16,-0x944b4a0),n=R(n,i,o,r,e[a+10],23,-0x41404390),r=R(r,n,i,o,e[a+13],4,0x289b7ec6),o=R(o,r,n,i,e[a],11,-0x155ed806),i=R(i,o,r,n,e[a+3],16,-0x2b10cf7b),n=R(n,i,o,r,e[a+6],23,0x4881d05),r=R(r,n,i,o,e[a+9],4,-0x262b2fc7),o=R(o,r,n,i,e[a+12],11,-0x1924661b),i=R(i,o,r,n,e[a+15],16,0x1fa27cf8),n=R(n,i,o,r,e[a+2],23,-0x3b53a99b),r=j(r,n,i,o,e[a],6,-0xbd6ddbc),o=j(o,r,n,i,e[a+7],10,0x432aff97),i=j(i,o,r,n,e[a+14],15,-0x546bdc59),n=j(n,i,o,r,e[a+5],21,-0x36c5fc7),r=j(r,n,i,o,e[a+12],6,0x655b59c3),o=j(o,r,n,i,e[a+3],10,-0x70f3336e),i=j(i,o,r,n,e[a+10],15,-1051523),n=j(n,i,o,r,e[a+1],21,-0x7a7ba22f),r=j(r,n,i,o,e[a+8],6,0x6fa87e4f),o=j(o,r,n,i,e[a+15],10,-0x1d31920),i=j(i,o,r,n,e[a+6],15,-0x5cfebcec),n=j(n,i,o,r,e[a+13],21,0x4e0811a1),r=j(r,n,i,o,e[a+4],6,-0x8ac817e),o=j(o,r,n,i,e[a+11],10,-0x42c50dcb),i=j(i,o,r,n,e[a+2],15,0x2ad7d2bb),n=j(n,i,o,r,e[a+9],21,-0x14792c6f),r=E(r,s),n=E(n,l),i=E(i,c),o=E(o,u)}return[r,n,i,o]}function S(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(x(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}function E(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function A(e,t){return e<<t|e>>>32-t}function C(e,t,r,n,i,o){return E(A(E(E(t,e),E(n,o)),i),r)}function O(e,t,r,n,i,o,a){return C(t&r|~t&n,e,t,i,o,a)}function T(e,t,r,n,i,o,a){return C(t&n|r&~n,e,t,i,o,a)}function R(e,t,r,n,i,o,a){return C(t^r^n,e,t,i,o,a)}function j(e,t,r,n,i,o,a){return C(r^(t|~n),e,t,i,o,a)}let P=w("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return _(k(S(e),8*e.length))}),M=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return p(n)};function I(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function N(e,t){return e<<t|e>>>32-t}let D=w("v5",80,function(e){var t=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],r=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=l}a[o-1][14]=(e.length-1)*8/0x100000000,a[o-1][14]=Math.floor(a[o-1][
3614]),a[o-1][15]=(e.length-1)*8|0;for(var u=0;u<o;++u){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=a[u][p];for(var f=16;f<80;++f)d[f]=N(d[f-3]^d[f-8]^d[f-14]^d[f-16],1);for(var h=r[0],m=r[1],y=r[2],g=r[3],v=r[4],b=0;b<80;++b){var w=Math.floor(b/20),_=N(h,5)+I(w,m,y,g)+v+t[w]+d[b]>>>0;v=g,g=y,y=N(m,30)>>>0,m=h,h=_}r[0]=r[0]+h>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),L="00000000-0000-0000-0000-000000000000",U=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},94056:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>A,Fragment:()=>E,cloneElement:()=>Z,createContext:()=>X,createElement:()=>x,createRef:()=>S,h:()=>x,hydrate:()=>G,isValidElement:()=>a,options:()=>i,render:()=>J,toChildArray:()=>N});var n,i,o,a,s,l,c,u,d,p,f,h,m,y={},g=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function w(e,t){for(var r in t)e[r]=t[r];return e}function _(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(e,t,r){var i,o,a,s={};
vendor: 4,930 bytes, line 36
36for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return k(e,s,i,o,null)}function k(e,t,r,n,a){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=i.vnode&&i.vnode(s),s}function S(){return{current:null}}function E(e){return e.children}function A(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?C(e):null}function O(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],o=[],a=w({},t);a.__v=t.__v+1,i.vnode&&i.vnode(a),H(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,null==r?C(t):r,!!(32&t.__u),o),a.__v=t.__v,a.__.__k[a.__i]=a,z(n,a,o),t.__e=t.__=null,a.__e!=r&&T(a)}}function T(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),T(e)}function R(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!j.__r++||l!=i.debounceRendering)&&((l=i.debounceRendering)||c)(j)}function j(){try{for(var e,t=1;s.length;)s.length>t&&s.sort(u),e=s.shift(),t=s.length,O(e)}finally{s.length=j.__r=0}}function P(e,t,r,n,i,o,a,s,l,c,u){var d,p,f,h,m,v,b,w=n&&n.__k||g,_=t.length;for(l=M(r,t,w,l,_),d=0;d<_;d++)null!=(f=r.__k[d])&&(p=-1!=f.__i&&w[f.__i]||y,f.__i=d,v=H(e,f,p,i,o,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&q(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),(b=!!(4&f.__u))||p.__k===f.__k?l=I(f,l,e,b):"function"==typeof f.type&&void 0!==v?l=v:h&&(l=h.nextSibling),f.__u&=-7);return r.__e=m,l}function M(e,t,r,n,i){var o,a,s,l,c,u=r.length,d=u,p=0;for(e.__k=Array(i),o=0;o<i;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[o]=k(null,a,null,null,null):b(a)?a=e.__k[o]=k(E,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[o]=k(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,l=o+p,a.__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=D(a,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(i>u?p--:i<u&&p++),"function"!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(s=r[o])&&0==(2&s.__u)&&(s.__e==n&&(n=C(s)),K(s,s));return n}function I(e,t,r,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=I(i[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=C(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some(function(e){N(e,t)}):t.push(e)),t}function D(e,t,r,n){var i,o,a,s=e.key,l=e.type,c=t[r],u=null!=c&&0==(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return r;if(n>+!!u){for(i=r-1,o=r+1;i>=0||o<t.length;)if(null!=(c=t[a=i>=0?i--:o++])&&0==(2&c.__u)&&s==c.key&&l==c.type)return a}return -1}function L(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||v.test(t)?r:r+"px"}function U(e,t,r,n,i){var o,a;n:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||L(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||L(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(d,"$1")),t=(a=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=p,e.addEventListener(t,o?h:f,o)):e.removeEventListener(t,o?h:f,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break n}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function F(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=p++;else if(t.t<r.u)return;return r(i.event?i.event(t):t)}}}function H(e,t,r,n,o,a,s,l,c,u){var d,p,f,h,m,y,v,x,k,S,C,O,T,R,j,M=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),a=[l=t.__e=r.__e]),(d=i.__b)&&d(t);n:if("function"==typeof M)try{if(x=t.props,k=M.prototype&&M.prototype.render,S=(d=M.contextType)&&n[d.__c],C=d?S?S.props.value:d.__:n,r.__c?v=(p=t.__c=r.__c).__=p.__E:(k?t.__c=p=new M(x,C):(t.__c=p=new A(x,C),p.constructor=M,p.render=V),S&&S.sub(p),p.state||(p.state={}),p.__n=n,f=p.__d=!0,p.__h=[],p._sb=[]),k&&null==p.__s&&(p.__s=p.state),k&&null!=M.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w({}
vendor: 4,248 bytes, line 36
36,p.__s)),w(p.__s,M.getDerivedStateFromProps(x,p.__s))),h=p.props,m=p.state,p.__v=t,f)k&&null==M.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),k&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(k&&null==M.getDerivedStateFromProps&&x!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,C),t.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,C)){t.__v!=r.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),g.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,C),k&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,m,y)})}if(p.context=C,p.props=x,p.__P=e,p.__e=!1,O=i.__r,T=0,k)p.state=p.__s,p.__d=!1,O&&O(t),d=p.render(p.props,p.state,p.context),g.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,O&&O(t),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++T<25);p.state=p.__s,null!=p.getChildContext&&(n=w(w({},n),p.getChildContext())),k&&!f&&null!=p.getSnapshotBeforeUpdate&&(y=p.getSnapshotBeforeUpdate(h,m)),R=null!=d&&d.type===E&&null==d.key?W(d.props.children):d,l=P(e,b(R)?R:[R],t,r,n,o,a,s,l,c,u),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),v&&(p.__E=p.__=null)}catch(e){if(t.__v=null,c||null!=a)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,t.__e=l}else{for(j=a.length;j--;)_(a[j]);B(t)}else t.__e=r.__e,t.__k=r.__k,e.then||B(t);i.__e(e,t,r)}else null==a&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=$(r.__e,t,r,n,o,a,s,c,u);return(d=i.diffed)&&d(t),128&t.__u?void 0:l}function B(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(B))}function z(e,t,r){for(var n=0;n<r.length;n++)q(r[n],r[++n],r[++n]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function W(e){return"object"!=typeof e||null==e||e.__b>0?e:b(e)?e.map(W):w({},e)}function $(e,t,r,o,a,s,l,c,u){var d,p,f,h,m,g,v,w=r.props||y,x=t.props,k=t.type;if("svg"==k?a="http://www.w3.org/2000/svg":"math"==k?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((m=s[d])&&"setAttribute"in m==!!k&&(k?m.localName==k:3==m.nodeType)){e=m,s[d]=null;break}}if(null==e){if(null==k)return document.createTextNode(x);e=document.createElementNS(a,k,x.is&&x),c&&(i.__m&&i.__m(t,s),c=!1),s=null}if(null==k)w===x||c&&e.data==x||(e.data=x);else{if(s=s&&n.call(e.childNodes),!c&&null!=s)for(w={},d=0;d<e.attributes.length;d++)w[(m=e.attributes[d]).name]=m.value;for(d in w)m=w[d],"dangerouslySetInnerHTML"==d?f=m:"children"==d||d in x||"value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x||U(e,d,null,m,a);for(d in x)m=x[d],"children"==d?h=m:"dangerouslySetInnerHTML"==d?p=m:"value"==d?g=m:"checked"==d?v=m:c&&"function"!=typeof m||w[d]===m||U(e,d,m,w[d],a);if(p)c||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),P("template"==t.type?e.content:e,b(h)?h:[h],t,r,o,"foreignObject"==k?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:r.__k&&C(r,0),c,u),null!=s)for(d=s.length;d--;)_(s[d]);c||(d="value","progress"==k&&null==g?e.removeAttribute("value"):null==g||g===e[d]&&("progress"!=k||g)&&("option"!=k||g==w[d])||U(e,d,g,w[d],a),d="checked",null!=v&&v!=e[d]&&U(e,d,v,w[d],a))}return e}function q(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,r)}}function K(e,t,r){var n,o;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||q(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&K(n[o],t,r||"function"!=typeof e.type);r||_(e.__e),e.__c=e.__=e.__e=void 0}function V(e,t,r){return this.constructor(e,r)}function J(e,t,r){var o,a,s,l;t==document&&(t=document.documentElement),i.__&&i.__(e,t),a=(o="function"==typeof r)?null:r&&r.__k||t.__k,s=[],l=[],H(t,e=(!o&&r||t).__k=x(E,null,[e]),a||y,y,t.namespaceURI,!o&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,
vendor: 1,653 bytes, line 36
36s,!o&&r?r:a?a.__e:t.firstChild,o,l),z(s,e,l)}function G(e,t){J(e,t,G)}function Z(e,t,r){var i,o,a,s,l=w({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?i=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&null!=s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),k(e.type,l,i||e.key,o||e.ref,null)}function X(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,R(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}n=g.slice,i={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},A.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},r),this.props)),e&&w(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),R(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),R(this))},A.prototype.render=E,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
36ise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},j.__r=0,d=/(PointerCapture)$|Capture$/i,p=0,f=F(!1),h=F(!0),m=0},94885:(e,t,r)=>{var n=r(71730),i=r(39058),o=r(26745),a=r(37183),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?p:l).test(a(e))}},94897:(e,t,r)=>{var n=r(83558);e.exports=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},95059:(e,t,r)=>{let{format:n}=r(634);class i extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:n,state:i,scope:o},a){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},i&&{state:i},o&&{scope:o},n&&{session_state:n}),a&&Object.defineProperty(this,"response",{value:a}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class o extends Error{constructor(...e){if("string"==typeof e[0])super(n(...e));else{let{message:t,printf:r,response:i,...o}=e[0];r?super(n(...r)):super(t),Object.assign(this,o),i&&Object.defineProperty(this,"response",{value:i})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:i,RPError:o}},95382:(e,t)=>{"use strict";function r(e){return{headers:[{key:"Content-Type",value:"application/json"}],body:e.reduce((e,{id:t,name:r,type:n,signinUrl:i,callbackUrl:o})=>(e[t]={id:t,name:r,type:n,signinUrl:i,callbackUrl:o},e),{})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},96455:(e,t,r)=>{"use strict";var n=r(22455);Object.defineProperty(t,"__esModule",{value:!0}),t.AuthHandler=y;var i=f(r(56445)),o=r(98475),a=f(r(10260)),s=n(r(71220)),l=r(24435),c=r(19551),u=r(935),d=r(32641);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}async function h(e){try{return await e.json()}catch(e){}}async function m(e){var t,r,n,i;if(e instanceof Request){let t=new URL(e.url),a=t.pathname.split("/").slice(3),s=Object.fromEntries(e.headers),l=Object.fromEntries(t.searchParams);return l.nextauth=a,{action:a[0],method:e.method,headers:s,body:await h(e),cookies:(0,d.parse)(null!=(r=e.headers.get("cookie"))?r:""),providerId:a[1],error:null!=(n=t.searchParams.get("error"))?n:a[1],origin:(0,o.detectOrigin)(null!=(i=s["x-forwarded-host"])?i:s.host,s["x-forwarded-proto"]),query:l}}let{headers:a}=e,s=null!=(t=null==a?void 0:a["x-forwarded-host"])?t:null==a?void 0:a.host;return e.origin=(0,o.detectOrigin)(s,null==a?void 0:a["x-forwarded-proto"]),e}async function y(e){var t,r,n,o,d,p,f;let{options:h,req:y}=e,g=await m(y);(0,i.setLogger)(h.logger,h.debug);let v=(0,c.assertConfig)({options:h,req:g});if(Array.isArray(v))v.forEach(i.default.warn);else if(v instanceof Error){if(i.default.error(v.code,v),!["signin","signout","error","verify-request"].includes(g.action)||"GET"!==g.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:e,theme:t}=h,r=(null==e?void 0:e.error)&&(null==(d=g.query)||null==(d=d.callbackUrl)?void 0:d.startsWith(e.error));return!(null!=e&&e.error)||r?(r&&i.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==e?void 0:e.error} should not require authentication`)),(0,s.default)({theme:t}).error({error:"configuration"})):{redirect:`${e.error}?error=Configuration`}}let{action:b,providerId:w,error:_,method:x="GET"}=g,{options:k,cookies:S}=await (0,l.init)({authOptions:h,action:b,providerId:w,origin:g.origin,callbackUrl:null!=(t=null==(r=g.body)?void 0:r.callbackUrl)?t:null==(n=g.query)?void 0:n.callbackUrl,csrfToken:null==(o=g.body)?void 0:o.csrfToken,cookies:g.cookies,isPost:"POST"===x}),E=new u.SessionStore(k.cookies.sessionToken,g,k.logger);if("GET"===x){let e=(0,s.default)({...k,query:g.query,cookies:S}),{pages:t}=k;switch(b){case"providers":return await a.providers(k.providers);case"session":{let e=await a.session({options:k,sessionStore:E});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"},{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"}
36,{key:"Expires",value:"0"}],body:{csrfToken:k.csrfToken},cookies:S};case"signin":if(t.signIn){let e=`${t.signIn}${t.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(k.callbackUrl)}`;return _&&(e=`${e}&error=${encodeURIComponent(_)}`),{redirect:e,cookies:S}}return e.signin();case"signout":if(t.signOut)return{redirect:t.signOut,cookies:S};return e.signout();case"callback":if(k.provider){let e=await a.callback({body:g.body,query:g.query,headers:g.headers,cookies:g.cookies,method:x,options:k,sessionStore:E});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}break;case"verify-request":if(t.verifyRequest)return{redirect:t.verifyRequest,cookies:S};return e.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(_))return{redirect:`${k.url}/signin?error=${_}`,cookies:S};if(t.error)return{redirect:`${t.error}${t.error.includes("?")?"&":"?"}error=${_}`,cookies:S};return e.error({error:_})}}else if("POST"===x)switch(b){case"signin":if(k.csrfTokenVerified&&k.provider){let e=await a.signin({query:g.query,body:g.body,options:k});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}return{redirect:`${k.url}/signin?csrf=true`,cookies:S};case"signout":if(k.csrfTokenVerified){let e=await a.signout({options:k,sessionStore:E});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}return{redirect:`${k.url}/signout?csrf=true`,cookies:S};case"callback":if(k.provider){if("credentials"===k.provider.type&&!k.csrfTokenVerified)return{redirect:`${k.url}/signin?csrf=true`,cookies:S};let e=await a.callback({body:g.body,query:g.query,headers:g.headers,cookies:g.cookies,method:x,options:k,sessionStore:E});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}break;case"_log":if(h.logger)try{let{code:e,level:t,...r}=null!=(p=g.body)?p:{};i.default[t](e,r)}catch(e){i.default.error("LOGGER_ERROR",e)}return{};case"session":if(k.csrfTokenVerified){let e=await a.session({options:k,sessionStore:E,newSession:null==(f=g.body)?void 0:f.data,isUpdate:!0});return e.cookies&&S.push(...e.cookies),{...e,cookies:S}}return{status:400,body:{},cookies:S}}return{status:400,body:`Error: This action with HTTP ${x} is not supported by NextAuth.js`}}},97070:(e,t,r)=>{let n=r(34282);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:i,length:o}=e.split(".");if(5===o)throw TypeError("encrypted JWTs cannot be decoded");if(3!==o)throw Error("JWTs must have three components");try{return{header:JSON.parse(n.decode(t)),payload:JSON.parse(n.decode(r)),signature:i}}catch(e){throw Error("JWT is malformed")}}},97239:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},97412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return i}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97745:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>d});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},i=new WeakMap,o=new WeakMap,a={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},c=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=l(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})},u=function(e,t,r,n){var l=c(t,Array.isArray(e)?e:[e]);a[r]||(a[r]=new WeakMap);var u=a[r],d=[],p=new Set,f=new Set(l),h=function(e){!e||p.has(e)||(p.add(e),h(e.parentNode))};l.forEach(h);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(i.get(e)||0)+1,l=(u.get(e)||0)+1;i.set(e,s),u.set(e,l),d.push(e),1===s&&a&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),p.clear(),s++,function(){d.forEach(function(e){var t=i.get(e)-1,a=u.get(e)-1;i.set(e,t),u.set(e,a),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),a||e.removeAttribute(r)}),--s||(i=new WeakMap,i=new WeakMap,o=new WeakMap,a={})}},d=function(e,t,r){void 0===r&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),u(i,o,r,"aria-hidden")):function(){return null}}},97826:(e,t,r)=>{var n=r(37467),i=r(21187),o=r(70637),a=r(26745),s=r(76917);e.exports=function(e,t,r,l){if(!a(e))return e;t=i(t,e);for(var c=-1,u=t.length,d=u-1,p=e;null!=p&&++c<u;){var f=s(t[c]),h=r;if("__proto__"===f||"constructor"===f||"prototype"===f)break;
36if(c!=d){var m=p[f];void 0===(h=l?l(m,f,p):void 0)&&(h=a(m)?m:o(t[c+1])?[]:{})}n(p,f,h),p=p[f]}return e}},98475:(e,t,r)=>{"use strict";var n=r(95704);function i(e,t){var r;return(null!=(r=n.env.VERCEL)?r:n.env.AUTH_TRUST_HOST)?`${"http"===t?"http":"https"}://${e}`:n.env.NEXTAUTH_URL}Object.defineProperty(t,"__esModule",{value:!0}),t.detectOrigin=i},98729:(e,t,r)=>{var n=r(15376).Buffer;let i=r(62160),{RPError:o}=r(95059),{assertIssuerConfiguration:a}=r(57792),{random:s}=r(14072),l=r(21107),c=r(85983),{keystores:u}=r(61379),d=r(55286),p=e=>encodeURIComponent(e).replace(/%20/g,"+");async function f(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];if(r||a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await u.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new o(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let l=s.get({alg:r,use:"sig"});if(!l)throw new o(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new i.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:l.jwk&&l.jwk.kid}).sign(await l.keyObject(r))}async function h(e,{clientAssertionPayload:t}={}){switch(this[`${e}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=l(),n=await f.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:this.issuer.issuer,...t});return{form:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${p(this.client_id)}:${p(this.client_secret)}`,t=n.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}async function m(e,t,{clientAssertionPayload:r,endpointAuthMethod:n=e,DPoP:i}={}){let o,a=d(t,await h.call(this,n,{clientAssertionPayload:r})),s=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(s&&this.issuer.mtls_endpoint_aliases&&(o=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),o=o||this.issuer[`${e}_endpoint`],"form"in a)for(let[e,t]of Object.entries(a.form))void 0===t&&delete a.form[e];return c.call(this,{...a,method:"POST",url:o,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...a.headers}},{mTLS:s,DPoP:i})}e.exports={resolveResponseType:function(){let{length:e,0:t}=this.response_types;if(1===e)return t},resolveRedirectUri:function(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t},authFor:h,authenticatedPost:m}},98734:(e,t,r)=>{"use strict";let n;r.d(t,{bz:()=>eF,YO:()=>eH,zM:()=>eU,au:()=>e$,eu:()=>eW,oi:()=>eL,ai:()=>eD,Ik:()=>eB,Yj:()=>eN,KC:()=>ez});var i,o,a=r(44193),s=r(88658);let l=(e,t)=>{let r;switch(e.code){case a.eq.invalid_type:r=e.received===s.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.ZS.jsonStringifyReplacer)}`;break;case a.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.ZS.joinValues(e.keys,", ")}`;break;
36case a.eq.invalid_union:r="Invalid input";break;case a.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.ZS.joinValues(e.options)}`;break;case a.eq.invalid_enum_value:r=`Invalid enum value. Expected ${s.ZS.joinValues(e.options)}, received '${e.received}'`;break;case a.eq.invalid_arguments:r="Invalid function arguments";break;case a.eq.invalid_return_type:r="Invalid function return type";break;case a.eq.invalid_date:r="Invalid date";break;case a.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.eq.custom:r="Invalid input";break;case a.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case a.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.ZS.assertNever(e)}return{message:r}},c=l;function u(){return c}!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(i||(i={}));let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}};function p(e,t){let r=u(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,v=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;class _{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new a.G(e.common.issues);return this._error=t,this._error}}};function k(e){if(!e)return{};
vendor: 4,825 bytes, line 36
36let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class S{get description(){return this._def.description}_getType(e){return(0,s.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,s.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return x(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return b(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>b(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,s.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return x(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:a.eq.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eA({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eC.create(this,this._def)}nullable(){return eO.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return es.create(this)}promise(){return eE.create(this,this._def)}or(e){return eu.create([this,e],this._def)}and(e){return eh.create(this,e,this._def)}transform(e){return new eA({...k(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new eT({...k(this._def),innerType:this,defaultValue:t,typeName:o.ZodDefault})}brand(){return new eP({typeName:o.ZodBranded,type:this,...k(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new eR({...k(this._def),innerType:this,catchValue:t,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eM.create(this,e)}readonly(){return eI.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}
36$/i,A=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/i,O=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,T=/^[a-z0-9_-]{21}$/i,R=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,P=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,M="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,D=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,H="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${H}$`);function z(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function W(e){return RegExp(`^${z(e)}$`)}function $(e){let t=`${H}T${z(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}function q(e,t){return!!(("v4"===t||!t)&&I.test(e)||("v6"===t||!t)&&D.test(e))}function K(e,t){if(!R.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}function V(e,t){return!!(("v4"===t||!t)&&N.test(e)||("v6"===t||!t)&&L.test(e))}class J extends S{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.Zp.string){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.string,received:t.parsedType}),h}let r=new f;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("max"===i.kind)e.data.length>i.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if("length"===i.kind){let n=e.data.length>i.value,o=e.data.length<i.value;(n||o)&&(t=this._getOrReturnCtx(e,t),n?p(t,{code:a.eq.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(t,{code:a.eq.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if("email"===i.kind)P.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"email",code:a.eq.invali
vendor: 11,451 bytes, line 36
36d_string,message:i.message}),r.dirty());else if("emoji"===i.kind)n||(n=RegExp(M,"u")),n.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("uuid"===i.kind)O.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("nanoid"===i.kind)T.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"nanoid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid"===i.kind)E.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("cuid2"===i.kind)A.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("ulid"===i.kind)C.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:a.eq.invalid_string,message:i.message}),r.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{p(t=this._getOrReturnCtx(e,t),{validation:"url",code:a.eq.invalid_string,message:i.message}),r.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"regex",code:a.eq.invalid_string,message:i.message}),r.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):"datetime"===i.kind?$(i).test(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"datetime",message:i.message}),r.dirty()):"date"===i.kind?B.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"date",message:i.message}),r.dirty()):"time"===i.kind?W(i).test(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_string,validation:"time",message:i.message}),r.dirty()):"duration"===i.kind?j.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"duration",code:a.eq.invalid_string,message:i.message}),r.dirty()):"ip"===i.kind?q(e.data,i.version)||(p(t=this._getOrReturnCtx(e,t),{validation:"ip",code:a.eq.invalid_string,message:i.message}),r.dirty()):"jwt"===i.kind?K(e.data,i.alg)||(p(t=this._getOrReturnCtx(e,t),{validation:"jwt",code:a.eq.invalid_string,message:i.message}),r.dirty()):"cidr"===i.kind?V(e.data,i.version)||(p(t=this._getOrReturnCtx(e,t),{validation:"cidr",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64"===i.kind?U.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"base64",code:a.eq.invalid_string,message:i.message}),r.dirty()):"base64url"===i.kind?F.test(e.data)||(p(t=this._getOrReturnCtx(e,t),{validation:"base64url",code:a.eq.invalid_string,message:i.message}),r.dirty()):s.ZS.assertNever(i);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:a.eq.invalid_string,...i.errToObj(r)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...i.errToObj(e)})}url(e){return this._addCheck({kind:"url",...i.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...i.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...i.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...i.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...i.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...i.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...i.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...i.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...i.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...i.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...i.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...i.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...i.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...i.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...i.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...i.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...i.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...i.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...i.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...i.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...i.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...i.errToObj(t)})}nonempty(e){return this.min(1,i.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function G(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}J.create=e=>new J({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...k(e)});class Z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.Zp.number){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.number,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"int"===n.kind?s.ZS.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==G(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:a.eq.not_finite,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:i.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:i.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:i.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:i.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&s.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...k(e)});class X extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.Zp.bigint)return this._getInvalidInput(e);let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);
36return p(t,{code:a.eq.invalid_type,expected:s.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,i.toString(t))}gt(e,t){return this.setLimit("min",e,!1,i.toString(t))}lte(e,t){return this.setLimit("max",e,!0,i.toString(t))}lt(e,t){return this.setLimit("max",e,!1,i.toString(t))}setLimit(e,t,r,n){return new X({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:i.toString(n)}]})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:i.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:i.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:i.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:i.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:i.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}X.create=e=>new X({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...k(e)});class Y extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.Zp.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.boolean,received:t.parsedType}),h}return y(e.data)}}Y.create=e=>new Y({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...k(e)});class Q extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.Zp.date){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:a.eq.invalid_date}),h;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:a.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:i.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:i.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...k(e)});class ee extends S{_parse(e){if(this._getType(e)!==s.Zp.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.symbol,received:t.parsedType}),h}return y(e.data)}}ee.create=e=>new ee({typeName:o.ZodSymbol,...k(e)});class et extends S{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.undefined,received:t.parsedType}),h}return y(e.data)}}et.create=e=>new et({typeName:o.ZodUndefined,...k(e)});class er extends S{_parse(e){if(this._getType(e)!==s.Zp.null){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.null,received:t.parsedType}),h}return y(e.data)}}er.create=e=>new er({typeName:o.ZodNull,...k(e)});class en extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}en.create=e=>new en({typeName:o.ZodAny,...k(e)});class ei extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}ei.create=e=>new ei({typeName:o.ZodUnknown,...k(e)});class eo extends S{_parse(e){let t=this._getOrReturnCtx(e);
vendor: 5,270 bytes, line 36
36return p(t,{code:a.eq.invalid_type,expected:s.Zp.never,received:t.parsedType}),h}}eo.create=e=>new eo({typeName:o.ZodNever,...k(e)});class ea extends S{_parse(e){if(this._getType(e)!==s.Zp.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.void,received:t.parsedType}),h}return y(e.data)}}ea.create=e=>new ea({typeName:o.ZodVoid,...k(e)});class es extends S{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==s.Zp.array)return p(t,{code:a.eq.invalid_type,expected:s.Zp.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(p(t,{code:e?a.eq.too_big:a.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(p(t,{code:a.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(p(t,{code:a.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new _(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new _(t,e,t.path,r)));return f.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new es({...this._def,minLength:{value:e,message:i.toString(t)}})}max(e,t){return new es({...this._def,maxLength:{value:e,message:i.toString(t)}})}length(e,t){return new es({...this._def,exactLength:{value:e,message:i.toString(t)}})}nonempty(e){return this.min(1,e)}}function el(e){if(e instanceof ec){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=eC.create(el(n))}return new ec({...e._def,shape:()=>t})}if(e instanceof es)return new es({...e._def,type:el(e.element)});if(e instanceof eC)return eC.create(el(e.unwrap()));if(e instanceof eO)return eO.create(el(e.unwrap()));if(e instanceof em)return em.create(e.items.map(e=>el(e)));else return e}es.create=(e,t)=>new es({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...k(t)});class ec extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.Zp.object){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof eo&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let l=[];for(let e of i){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new _(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof eo){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(p(r,{code:a.eq.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new _(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return i.errToObj,new ec({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:i.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ec({...this._def,unknownKeys:"strip"})}passthrough(){return new ec({...this._def,unknownKeys:"passthrough"})}extend(e){return new ec({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ec({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ec({...this._def,catchall:e})}pick(e){let t={};for(let r of s.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}omit(e){let t={};for(let r of s.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ec({...this._def,shape:()=>t})}deepPartial(){return el(this)}partial(e){let t={};for(let r of s.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new ec({...this._def,shape:()=>t})}required(e){let t={};for(let r of s.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eC;)e=e._def.innerType;t[r]=e}return new ec({...this._def,shape:()=>t})}keyof(){return ex(s.ZS.objectKeys(this.shape))}}ec.create=(e,t)=>
36new ec({shape:()=>e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...k(t)}),ec.strictCreate=(e,t)=>new ec({shape:()=>e,unknownKeys:"strict",catchall:eo.create(),typeName:o.ZodObject,...k(t)}),ec.lazycreate=(e,t)=>new ec({shape:e,unknownKeys:"strip",catchall:eo.create(),typeName:o.ZodObject,...k(t)});class eu extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function n(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new a.G(e.ctx.common.issues));return p(t,{code:a.eq.invalid_union,unionErrors:r}),h}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new a.G(e));return p(t,{code:a.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}eu.create=(e,t)=>new eu({options:e,typeName:o.ZodUnion,...k(t)});let ed=e=>{if(e instanceof ew)return ed(e.schema);if(e instanceof eA)return ed(e.innerType());if(e instanceof e_)return[e.value];if(e instanceof ek)return e.options;if(e instanceof eS)return s.ZS.objectValues(e.enum);else if(e instanceof eT)return ed(e._def.innerType);else if(e instanceof et)return[void 0];else if(e instanceof er)return[null];else if(e instanceof eC)return[void 0,...ed(e.unwrap())];else if(e instanceof eO)return[null,...ed(e.unwrap())];else if(e instanceof eP)return ed(e.unwrap());else if(e instanceof eI)return ed(e.unwrap());else if(e instanceof eR)return ed(e._def.innerType);else return[]};class ep extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.object)return p(t,{code:a.eq.invalid_type,expected:s.Zp.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:a.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ed(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ep({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...k(r)})}}function ef(e,t){let r=(0,s.CR)(e),n=(0,s.CR)(t);if(e===t)return{valid:!0,data:e};if(r===s.Zp.object&&n===s.Zp.object){let r=s.ZS.objectKeys(t),n=s.ZS.objectKeys(e).filter(e=>-1!==r.indexOf(e)),i={...e,...t};for(let r of n){let n=ef(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===s.Zp.array&&n===s.Zp.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let n=0;n<e.length;n++){let i=ef(e[n],t[n]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}if(r===s.Zp.date&&n===s.Zp.date&&+e==+t)return{valid:!0,data:e};return{valid:!1}}class eh extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(g(e)||g(n))return h;let i=ef(e.value,n.value);return i.valid?((v(e)||v(n))&&t.dirty(),{status:t.value,value:i.data}):(p(r,{code:a.eq.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}eh.create=(e,t,r)=>new eh({left:e,right:t,typeName:o.ZodIntersection,...k(r)});class em extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);
36if(r.parsedType!==s.Zp.array)return p(r,{code:a.eq.invalid_type,expected:s.Zp.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return p(r,{code:a.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:a.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new _(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new em({...this._def,rest:e})}}em.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new em({items:e,typeName:o.ZodTuple,rest:null,...k(t)})};class ey extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.object)return p(r,{code:a.eq.invalid_type,expected:s.Zp.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new _(r,e,r.path,e)),value:o._parse(new _(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ey(t instanceof S?{keyType:e,valueType:t,typeName:o.ZodRecord,...k(r)}:{keyType:J.create(),valueType:e,typeName:o.ZodRecord,...k(t)})}}class eg extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.map)return p(r,{code:a.eq.invalid_type,expected:s.Zp.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new _(r,e,r.path,[o,"key"])),value:i._parse(new _(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eg.create=(e,t,r)=>new eg({valueType:t,keyType:e,typeName:o.ZodMap,...k(r)});class ev extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.Zp.set)return p(r,{code:a.eq.invalid_type,expected:s.Zp.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(p(r,{code:a.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(p(r,{code:a.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>i._parse(new _(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ev({...this._def,minSize:{value:e,message:i.toString(t)}})}max(e,t){return new ev({...this._def,maxSize:{value:e,message:i.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ev.create=(e,t)=>new ev({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...k(t)});class eb extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.Zp.function)return p(t,{code:a.eq.invalid_type,expected:s.Zp.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>
36!!e),issueData:{code:a.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u(),l].filter(e=>!!e),issueData:{code:a.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof eE){let e=this;return y(async function(...t){let s=new a.G([]),l=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),c=await Reflect.apply(o,this,l);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw s.addIssue(n(c,e)),s})})}{let e=this;return y(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new a.G([r(t,s.error)]);let l=Reflect.apply(o,this,s.data),c=e._def.returns.safeParse(l,i);if(!c.success)throw new a.G([n(l,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eb({...this._def,args:em.create(e).rest(ei.create())})}returns(e){return new eb({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eb({args:e||em.create([]).rest(ei.create()),returns:t||ei.create(),typeName:o.ZodFunction,...k(r)})}}class ew extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ew.create=(e,t)=>new ew({getter:e,typeName:o.ZodLazy,...k(t)});class e_ extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:a.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ex(e,t){return new ek({values:e,typeName:o.ZodEnum,...k(t)})}e_.create=(e,t)=>new e_({value:e,typeName:o.ZodLiteral,...k(t)});class ek extends S{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:s.ZS.joinValues(r),received:t.parsedType,code:a.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:a.eq.invalid_enum_value,options:r}),h}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ek.create(e,{...this._def,...t})}exclude(e,t=this._def){return ek.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ek.create=ex;class eS extends S{_parse(e){let t=s.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.Zp.string&&r.parsedType!==s.Zp.number){let e=s.ZS.objectValues(t);return p(r,{expected:s.ZS.joinValues(e),received:r.parsedType,code:a.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(s.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=s.ZS.objectValues(t);return p(r,{received:r.data,code:a.eq.invalid_enum_value,options:e}),h}return y(e.data)}get enum(){return this._def.values}}eS.create=(e,t)=>new eS({values:e,typeName:o.ZodNativeEnum,...k(t)});class eE extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.Zp.promise&&!1===t.common.async?(p(t,{code:a.eq.invalid_type,expected:s.Zp.promise,received:t.parsedType}),h):y((t.parsedType===s.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eE.create=(e,t)=>new eE({type:e,typeName:o.ZodPromise,...k(t)});class eA extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):h);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return h;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}s.ZS.assertNever(n)}}eA.create=(e,t,r)=>new eA({schema:e,typeName:o.ZodEffects,effect:t,...k(r)}),eA.createWithPreprocess=(e,t,r)=>new eA({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...k(r)});class eC extends S{_parse(e){return this._getType(e)===s.Zp.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>
36new eC({innerType:e,typeName:o.ZodOptional,...k(t)});class eO extends S{_parse(e){return this._getType(e)===s.Zp.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:o.ZodNullable,...k(t)});class eT extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eT.create=(e,t)=>new eT({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...k(t)});class eR extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new a.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eR.create=(e,t)=>new eR({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...k(t)});class ej extends S{_parse(e){if(this._getType(e)!==s.Zp.nan){let t=this._getOrReturnCtx(e);return p(t,{code:a.eq.invalid_type,expected:s.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ej.create=e=>new ej({typeName:o.ZodNaN,...k(e)}),Symbol("zod_brand");class eP extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eM extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eM({in:e,out:t,typeName:o.ZodPipeline})}}class eI extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eI.create=(e,t)=>new eI({innerType:e,typeName:o.ZodReadonly,...k(t)}),ec.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eN=J.create,eD=Z.create,eL=ej.create;X.create;let eU=Y.create;Q.create,ee.create,et.create,er.create;let eF=en.create;ei.create,eo.create,ea.create;let eH=es.create,eB=ec.create;ec.strictCreate;let ez=eu.create;ep.create,eh.create,em.create,ey.create,eg.create,ev.create,eb.create,ew.create;let eW=e_.create;ek.create,eS.create,eE.create,eA.create,eC.create,eO.create,eA.createWithPreprocess,eM.create;let e$={string:e=>J.create({...e,coerce:!0}),number:e=>Z.create({...e,coerce:!0}),boolean:e=>Y.create({...e,coerce:!0}),bigint:e=>X.create({...e,coerce:!0}),date:e=>Q.create({...e,coerce:!0})}},99051:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(71847).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},99719:(e,t,r)=>{e.exports=new(r(63413))({max:100})}}]);

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.