PageSourceSearch

https://fintax-associate.netlify.app/_next/static/chunks/3296-499f3a2415bba154.js

js fintax-associate.netlify.app collected 2026-10-03 10:44:11 UTC 123,081 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3296],{575:(t,e,r)=>{"use strict";function n(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}r.d(e,{o:()=>n})},781:(t,e,r)=>{"use strict";r.d(e,{I:()=>s});var n=r(39249),i=r(50793),o=Array.isArray;function s(t){return(0,i.T)(function(e){return o(e)?t.apply(void 0,(0,n.fX)([],(0,n.zs)(e))):t(e)})}},920:(t,e,r)=>{"use strict";function n(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.d(e,{L:()=>n})},1125:(t,e,r)=>{"use strict";r.d(e,{N:()=>o,S:()=>i});var n=r(91208);function i(t){return(0,n.T)(null==t?void 0:t.lift)}function o(t){return function(e){if(i(e))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}},6814:(t,e,r)=>{"use strict";r.d(e,{A_:()=>s,IM:()=>f,R8:()=>o,T4:()=>u,_4:()=>a,_S:()=>l,ct:()=>c});let n="drafts.",i="versions.";function o(t){return t.startsWith(n)}function s(t){return t.startsWith(i)}function a(t){return!o(t)&&!s(t)}function u(t){return s(t)?n+f(t):o(t)?t:n+t}function c(t,e){if("drafts"===e||"published"===e)throw Error('Version can not be "published" or "drafts"');return`${i}${e}.${f(t)}`}function l(t){if(!s(t))return;let[e,r,...n]=t.split(".");return r}function f(t){return s(t)?t.split(".").slice(2).join("."):o(t)?t.slice(n.length):t}},7161:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(94354),i=r(91208);function o(t){return!!t&&(t instanceof n.c||(0,i.T)(t.lift)&&(0,i.T)(t.subscribe))}},7610:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},7663:(t,e,r)=>{"use strict";r.d(e,{E:()=>i,b:()=>o});var n=r(82959),i=new(r(35227)).q(n.R),o=i},8124:(t,e,r)=>{"use strict";r.d(e,{u:()=>u});var n=r(39249),i=r(57173),o=r(42284),s=r(27110),a=r(1125);function u(t){void 0===t&&(t={});var e=t.connector,r=void 0===e?function(){return new o.B}:e,n=t.resetOnError,u=void 0===n||n,l=t.resetOnComplete,f=void 0===l||l,h=t.resetOnRefCountZero,p=void 0===h||h;return function(t){var e,n,o,l=0,h=!1,d=!1,y=function(){null==n||n.unsubscribe(),n=void 0},g=function(){y(),e=o=void 0,h=d=!1},b=function(){var t=e;g(),null==t||t.unsubscribe()};return(0,a.N)(function(t,a){l++,d||h||y();var m=o=null!=o?o:r();a.add(function(){0!=--l||d||h||(n=c(b,p))}),m.subscribe(a),!e&&l>0&&(e=new s.Ms({next:function(t){return m.next(t)},error:function(t){d=!0,y(),n=c(g,u,t),m.error(t)},complete:function(){h=!0,y(),n=c(g,f),m.complete()}}),(0,i.Tg)(t).subscribe(e))})(t)}}function c(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0===e)return void t();if(!1!==e){var a=new s.Ms({next:function(){a.unsubscribe(),t()}});return(0,i.Tg)(e.apply(void 0,(0,n.fX)([],(0,n.zs)(r)))).subscribe(a)}}},10883:(t,e,r)=>{"use strict";r.d(e,{x:()=>s});var n=r(93832),i=r(59549),o=r(55067);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,n.K)()((0,o.H)(t,(0,i.lI)(t)))}},11423:(t,e,r)=>{"use strict";r.d(e,{P:()=>p,z:()=>h});var n=r(94354),i=r(33654),o=r(55067),s=r(78906),a=r(781),u=r(59549),c=r(20659),l=r(98175),f=r(74962);function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,u.lI)(t),l=(0,u.ms)(t),f=(0,i.D)(t),h=f.args,d=f.keys;if(0===h.length)return(0,o.H)([],r);var y=new n.c(p(h,r,d?function(t){return(0,c.e)(d,t)}:s.D));return l?y.pipe((0,a.I)(l)):y}function p(t,e,r){return void 0===r&&(r=s.D),function(n){d(e,function(){for(var i=t.length,s=Array(i),a=i,u=i,c=function(i){d(e,function(){var c=(0,o.H)(t[i],e),f=!1;c.subscribe((0,l._)(n,function(t){s[i]=t,!f&&(f=!0,u--),u||n.next(r(s.slice()))},function(){--a||n.complete()}
1))},n)},f=0;f<i;f++)c(f)},n)}}function d(t,e,r){t?(0,f.N)(r,t,e):e()}},16234:(t,e,r)=>{"use strict";r.d(e,{l:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},17336:(t,e,r)=>{"use strict";r.d(e,{_:()=>o});var n=r(26889),i=r(27110);function o(t,e){var r="object"==typeof e;return new Promise(function(o,s){var a=new i.Ms({next:function(t){o(t),a.unsubscribe()},error:s,complete:function(){r?o(e.defaultValue):s(new n.G)}});t.subscribe(a)})}},20659:(t,e,r)=>{"use strict";function n(t,e){return t.reduce(function(t,r,n){return t[r]=e[n],t},{})}r.d(e,{e:()=>n})},22135:(t,e,r)=>{"use strict";r.d(e,{t:()=>o});var n=r(57348),i=r(8124);function o(t,e,r){var o,s,a,u,c=!1;return t&&"object"==typeof t?(u=void 0===(o=t.bufferSize)?1/0:o,e=void 0===(s=t.windowTime)?1/0:s,c=void 0!==(a=t.refCount)&&a,r=t.scheduler):u=null!=t?t:1/0,(0,i.u)({connector:function(){return new n.m(u,e,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},26889:(t,e,r)=>{"use strict";r.d(e,{G:()=>n});var n=(0,r(68066).L)(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})},27110:(t,e,r)=>{"use strict";r.d(e,{Ms:()=>b,vU:()=>p});var n=r(39249),i=r(91208),o=r(73817),s=r(80329),a=r(58197),u=r(77020),c=l("C",void 0,void 0);function l(t,e,r){return{kind:t,value:e,error:r}}var f=r(68473),h=r(39833),p=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,(0,o.Uv)(e)&&e.add(r)):r.destination=w,r}return(0,n.C6)(e,t),e.create=function(t,e,r){return new b(t,e,r)},e.prototype.next=function(t){this.isStopped?v(l("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?v(l("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?v(c,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(o.yU),d=Function.prototype.bind;function y(t,e){return d.call(t,e)}var g=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){m(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){m(t)}else m(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){m(t)}},t}(),b=function(t){function e(e,r,n){var o,a,u=t.call(this)||this;return(0,i.T)(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&s.$.useDeprecatedNextContext?((a=Object.create(e)).unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&y(e.next,a),error:e.error&&y(e.error,a),complete:e.complete&&y(e.complete,a)}):o=e,u.destination=new g(o),u}return(0,n.C6)(e,t),e}(p);function m(t){s.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(t):(0,a.m)(t)}function v(t,e){var r=s.$.onStoppedNotification;r&&f.f.setTimeout(function(){return r(t,e)})}var w={closed:!0,next:u.l,error:function(t){throw t},complete:u.l}},27745:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(91208);function i(t){return(0,n.T)(null==t?void 0:t.then)}},33654:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var n=Array.isArray,i=Object.getPrototypeOf,o=Object.prototype,s=Object.keys;function a(t){if(1===t.length){var e,r=t[0];if(n(r))return{args:r,keys:null};if((e=r)&&"object"==typeof e&&i(e)===o){var a=s(r);return{args:a.map(function(t){return r[t]}),keys:a}}}return{args:t,keys:null}}},35227:(t,e,r)=>{"use strict";r.d(e,{q:()=>s});var n=r(39249),i=r(70314),o=function(){function t(e,r){void 0===r&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(r,e)},t.now=i.U.now,t}(),s=function(t){function e(e,r){void 0===r&&(r=o.now);var n=t.call(this,e,r)||this;return n.actions=[],n._active=!1,n}return(0,n.C6)(e,t),e.prototype.flush=function(t){var e,r=this.actions;if(this._active)return void r.push(t);this._active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(o)},37671:(t,e,r)=>{"use strict";r.d(e,{h:()=>s});
1var n=r(57173),i=r(74962),o=r(98175);function s(t,e,r,s,a,u,c,l){var f=[],h=0,p=0,d=!1,y=function(){!d||f.length||h||e.complete()},g=function(t){return h<s?b(t):f.push(t)},b=function(t){u&&e.next(t),h++;var l=!1;(0,n.Tg)(r(t,p++)).subscribe((0,o._)(e,function(t){null==a||a(t),u?g(t):e.next(t)},function(){l=!0},void 0,function(){if(l)try{for(h--;f.length&&h<s;)!function(){var t=f.shift();c?(0,i.N)(e,c,function(){return b(t)}):b(t)}();y()}catch(t){e.error(t)}}))};return t.subscribe((0,o._)(e,g,function(){d=!0,y()})),function(){null==l||l()}}},38541:(t,e,r)=>{"use strict";r.d(e,{s:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},39249:(t,e,r)=>{"use strict";r.d(e,{AQ:()=>h,C6:()=>i,Cl:()=>o,Ju:()=>u,N3:()=>f,YH:()=>a,fX:()=>l,sH:()=>s,xN:()=>p,zs:()=>c});var n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})}function a(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){var c=[a,u];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function u(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function l(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function f(t){return this instanceof f?(this.v=t,this):new f(t)}function h(t,e,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(t){return function(e){return Promise.resolve(e).then(t,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(t,e){i[t]&&(n[t]=function(e){return new Promise(function(r,n){o.push([t,e,r,n])>1||a(t,e)})},e&&(n[t]=e(n[t])))}function a(t,e){try{var r;(r=i[t](e)).value instanceof f?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(t){l(o[0][3],t)}}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function p(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=u(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(e=t[r](e)).done,Promise.resolve(e.value).then(function(t){o({value:t,done:a})},s)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},39833:(t,e,r)=>{"use strict";r.d(e,{Y:()=>o,l:()=>s});var n=r(80329),i=null;function o(t){if(n.$.useDeprecatedSynchronousErrorHandling){var e=!i;if(e&&(i={errorThrown:!1,error:null}),t(),e){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else t()}function s(t){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=t)}},39839:(t,e,r)=>{"use strict";r.d(e,{C:()=>o,U:()=>s});var n=r(39249),i=r(91208);function o(t){return(0,n.AQ)(this,arguments,function(){var e,r,i;return(0,n.YH)(this,function(o){switch(o.label){case 0:e=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.N3)(e.read())];case 3:if(i=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.N3)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.N3)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function s(t){return(0,i.T)(null==t?void 0:t.getReader)}},42284:(t,e,r)=>{"use strict";r.d(e,{B:()=>c});var n=r(39249),i=r(94354),o=r(73817),s=(0,r(68066).L)(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=r(575),u=r(39833),c=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return(0,n.C6)(e,t),e.prototype.lift=function(t){var e=new l(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new s},e.prototype.next=function(t){var e=this;(0,u.Y)(function(){var r,i;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=(0,n.Ju)(e.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(t)}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var e=this;(0,u.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;(0,u.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null==(t=this.observers)?void 0:t.length)>0}
vendor: 22,712 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?o.Kn:(this.currentObservers=null,i.push(t),new o.yU(function(){e.currentObservers=null,(0,a.o)(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new l(t,e)},e}(i.c),l=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return(0,n.C6)(e,t),e.prototype.next=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.next)||r.call(e,t)},e.prototype.error=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.error)||r.call(e,t)},e.prototype.complete=function(){var t,e;null==(e=null==(t=this.destination)?void 0:t.complete)||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!=(r=null==(e=this.source)?void 0:e.subscribe(t))?r:o.Kn},e}(c)},43890:(t,e,r)=>{"use strict";r.d(e,{of:()=>o});var n=r(59549),i=r(55067);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,n.lI)(t);return(0,i.H)(t,r)}},44134:(t,e,r)=>{"use strict";let n=r(57719),i=r(7610),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|d(n,i),o=s(r),u=o.write(n,i);return u!==r&&(o=o.slice(0,u)),o}if(ArrayBuffer.isView(t)){var o=t;if(F(o,Uint8Array)){let t=new Uint8Array(o);return h(t.buffer,t.byteOffset,t.byteLength)}return f(o)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return a.from(u,e,r);let c=function(t){if(a.isBuffer(t)){let e=0|p(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(c)return c;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|p(t))}function f(t){let e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(i)return n?-1:U(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=D[t[n]];return i}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":var o,s,a;return o=this,s=e,a=r,0===s&&a===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(s,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,r);default:if(i)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){let o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else -1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(t,o+n)!==c(e,n)){r=!1;break}if(r)return o}return -1}function v(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(u=(31&e)<<6|63&r)>127&&(o=u);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(u=(15&e)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}var o=n;let s=o.length;if(s<=4096)return String.fromCharCode.apply(String,o);let a="",u=0;for(;u<s;)a+=String.fromCharCode.apply(String,o.slice(u,u+=4096));return a}function w(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function C(t,e,r,n,i){q(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function I(t,e,r,n,i){q(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function R(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function T(t,e,r,n,o){return e*=1,r>>>=0,o||R(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e*=1,r>>>=0,o||R(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.hp=a,e.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(c(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(F(e,Uint8Array))i+e.length>n.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(a.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):y.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="",r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,s=r-e,u=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<u;++t)if(c[t]!==l[t]){o=c[t],s=l[t];break}return o<s?-1:+(s<o)},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){var i,o,s,a,u,c,l,f;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=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");let h=this.length-e;if((void 0===r||r>h)&&(r=h),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=e.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var a;let n=parseInt(e.substr(2*i,2),16);if((a=n)!=a)break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,P(U(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=e,a=r,P(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,a);case"base64":return u=e,c=r,P(B(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,f=r,P(function(t,e){let r,n,i=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,f);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=N(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&S(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=N(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&S(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=N(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&S(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),a.prototype.readBigInt64BE=N(function(t){O(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&S(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=N(function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=N(function(t,e=0){return I(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||E(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=N(function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=N(function(t,e=0){return I(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(t,e,r){return T(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return T(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<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),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=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&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=a.isBuffer(t)?t:a.from(t,n),s=o.length;
1if(0===s)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};let A={};function _(t,e,r){A[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function $(t){let e="",r=t.length,n=+("-"===t[0]);for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function q(t,e,r,n,i,o){if(t>r||t<e){let n,i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new A.ERR_OUT_OF_RANGE("value",n,t)}O(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&S(i,n.length-(o+1))}function O(t,e){if("number"!=typeof t)throw new A.ERR_INVALID_ARG_TYPE(e,"number",t)}function S(t,e,r){if(Math.floor(t)!==t)throw O(t,r),new A.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new A.ERR_BUFFER_OUT_OF_BOUNDS;throw new A.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${e}`,t)}_("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),_("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=$(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=$(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);let j=/[^+/0-9A-Za-z-_]/g;function U(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=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 B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let D=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function N(t){return"undefined"==typeof BigInt?k:t}function k(){throw Error("BigInt not supported")}},46429:(t,e,r)=>{"use strict";r.d(e,{K:()=>i});var n=Array.isArray;function i(t){return 1===t.length&&n(t[0])?t[0]:t}},48728:(t,e,r)=>{"use strict";function n(t){return t instanceof Date&&!isNaN(t)}r.d(e,{v:()=>n})},49930:(t,e,r)=>{"use strict";r.d(e,{x:()=>o});var n=r(16234),i=r(91208);function o(t){return(0,i.T)(null==t?void 0:t[n.l])}},49967:(t,e,r)=>{"use strict";r.d(e,{Z:()=>function t(e,r,u){return(void 0===u&&(u=1/0),(0,a.T)(r))?t(function(t,o){return(0,n.T)(function(e,n){return r(t,e,o,n)})((0,i.Tg)(e(t,o)))},u):("number"==typeof r&&(u=r),(0,o.N)(function(t,r){return(0,s.h)(t,r,e,u)}))}});var n=r(50793),i=r(57173),o=r(1125),s=r(37671),a=r(91208)},50793:(t,e,r)=>{"use strict";r.d(e,{T:()=>o});var n=r(1125),i=r(98175);function o(t,e){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){n.next(t.call(e,r,o++))}))})}},54682:(t,e,r)=>{"use strict";r.d(e,{M:()=>a});var n=r(91208),i=r(1125),o=r(98175),s=r(78906);function a(t,e,r){var a=(0,n.T)(t)||e||r?{next:t,error:e,complete:r}:t;return a?(0,i.N)(function(t,e){null==(r=a.subscribe)||r.call(a);var r,n=!0;t.subscribe((0,o._)(e,function(t){var r;null==(r=a.next)||r.call(a,t),e.next(t)},function(){var t;n=!1,null==(t=a.complete)||t.call(a),e.complete()},function(t){var r;n=!1,null==(r=a.error)||r.call(a,t),e.error(t)},function(){var t,e;n&&(null==(t=a.unsubscribe)||t.call(a)),null==(e=a.finalize)||e.call(a)}))}):s.D}},54865:(t,e,r)=>{"use strict";r.d(e,{$:()=>o});var n=r(94354),i=r(91208);function o(t,e){var r=(0,i.T)(t)?t:function(){return t}
1,o=function(t){return t.error(r())};return new n.c(e?function(t){return e.schedule(o,0,t)}:o)}},55067:(t,e,r)=>{"use strict";r.d(e,{H:()=>o});var n=r(96653),i=r(57173);function o(t,e){return e?(0,n.c)(t,e):(0,i.Tg)(t)}},56534:(t,e,r)=>{"use strict";r.d(e,{X:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},56864:(t,e,r)=>{"use strict";r.d(e,{O:()=>a});var n=r(94354),i=r(7663),o=r(62021),s=r(48728);function a(t,e,r){void 0===t&&(t=0),void 0===r&&(r=i.b);var a=-1;return null!=e&&((0,o.m)(e)?r=e:a=e),new n.c(function(e){var n=(0,s.v)(t)?t-r.now():t;n<0&&(n=0);var i=0;return r.schedule(function(){e.closed||(e.next(i++),0<=a?this.schedule(void 0,a):e.complete())},n)})}},57173:(t,e,r)=>{"use strict";r.d(e,{Tg:()=>y});var n=r(39249),i=r(56534),o=r(27745),s=r(94354),a=r(82388),u=r(67606),c=r(920),l=r(49930),f=r(39839),h=r(91208),p=r(58197),d=r(38541);function y(t){if(t instanceof s.c)return t;if(null!=t){var e,r,y,b,m;if((0,a.l)(t)){return e=t,new s.c(function(t){var r=e[d.s]();if((0,h.T)(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.X)(t)){return r=t,new s.c(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}if((0,o.y)(t)){return y=t,new s.c(function(t){y.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,p.m)})}if((0,u.T)(t))return g(t);if((0,l.x)(t)){return b=t,new s.c(function(t){var e,r;try{for(var i=(0,n.Ju)(b),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()})}if((0,f.U)(t)){return m=t,g((0,f.C)(m))}}throw(0,c.L)(t)}function g(t){return new s.c(function(e){(function(t,e){var r,i,o,s;return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=(0,n.xN)(t),u.label=1;case 1:return[4,r.next()];case 2:if((i=u.sent()).done)return[3,4];if(a=i.value,e.next(a),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:u.sent()},[3,11];case 6:if(u.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})})(t,e).catch(function(t){return e.error(t)})})}},57348:(t,e,r)=>{"use strict";r.d(e,{m:()=>s});var n=r(39249),i=r(42284),o=r(70314),s=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.U);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return(0,n.C6)(e,t),e.prototype.next=function(e){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(e),i||n.push(o.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},e}(i.B)},57719:(t,e)=>{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),s=o[0],a=o[1],c=new i((s+a)*3/4-a),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},58197:(t,e,r)=>{"use strict";r.d(e,{m:()=>o});var n=r(80329),i=r(68473);function o(t){i.f.setTimeout(function(){var e=n.$.onUnhandledError;if(e)e(t);else throw t})}},58614:(t,e,r)=>{"use strict";r.d(e,{U:()=>o});var n=r(49967),i=r(78906);function o(t){return void 0===t&&(t=1/0),(0,n.Z)(i.D,t)}},59549:(t,e,r)=>{"use strict";r.d(e,{R0:()=>u,lI:()=>a,ms:()=>s});var n=r(91208),i=r(62021);function o(t){return t[t.length-1]}function s(t){return(0,n.T)(o(t))?t.pop():void 0}function a(t){return(0,i.m)(o(t))?t.pop():void 0}function u(t,e){return"number"==typeof o(t)?t.pop():e}},62021:(t,e,r)=>{"use strict";r.d(e,{m:()=>i});var n=r(91208);function i(t){return t&&(0,n.T)(t.schedule)}},62789:(t,e,r)=>{"use strict";r.d(e,{v:()=>o});var n=r(94354),i=r(57173);function o(t){return new n.c(function(e){(0,i.Tg)(t()).subscribe(e)})}},63296:(t,e,r)=>{"use strict";r.d(e,{Q6:()=>tQ,MZ:()=>ty,gP:()=>tg,UU:()=>rt});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(t){let e={...i,..."string"==typeof t?{url:t}:t};if(e.timeout=function t(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;let r=Number(e);return isNaN(r)?t(i.timeout):{connect:r,socket:r}}(e.timeout),e.query){let{url:t,searchParams:r}=function(t){let e=t.indexOf("?");if(-1===e)return{url:t,searchParams:new URLSearchParams};let r=t.slice(0,e),i=t.slice(e+1);if(!n)return{url:r,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let t of i.split("&")){let[e,r]=t.split("=");e&&o.append(s(e),s(r||""))}return{url:r,searchParams:o}}(e.url);for(let[n,i]of Object.entries(e.query)){if(void 0!==i)if(Array.isArray(i))for(let t of i)r.append(n,t);else r.append(n,i);let o=r.toString();o&&(e.url=`${t}?${o}`)}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function s(t){return decodeURIComponent(t.replace(/\+/g," "))}let a=/^https?:\/\//i,u=function(t){if(!a.test(t.url))throw Error(`"${t.url}" is not a valid URL`)},c=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var f,h,p=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(h)return f;h=1;var t=function(t){return t.replace(/^\s+|\s+$/g,"")};return f=function(e){if(!e)return{};for(var r=Object.create(null),n=t(e).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),u=t(s.slice(0,a)).toLowerCase(),c=t(s.slice(a+1));typeof r[u]>"u"?r[u]=c:(o=r[u],"[object Array]"===Object.prototype.toString.call(o))?r[u].push(c):r[u]=[r[u],c]}return r}}());class d{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#t;#e;#r;#n={};#i;#o={};#s;open(t,e,r){this.#t=t,this.#e=e,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(t,e){this.#n[t]=e}setInit(t,e=!0){this.#o=t,this.#s=e}send(t){let e="arraybuffer"!==this.responseType,r={...this.#o,method:this.#t,headers:this.#n,body:t};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#e,r).then(t=>(t.headers.forEach((t,e)=>{this.#r+=`${e}: ${t}\r
2`}),this.status=t.status,this.statusText=t.statusText,this.readyState=3,this.onreadystatechange?.(),e?t.text():t.arrayBuffer())).then(t=>{"string"==typeof t?this.responseText=t:this.response=t,this.readyState=4,this.onreadystatechange?.()}).catch(t=>{"AbortError"!==t.name?this.onerror?.(t):this.onabort?.()})}}let y="function"==typeof XMLHttpRequest?"xhr":"fetch",g="xhr"===y?XMLHttpRequest:d,b=(t,e)=>{let r=t.options,n=t.applyMiddleware("finalizeOptions",r),i={},o=t.applyMiddleware("interceptRequest",void 0,{adapter:y,context:t});if(o){let t=setTimeout(e,0,null,o);return{abort:()=>clearTimeout(t)}}let s=new g;s instanceof d&&"object"==typeof n.fetch&&s.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,f=!1;if(s.onerror=t=>{m(s instanceof d?t instanceof Error?t:Error(`Request error while attempting to reach is ${n.url}`,{cause:t}):Error(`Request error while attempting to reach is ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.ontimeout=t=>{m(Error(`Request timeout while attempting to reach ${n.url}${t.lengthComputable?`(${t.loaded} of ${t.total} bytes transferred)`:""}`))},s.onabort=()=>{b(!0),c=!0},s.onreadystatechange=function(){u&&(b(),i.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),u.socket)),!c&&s&&4===s.readyState&&0!==s.status&&function(){if(!(c||l||f)){if(0===s.status)return m(Error("Unknown XHR error"));b(),l=!0,e(null,{body:s.response||(""===s.responseType||"text"===s.responseType?s.responseText:""),url:n.url,method:n.method,headers:p(s.getAllResponseHeaders()),statusCode:s.status,statusMessage:s.statusText})}}()},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,a&&s.setRequestHeader)for(let t in a)a.hasOwnProperty(t)&&s.setRequestHeader(t,a[t]);return n.rawBody&&(s.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:n,adapter:y,request:s,context:t}),s.send(n.body||null),u&&(i.connect=setTimeout(()=>h("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,s&&s.abort()}};function h(e){f=!0,s.abort();let r=Error("ESOCKETTIMEDOUT"===e?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=e,t.channels.error.publish(r)}function b(t){(t||c||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function m(t){if(l)return;b(!0),l=!0,s=null;let r=t||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,e(r)}};var m,v,w,E,C,I=r(87358),R=r(44134).hp,T={exports:{}};C||(C=1,function(t,e){let r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))}),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch{}},e.load=function(){let t;try{t=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!t&&"u">typeof I&&"env"in I&&(t=I.env.DEBUG),t},e.useColors=function(){let t;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
2("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch{}}(),r=!1,e.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=(E?w:(E=1,w=function(t){function e(t){let n,i,o,s=null;function a(...t){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let i=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=e.formatters[n];if("function"==typeof o){let e=t[i];r=o.call(a,e),t.splice(i,1),i--}return r}),e.formatArgs.call(a,t),(a.log||e.log).apply(a,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==e.namespaces&&(i=e.namespaces,o=e.enabled(t)),o),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,r){let n=e(this.namespace+(typeof r>"u"?":":r)+t);return n.log=this.log,n}function n(t,e){let r=0,n=0,i=-1,o=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){let t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t},e.enable=function(t){for(let r of(e.save(t),e.namespaces=t,e.names=[],e.skips=[],("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?e.skips.push(r.slice(1)):e.names.push(r)},e.enabled=function(t){for(let r of e.skips)if(n(t,r))return!1;for(let r of e.names)if(n(t,r))return!0;return!1},e.humanize=function(){if(v)return m;v=1;function t(t,e,r,n){return Math.round(t/r)+" "+n+(e>=1.5*r?"s":"")}return m=function(e,r){r=r||{};var n,i,o=typeof e;if("string"===o&&e.length>0){var s=e;if(!((s=String(s)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u}}}return}if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(n=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":n>=36e5?Math.round(e/36e5)+"h":n>=6e4?Math.round(e/6e4)+"m":n>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}(),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(r=>{e[r]=t[r]}),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}))(e);let{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(T,T.exports)),T.exports,Object.prototype.hasOwnProperty;let x=typeof R>"u"?()=>!1:t=>R.isBuffer(t);function A(t){return"[object Object]"===Object.prototype.toString.call(t)}let _=["boolean","string","number"],$={};"u">typeof globalThis?$=globalThis:"u">typeof window?$=window:"u">typeof global?$=global:"u">typeof self&&($=self);var q=$;let O=(t={})=>{let e=t.implementation||Promise;if(!e)throw Error("`Promise` is not available in global scope, and n
2o implementation was passed");return{onReturn:(r,n)=>new e((e,i)=>{let o=n.options.cancelToken;o&&o.promise.then(t=>{r.abort.publish(t),i(t)}),r.error.subscribe(i),r.response.subscribe(r=>{e(t.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(t){i(t)}},0)})}};class S{__CANCEL__=!0;message;constructor(t){this.message=t}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class j{promise;reason;constructor(t){if("function"!=typeof t)throw TypeError("executor must be a function.");let e=null;this.promise=new Promise(t=>{e=t}),t(t=>{this.reason||(this.reason=new S(t),e(this.reason))})}static source=()=>{let t;return{token:new j(e=>{t=e}),cancel:t}}}O.Cancel=S,O.CancelToken=j,O.isCancel=t=>!(!t||!t?.__CANCEL__);var U=(t,e,r)=>("GET"===r.method||"HEAD"===r.method)&&(t.isNetworkError||!1);function B(t){return 100*Math.pow(2,t)+100*Math.random()}let P=(t={})=>(t=>{let e=t.maxRetries||5,r=t.retryDelay||B,n=t.shouldRetry;return{onError:(t,i)=>{var o;let s=i.options,a=s.maxRetries||e,u=s.retryDelay||r,c=s.shouldRetry||n,l=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!c(t,l,s)||l>=a)return t;let f=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(f),u(l)),null}}})({shouldRetry:U,...t});P.shouldRetry=U;var F=r(94354),D=r(62789),N=r(7161),k=r(43890),M=r(49967),L=r(55067),z=r(97272),V=r(22135),H=r(73094),W=r(10883),G=r(56864),Y=r(54865),J=r(54682),X=r(76299),Z=r(8124),Q=r(90873),K=r(50793),tt=r(17336),te=r(91501),tr=r(39249),tn=r(11423),ti=r(1125),to=r(46429),ts=r(781),ta=r(88580),tu=r(59549);function tc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,tu.ms)(t);return r?(0,ta.F)(tc.apply(void 0,(0,tr.fX)([],(0,tr.zs)(t))),(0,ts.I)(r)):(0,ti.N)(function(e,r){(0,tn.P)((0,tr.fX)([e],(0,tr.zs)((0,to.K)(t))))(r)})}var tl=r(69647),tf=r(6814),th=r(71311);let tp=/\r\n|[\n\r\u2028\u2029]/;function td(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n].length+1;if(r+i>t)return{line:n+1,column:t-r};r+=i}return{line:e.length,column:e[e.length-1]?.length??0}}class ty extends Error{response;statusCode=400;responseBody;details;constructor(t,e){let r=tb(t,e);super(r.message),Object.assign(this,r)}}class tg extends Error{response;statusCode=500;responseBody;details;constructor(t){let e=tb(t);super(e.message),Object.assign(this,e)}}function tb(t,e){var r,n,i;let o=t.body,s={response:t,statusCode:t.statusCode,responseBody:(r=o,-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),message:"",details:void 0};if(!(0,te.u4)(o))return s.message=tw(t,o),s;let a=o.error;if("string"==typeof a&&"string"==typeof o.message)return s.message=`${a} - ${o.message}`,s;if("object"!=typeof a||null===a)return"string"==typeof a?s.message=a:"string"==typeof o.message?s.message=o.message:s.message=tw(t,o),s;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let t=a.items||[],e=t.slice(0,5).map(t=>t.error?.description).filter(Boolean),r=e.length?`:
3- ${e.join(`
4- `)}`:"";return t.length>5&&(r+=`
5...and ${t.length-5} more`),s.message=`${a.description}${r}`,s.details=o.error,s}return tm(a)?(s.message=tv(a,e?.options?.query?.tag),s.details=o.error):"description"in a&&"string"==typeof a.description?(s.message=a.description,s.details=a):s.message=tw(t,o),s}function tm(t){return(0,te.u4)(t)&&"queryParseError"===t.type&&"string"==typeof t.query&&"number"==typeof t.start&&"number"==typeof t.end}function tv(t,e){let{query:r,start:n,end:i,description:o}=t;if(!r||typeof n>"u")return`GROQ query parse error: ${o}`;let s=e?`
6
7Tag: ${e}`:"";return`GROQ query parse error:
8${function(t,e,r){let n=t.split(tp),{start:i,end:o,markerLines:s}=function(t,e){let r={...t.start},n={...r,...t.end},i=r.line??-1,o=r.column??0,s=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(e.length,s+3);-1===i&&(u=0),-1===s&&(c=e.length);let l=s-i,f={};if(l)for(let t=0;t<=l;t++){let r=t+i;if(o)if(0===t){let t=e[r-1].length;f[r]=[o,t-o+1]}else if(t===l)f[r]=[0,a];else{let n=e[r-t].length;f[r]=[0,n]}else f[r]=!0}else o===a?o?f[i]=[o,0]:f[i]=!0:f[i]=[o,a-o];return{start:u,end:c,markerLines:f}}({start:td(e.start,n),end:e.end?td(e.end,n):void 0},n),a=`${o}`.length;return t.split(tp,o).slice(i,o).map((t,e)=>{let n=i+1+e,o=` ${` ${n}`.slice(-a)} |`,u=s[n],c=!s[n+1];if(!u)return` ${o}${t.length>0?` ${t}`:""}`;let l="";if(Array.isArray(u)){let e=t.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=[`
9 `,o.replace(/\d/g," ")," ",e,"^".repeat(n)].join(""),c&&r&&(l+=" "+r)}return[">",o,t.length>0?` ${t}`:"",l].join("")}).join(`
10`)}(r,{start:n,end:i},o)}${s}`}function tw(t,e){var r,n;let i="string"==typeof e?` (${n=100,(r=e).length>100?`${r.slice(0,n)}\u2026`:r})`:"",o=t.statusMessage?` ${t.statusMessage}`:"";return`${t.method}-request to ${t.url} resulted in HTTP ${t.statusCode}${o}${i}`}
10class tE extends Error{projectId;addOriginUrl;constructor({projectId:t}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=t;let e=new URL(`https://sanity.io/manage/project/${t}/api`);if("u">typeof location){let{origin:t}=location;e.searchParams.set("cors","add"),e.searchParams.set("origin",t),this.addOriginUrl=e,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${e}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${e}`}}let tC={onResponse:(t,e)=>{if(t.statusCode>=500)throw new tg(t);if(t.statusCode>=400)throw new ty(t,e);return t}};function tI(t,e={}){return((t=[],e=b)=>(function t(e,r){let n=[],i=l.reduce((t,e)=>(t[e]=t[e]||[],t),{processOptions:[o],validateOptions:[u]});function s(t){let e,n=c.reduce((t,e)=>(t[e]=function(){let t=Object.create(null),e=0;return{publish:function(e){for(let r in t)t[r](e)},subscribe:function(r){let n=e++;return t[n]=r,function(){delete t[n]}}}}(),t),{}),o=function(t,e,...r){let n="onError"===t,o=e;for(let e=0;e<i[t].length&&(o=(0,i[t][e])(o,...r),!n||o);e++);return o},s=o("processOptions",t);o("validateOptions",s);let a={options:s,channels:n,applyMiddleware:o},u=n.request.subscribe(t=>{e=r(t,(e,r)=>((t,e,r)=>{let i=t,s=e;if(!i)try{s=o("onResponse",e,r)}catch(t){s=null,i=t}(i=i&&o("onError",i,r))?n.error.publish(i):s&&n.response.publish(s)})(e,r,t))});n.abort.subscribe(()=>{u(),e&&e.abort()});let l=o("onReturn",n,a);return l===n&&n.request.publish(a),l}return s.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return l.forEach(e=>{t[e]&&i[e].push(t[e])}),n.push(t),s},s.clone=()=>t(n,r),e.forEach(s.use),s})(t,e))([P({shouldRetry:tR}),...t,function(t={}){let e={},r=e=>void 0!==t.ignoreWarnings&&(Array.isArray(t.ignoreWarnings)?t.ignoreWarnings:[t.ignoreWarnings]).some(t=>"string"==typeof t?e.includes(t):t instanceof RegExp&&t.test(e));return{onResponse:t=>{let n=t.headers["x-sanity-warning"];for(let t of Array.isArray(n)?n:[n])!t||e[t]||r(t)||(e[t]=!0,console.warn(t));return t}}}(e),{processOptions:t=>{let e=t.body;return!e||"function"==typeof e.pipe||x(e)||-1===_.indexOf(typeof e)&&!Array.isArray(e)&&!function(t){if(!1===A(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!1!==A(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}},{onResponse:t=>{let e=t.headers["content-type"]||"",r=-1!==e.indexOf("application/json");return t.body&&e&&r?Object.assign({},t,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message=`Failed to parsed response body as JSON: ${t.message}`,t}}(t.body)}):t},processOptions:t=>Object.assign({},t,{headers:Object.assign({Accept:"application/json"},t.headers)})},{onRequest:t=>{if("xhr"!==t.adapter)return;let e=t.request,r=t.context;function n(t){return e=>{let n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}},tC,function(t={}){let e=t.implementation||q.Observable;if(!e)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(t,r)=>new e(e=>(t.error.subscribe(t=>e.error(t)),t.progress.subscribe(t=>e.next(Object.assign({type:"progress"},t))),t.response.subscribe(t=>{e.next(Object.assign({type:"response"},t)),e.complete()}),t.request.publish(r),()=>t.abort.publish()))}}({implementation:F.c})])}function tR(t,e,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=t.response&&(429===t.response.statusCode||502===t.response.statusCode||503===t.response.statusCode);return(!!n||!!i)&&!!o||P.shouldRetry(t,e,r)}function tT(t){return"https://www.sanity.io/help/"+t}let tx=["image","file"],tA=["before","after","replace"],t_=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},t$=(t,e)=>{if(null===e||"object"!=typeof e||Array.isArray(e))throw Error(`${t}() takes an object of properties`)},tq=(t,e)=>{if("string"!=typeof e||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw Error(`${t}(): "${e}" is not a valid document ID`)},tO=(t,e)=>{if(!e._id)throw Error(`${t}() requires that the document contains an ID ("_id" property)`);tq(t,e._id)},tS=(t,e)=>{if(!e._type)throw Error(`\`${t}()\` requires that the document contains a type (\`_type\` property)`);((t,e)=>{if("string"!=typeof e)throw Error(`\`${t}()\`: \`${e}\` is not a valid document type`)})(t,e._type)},tj=t=>{if(!t.dataset)throw Error("`dataset` must be provided to perform queries");return t.dataset||""},tU=t=>{if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},tB=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":if(2!==r.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${e.toString()}`)}},tP=(t,e)=>{if(e["~experimental_resource"])throw Error(`\`${t}\` does not support resource-based operations`)},tF=t=>(function(t){let e=!1,r;return(...n)=>(e||(r=t(...n),e=!0),r)})((...e)=>console.warn(t.join(" "),...e)),tD=tF(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),tN=tF(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),tk=tF(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),tM=tF(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),tL=tF(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${tT("js-client-browser-token")} for more information and how to hide this warning.`]),tz=tF(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),tV=tF(["Using the Sanity client without specifying an API version is deprecated.",`See ${tT("js-client-api-version")}`]),tH=(tF(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),tF(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),tW={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},tG=["localhost","127.0.0.1","0.0.0.0"];function tY(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let tJ=(t,e)=>{let r,n={...e,...t,stega:{..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||tW.stega,..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||{}}};n.apiVersion||tV();let i={...tW,...n},o=i.useProjectHostname&&!i["~experimental_resource"];if(typeof Promise>"u"){let t=tT("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${t}`)}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(i["~experimental_resource"]&&tB(i),"u">typeof i.perspective&&tY(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
10if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let s="u">typeof window&&window.location&&window.location.hostname,a=s&&(r=window.location.hostname,-1!==tG.indexOf(r)),u=!!i.token;i.withCredentials&&u&&(tz(),i.withCredentials=!1),s&&a&&u&&!0!==i.ignoreBrowserTokenWarning?tL():typeof i.useCdn>"u"&&tN(),o&&(t=>{if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&t_(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?tU(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===tW.apiHost,!0===i.useCdn&&i.withCredentials&&tD(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(t){if("1"===t||"X"===t)return;let e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let c=i.apiHost.split("://",2),l=c[0],f=c[1],h=i.isDefaultApi?"apicdn.sanity.io":f;return o?(i.url=`${l}://${i.projectId}.${f}/v${i.apiVersion}`,i.cdnUrl=`${l}://${i.projectId}.${h}/v${i.apiVersion}
10`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class tX extends Error{name="ConnectionFailedError"}class tZ extends Error{name="DisconnectError";reason;constructor(t,e,r={}){super(t,r),this.reason=e}}class tQ extends Error{name="ChannelError";data;constructor(t,e){super(t),this.data=e}}class tK extends Error{name="MessageError";data;constructor(t,e,r={}){super(t,r),this.data=e}}class t0 extends Error{name="MessageParseError"}let t1=["channelError","disconnect"];function t2(t,e){return(0,D.v)(()=>{let e=t();return(0,N.A)(e)?e:(0,k.of)(e)}).pipe((0,M.Z)(t=>{var r,n;return r=t,n=e,new F.c(t=>{let e=n.includes("open"),i=n.includes("reconnect");function o(e){if("data"in e){let[r,n]=t3(e);t.error(r?new t0("Unable to parse EventSource error message",{cause:n}):new tK((n?.data).message,n));return}r.readyState===r.CLOSED?t.error(new tX("EventSource connection failed")):i&&t.next({type:"reconnect"})}function s(){t.next({type:"open"})}function a(e){let[n,i]=t3(e);if(n)return void t.error(new t0("Unable to parse EventSource message",{cause:n}));if("channelError"===e.type){let e=new URL(r.url).searchParams.get("tag");t.error(new tQ(function(t,e){let r=t.error;return r?tm(r)?tv(r,e):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):t.message||"Unknown listener error"}(i?.data,e),i.data));return}if("disconnect"===e.type)return void t.error(new tZ(`Server disconnected client: ${i.data?.reason||"unknown error"}`));t.next({type:e.type,id:e.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",o),e&&r.addEventListener("open",s);let u=[...new Set([...t1,...n])].filter(t=>"error"!==t&&"open"!==t&&"reconnect"!==t);return u.forEach(t=>r.addEventListener(t,a)),()=>{r.removeEventListener("error",o),e&&r.removeEventListener("open",s),u.forEach(t=>r.removeEventListener(t,a)),r.close()}})}))}function t3(t){try{let e="string"==typeof t.data&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...!function(t){for(let e in t)return!1;return!0}(e)?{data:e}:{}}]}catch(t){return[t,null]}}function t6(t){if("string"==typeof t)return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if("object"==typeof t&&null!==t&&"query"in t&&"string"==typeof t.query)return"params"in t&&"object"==typeof t.params&&null!==t.params?{query:t.query,params:t.params}:{query:t.query};let e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
11`);throw Error(`Unknown selection - must be one of:
12
13${e}`)}class t5{selection;operations;constructor(t,e={}){this.selection=t,this.operations=e}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return t$("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,e,r){return((t,e,r)=>{let n="insert(at, selector, items)";if(-1===tA.indexOf(t)){let t=tA.map(t=>`"${t}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${t}`)}if("string"!=typeof e)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(t,e,r),this._assign("insert",{[t]:e,items:r})}append(t,e){return this.insert("after",`${t}[-1]`,e)}prepend(t,e){return this.insert("before",`${t}[0]`,e)}splice(t,e,r,n){let i=e<0?e-1:e,o=typeof r>"u"||-1===r?-1:Math.max(0,e+r),s=`${t}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,n||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...t6(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,e,r=!0){return t$(t,e),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},r&&this.operations[t]||{},e)}),this}_set(t,e){return this._assign(t,e,!1)}}class t8 extends t5{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new t8(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}class t9 extends t5{#a;constructor(t,e,r){super(t,e),this.#a=r}clone(){return new t9(this.selection,{...this.operations},this.#a)}commit(t){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.#a.mutate({patch:this.serialize()},e)}}let t4={returnDocuments:!1};class t7{operations;trxId;constructor(t=[],e){this.operations=t,this.trxId=e}create(t){return t$("create",t),this._add({create:t})}createIfNotExists(t){let e="createIfNotExists";return t$(e,t),tO(e,t),this._add({[e]:t})}createOrReplace(t){let e="createOrReplace";return t$(e,t),tO(e,t),this._add({[e]:t})}delete(t){return tq("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}}class et extends t7{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new et([...this.operations],this.#a,this.trxId)}commit(t){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},t4,t||{}))}patch(t,e){let r="function"==typeof e,n="string"!=typeof t&&t instanceof t9,i="object"==typeof t&&("query"in t||"id"in t);if(n)return this._add({patch:t.serialize()});if(r){let r=e(new t9(t,{},this.#a));if(!(r instanceof t9))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new t9(t,e||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}class ee extends t7{#a;constructor(t,e,r){super(t,r),this.#a=e}clone(){return new ee([...this.operations],this.#a,this.trxId)}commit(t){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},t4,t||{}))}patch(t,e){let r="function"==typeof e;if("string"!=typeof t&&t instanceof t8)return this._add({patch:t.serialize()});if(r){let r=e(new t8(t,{},this.#a));if(!(r instanceof t8))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}}let er=({query:t,params:e={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:s,...a}=r;for(let[r,o]of(i&&n.append("tag",i),n.append("query",t),Object.entries(e)))void 0!==o&&n.append(`$${r}`,JSON.stringify(o));for(let[t,e]of Object.entries(a))e&&n.append(t,`${e}`);return!1===s&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
13se"),`?${n}`},en=t=>"response"===t.type,ei=t=>t.body;function eo(t,e,n,i,o={},s={}){let a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,u=a.enabled?(0,te.Q)(o):o,c=!1===s.filterResponse?t=>t:t=>t.result,{cache:l,next:f,...h}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},p=ev(t,e,"query",{query:i,params:u},"u">typeof l||"u">typeof f?{...h,fetch:{cache:l,next:f}}:h);return a.enabled?p.pipe(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tc.apply(void 0,(0,tr.fX)([],(0,tr.zs)(t)))}((0,L.H)(r.e(4195).then(r.bind(r,74195)).then(function(t){return t.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:t})=>t))),(0,K.T)(([t,e])=>{let r=e(t.result,t.resultSourceMap,a);return c({...t,result:r})})):p.pipe((0,K.T)(c))}function es(t,e,r,n={}){let i={uri:eT(t,"doc",(()=>{if(!n.releaseId)return r;let t=(0,tf._S)(r);if(!t){if((0,tf.R8)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return(0,tf.ct)(r,n.releaseId)}if(t!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${t}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return eI(t,e,i).pipe((0,tl.p)(en),(0,K.T)(t=>{let e=t.body.documents;return e?n.includeAllVersions?e:e[0]:n.includeAllVersions?[]:void 0}))}function ea(t,e,r,n={}){let i={uri:eT(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return eI(t,e,i).pipe((0,tl.p)(en),(0,K.T)(t=>{let e,n,i=(e=t.body.documents||[],n=t=>t._id,e.reduce((t,e)=>(t[n(e)]=e,t),Object.create(null)));return r.map(t=>i[t]||null)}))}function eu(t,e,r,n={}){return ev(t,e,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function ec(t,e,r,n){return tO("createIfNotExists",r),ew(t,e,r,"createIfNotExists",n)}function el(t,e,r,n){return tO("createOrReplace",r),ew(t,e,r,"createOrReplace",n)}function ef(t,e,r,n,i){return tO("createVersion",r),tS("createVersion",r),tH(),em(t,e,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function eh(t,e,r,n,i,o,s){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return tq("createVersion",n),tq("createVersion",r),em(t,e,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?(0,tf.ct)(r,i):(0,tf.T4)(r),ifBaseRevisionId:o},s)}function ep(t,e,r,n){return ev(t,e,"mutate",{mutations:[{delete:t6(r)}]},n)}function ed(t,e,r,n=!1,i){return em(t,e,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function ey(t,e,r,n){return tO("replaceVersion",r),tS("replaceVersion",r),em(t,e,{actionType:"sanity.action.document.version.replace",document:r},n)}function eg(t,e,r,n,i){return em(t,e,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function eb(t,e,r,n){let i;return ev(t,e,"mutate",{mutations:Array.isArray(i=r instanceof t9||r instanceof t8?{patch:r.serialize()}:r instanceof et||r instanceof ee?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function em(t,e,r,n){let i=Array.isArray(r)?r:[r],o=n&&n.transactionId||void 0;return ev(t,e,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function ev(t,e,r,n,i={}){let o="mutate"===r,s="actions"===r,a=o||s?"":er(n),u=!o&&!s&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:f,token:h,tag:p,headers:d,returnQuery:y,lastLiveEventId:g,cacheMode:b}=i,m={method:u?"GET":"POST",uri:eT(t,r,c),json:!0,body:u?void 0:n,query:o&&((t={})=>{let e,r;return{dryRun:t.dryRun,returnIds:!0,returnDocuments:(e=t.returnDocuments,r=!0,!1===e?void 0:typeof e>"u"?r:e),visibility:t.visibility||"sync",autoGenerateArrayKeys:t.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:t.skipCrossDatasetReferenceValidation}})(i),timeout:f,headers:d,token:h,tag:p,returnQuery:y,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:b,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return eI(t,e,m).pipe((0,tl.p)(en),(0,K.T)(ei),(0,K.T)(t=>{if(!o)return t;let e=t.results||[];if(i.returnDocuments)return l?e[0]&&e[0].document:e.map(t=>t.document);let r=l?e[0]&&e[0].id:e.map(t=>
13t.id);return{transactionId:t.transactionId,results:e,[l?"documentId":"documentIds"]:r}}))}function ew(t,e,r,n,i={}){return ev(t,e,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let eE=t=>void 0!==t.config().dataset&&void 0!==t.config().projectId||void 0!==t.config()["~experimental_resource"],eC=(t,e)=>eE(t)&&e.startsWith(eT(t,"query"));function eI(t,e,r){var n;let i=r.url||r.uri,o=t.config(),s=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||eC(t,i)||eE(t)&&i.startsWith(eT(t,"mutate"))||eE(t)&&i.startsWith(eT(t,"doc",""))||eE(t)&&i.startsWith(eT(t,"listen"))||eE(t)&&i.startsWith(eT(t,"history",""))):r.canUseCdn,a=(r.useCdn??o.useCdn)&&s,u=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:tU(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eC(t,i)){let t=r.resultSourceMap??o.resultSourceMap;void 0!==t&&!1!==t&&(r.query={resultSourceMap:t,...r.query});let e=r.perspective||o.perspective;"u">typeof e&&("previewDrafts"===e&&tM(),tY(e),r.query={perspective:Array.isArray(e)?e.join(","):e,...r.query},(Array.isArray(e)&&e.length>0||"previewDrafts"===e||"drafts"===e)&&a&&(a=!1,tk())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(t,e={}){let r={};t.headers&&Object.assign(r,t.headers);let n=e.token||t.token;n&&(r.Authorization=`Bearer ${n}`),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r["X-Sanity-Project-ID"]=t.projectId);let i=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),o=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:e.proxy||t.proxy,json:!0,withCredentials:i,fetch:"object"==typeof e.fetch&&"object"==typeof t.fetch?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}(o,Object.assign({},r,{url:ex(t,i,a)})),l=new F.c(t=>e(c,o.requester).subscribe(t));return r.signal?l.pipe((n=r.signal,t=>new F.c(e=>{let r=()=>e.error(function(t){if(eA)return new DOMException(t?.reason??"The operation was aborted.","AbortError");let e=Error(t?.reason??"The operation was aborted.");return e.name="AbortError",e}(n));if(n&&n.aborted)return void r();let i=t.subscribe(e);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):l}function eR(t,e,r){return eI(t,e,r).pipe((0,tl.p)(t=>"response"===t.type),(0,K.T)(t=>t.body))}function eT(t,e,r){let n=t.config();if(n["~experimental_resource"]){tB(n);let t=e_(n),i=void 0!==r?`${e}/${r}`:e;return`${t}/${i}`.replace(/\/($|\?)/,"$1")}let i=tj(n),o=`/${e}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function ex(t,e,r=!1){let{url:n,cdnUrl:i}=t.config();return`${r?i:n}/${e.replace(/^\//,"")}`}let eA=!!globalThis.DOMException,e_=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{let t=r.split(".");if(2!==t.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${t[0]}/datasets/${t[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}};function e$(t,e,r){let n=tj(t.config());return eR(t,e,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function eq(t,e,r){let n=tj(t.config());return eR(t,e,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function eO(t,e,r){let n=tj(t.config());return eR(t,e,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class eS{#a;#u;constructor(t,e){this.#a=t,this.#u=e}generate(t){return e$(this.#a,this.#u,t)}transform(t){return eq(this.#a,this.#u,t)}translate(t){return eO(this.#a,this.#u,t)}}class ej{#a;#u;constructor(t,e){this.#a=t,this.#u=e}generate(t){return(0,z.s)(e$(this.#a,this.#u,t))}transform(t){return(0,z.s)(eq(this.#a,this.#u,t))}translate(t){return(0,z.s)(eO(this.#a,this.#u,t))}prompt(t){return(0,z.s)(function(t,e,r){let n=tj(t.config());return eR(t,e,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#a,this.#u,t))}patch(t){return(0,z.s)(function(t,e,r){let n=tj(t.config());return eR(t,e,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#a,this.#u,t))}}class eU{#a;#u;
13constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){return eP(this.#a,this.#u,t,e,r)}}class eB{#a;#u;constructor(t,e){this.#a=t,this.#u=e}upload(t,e,r){let n=eP(this.#a,this.#u,t,e,r);return(0,z.s)(n.pipe((0,tl.p)(t=>"response"===t.type),(0,K.T)(t=>t.body.document)))}}function eP(t,e,r,n,i={}){var o,s;if(-1===tx.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${tx.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=t.config(),c=(o=i,s=n,!(typeof File>"u")&&s instanceof File?Object.assign({filename:!1===o.preserveFilename?void 0:s.name,contentType:s.type},o):o),{tag:l,label:f,title:h,description:p,creditLine:d,filename:y,source:g}=c,b={label:f,title:h,description:p,filename:y,meta:a,creditLine:d};return g&&(b.sourceId=g.id,b.sourceName=g.name,b.sourceUrl=g.url),eI(t,e,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(t,e){let r="image"===e?"images":"files";if(t["~experimental_resource"]){let{type:e,id:n}=t["~experimental_resource"];switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${n}/assets/${r}`;case"media-library":return`/media-libraries/${n}/upload`;case"dashboard":return`/dashboards/${n}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let n=tj(t);return`assets/${r}/${n}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:b,body:n})}let eF=(0,D.v)(()=>r.e(4406).then(r.t.bind(r,24406,19))).pipe((0,K.T)(({default:t})=>t),(0,V.t)(1));function eD(){return function(t){return t.pipe((0,H.W)((t,e)=>t instanceof tX?(0,W.x)((0,k.of)({type:"reconnect"}),(0,G.O)(1e3).pipe((0,M.Z)(()=>e))):(0,Y.$)(()=>t)))}}let eN=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],ek={includeResult:!0};function eM(t,e,r={}){let{url:n,token:i,withCredentials:o,requestTagPrefix:s,headers:a}=this.config(),u=r.tag&&s?[s,r.tag].join("."):r.tag,c={...Object.keys(ek).concat(Object.keys(r)).reduce((t,e)=>(t[e]=typeof r[e]>"u"?ek[e]:r[e],t),{}),tag:u},l=er({query:t,params:e,options:{tag:u,...eN.reduce((t,e)=>(typeof c[e]>"u"||(t[e]=c[e]),t),{})}}),f=`${n}${eT(this,"listen",l)}`;if(f.length>14800)return(0,Y.$)(()=>Error("Query too large for listener"));let h=c.events?c.events:["mutation"],p={};return o&&(p.withCredentials=!0),(i||a)&&(p.headers={},i&&(p.headers.Authorization=`Bearer ${i}`),a&&Object.assign(p.headers,a)),t2(()=>(typeof EventSource>"u"||p.headers?eF:(0,k.of)(EventSource)).pipe((0,K.T)(t=>new t(f,p))),h).pipe(eD(),(0,tl.p)(t=>h.includes(t.type)),(0,K.T)(t=>({type:t.type,..."data"in t?t.data:{}})))}let eL="2021-03-25";class ez{#a;constructor(t){this.#a=t}events({includeDrafts:t=!1,tag:e}={}){var r,n,i,o;tP("live",this.#a.config());let{projectId:s,apiVersion:a,token:u,withCredentials:c,requestTagPrefix:l,headers:f}=this.#a.config(),h=a.replace(/^v/,"");if("X"!==h&&h<eL)throw Error(`The live events API requires API version ${eL} or later. The current API version is ${h}. Please update your API version to use this feature.`);if(t&&!u&&!c)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let p=eT(this.#a,"live/events"),d=new URL(this.#a.getUrl(p,!1)),y=e&&l?[l,e].join("."):e;y&&d.searchParams.set("tag",y),t&&d.searchParams.set("includeDrafts","true");let g={};t&&c&&(g.withCredentials=!0),(t&&u||f)&&(g.headers={},t&&u&&(g.headers.Authorization=`Bearer ${u}`),f&&Object.assign(g.headers,f));let b=`${d.href}::${JSON.stringify(g)}`,m=eV.get(b);if(m)return m;let v=t2(()=>(typeof EventSource>"u"||g.headers?eF:(0,k.of)(EventSource)).pipe((0,K.T)(t=>new t(d.href,g))),["message","restart","welcome","reconnect","goaway"]),w=(n=d,i={method:"OPTIONS",mode:"cors",credentials:g.withCredentials?"include":"omit",headers:g.headers},new F.c(t=>{let e=new AbortController,r=e.signal;return fetch(n,{...i,signal:e.signal}).then(e=>{t.next(e),t.complete()},e=>{r.aborted||t.error(e)}),()=>e.abort()})).pipe((0,H.W)(()=>{throw new tE({projectId:s})})),E=v.pipe(eD(),(0,M.Z)(t=>"reconnect"===t.type?w.pipe((0,M.Z)(()=>(0,k.of)(t))):(0,k.of)(t)),(0,H.W)(t=>w.pipe((0,M.Z)(()=>{throw t}))),(0,K.T)(t=>{if("message"===t.type){let{data:e,...r}=t;return{...r,tags:e.tags}}return t})).pipe((0,X.j)(()=>eV.delete(b)),(o="function"==typeof(r={predicate:t=>"welcome"===t.type})?{predicate:r,...void 0}:r,t=>{let e,r=!1,{predicate:n,...i}=o,s=t.pipe((0,J.M)(t=>{o.predicate(t)&&(r=!0,e=t)}),(0,X.j)(()=>{r=!1,e=void 0}),(0,Z.u)(i)),a=new F.c(t=>{r&&t.next(e),t.complete()});return(0,Q.h)(s,a)}));return eV.set(b,E),E}}let eV=new Map;class eH{#a;#u;
13constructor(t,e){this.#a=t,this.#u=e}create(t,e){return eG(this.#a,this.#u,"PUT",t,e)}edit(t,e){return eG(this.#a,this.#u,"PATCH",t,e)}delete(t){return eG(this.#a,this.#u,"DELETE",t)}list(){tP("dataset",this.#a.config());let t=this.#a.config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r=`/projects/${e}/datasets`),eR(this.#a,this.#u,{uri:r,tag:null})}}class eW{#a;#u;constructor(t,e){this.#a=t,this.#u=e}create(t,e){return tP("dataset",this.#a.config()),(0,z.s)(eG(this.#a,this.#u,"PUT",t,e))}edit(t,e){return tP("dataset",this.#a.config()),(0,z.s)(eG(this.#a,this.#u,"PATCH",t,e))}delete(t){return tP("dataset",this.#a.config()),(0,z.s)(eG(this.#a,this.#u,"DELETE",t))}list(){tP("dataset",this.#a.config());let t=this.#a.config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r=`/projects/${e}/datasets`),(0,z.s)(eR(this.#a,this.#u,{uri:r,tag:null}))}}function eG(t,e,r,n,i){return tP("dataset",t.config()),t_(n),eR(t,e,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class eY{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getPlaybackInfo(t,e={}){var r,n;let i=this.#a.config()["~experimental_resource"]?.id,{instanceId:o,libraryId:s}=function(t){let e="object"==typeof t&&"_ref"in t?t._ref:t,r=eX.exec(e);if(r){let[,t,e]=r;return{libraryId:t,instanceId:e}}if("string"==typeof t&&t.startsWith("video-"))return{instanceId:t};throw Error(`Invalid video asset instance identifier "${e}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(t),a=s||i;if(!a)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let u=(r=o,n=a,`/media-libraries/${n}/video/${r}/playback-info`),c=function(t){let e={};if(t.transformations){let{thumbnail:r,animated:n,storyboard:i}=t.transformations;r&&(r.width&&(e.thumbnailWidth=r.width),r.height&&(e.thumbnailHeight=r.height),void 0!==r.time&&(e.thumbnailTime=r.time),r.fit&&(e.thumbnailFit=r.fit),r.format&&(e.thumbnailFormat=r.format)),n&&(n.width&&(e.animatedWidth=n.width),n.height&&(e.animatedHeight=n.height),void 0!==n.start&&(e.animatedStart=n.start),void 0!==n.end&&(e.animatedEnd=n.end),n.fps&&(e.animatedFps=n.fps),n.format&&(e.animatedFormat=n.format)),i&&i.format&&(e.storyboardFormat=i.format)}return t.expiration&&(e.expiration=t.expiration),e}(e);return eR(this.#a,this.#u,{method:"GET",uri:u,query:c})}}class eJ{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getPlaybackInfo(t,e={}){return(0,z.s)(new eY(this.#a.observable,this.#u).getPlaybackInfo(t,e))}}let eX=/^media-library:(ml[^:]+):([^:]+)$/;class eZ{#a;#u;constructor(t,e){this.#a=t,this.#u=e}list(t){let e={};return t?.includeMembers===!1&&(e.includeMembers="false"),t?.organizationId&&(e.organizationId=t.organizationId),eR(this.#a,this.#u,{uri:"/projects",query:e})}getById(t){return eR(this.#a,this.#u,{uri:`/projects/${t}`})}}class eQ{#a;#u;constructor(t,e){this.#a=t,this.#u=e}list(t){let e={};return t?.includeMembers===!1&&(e.includeMembers="false"),t?.organizationId&&(e.organizationId=t.organizationId),(0,z.s)(eR(this.#a,this.#u,{uri:"/projects",query:e}))}getById(t){return(0,z.s)(eR(this.#a,this.#u,{uri:`/projects/${t}`}))}}let eK=(0,th.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),e0=(t,e)=>e?(0,tf.ct)(t,e):(0,tf.T4)(t);function e1(t,{releaseId:e,publishedId:r,document:n}){if(r&&n._id){let t=e0(r,e);return((t,e)=>{if(e._id&&e._id!==t)throw Error(`The provided document ID (\`${e._id}\`) does not match the generated version ID (\`${t}\`)`)})(t,n),t}if(n._id){let r=(0,tf.R8)(n._id),i=(0,tf.A_)(n._id);if(!r&&!i)throw Error(`\`${t}()\` requires a document with an \`_id\` that is a version or draft ID`);if(e){if(r)throw Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${e}\`) was also provided.`);let i=(0,tf._S)(n._id);if(i!==e)throw Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${e}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return e0(r,e);throw Error(`\`${t}()\` requires either a publishedId or a document with an \`_id\``)}let e2=(t,e)=>{let[r,n,i]=((t,e)=>{if("object"==typeof t&&null!==t&&("releaseId"in t||"metadata"in t)){let{releaseId:r=eK(),metadata:n={}}=t;return[r,n,e]}return[eK(),{},t]})(t,e);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class e3{#a;#u;constructor(t,e){this.#a=t,this.#u=e}get({releaseId:t},e){return es(this.#a,this.#u,`_.releases.${t}`,e)}create(t,e){let{action:r,options:n}=e2(t,e),{releaseId:i,metadata:o}=r;return em(this.#a,this.#u,r,n).pipe((0,K.T)(t=>({...t,releaseId:i,metadata:o})))}edit({releaseId:t,patch:e},r){return em(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:t,patch:e},r)}publish({releaseId:t},e){return em(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:t},e)}archive({releaseId:t},e){return em(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:t},e)}unarchive({releaseId:t},e){return em(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:t},e)}schedule({releaseId:t,publishAt:e},r){return em(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:t,publishAt:e},r)}unschedule({releaseId:t},e){return em(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:t},e)}delete({releaseId:t},e){return em(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:t},e)}fetchDocuments({releaseId:t},e){return eu(this.#a,this.#u,t,e)}}class e6{#a;#u;
13constructor(t,e){this.#a=t,this.#u=e}get({releaseId:t},e){return(0,z.s)(es(this.#a,this.#u,`_.releases.${t}`,e))}async create(t,e){let{action:r,options:n}=e2(t,e),{releaseId:i,metadata:o}=r;return{...await (0,z.s)(em(this.#a,this.#u,r,n)),releaseId:i,metadata:o}}edit({releaseId:t,patch:e},r){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:t,patch:e},r))}publish({releaseId:t},e){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:t},e))}archive({releaseId:t},e){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:t},e))}unarchive({releaseId:t},e){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:t},e))}schedule({releaseId:t,publishAt:e},r){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:t,publishAt:e},r))}unschedule({releaseId:t},e){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:t},e))}delete({releaseId:t},e){return(0,z.s)(em(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:t},e))}fetchDocuments({releaseId:t},e){return(0,z.s)(eu(this.#a,this.#u,t,e))}}class e5{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getById(t){return eR(this.#a,this.#u,{uri:`/users/${t}`})}}class e8{#a;#u;constructor(t,e){this.#a=t,this.#u=e}getById(t){return(0,z.s)(eR(this.#a,this.#u,{uri:`/users/${t}`}))}}class e9{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#c;#u;listen=eM;constructor(t,e=tW){this.config(e),this.#u=t,this.assets=new eU(this,this.#u),this.datasets=new eH(this,this.#u),this.live=new ez(this),this.mediaLibrary={video:new eY(this,this.#u)},this.projects=new eZ(this,this.#u),this.users=new e5(this,this.#u),this.agent={action:new eS(this,this.#u)},this.releases=new e3(this,this.#u)}clone(){return new e9(this.#u,this.config())}config(t){if(void 0===t)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=tJ(t,this.#c||{}),this}withConfig(t){let e=this.config();return new e9(this.#u,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return eo(this,this.#u,this.#c.stega,t,e,r)}getDocument(t,e){if(e?.includeAllVersions===!0)return es(this,this.#u,t,{...e,includeAllVersions:!0});let r={signal:e?.signal,tag:e?.tag,releaseId:e?.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return es(this,this.#u,t,r)}getDocuments(t,e){return ea(this,this.#u,t,e)}create(t,e){return ew(this,this.#u,t,"create",e)}createIfNotExists(t,e){return ec(this,this.#u,t,e)}createOrReplace(t,e){return el(this,this.#u,t,e)}createVersion({document:t,publishedId:e,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!t)return eh(this,this.#u,e,n,r,i,o);let s=e1("createVersion",{document:t,publishedId:e,releaseId:r}),a={...t,_id:s},u=e||(0,tf.IM)(t._id);return ef(this,this.#u,a,u,o)}delete(t,e){return ep(this,this.#u,t,e)}discardVersion({releaseId:t,publishedId:e},r,n){let i=e0(e,t);return ed(this,this.#u,i,r,n)}replaceVersion({document:t,publishedId:e,releaseId:r},n){let i=e1("replaceVersion",{document:t,publishedId:e,releaseId:r}),o={...t,_id:i};return ey(this,this.#u,o,n)}unpublishVersion({releaseId:t,publishedId:e},r){let n=(0,tf.ct)(e,t);return eg(this,this.#u,n,e,r)}mutate(t,e){return eb(this,this.#u,t,e)}patch(t,e){return new t8(t,e,this)}transaction(t){return new ee(t,this)}action(t,e){return em(this,this.#u,t,e)}request(t){return eR(this,this.#u,t)}getUrl(t,e){return ex(this,t,e)}getDataUrl(t,e){return eT(this,t,e)}}class e4{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#c;#u;listen=eM;constructor(t,e=tW){this.config(e),this.#u=t,this.assets=new eB(this,this.#u),this.datasets=new eW(this,this.#u),this.live=new ez(this),this.mediaLibrary={video:new eJ(this,this.#u)},this.projects=new eQ(this,this.#u),this.users=new e8(this,this.#u),this.agent={action:new ej(this,this.#u)},this.releases=new e6(this,this.#u),this.observable=new e9(t,e)}clone(){return new e4(this.#u,this.config())}config(t){if(void 0===t)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),this.#c=tJ(t,this.#c||{}),this}withConfig(t){let e=this.config();return new e4(this.#u,{...e,...t,stega:{...e.stega||{},..."boolean"==typeof t?.stega?{enabled:t.stega}:t?.stega||{}}})}fetch(t,e,r){return(0,z.s)(eo(this,this.#u,this.#c.stega,t,e,r))}
13getDocument(t,e){if(e?.includeAllVersions===!0)return(0,z.s)(es(this,this.#u,t,{...e,includeAllVersions:!0}));let r={signal:e?.signal,tag:e?.tag,releaseId:e?.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return(0,z.s)(es(this,this.#u,t,r))}getDocuments(t,e){return(0,z.s)(ea(this,this.#u,t,e))}create(t,e){return(0,z.s)(ew(this,this.#u,t,"create",e))}createIfNotExists(t,e){return(0,z.s)(ec(this,this.#u,t,e))}createOrReplace(t,e){return(0,z.s)(el(this,this.#u,t,e))}createVersion({document:t,publishedId:e,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!t)return(0,tt._)(eh(this,this.#u,e,n,r,i,o));let s=e1("createVersion",{document:t,publishedId:e,releaseId:r}),a={...t,_id:s},u=e||(0,tf.IM)(t._id);return(0,tt._)(ef(this,this.#u,a,u,o))}delete(t,e){return(0,z.s)(ep(this,this.#u,t,e))}discardVersion({releaseId:t,publishedId:e},r,n){let i=e0(e,t);return(0,z.s)(ed(this,this.#u,i,r,n))}replaceVersion({document:t,publishedId:e,releaseId:r},n){let i=e1("replaceVersion",{document:t,publishedId:e,releaseId:r}),o={...t,_id:i};return(0,tt._)(ey(this,this.#u,o,n))}unpublishVersion({releaseId:t,publishedId:e},r){let n=(0,tf.ct)(e,t);return(0,z.s)(eg(this,this.#u,n,e,r))}mutate(t,e){return(0,z.s)(eb(this,this.#u,t,e))}patch(t,e){return new t9(t,e,this)}transaction(t){return new et(t,this)}action(t,e){return(0,z.s)(em(this,this.#u,t,e))}request(t){return(0,z.s)(eR(this,this.#u,t))}dataRequest(t,e,r){return(0,z.s)(ev(this,this.#u,t,e,r))}getUrl(t,e){return ex(this,t,e)}getDataUrl(t,e){return eT(this,t,e)}}let e7=function(t,e){return{requester:tI(t),createClient:r=>{let n=tI(t,{ignoreWarnings:r.ignoreWarnings});return new e((t,e)=>(e||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...t}),r)}}}([],e4),rt=(e7.requester,e7.createClient)},67606:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});var n=r(91208);function i(t){return Symbol.asyncIterator&&(0,n.T)(null==t?void 0:t[Symbol.asyncIterator])}},68066:(t,e,r)=>{"use strict";function n(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}r.d(e,{L:()=>n})},68473:(t,e,r)=>{"use strict";r.d(e,{f:()=>i});var n=r(39249),i={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.fX)([t,e],(0,n.zs)(r))):setTimeout.apply(void 0,(0,n.fX)([t,e],(0,n.zs)(r)))},clearTimeout:function(t){var e=i.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0}},69647:(t,e,r)=>{"use strict";r.d(e,{p:()=>o});var n=r(1125),i=r(98175);function o(t,e){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){return t.call(e,r,o++)&&n.next(r)}))})}},70314:(t,e,r)=>{"use strict";r.d(e,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},71311:(t,e,r)=>{"use strict";r.d(e,{Ak:()=>o,d_:()=>i});let n=t=>crypto.getRandomValues(new Uint8Array(t)),i=(t,e=21)=>((t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*e/t.length);return (o=e)=>{let s="";for(;;){let e=r(i),a=0|i;for(;a--;)if((s+=t[e[a]&n]||"").length===o)return s}}})(t,e,n),o=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>((e&=63)<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"")},73094:(t,e,r)=>{"use strict";r.d(e,{W:()=>function t(e){return(0,o.N)(function(r,o){var s,a=null,u=!1;a=r.subscribe((0,i._)(o,void 0,void 0,function(i){s=(0,n.Tg)(e(i,t(e)(r))),a?(a.unsubscribe(),a=null,s.subscribe(o)):u=!0})),u&&(a.unsubscribe(),a=null,s.subscribe(o))})}});var n=r(57173),i=r(98175),o=r(1125)},73817:(t,e,r)=>{"use strict";r.d(e,{Kn:()=>u,yU:()=>a,Uv:()=>c});var n=r(39249),i=r(91208),o=(0,r(68066).L)(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}}),s=r(575),a=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,s,a,u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=(0,n.Ju)(u),f=c.next();!f.done;f=c.next())f.value.remove(this)}catch(e){t={error:e}}finally{try{f&&!f.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else u.remove(this);var h=this.initialTeardown;
13if((0,i.T)(h))try{h()}catch(t){a=t instanceof o?t.errors:[t]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=(0,n.Ju)(p),y=d.next();!y.done;y=d.next()){var g=y.value;try{l(g)}catch(t){a=null!=a?a:[],t instanceof o?a=(0,n.fX)((0,n.fX)([],(0,n.zs)(a)),(0,n.zs)(t.errors)):a.push(t)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(s=d.return)&&s.call(d)}finally{if(r)throw r.error}}}if(a)throw new o(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(t)}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&(0,s.o)(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,s.o)(r,t),t instanceof e&&t._removeParent(this)},(t=new e).closed=!0,e.EMPTY=t,e}(),u=a.EMPTY;function c(t){return t instanceof a||t&&"closed"in t&&(0,i.T)(t.remove)&&(0,i.T)(t.add)&&(0,i.T)(t.unsubscribe)}function l(t){(0,i.T)(t)?t():t.unsubscribe()}},74962:(t,e,r)=>{"use strict";function n(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}r.d(e,{N:()=>n})},76299:(t,e,r)=>{"use strict";r.d(e,{j:()=>i});var n=r(1125);function i(t){return(0,n.N)(function(e,r){try{e.subscribe(r)}finally{r.add(t)}})}},77020:(t,e,r)=>{"use strict";function n(){}r.d(e,{l:()=>n})},78906:(t,e,r)=>{"use strict";function n(t){return t}r.d(e,{D:()=>n})},79332:(t,e,r)=>{"use strict";r.d(e,{w:()=>n});var n=new(r(94354)).c(function(t){return t.complete()})},80329:(t,e,r)=>{"use strict";r.d(e,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},82388:(t,e,r)=>{"use strict";r.d(e,{l:()=>o});var n=r(38541),i=r(91208);function o(t){return(0,i.T)(t[n.s])}},82959:(t,e,r)=>{"use strict";r.d(e,{R:()=>a});var n=r(39249),i=function(t){function e(e,r){return t.call(this)||this}return(0,n.C6)(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(73817).yU),o={setInterval:function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var s=o.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,n.fX)([t,e],(0,n.zs)(r))):setInterval.apply(void 0,(0,n.fX)([t,e],(0,n.zs)(r)))},clearInterval:function(t){var e=o.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},s=r(575),a=function(t){function e(e,r){var n=t.call(this,e,r)||this;
13return n.scheduler=e,n.work=r,n.pending=!1,n}return(0,n.C6)(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),o.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&o.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r,n=!1;try{this.work(t)}catch(t){n=!0,r=t||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(n,this),null!=e&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(i)},88580:(t,e,r)=>{"use strict";r.d(e,{F:()=>i,m:()=>o});var n=r(78906);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?n.D:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},90873:(t,e,r)=>{"use strict";r.d(e,{h:()=>u});var n=r(58614),i=r(57173),o=r(79332),s=r(59549),a=r(55067);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(0,s.lI)(t),u=(0,s.R0)(t,1/0);return t.length?1===t.length?(0,i.Tg)(t[0]):(0,n.U)(u)((0,a.H)(t,r)):o.w}},91208:(t,e,r)=>{"use strict";function n(t){return"function"==typeof t}r.d(e,{T:()=>n})},91501:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}r.d(e,{C:()=>a,Q:()=>l,u4:()=>n});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},o={0:8203,1:8204,2:8205,3:65279},s=[,,,,].fill(String.fromCodePoint(o[0])).join("");function a(t,e,r="auto"){let n;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t))&&Date.parse(t)||function(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(t))?t:`${t}${n=JSON.stringify(e),`${s}${Array.from(n).map(t=>{let e=t.charCodeAt(0);if(e>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${t} (${e})`);return Array.from(e.toString(4).padStart(4,"0")).map(t=>String.fromCodePoint(o[t])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(o).map(t=>t.reverse())),Object.fromEntries(Object.entries(i).map(t=>t.reverse()));var u=`${Object.values(i).map(t=>`\\u{${t.toString(16)}}`).join("")}`,c=RegExp(`[${u}]{4,}`,"gu");function l(t){var e,r;return t&&JSON.parse({cleaned:(e=JSON.stringify(t)).replace(c,""),encoded:(null==(r=e.match(c))?void 0:r[0])||""}.cleaned)}},93832:(t,e,r)=>{"use strict";r.d(e,{K:()=>i});var n=r(58614);function i(){return(0,n.U)(1)}},94354:(t,e,r)=>{"use strict";r.d(e,{c:()=>l});var n=r(27110),i=r(73817),o=r(38541),s=r(88580),a=r(80329),u=r(91208),c=r(39833),l=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var o=this,s=!function(t){return t&&t instanceof n.vU||t&&(0,u.T)(t.next)&&(0,u.T)(t.error)&&(0,u.T)(t.complete)&&(0,i.Uv)(t)}(t)?new n.Ms(t,e,r):t;return(0,c.Y)(function(){var t=o.operator,e=o.source;s.add(t?t.call(s,e):e?o._subscribe(s):o._trySubscribe(s))}),s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=f(e))(function(e,i){var o=new n.Ms({next:function(e){try{t(e)}catch(t){i(t),o.unsubscribe()}},error:i,complete:e});r.subscribe(o)})},t.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},t.prototype[o.s]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,s.m)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function f(t){var e;return null!=(e=null!=t?t:a.$.Promise)?e:Promise}},96653:(t,e,r)=>{"use strict";r.d(e,{c:()=>w});var n=r(57173),i=r(74962),o=r(1125),s=r(98175);function a(t,e){return void 0===e&&(e=0),(0,o.N)(function(r,n){r.subscribe((0,s._)(n,function(r){return(0,i.N)(n,t,function(){return n.next(r)},e)},function(){return(0,i.N)(n,t,function(){return n.complete()},e)},function(r){return(0,i.N)(n,t,function(){return n.error(r)},e)}))})}function u(t,e){return void 0===e&&(e=0),(0,o.N)(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}var c=r(94354),l=r(16234),f=r(91208);function h(t,e){if(!t)throw Error("Iterable cannot be null");return new c.c(function(r){(0,i.N)(r,e,function(){var n=t[Symbol.asyncIterator]();(0,i.N)(r,e,function(){n.next().then(function(t){t.done?r.complete():r.next(t.value)})},0,!0)})})}var p=r(82388),d=r(27745),y=r(56534),g=r(49930),b=r(67606),m=r(920),v=r(39839);function w(t,e){if(null!=t){if((0,p.l)(t))return(0,n.Tg)(t).pipe(u(e),a(e));if((0,y.X)(t))return new c.c(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})});if((0,d.y)(t))return(0,n.Tg)(t).pipe(u(e),a(e));if((0,b.T)(t))return h(t,e);if((0,g.x)(t))return new c.c(function(r){var n;return(0,i.N)(r,e,function(){n=t[l.l](),(0,i.N)(r,e,function(){var t,e,i;try{e=(t=n.next()).value,i=t.done}catch(t){r.error(t);return}i?r.complete():r.next(e)},0,!0)}),function(){return(0,f.T)(null==n?void 0:n.return)&&n.return()}});if((0,v.U)(t))return h((0,v.C)(t),e)}throw(0,m.L)(t)}},97272:(t,e,r)=>{"use strict";r.d(e,{s:()=>i});var n=r(26889);function i(t,e){var r="object"==typeof e;return new Promise(function(i,o){var s,a=!1;t.subscribe({next:function(t){s=t,a=!0},error:o,complete:function(){a?i(s):r?i(e.defaultValue):o(new n.G)}})})}},98175:(t,e,r)=>{"use strict";r.d(e,{H:()=>o,_:()=>i});var n=r(39249);function i(t,e,r,n,i){return new o(t,e,r,n,i)}var o=function(t){function e(e,r,n,i,o,s){var a=t.call(this,e)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(t){try{r(t)}catch(t){e.error(t)}}:t.prototype._next,a._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,a}return(0,n.C6)(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),r||null==(e=this.onFinalize)||e.call(this)}},e}(r(27110).vU)}}]);

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.