1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5041],{1251:(e,t,r)=>{r.d(t,{y:()=>i});var n=r(65402);function i(e){return(0,n.T)(null==e?void 0:e.then)}},4902:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>D,__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>R,__asyncValues:()=>j,__await:()=>_,__awaiter:()=>h,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>q,__classPrivateFieldSet:()=>N,__createBinding:()=>y,__decorate:()=>a,__disposeResources:()=>k,__esDecorate:()=>c,__exportStar:()=>m,__extends:()=>i,__generator:()=>v,__importDefault:()=>A,__importStar:()=>I,__makeTemplateObject:()=>O,__metadata:()=>p,__param:()=>u,__propKey:()=>d,__read:()=>b,__rest:()=>s,__rewriteRelativeImportExtension:()=>M,__runInitializers:()=>l,__setFunctionName:()=>f,__spread:()=>w,__spreadArray:()=>C,__spreadArrays:()=>E,__values:()=>g,default:()=>F});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var h={};for(var v in n)h[v]="access"===v?{}:n[v];for(var v in n.access)h.access[v]=n.access[v];h.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var y=(0,r[p])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=s(y.get))&&(d.get=a),(a=s(y.set))&&(d.set=a),(a=s(y.init))&&i.unshift(a)}else(a=s(y))&&("field"===u?i.unshift(a):d[c]=a)}l&&Object.defineProperty(l,n.name,d),f=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function v(e,t){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=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
vendor: 4,267 bytes, line 1
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function C(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function R(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof _?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:_(e[n](t)),done:!1}:i?i(t):t}:i}}function j(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:a})},s)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},S=function(e){return(S=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=S(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return T(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function N(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function q(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
1if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var $="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function k(e){function t(t){e.error=e.hasError?new $(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function M(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}let F={__extends:i,__assign:o,__rest:s,__decorate:a,__param:u,__esDecorate:c,__runInitializers:l,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:v,__createBinding:y,__exportStar:m,__values:g,__read:b,__spread:w,__spreadArrays:E,__spreadArray:C,__await:_,__asyncGenerator:R,__asyncDelegator:x,__asyncValues:j,__makeTemplateOb
1ject:O,__importStar:I,__importDefault:A,__classPrivateFieldGet:P,__classPrivateFieldSet:N,__classPrivateFieldIn:q,__addDisposableResource:D,__disposeResources:k,__rewriteRelativeImportExtension:M}},5604:(e,t,r)=>{function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}r.d(t,{Q:()=>u,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};[,,,,].fill(String.fromCodePoint(o[0])).join(""),Object.fromEntries(Object.entries(o).map(e=>e.reverse())),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var s=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,a=RegExp(`[${s}]{4,}`,"gu");function u(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(a,""),encoded:(null==(r=t.match(a))?void 0:r[0])||""}.cleaned)}},10714:(e,t,r)=>{r.d(t,{s:()=>s,t:()=>o});var n=r(14232);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function s(...e){return n.useCallback(o(...e),e)}},10776:(e,t,r)=>{r.d(t,{N:()=>n});function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}},11357:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(4902);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(11771).vU)},11385:(e,t,r)=>{r.d(t,{p:()=>o});var n=r(65023),i=r(11357);function o(e,t){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}},11771:(e,t,r)=>{r.d(t,{Ms:()=>m,vU:()=>p});var n=r(4902),i=r(65402),o=r(52249),s=r(18003),a=r(27279);function u(){}var c=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var d=r(50543),f=r(54283),p=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Uv)(t)&&t.add(r)):r.destination=w,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new m(e,t,r)},t.prototype.next=function(e){this.isStopped?b(l("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.yU),h=Function.prototype.bind;function v(e,t){return h.call(e,t)}var y=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){g(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){g(e)}else g(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){g(e)}},e}(),m=function(e){function t(t,r,n){var o,a,u=e.call(this)||this;return(0,i.T)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&s.$.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},o={next:t.next&&v(t.next,a),error:t.error&&v(t.error,a),complete:t.complete&&v(t.complete,a)}):o=t,u.destination=new y(o),u}return(0,n.__extends)(t,e),t}(p);function g(e){s.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(e):(0,a.m)(e)}function b(e,t){var r=s.$.onStoppedNotification;r&&d.f.setTimeout(function(){return r(e,t)})}var w={closed:!0,next:u,error:function(e){throw e},complete:u}},12487:(e,t,r)=>{r.d(t,{Tg:()=>v});
1var n=r(4902),i=r(82704),o=r(1251),s=r(92848),a=r(22370),u=r(38592),c=r(47234),l=r(62940),d=r(91961),f=r(65402),p=r(27279),h=r(77439);function v(e){if(e instanceof s.c)return e;if(null!=e){var t,r,v,m,g;if((0,a.l)(e)){return t=e,new s.c(function(e){var r=t[h.s]();if((0,f.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,i.X)(e)){return r=e,new s.c(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if((0,o.y)(e)){return v=e,new s.c(function(e){v.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,p.m)})}if((0,u.T)(e))return y(e);if((0,l.x)(e)){return m=e,new s.c(function(e){var t,r;try{for(var i=(0,n.__values)(m),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}if((0,d.U)(e)){return g=e,y((0,d.C)(g))}}throw(0,c.L)(e)}function y(e){return new s.c(function(t){(function(e,t){var r,i,o,s;return(0,n.__awaiter)(this,void 0,void 0,function(){var a;return(0,n.__generator)(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=(0,n.__asyncValues)(e),u.label=1;case 1:return[4,r.next()];case 2:if((i=u.sent()).done)return[3,4];if(a=i.value,t.next(a),t.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 t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},14966:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(14232);r(37876);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},16023:(e,t,r)=>{r.d(t,{R0:()=>u,lI:()=>a,ms:()=>s});var n=r(65402),i=r(91799);function o(e){return e[e.length-1]}function s(e){return(0,n.T)(o(e))?e.pop():void 0}function a(e){return(0,i.m)(o(e))?e.pop():void 0}function u(e,t){return"number"==typeof o(e)?e.pop():t}},16715:(e,t,r)=>{r.d(t,{h:()=>u});var n=r(82596),i=r(12487),o=r(55450),s=r(16023),a=r(71738);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,s.lI)(e),u=(0,s.R0)(e,1/0);return e.length?1===e.length?(0,i.Tg)(e[0]):(0,n.U)(u)((0,a.H)(e,r)):o.w}},18003:(e,t,r)=>{r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},18221:(e,t,r)=>{r.d(t,{UC:()=>es,Y9:()=>ei,q7:()=>en,bL:()=>er,l9:()=>eo});var n=r(14232),i=r(91844),o=r(33134),s=r(10714),a=r(33716),u=r(58162),c=r(57797),l=r(81285),d=r(96822),f=r(70294),p=r(37876),h="Collapsible",[v,y]=(0,i.A)(h),[m,g]=v(h),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:s,onOpenChange:a,...l}=e,[d,v]=(0,u.i)({prop:i,defaultProp:o??!1,onChange:a,caller:h});return(0,p.jsx)(m,{scope:r,disabled:s,contentId:(0,f.B)(),open:d,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),children:(0,p.jsx)(c.sG.div,{"data-state":x(d),"data-disabled":s?"":void 0,...l,ref:t})})});b.displayName=h;var w="CollapsibleTrigger",E=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=g(w,r);return(0,p.jsx)(c.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":x(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,a.mK)(e.onClick,i.onOpenToggle)})});E.displayName=w;var C="CollapsibleContent",_=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=g(C,e.__scopeCollapsible);return(0,p.jsx)(d.C,{present:r||i.open,children:({present:e})=>(0,p.jsx)(R,{...n,ref:t,present:e})})});_.displayName=C;var R=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...a}=e,u=g(C,r),[d,f]=n.useState(i),h=n.useRef(null),v=(0,s.s)(t,h),y=n.useRef(0),m=y.current,b=n.useRef(0),w=b.current,E=u.open||d,_=n.useRef(E),R=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.N)(()=>{let e=h.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,b.current=t.width,_.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),f(i)}},[u.open,i]),(0,p.jsx)(c.sG.div,{"data-state":x(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!E,...a,ref:v,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:E&&o})});function x(e){return e?"open":"closed"}var j=r(14966),O="Accordion",T=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[S,I,A]=(0,o.N)(O),[P,N]=(0,i.A)(O,[A,y]),q=y(),D=n.forwardRef((e,t)=>
1{let{type:r,...n}=e;return(0,p.jsx)(S.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(U,{...n,ref:t}):(0,p.jsx)(L,{...n,ref:t})})});D.displayName=O;var[$,k]=P(O),[M,F]=P(O,{collapsible:!1}),L=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[c,l]=(0,u.i)({prop:r,defaultProp:i??"",onChange:o,caller:O});return(0,p.jsx)($,{scope:e.__scopeAccordion,value:n.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:n.useCallback(()=>s&&l(""),[s,l]),children:(0,p.jsx)(M,{scope:e.__scopeAccordion,collapsible:s,children:(0,p.jsx)(W,{...a,ref:t})})})}),U=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...s}=e,[a,c]=(0,u.i)({prop:r,defaultProp:i??[],onChange:o,caller:O}),l=n.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=n.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,p.jsx)($,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:d,children:(0,p.jsx)(M,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(W,{...s,ref:t})})})}),[z,V]=P(O),W=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:i,dir:o,orientation:u="vertical",...l}=e,d=n.useRef(null),f=(0,s.s)(d,t),h=I(r),v="ltr"===(0,j.jH)(o),y=(0,a.mK)(e.onKeyDown,e=>{if(!T.includes(e.key))return;let t=e.target,r=h().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,s=i-1,a=()=>{(o=n+1)>s&&(o=0)},c=()=>{(o=n-1)<0&&(o=s)};switch(e.key){case"Home":o=0;break;case"End":o=s;break;case"ArrowRight":"horizontal"===u&&(v?a():c());break;case"ArrowDown":"vertical"===u&&a();break;case"ArrowLeft":"horizontal"===u&&(v?c():a());break;case"ArrowUp":"vertical"===u&&c()}let l=o%i;r[l].ref.current?.focus()});return(0,p.jsx)(z,{scope:r,disabled:i,direction:o,orientation:u,children:(0,p.jsx)(S.Slot,{scope:r,children:(0,p.jsx)(c.sG.div,{...l,"data-orientation":u,ref:f,onKeyDown:i?void 0:y})})})}),K="AccordionItem",[B,G]=P(K),H=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=V(K,r),s=k(K,r),a=q(r),u=(0,f.B)(),c=n&&s.value.includes(n)||!1,l=o.disabled||e.disabled;return(0,p.jsx)(B,{scope:r,open:c,disabled:l,triggerId:u,children:(0,p.jsx)(b,{"data-orientation":o.orientation,"data-state":et(c),...a,...i,ref:t,disabled:l,open:c,onOpenChange:e=>{e?s.onItemOpen(n):s.onItemClose(n)}})})});H.displayName=K;var Y="AccordionHeader",Z=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=V(O,r),o=G(Y,r);return(0,p.jsx)(c.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Z.displayName=Y;var X="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=V(O,r),o=G(X,r),s=F(X,r),a=q(r);return(0,p.jsx)(S.ItemSlot,{scope:r,children:(0,p.jsx)(E,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...n,ref:t})})});J.displayName=X;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=V(O,r),o=G(Q,r),s=q(r);return(0,p.jsx)(_,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=D,en=H,ei=Z,eo=J,es=ee},18737:(e,t,r)=>{r.d(t,{o:()=>n});function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},19782:(e,t,r)=>{r.d(t,{_:()=>o});var n=r(48847),i=r(11771);function o(e,t){var r="object"==typeof t;return new Promise(function(o,s){var a=new i.Ms({next:function(e){o(e),a.unsubscribe()},error:s,complete:function(){r?o(t.defaultValue):s(new n.G)}});e.subscribe(a)})}},22370:(e,t,r)=>{r.d(t,{l:()=>o});var n=r(77439),i=r(65402);function o(e){return(0,i.T)(e[n.s])}},22658:(e,t,r)=>{r.d(t,{Oh:()=>o});var n=r(14232),i=0;function o(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s()),document.body.insertAdjacentElement("beforeend",e[1]??s()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),i--}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},25604:(e,t,r)=>{r.d(t,{b:()=>d,E:()=>l});var n=r(4902),i=function(e){function t(t,r){return e.call(this)||this}return(0,n.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(52249).yU),o={setInterval:function(e,t){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.__spreadArray)([e,t],(0,n.__read)(r))):setInterval.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearInterval:function(e){var t=o.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},s=r(18737),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,n.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),o.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&o.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i),u=r(82688),c=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=u.U.now,e}(),l=new(function(e){function t(t,r){void 0===r&&(r=c.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,n.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(c))(a),d=l},27279:(e,t,r)=>{r.d(t,{m:()=>o});var n=r(18003),i=r(50543);function o(e){i.f.setTimeout(function(){var t=n.$.onUnhandledError;if(t)t(e);else throw e})}},27572:(e,t,r)=>{r.d(t,{O:()=>s});var n=r(92848),i=r(25604),o=r(91799);function s(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.b);var s=-1;return null!=t&&((0,o.m)(t)?r=t:s=t),new n.c(function(t){var n,i=(n=e)instanceof Date&&!isNaN(n)?e-r.now():e;i<0&&(i=0);var o=0;return r.schedule(function(){t.closed||(t.next(o++),0<=s?this.schedule(void 0,s):t.complete())},i)})}},29429:(e,t,r)=>{var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),s(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},31893:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(14232),i=r(98477),o=r(57797),s=r(81285),a=r(37876),u=n.forwardRef((e,t)=>
1{let{container:r,...u}=e,[c,l]=n.useState(!1);(0,s.N)(()=>l(!0),[]);let d=r||c&&globalThis?.document?.body;return d?i.createPortal((0,a.jsx)(o.sG.div,{...u,ref:t}),d):null});u.displayName="Portal"},33134:(e,t,r)=>{r.d(t,{N:()=>l});var n=r(14232),i=r(91844),o=r(10714),s=r(37876);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var s;let e,a,u=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,o.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),u=a.find(c);if(u){let e=u.props.children,i=a.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}var u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function l(e){let t=e+"CollectionProvider",[r,u]=(0,i.A)(t),[c,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(c,{scope:t,itemMap:o,collectionRef:i,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=a(f),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=l(f,r),a=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(p,{ref:a,children:n})});h.displayName=f;let v=e+"CollectionItemSlot",y="data-radix-collection-item",m=a(v),g=n.forwardRef((e,t)=>{let{scope:r,children:i,...a}=e,u=n.useRef(null),c=(0,o.s)(t,u),d=l(v,r);return n.useEffect(()=>(d.itemMap.set(u,{ref:u,...a}),()=>void d.itemMap.delete(u))),(0,s.jsx)(m,{...{[y]:""},ref:c,children:i})});return g.displayName=v,[{Provider:d,Slot:h,ItemSlot:g},function(t){let r=l(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}var d=new WeakMap;function f(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=p(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function p(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=p(e),a=s>=0?s:o+s,u=a<0||a>=o?-1:a;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!i;s<0&&a++;let l=[...this.#e],d=!1;for(let e=a;e<c;e++)if(a===e){let o=l[e];l[e]===t&&(o=l[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||l[e-1]!==t||(d=!0);let r=l[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})},33716:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},34957:(e,t,r)=>{r.d(t,{vt:()=>l});let n=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},s=t=e(n,i,o);return o};var i=r(14232),o=r(45712);let{useDebugValue:s}=i,{useSyncExternalStoreWithSelector:a}=o,u=!1,c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(e=>e?n(e):n)(e):e,r=(e,r)=>(function(e,t=e=>e,r){r&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let n=a(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return s(n),n})(t,e,r);return Object.assign(r,t),r},l=e=>e?c(e):c},38592:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(65402);function i(e){return Symbol.asyncIterator&&(0,n.T)(null==e?void 0:e[Symbol.asyncIterator])}},38806:(e,t,r)=>{e.exports=r(29429)},45396:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(79065).A)("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]])},45712:(e,t,r)=>{e.exports=r(58214)},47137:(e,t,r)=>{r.d(t,{F:()=>s});var n=r(69241);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=n.$,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=t,u=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let o=i(t)||i(n);return s[e][o]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,u,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...c}[t]):({...a,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},47234:(e,t,r)=>{r.d(t,{L:()=>n});function n(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},48847:(e,t,r)=>{r.d(t,{G:()=>n});var n=(0,r(74020).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},50543:(e,t,r)=>{r.d(t,{f:()=>i});var n=r(4902),i={setTimeout:function(e,t){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.__spreadArray)([e,t],(0,n.__read)(r))):setTimeout.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},52249:(e,t,r)=>{r.d(t,{Kn:()=>u,yU:()=>a,Uv:()=>c});var n=r(4902),i=r(65402),o=(0,r(74020).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),s=r(18737),a=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,s,a,u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=(0,n.__values)(u),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;
1if((0,i.T)(f))try{f()}catch(e){a=e instanceof o?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=(0,n.__values)(p),v=h.next();!v.done;v=h.next()){var y=v.value;try{l(y)}catch(e){a=null!=a?a:[],e instanceof o?a=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(a)),(0,n.__read)(e.errors)):a.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(r)throw r.error}}}if(a)throw new o(a)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)l(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,s.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),u=a.EMPTY;function c(e){return e instanceof a||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function l(e){(0,i.T)(e)?e():e.unsubscribe()}},54283:(e,t,r)=>{r.d(t,{Y:()=>o,l:()=>s});var n=r(18003),i=null;function o(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else e()}function s(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},55450:(e,t,r)=>{r.d(t,{w:()=>n});var n=new(r(92848)).c(function(e){return e.complete()})},57797:(e,t,r)=>{r.d(t,{sG:()=>c,hO:()=>l});var n=r(14232),i=r(98477),o=r(10714),s=r(37876),a=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var s;let e,a,u=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,o.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),c=a.find(u);if(c){let e=c.props.children,i=a.map(t=>t!==c?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},58162:(e,t,r)=>{r.d(t,{i:()=>a});var n,i=r(14232),o=r(81285),s=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,u]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return s(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),c=void 0!==e,l=c?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,n])}return[l,i.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else a(t)},[c,e,a,u])]}Symbol("RADIX:SYNC_STATE")},58214:(e,t,r)=>{var n=r(14232),i=r(38806),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=n.useRef,u=n.useEffect,c=n.useMemo,l=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=c(function(){function e(e){if(!u){if(u=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,a=r)}
1var s,a,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}},59752:(e,t,r)=>{r.d(t,{l:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},60048:(e,t,r)=>{r.d(t,{B:()=>c});var n=r(4902),i=r(92848),o=r(52249),s=(0,r(74020).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=r(18737),u=r(54283),c=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.__extends)(t,e),t.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new s},t.prototype.next=function(e){var t=this;(0,u.Y)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.__values)(t.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,u.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,u.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?o.Kn:(this.currentObservers=null,i.push(e),new o.yU(function(){t.currentObservers=null,(0,a.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new l(e,t)},t}(i.c),l=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:o.Kn},t}(c)},61314:(e,t,r)=>{r.d(t,{Z:()=>function e(t,r,u){return(void 0===u&&(u=1/0),(0,a.T)(r))?e(function(e,o){return(0,n.T)(function(t,n){return r(e,t,o,n)})((0,i.Tg)(t(e,o)))},u):("number"==typeof r&&(u=r),(0,o.N)(function(e,r){var n,o,a,c,l,d,f,p,h;return n=u,a=[],c=0,l=0,d=!1,f=function(){!d||a.length||c||r.complete()},p=function(e){return c<n?h(e):a.push(e)},h=function(e){c++;var u=!1;(0,i.Tg)(t(e,l++)).subscribe((0,s._)(r,function(e){o?p(e):r.next(e)},function(){u=!0},void 0,function(){if(u)try{for(c--;a.length&&c<n;)!function(){var e=a.shift();h(e)}();f()}catch(e){r.error(e)}}))},e.subscribe((0,s._)(r,p,function(){d=!0,f()})),function(){}}))}});var n=r(67059),i=r(12487),o=r(65023),s=(r(10776),r(11357)),a=r(65402)},62146:(e,t,r)=>{r.d(t,{c:()=>i});var n=r(14232);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},62940:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(59752),i=r(65402);function o(e){return(0,i.T)(null==e?void 0:e[n.l])}},65023:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(65402);function i(e){return function(t){if((0,n.T)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},65402:(e,t,r)=>{r.d(t,{T:()=>n});function n(e){return"function"==typeof e}},67059:(e,t,r)=>{r.d(t,{T:()=>
1o});var n=r(65023),i=r(11357);function o(e,t){return(0,n.N)(function(r,n){var o=0;r.subscribe((0,i._)(n,function(r){n.next(e.call(t,r,o++))}))})}},69820:(e,t,r)=>{r.d(t,{D:()=>n});function n(e){return e}},70294:(e,t,r)=>{r.d(t,{B:()=>u});var n,i=r(14232),o=r(81285),s=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,r]=i.useState(s());return(0,o.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},71738:(e,t,r)=>{r.d(t,{H:()=>w});var n=r(12487),i=r(10776),o=r(65023),s=r(11357);function a(e,t){return void 0===t&&(t=0),(0,o.N)(function(r,n){r.subscribe((0,s._)(n,function(r){return(0,i.N)(n,e,function(){return n.next(r)},t)},function(){return(0,i.N)(n,e,function(){return n.complete()},t)},function(r){return(0,i.N)(n,e,function(){return n.error(r)},t)}))})}function u(e,t){return void 0===t&&(t=0),(0,o.N)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}var c=r(92848),l=r(59752),d=r(65402);function f(e,t){if(!e)throw Error("Iterable cannot be null");return new c.c(function(r){(0,i.N)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,i.N)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var p=r(22370),h=r(1251),v=r(82704),y=r(62940),m=r(38592),g=r(47234),b=r(91961);function w(e,t){return t?function(e,t){if(null!=e){if((0,p.l)(e))return(0,n.Tg)(e).pipe(u(t),a(t));if((0,v.X)(e))return new c.c(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if((0,h.y)(e))return(0,n.Tg)(e).pipe(u(t),a(t));if((0,m.T)(e))return f(e,t);if((0,y.x)(e))return new c.c(function(r){var n;return(0,i.N)(r,t,function(){n=e[l.l](),(0,i.N)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,d.T)(null==n?void 0:n.return)&&n.return()}});if((0,b.U)(e))return f((0,b.C)(e),t)}throw(0,g.L)(e)}(e,t):(0,n.Tg)(e)}},73520:(e,t,r)=>{r.d(t,{qW:()=>f});var n,i=r(14232),o=r(33716),s=r(57797),a=r(10714),u=r(62146),c=r(37876),l="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:m,onDismiss:g,...b}=e,w=i.useContext(d),[E,C]=i.useState(null),_=E?.ownerDocument??globalThis?.document,[,R]=i.useState({}),x=(0,a.s)(t,e=>C(e)),j=Array.from(w.layers),[O]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),T=j.indexOf(O),S=E?j.indexOf(E):-1,I=w.layersWithOutsidePointerEventsDisabled.size>0,A=S>=T,P=function(e,t=globalThis?.document){let r=(0,u.c)(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){h("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...w.branches].some(e=>e.contains(t));A&&!r&&(v?.(e),m?.(e),e.defaultPrevented||g?.())},_),N=function(e,t=globalThis?.document){let r=(0,u.c)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(y?.(e),m?.(e),e.defaultPrevented||g?.())},_);return!function(e,t=globalThis?.document){let r=(0,u.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{S===w.layers.size-1&&(f?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},_),i.useEffect(()=>{if(E)return r&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(n=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),p(),()=>{r&&1===w.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=n)}},[E,_,r,w]),i.useEffect(()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,w]),i.useEffect(()=>{let e=()=>R({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,c.jsx)(s.sG.div,{...b,ref:x,style:{pointerEvents:I?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,P.onPointerDownCapture)})});function p(){let e=new CustomEvent(l);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,s.hO)(i,o):i.dispatchEvent(o)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let r=i.useContext(d),n=i.useRef(null),o=(0,a.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(s.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},74020:(e,t,r)=>{r.d(t,{L:()=>n});function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},76198:(e,t,r)=>{r.d(t,{bm:()=>es,UC:()=>en,VY:()=>eo,hJ:()=>er,ZL:()=>et,bL:()=>Q,hE:()=>ei,l9:()=>ee});var n=r(14232),i=r(33716),o=r(10714),s=r(91844),a=r(70294),u=r(58162),c=r(73520),l=r(90870),d=r(31893),f=r(96822),p=r(57797),h=r(22658),v=r(86324),y=r(94769),m=r(37876),g=Symbol("radix.slottable");function b(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var w="Dialog",[E,C]=(0,s.A)(w),[_,R]=E(w),x=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=n.useRef(null),d=n.useRef(null),[f,p]=(0,u.i)({prop:i,defaultProp:o??!1,onChange:s,caller:w});return(0,m.jsx)(_,{scope:t,triggerRef:l,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:c,children:r})};x.displayName=w;var j="DialogTrigger",O=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,s=R(j,r),a=(0,o.s)(t,s.triggerRef);return(0,m.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":G(s.open),...n,ref:a,onClick:(0,i.mK)(e.onClick,s.onOpenToggle)})});O.displayName=j;var T="DialogPortal",[S,I]=E(T,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,s=R(T,t);return(0,m.jsx)(S,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,m.jsx)(f.C,{present:r||s.open,children:(0,m.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};A.displayName=T;var P="DialogOverlay",N=n.forwardRef((e,t)=>{let r=I(P,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=R(P,e.__scopeDialog);return o.modal?(0,m.jsx)(f.C,{present:n||o.open,children:(0,m.jsx)(D,{...i,ref:t})}):null});N.displayName=P;var q=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var s;let e,a,u=(s=r,(a=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.ref:(a=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,o.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,s=n.Children.toArray(i),a=s.find(b);if(a){let e=a.props.children,i=s.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,m.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,m.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),D=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=R(P,r);return(0,m.jsx)(v.A,{as:q,allowPinchZoom:!0,shards:[i.contentRef],children:(0,m.jsx)(p.sG.div,{"data-state":G(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),$="DialogContent",k=n.forwardRef((e,t)=>{let r=I($,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=R($,e.__scopeDialog);return(0,m.jsx)(f.C,{present:n||o.open,children:o.modal?(0,m.jsx)(M,{...i,ref:t}):(0,m.jsx)(F,{...i,ref:t})})});k.displayName=$;var M=n.forwardRef((e,t)=>{let r=R($,e.__scopeDialog),s=n.useRef(null),a=(0,o.s)(t,r.contentRef,s);return n.useEffect(()=>{let e=s.current;if(e)return(0,y.Eq)(e)},[]),(0,m.jsx)(L,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),F=n.forwardRef((e,t)=>
1{let r=R($,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,m.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),L=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,...u}=e,d=R($,r),f=n.useRef(null),p=(0,o.s)(t,f);return(0,h.Oh)(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:(0,m.jsx)(c.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":G(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{titleId:d.titleId}),(0,m.jsx)(J,{contentRef:f,descriptionId:d.descriptionId})]})]})}),U="DialogTitle",z=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=R(U,r);return(0,m.jsx)(p.sG.h2,{id:i.titleId,...n,ref:t})});z.displayName=U;var V="DialogDescription",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=R(V,r);return(0,m.jsx)(p.sG.p,{id:i.descriptionId,...n,ref:t})});W.displayName=V;var K="DialogClose",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=R(K,r);return(0,m.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function G(e){return e?"open":"closed"}B.displayName=K;var H="DialogTitleWarning",[Y,Z]=(0,s.q)(H,{contentName:$,titleName:U,docsSlug:"dialog"}),X=({titleId:e})=>{let t=Z(H),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},J=({contentRef:e,descriptionId:t})=>{let r=Z("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Q=x,ee=O,et=A,er=N,en=k,ei=z,eo=W,es=B},77439:(e,t,r)=>{r.d(t,{s:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},79065:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(14232);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:c="",children:l,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:r,strokeWidth:u?24*Number(a)/Number(s):a,className:i("lucide",c),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(l)?l:[l]])}),a=(e,t)=>{let r=(0,n.forwardRef)((r,o)=>{let{className:a,...u}=r;return(0,n.createElement)(s,{ref:o,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...u})});return r.displayName="".concat(e),r}},81285:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(14232),i=globalThis?.document?n.useLayoutEffect:()=>{}},82596:(e,t,r)=>{r.d(t,{U:()=>o});var n=r(61314),i=r(69820);function o(e){return void 0===e&&(e=1/0),(0,n.Z)(i.D,e)}},82688:(e,t,r)=>{r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},82704:(e,t,r)=>{r.d(t,{X:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},83025:(e,t,r)=>{r.d(t,{A:()=>n});function n(e,...t){let r=e.length-1;return e.slice(0,r).reduce((e,r,n)=>e+r+t[n],"")+e[r]}},84788:(e,t,r)=>{r.d(t,{UC:()=>em,q7:()=>eh,N_:()=>ey,B8:()=>ep,bL:()=>ef,l9:()=>ev,LM:()=>eg});var n=r(14232),i=r(98477),o=r(91844),s=r(33716),a=r(57797),u=r(58162),c=r(10714),l=r(14966),d=r(96822),f=r(70294),p=r(33134),h=r(73520),v=r(81285),y=r(62146),m=r(37876),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),b=n.forwardRef((e,t)=>
5(0,m.jsx)(a.sG.span,{...e,ref:t,style:{...g,...e.style}}));b.displayName="VisuallyHidden";var w="NavigationMenu",[E,C,_]=(0,p.N)(w),[R,x,j]=(0,p.N)(w),[O,T]=(0,o.A)(w,[_,j]),[S,I]=O(w),[A,P]=O(w),N=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:s,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:h,...v}=e,[y,g]=n.useState(null),b=(0,c.s)(t,e=>g(e)),E=(0,l.jH)(h),C=n.useRef(0),_=n.useRef(0),R=n.useRef(0),[x,j]=n.useState(!0),[O,T]=(0,u.i)({prop:i,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(R.current),t&&j(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>j(!0),f)),o?.(e)},defaultProp:s??"",caller:w}),S=n.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>T(""),150)},[T]),I=n.useCallback(e=>{window.clearTimeout(_.current),T(e)},[T]),A=n.useCallback(e=>{O===e?window.clearTimeout(_.current):C.current=window.setTimeout(()=>{window.clearTimeout(_.current),T(e)},d)},[O,T,d]);return n.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(_.current),window.clearTimeout(R.current)},[]),(0,m.jsx)(D,{scope:r,isRootMenu:!0,value:O,dir:E,orientation:p,rootNavigationMenu:y,onTriggerEnter:e=>{window.clearTimeout(C.current),x?A(e):I(e)},onTriggerLeave:()=>{window.clearTimeout(C.current),S()},onContentEnter:()=>window.clearTimeout(_.current),onContentLeave:S,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,m.jsx)(a.sG.nav,{"aria-label":"Main","data-orientation":p,dir:E,...v,ref:b})})});N.displayName=w;var q="NavigationMenuSub";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,orientation:s="horizontal",...c}=e,l=I(q,r),[d,f]=(0,u.i)({prop:n,onChange:i,defaultProp:o??"",caller:q});return(0,m.jsx)(D,{scope:r,isRootMenu:!1,value:d,dir:l.dir,orientation:s,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,m.jsx)(a.sG.div,{"data-orientation":s,...c,ref:t})})}).displayName=q;var D=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:s,children:a,value:u,onItemSelect:c,onItemDismiss:l,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[g,b]=n.useState(null),[w,C]=n.useState(new Map),[_,R]=n.useState(null);return(0,m.jsx)(S,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:u,previousValue:function(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(u),baseId:(0,f.B)(),dir:o,orientation:s,viewport:g,onViewportChange:b,indicatorTrack:_,onIndicatorTrackChange:R,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(p),onContentEnter:(0,y.c)(h),onContentLeave:(0,y.c)(v),onItemSelect:(0,y.c)(c),onItemDismiss:(0,y.c)(l),onViewportContentChange:n.useCallback((e,t)=>{C(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,m.jsx)(E.Provider,{scope:t,children:(0,m.jsx)(A,{scope:t,items:w,children:a})})})},$="NavigationMenuList",k=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=I($,r),o=(0,m.jsx)(a.sG.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,m.jsx)(a.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,m.jsx)(E.Slot,{scope:r,children:i.isRootMenu?(0,m.jsx)(er,{asChild:!0,children:o}):o})})});k.displayName=$;var M="NavigationMenuItem",[F,L]=O(M),U=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,...o}=e,s=(0,f.B)(),u=n.useRef(null),c=n.useRef(null),l=n.useRef(null),d=n.useRef(()=>{}),p=n.useRef(!1),h=n.useCallback((e="start")=>{if(u.current){d.current();let t=eo(u.current);t.length&&es("start"===e?t:t.reverse())}},[]),v=n.useCallback(()=>{if(u.current){let e=eo(u.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,m.jsx)(F,{scope:r,value:i||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:u,focusProxyRef:l,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v,children:(0,m.jsx)(a.sG.li,{...o,ref:t})})});U.displayName=M;var z="NavigationMenuTrigger",V=n.forwardRef((e,t)=>
5{let{__scopeNavigationMenu:r,disabled:i,...o}=e,u=I(z,e.__scopeNavigationMenu),l=L(z,e.__scopeNavigationMenu),d=n.useRef(null),f=(0,c.s)(d,l.triggerRef,t),p=ec(u.baseId,l.value),h=el(u.baseId,l.value),v=n.useRef(!1),y=n.useRef(!1),g=l.value===u.value;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(E.ItemSlot,{scope:r,value:l.value,children:(0,m.jsx)(ei,{asChild:!0,children:(0,m.jsx)(a.sG.button,{id:p,disabled:i,"data-disabled":i?"":void 0,"data-state":eu(g),"aria-expanded":g,"aria-controls":h,...o,ref:f,onPointerEnter:(0,s.mK)(e.onPointerEnter,()=>{y.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,s.mK)(e.onPointerMove,ed(()=>{i||y.current||l.wasEscapeCloseRef.current||v.current||(u.onTriggerEnter(l.value),v.current=!0)})),onPointerLeave:(0,s.mK)(e.onPointerLeave,ed(()=>{i||(u.onTriggerLeave(),v.current=!1)})),onClick:(0,s.mK)(e.onClick,()=>{u.onItemSelect(l.value),y.current=g}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,n=r===d.current,i=t?.contains(r);(n||!i)&&l.onFocusProxyEnter(n?"start":"end")}}),u.viewport&&(0,m.jsx)("span",{"aria-owns":h})]})]})});V.displayName=z;var W="navigationMenu.linkSelect",K=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:i,...o}=e;return(0,m.jsx)(ei,{asChild:!0,children:(0,m.jsx)(a.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,s.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(W,{bubbles:!0,cancelable:!0});if(t.addEventListener(W,e=>i?.(e),{once:!0}),(0,a.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(X,{bubbles:!0,cancelable:!0});(0,a.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});K.displayName="NavigationMenuLink";var B="NavigationMenuIndicator";n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=I(B,e.__scopeNavigationMenu),s=!!o.value;return o.indicatorTrack?i.createPortal((0,m.jsx)(d.C,{present:r||s,children:(0,m.jsx)(G,{...n,ref:t})}),o.indicatorTrack):null}).displayName=B;var G=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...i}=e,o=I(B,r),s=C(r),[u,c]=n.useState(null),[l,d]=n.useState(null),f="horizontal"===o.orientation,p=!!o.value;n.useEffect(()=>{let e=s(),t=e.find(e=>e.value===o.value)?.ref.current;t&&c(t)},[s,o.value]);let h=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return ea(u,h),ea(o.indicatorTrack,h),l?(0,m.jsx)(a.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...i.style}}):null}),H="NavigationMenuContent",Y=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=I(H,e.__scopeNavigationMenu),o=L(H,e.__scopeNavigationMenu),a=(0,c.s)(o.contentRef,t),u=o.value===i.value,l={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return i.viewport?(0,m.jsx)(Z,{forceMount:r,...l,ref:a}):(0,m.jsx)(d.C,{present:r||u,children:(0,m.jsx)(J,{"data-state":eu(u),...l,ref:a,onPointerEnter:(0,s.mK)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,ed(i.onContentLeave)),style:{pointerEvents:!u&&i.isRootMenu?"none":void 0,...l.style}})})});Y.displayName=H;var Z=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=I(H,e.__scopeNavigationMenu);return(0,v.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,v.N)(()=>()=>n(e.value),[e.value,n]),null}),X="navigationMenu.rootContentDismiss",J=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:u,onRootContentClose:l,onContentFocusOutside:d,...f}=e,p=I(H,r),v=n.useRef(null),y=(0,c.s)(v,t),g=ec(p.baseId,i),b=el(p.baseId,i),w=C(r),E=n.useRef(null),{onItemDismiss:_}=p;n.useEffect(()=>{let e=v.current;if(p.isRootMenu&&e){let t=()=>{_(),l(),e.contains(document.activeElement)&&o.current?.focus()};return e.addEventListener(X,t),()=>e.removeEventListener(X,t)}},[p.isRootMenu,e.value,o,_,l]);let R=n.useMemo(()=>{let e=w().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=i===p.value,o=r===e.indexOf(i);if(!n&&!o)return E.current;let s=(()=>
5{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return E.current=s,s},[p.previousValue,p.value,p.dir,w,i]);return(0,m.jsx)(er,{asChild:!0,children:(0,m.jsx)(h.qW,{id:b,"aria-labelledby":g,"data-motion":R,"data-orientation":p.orientation,...f,ref:y,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(X,{bubbles:!0,cancelable:!0});v.current?.dispatchEvent(e)},onFocusOutside:(0,s.mK)(e.onFocusOutside,e=>{d();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,s.mK)(e.onPointerDownOutside,e=>{let t=e.target,r=w().some(e=>e.ref.current?.contains(t)),n=p.isRootMenu&&p.viewport?.contains(t);(r||n||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eo(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);es(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():a.current?.focus()}}),onEscapeKeyDown:(0,s.mK)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),Q="NavigationMenuViewport",ee=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=!!I(Q,e.__scopeNavigationMenu).value;return(0,m.jsx)(d.C,{present:r||i,children:(0,m.jsx)(et,{...n,ref:t})})});ee.displayName=Q;var et=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:i,...o}=e,u=I(Q,r),l=(0,c.s)(t,u.onViewportChange),f=P(H,e.__scopeNavigationMenu),[p,h]=n.useState(null),[v,y]=n.useState(null),g=p?p?.width+"px":void 0,b=p?p?.height+"px":void 0,w=!!u.value,E=w?u.value:u.previousValue;return ea(v,()=>{v&&h({width:v.offsetWidth,height:v.offsetHeight})}),(0,m.jsx)(a.sG.div,{"data-state":eu(w),"data-orientation":u.orientation,...o,ref:l,style:{pointerEvents:!w&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":b,...o.style},onPointerEnter:(0,s.mK)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,ed(u.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=E===e;return(0,m.jsx)(d.C,{present:r||i,children:(0,m.jsx)(J,{...n,ref:(0,c.t)(t,e=>{i&&e&&y(e)})})},e)})})}),er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=I("FocusGroup",r);return(0,m.jsx)(R.Provider,{scope:r,children:(0,m.jsx)(R.Slot,{scope:r,children:(0,m.jsx)(a.sG.div,{dir:i.dir,...n,ref:t})})})}),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ei=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=x(r),o=I("FocusGroupItem",r);return(0,m.jsx)(R.ItemSlot,{scope:r,children:(0,m.jsx)(a.sG.button,{...n,ref:t,onKeyDown:(0,s.mK)(e.onKeyDown,e=>{if(["Home","End",...en].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function eo(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let r=(0,y.c)(t);(0,v.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function eu(e){return e?"open":"closed"}function ec(e,t){return`${e}-trigger-${t}`}function el(e,t){return`${e}-content-${t}`}function ed(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ef=N,ep=k,eh=U,ev=V,ey=K,em=Y,eg=ee},86324:(e,t,r)=>{r.d(t,{A:()=>K});var n,i,o=r(4902),s=r(14232),a="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var l="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,d=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,r,n,i=(void 0===t&&(t=f),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;
5r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(o)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}});return i.options=(0,o.__assign)({async:!0,ssr:!1},e),i}(),h=function(){},v=s.forwardRef(function(e,t){var r,n,i,a,u=s.useRef(null),f=s.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),v=f[0],y=f[1],m=e.forwardProps,g=e.children,b=e.className,w=e.removeScrollBar,E=e.enabled,C=e.shards,_=e.sideCar,R=e.noRelative,x=e.noIsolation,j=e.inert,O=e.allowPinchZoom,T=e.as,S=e.gapMode,I=(0,o.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,a=i.facade,l(function(){var e=d.get(a);if(e){var t=new Set(e),n=new Set(r),i=a.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,i)})}d.set(a,r)},[r]),a),P=(0,o.__assign)((0,o.__assign)({},I),v);return s.createElement(s.Fragment,null,E&&s.createElement(_,{sideCar:p,removeScrollBar:w,shards:C,noRelative:R,noIsolation:x,inert:j,setCallbacks:y,allowPinchZoom:!!O,lockRef:u,gapMode:S}),m?s.cloneElement(s.Children.only(g),(0,o.__assign)((0,o.__assign)({},P),{ref:A})):s.createElement(void 0===T?"div":T,(0,o.__assign)({},P,{className:b,ref:A}),g))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:a};var y=function(e){var t=e.sideCar,r=(0,o.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,(0,o.__assign)({},r))};y.isSideCarExport=!0;var m=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,s;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g=function(){var e=m();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=g();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[E(r),E(n),E(i)]},_=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},R=b(),x="data-scroll-locked",j=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(c,"px ").concat(n,";\n }\n body[").concat(x,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(x,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},O=function(){var e=parseInt(document.body.getAttribute(x)||"0",10);return isFinite(e)?e:0},T=function(){s.useEffect(function(){return document.body.setAttribute(x,(O()+1).toString()),function(){var e=O()-1;e<=0?document.body.removeAttribute(x):document.body.setAttribute(x,e.toString())}},[])},S=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;T();var o=s.useMemo(function(){return _(i)},[i]);return s.createElement(R,{styles:j(o,!t,i,r?"":"!important")})},I=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){I=!1}
5var P=!!I&&{passive:!1},N=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},q=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),D(e,n)){var i=$(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},D=function(e,t){return"v"===e?N(t,"overflowY"):N(t,"overflowX")},$=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},k=function(e,t,r,n,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*n,u=r.target,c=t.contains(u),l=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=$(e,u),v=h[0],y=h[1]-h[2]-s*v;(v||y)&&D(e,u)&&(f+=y,p+=v);var m=u.parentNode;u=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(f)||!i&&a>f)?l=!0:!d&&(i&&1>Math.abs(p)||!i&&-a>p)&&(l=!0),l},M=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},L=function(e){return e&&"current"in e?e.current:e},U=0,z=[];let V=(n=function(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),i=s.useState(U++)[0],a=s.useState(b)[0],u=s.useRef(e);s.useEffect(function(){u.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,o.__spreadArray)([e.lockRef.current],(e.shards||[]).map(L),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var i,o=M(e),s=r.current,a="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],l=e.target,d=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=q(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=q(d,l)),!f)return!1;if(!n.current&&"changedTouches"in e&&(a||c)&&(n.current=i),!i)return!0;var p=n.current||i;return k(p,t,e,"h"===p?a:c,!0)},[]),l=s.useCallback(function(e){if(z.length&&z[z.length-1]===a){var r="deltaY"in e?F(e):M(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(u.current.shards||[]).map(L).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?c(e,i[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=s.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=s.useCallback(function(e){r.current=M(e),n.current=void 0},[]),p=s.useCallback(function(t){d(t.type,F(t),t.target,c(t,e.lockRef.current))},[]),h=s.useCallback(function(t){d(t.type,M(t),t.target,c(t,e.lockRef.current))},[]);s.useEffect(function(){return z.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,P),document.addEventListener("touchmove",l,P),document.addEventListener("touchstart",f,P),function(){z=z.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,P),document.removeEventListener("touchmove",l,P),document.removeEventListener("touchstart",f,P)}},[]);var v=e.removeScrollBar,y=e.inert;return s.createElement(s.Fragment,null,y?s.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,v?s.createElement(S,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(n),y);var W=s.forwardRef(function(e,t){return s.createElement(v,(0,o.__assign)({},e,{ref:t,sideCar:V}))});W.classNames=v.classNames;let K=W},89865:(e,t,r)=>{r.d(t,{UU:()=>ry});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(i.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),i=e.slice(t+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 e of i.split("&")){let[t,r]=e.split("=");t&&o.append(s(t),s(r||""))}return{url:r,searchParams:o}}(t.url);for(let[n,i]of Object.entries(t.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)r.append(n,e);else r.append(n,i);let o=r.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function s(e){return decodeURIComponent(e.replace(/\+/g," "))}let a=/^https?:\/\//i,u=function(e){if(!a.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},c=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];
5var d,f,p=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(f)return d;f=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return d=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),u=e(s.slice(0,a)).toLowerCase(),c=e(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 h{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#t;#r;#n;#i={};#o;#s={};#a;open(e,t,r){this.#t=e,this.#r=t,this.#n="",this.readyState=1,this.onreadystatechange?.(),this.#o=void 0}abort(){this.#o&&this.#o.abort()}getAllResponseHeaders(){return this.#n}setRequestHeader(e,t){this.#i[e]=t}setInit(e,t=!0){this.#s=e,this.#a=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#s,method:this.#t,headers:this.#i,body:e};"function"==typeof AbortController&&this.#a&&(this.#o=new AbortController,"u">typeof EventTarget&&this.#o.signal instanceof EventTarget&&(r.signal=this.#o.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#r,r).then(e=>(e.headers.forEach((e,t)=>{this.#n+=`${t}: ${e}\r 6`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let v="function"==typeof XMLHttpRequest?"xhr":"fetch",y="xhr"===v?XMLHttpRequest:h,m=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:v,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let s=new y;s instanceof h&&"object"==typeof n.fetch&&s.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,d=!1;if(s.onerror=e=>{g(s instanceof h?e instanceof Error?e:Error(`Request error while attempting to reach is ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.ontimeout=e=>{g(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.onabort=()=>{m(!0),c=!0},s.onreadystatechange=function(){u&&(m(),i.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),u.socket)),!c&&s&&4===s.readyState&&0!==s.status&&function(){if(!(c||l||d)){if(0===s.status)return g(Error("Unknown XHR error"));m(),l=!0,t(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 e in a)a.hasOwnProperty(e)&&s.setRequestHeader(e,a[e]);return n.rawBody&&(s.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:v,request:s,context:e}),s.send(n.body||null),u&&(i.connect=setTimeout(()=>f("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,s&&s.abort()}};function f(t){d=!0,s.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function m(e){(e||c||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function g(e){if(l)return;m(!0),l=!0,s=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}};var g,b,w,E,C,_=r(99742),R=r(82909).Buffer,x={exports:{}};C||(C=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof _&&"env"in _&&(e=_.env.DEBUG),e},t.useColors=function(){let e;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+)/))&&
6("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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),r=!1,t.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`."))},t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=(E?w:(E=1,w=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];r=o.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(b)return g;b=1;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return g=function(t,r){r=r||{};var n,i,o=typeof t;if("string"===o&&t.length>0){var s=t;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(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.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(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}
6(x,x.exports)),x.exports,Object.prototype.hasOwnProperty;let j=typeof R>"u"?()=>!1:e=>R.isBuffer(e);function O(e){return"[object Object]"===Object.prototype.toString.call(e)}let T=["boolean","string","number"],S={};"u">typeof globalThis?S=globalThis:"u">typeof window?S=window:"u">typeof global?S=global:"u">typeof self&&(S=self);var I=S;let A=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let o=n.options.cancelToken;o&&o.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class P{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class N{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new P(e),t(this.reason))})}static source=()=>{let e;return{token:new N(t=>{e=t}),cancel:e}}}A.Cancel=P,A.CancelToken=N,A.isCancel=e=>!(!e||!e?.__CANCEL__);var q=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function D(e){return 100*Math.pow(2,e)+100*Math.random()}let $=(e={})=>(e=>{let t=e.maxRetries||5,r=e.retryDelay||D,n=e.shouldRetry;return{onError:(e,i)=>{var o;let s=i.options,a=s.maxRetries||t,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(e,l,s)||l>=a)return e;let d=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(d),u(l)),null}}})({shouldRetry:q,...e});$.shouldRetry=q;var k=r(92848),M=r(12487);function F(e){return new k.c(function(t){(0,M.Tg)(e()).subscribe(t)})}var L=r(65402),U=r(16023),z=r(71738);function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,U.lI)(e);return(0,z.H)(e,r)}var W=r(61314),K=r(48847);function B(e,t){var r="object"==typeof t;return new Promise(function(n,i){var o,s=!1;e.subscribe({next:function(e){o=e,s=!0},error:i,complete:function(){s?n(o):r?n(t.defaultValue):i(new K.G)}})})}var G=r(4902),H=r(60048),Y=r(82688),Z=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Y.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,G.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},t}(H.B),X=r(11771),J=r(65023);function Q(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new H.B}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,u=void 0===a||a;return function(e){var t,n,o,a=0,c=!1,l=!1,d=function(){null==n||n.unsubscribe(),n=void 0},f=function(){d(),t=o=void 0,c=l=!1},p=function(){var e=t;f(),null==e||e.unsubscribe()};return(0,J.N)(function(e,h){a++,l||c||d();var v=o=null!=o?o:r();h.add(function(){0!=--a||l||c||(n=ee(p,u))}),v.subscribe(h),!t&&a>0&&(t=new X.Ms({next:function(e){return v.next(e)},error:function(e){l=!0,d(),n=ee(f,i,e),v.error(e)},complete:function(){c=!0,d(),n=ee(f,s),v.complete()}}),(0,M.Tg)(e).subscribe(t))})(e)}}function ee(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new X.Ms({next:function(){i.unsubscribe(),e()}});return(0,M.Tg)(t.apply(void 0,(0,G.__spreadArray)([],(0,G.__read)(r)))).subscribe(i)}}var et=r(11357);function er(e){return(0,J.N)(function(t,r){var n,i=null,o=!1;i=t.subscribe((0,et._)(r,void 0,void 0,function(s){n=(0,M.Tg)(e(s,er(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}var en=r(82596),ei=r(27572);function eo(e,t){var r=(0,L.T)(e)?e:function(){return e}
6,n=function(e){return e.error(r())};return new k.c(t?function(e){return t.schedule(n,0,e)}:n)}var es=r(69820);function ea(e){return(0,J.N)(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var eu=r(16715),ec=r(67059),el=r(19782),ed=r(5604),ef=r(10776);function ep(e,t,r){e?(0,ef.N)(r,e,t):t()}var eh=Array.isArray,ev=Array.isArray,ey=r(95342);function em(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,U.ms)(e);return r?(0,ey.F)(em.apply(void 0,(0,G.__spreadArray)([],(0,G.__read)(e))),(0,ec.T)(function(e){return ev(e)?r.apply(void 0,(0,G.__spreadArray)([],(0,G.__read)(e))):r(e)})):(0,J.N)(function(t,r){var n,i,o;(n=(0,G.__spreadArray)([t],(0,G.__read)(1===e.length&&eh(e[0])?e[0]:e)),void 0===o&&(o=es.D),function(e){ep(void 0,function(){for(var t=n.length,r=Array(t),s=t,a=t,u=function(t){ep(i,function(){var u=(0,z.H)(n[t],i),c=!1;u.subscribe((0,et._)(e,function(n){r[t]=n,!c&&(c=!0,a--),a||e.next(o(r.slice()))},function(){--s||e.complete()}))},e)},c=0;c<t;c++)u(c)},e)})(r)})}var eg=r(11385);let eb="drafts.",ew="versions.";function eE(e){return e.startsWith(eb)}function eC(e){return e.startsWith(ew)}function e_(e){return eC(e)?eb+ej(e):eE(e)?e:eb+e}function eR(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${ew}${t}.${ej(e)}`}function ex(e){if(!eC(e))return;let[t,r,...n]=e.split(".");return r}function ej(e){return eC(e)?e.split(".").slice(2).join("."):eE(e)?e.slice(eb.length):e}let eO=e=>crypto.getRandomValues(new Uint8Array(e)),eT=/\r\n|[\n\r\u2028\u2029]/;function eS(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class eI extends Error{response;statusCode=400;responseBody;details;constructor(e,t){let r=eP(e,t);super(r.message),Object.assign(this,r)}}class eA extends Error{response;statusCode=500;responseBody;details;constructor(e){let t=eP(e);super(t.message),Object.assign(this,t)}}function eP(e,t){var r,n,i;let o=e.body,s={response:e,statusCode:e.statusCode,responseBody:(r=o,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),message:"",details:void 0};if(!(0,ed.u4)(o))return s.message=eD(e,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=eD(e,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 e=a.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`: 7- ${t.join(` 8- `)}`:"";return e.length>5&&(r+=` 9...and ${e.length-5} more`),s.message=`${a.description}${r}`,s.details=o.error,s}return eN(a)?(s.message=eq(a,t?.options?.query?.tag),s.details=o.error):"description"in a&&"string"==typeof a.description?(s.message=a.description,s.details=a):s.message=eD(e,o),s}function eN(e){return(0,ed.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function eq(e,t){let{query:r,start:n,end:i,description:o}=e;if(!r||typeof n>"u")return`GROQ query parse error: ${o}`;let s=t?` 10 11Tag: ${t}`:"";return`GROQ query parse error: 12${function(e,t,r){let n=e.split(eT),{start:i,end:o,markerLines:s}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,o=r.column??0,s=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(t.length,s+3);-1===i&&(u=0),-1===s&&(c=t.length);let l=s-i,d={};if(l)for(let e=0;e<=l;e++){let r=e+i;if(o)if(0===e){let e=t[r-1].length;d[r]=[o,e-o+1]}else if(e===l)d[r]=[0,a];else{let n=t[r-e].length;d[r]=[0,n]}else d[r]=!0}else o===a?o?d[i]=[o,0]:d[i]=!0:d[i]=[o,a-o];return{start:u,end:c,markerLines:d}}({start:eS(t.start,n),end:t.end?eS(t.end,n):void 0},n),a=`${o}`.length;return e.split(eT,o).slice(i,o).map((e,t)=>{let n=i+1+t,o=` ${` ${n}`.slice(-a)} |`,u=s[n],c=!s[n+1];if(!u)return` ${o}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=` 13 `+o.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+o+(e.length>0?` ${e}`:"")+l}).join(` 14`)}(r,{start:n,end:i},o)}${s}`}function eD(e,t){var r,n;let i="string"==typeof t?` (${n=100,(r=t).length>100?`${r.slice(0,n)}\u2026`:r})`:"",o=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${o}${i}`}
14class e$ extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;let t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){let{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let ek={onResponse:(e,t)=>{if(e.statusCode>=500)throw new eA(e);if(e.statusCode>=400)throw new eI(e,t);return e}};function eM(e,t={}){return((e=[],t=m)=>(function e(t,r){let n=[],i=l.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[o],validateOptions:[u]});function s(e){let t,n=c.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let r in e)e[r](t)},subscribe:function(r){let n=t++;return e[n]=r,function(){delete e[n]}}}}(),e),{}),o=function(e,t,...r){let n="onError"===e,o=t;for(let t=0;t<i[e].length&&(o=(0,i[e][t])(o,...r),!n||o);t++);return o},s=o("processOptions",e);o("validateOptions",s);let a={options:s,channels:n,applyMiddleware:o},u=n.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,s=t;if(!i)try{s=o("onResponse",t,r)}catch(e){s=null,i=e}(i=i&&o("onError",i,r))?n.error.publish(i):s&&n.response.publish(s)})(t,r,e))});n.abort.subscribe(()=>{u(),t&&t.abort()});let l=o("onReturn",n,a);return l===n&&n.request.publish(a),l}return s.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.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(t=>{e[t]&&i[t].push(e[t])}),n.push(e),s},s.clone=()=>e(n,r),t.forEach(s.use),s})(e,t))([$({shouldRetry:eF}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||j(t)||-1===T.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===O(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==O(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},ek,function(e={}){let t=e.implementation||I.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:k.c})])}function eF(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!o||$.shouldRetry(e,t,r)}function eL(e){return"https://www.sanity.io/help/"+e}let eU=["image","file"],ez=["before","after","replace"],eV=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},eW=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},eK=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},eB=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);eK(e,t._id)},eG=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);((e,t)=>
14{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)})(e,t._type)},eH=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},eY=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},eZ=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":if(2!==n.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: ${r.toString()}`)}},eX=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},eJ=e=>(function(e){let t=!1,r;return(...n)=>(t||(r=e(...n),t=!0),r)})((...t)=>console.warn(e.join(" "),...t)),eQ=eJ(["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"]),e0=eJ(["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."]),e1=eJ(["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."]),e2=eJ(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),e3=eJ(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${eL("js-client-browser-token")} for more information and how to hide this warning.`]),e4=eJ(["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`."]),e6=eJ(["Using the Sanity client without specifying an API version is deprecated.",`See ${eL("js-client-api-version")}`]),e9=(eJ(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),eJ(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),e7=eJ(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),e8={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},e5=["localhost","127.0.0.1","0.0.0.0"];function te(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let tt=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||e8.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||e6();let i={...e8,...n};i["~experimental_resource"]&&!i.resource&&(e7(),i.resource=i["~experimental_resource"]);let o=i.resource,s=i.useProjectHostname&&!o;if(typeof Promise>"u"){let e=eL("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(s&&!i.projectId)throw Error("Configuration must contain `projectId`");if(o&&eZ(i),"u">typeof i.perspective&&te(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'?");
14if("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 a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==e5.indexOf(r)),c=!!i.token;i.withCredentials&&c&&(e4(),i.withCredentials=!1),a&&u&&c&&!0!==i.ignoreBrowserTokenWarning?e3():typeof i.useCdn>"u"&&e0(),s&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&eV(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?eY(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===e8.apiHost,!0===i.useCdn&&i.withCredentials&&eQ(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let l=i.apiHost.split("://",2),d=l[0],f=l[1],p=i.isDefaultApi?"apicdn.sanity.io":f;return s?(i.url=`${d}://${i.projectId}.${f}/v${i.apiVersion}`,i.cdnUrl=`${d}://${i.projectId}.${p}/v${i.apiVersion}
14`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class tr extends Error{name="ConnectionFailedError"}class tn extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class ti extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class to extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class ts extends Error{name="MessageParseError"}let ta=["channelError","disconnect"];function tu(e,t){return F(()=>{let t=e();return t&&(t instanceof k.c||(0,L.T)(t.lift)&&(0,L.T)(t.subscribe))?t:V(t)}).pipe((0,W.Z)(e=>{var r,n;return r=e,n=t,new k.c(e=>{let t=n.includes("open"),i=n.includes("reconnect");function o(t){if("data"in t){let[r,n]=tc(t);e.error(r?new ts("Unable to parse EventSource error message",{cause:n}):new to((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new tr("EventSource connection failed")):i&&e.next({type:"reconnect"})}function s(){e.next({type:"open"})}function a(t){let[n,i]=tc(t);if(n)return void e.error(new ts("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){let t=new URL(r.url).searchParams.get("tag");e.error(new ti(function(e,t){let r=e.error;return r?eN(r)?eq(r,t):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type)return void e.error(new tn(`Server disconnected client: ${i.data?.reason||"unknown error"}`));e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",o),t&&r.addEventListener("open",s);let u=[...new Set([...ta,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",o),t&&r.removeEventListener("open",s),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function tc(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function tl(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 15`);throw Error(`Unknown selection - must be one of: 16 17${t}`)}class td{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return eW("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===ez.indexOf(e)){let e=ez.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)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`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,o=typeof r>"u"||-1===r?-1:Math.max(0,t+r),s=`${e}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...tl(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return eW(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class tf extends td{#u;constructor(e,t,r){super(e,t),this.#u=r}clone(){return new tf(this.selection,{...this.operations},this.#u)}
17commit(e){if(!this.#u)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#u.mutate({patch:this.serialize()},t)}}class tp extends td{#u;constructor(e,t,r){super(e,t),this.#u=r}clone(){return new tp(this.selection,{...this.operations},this.#u)}commit(e){if(!this.#u)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#u.mutate({patch:this.serialize()},t)}}let th={returnDocuments:!1};class tv{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return eW("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return eW(t,e),eB(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return eW(t,e),eB(t,e),this._add({[t]:e})}delete(e){return eK("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class ty extends tv{#u;constructor(e,t,r){super(e,r),this.#u=t}clone(){return new ty([...this.operations],this.#u,this.trxId)}commit(e){if(!this.#u)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#u.mutate(this.serialize(),Object.assign({transactionId:this.trxId},th,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof tp,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new tp(e,{},this.#u));if(!(r instanceof tp))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new tp(e,t||{},this.#u);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class tm extends tv{#u;constructor(e,t,r){super(e,r),this.#u=t}clone(){return new tm([...this.operations],this.#u,this.trxId)}commit(e){if(!this.#u)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#u.mutate(this.serialize(),Object.assign({transactionId:this.trxId},th,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof tf)return this._add({patch:e.serialize()});if(r){let r=t(new tf(e,{},this.#u));if(!(r instanceof tf))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let tg=({query:e,params:t={},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",e),Object.entries(t)))void 0!==o&&n.append(`$${r}`,JSON.stringify(o));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===s&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","false"),`?${n}`},tb=e=>"response"===e.type,tw=e=>e.body;function tE(e,t,n,i,o={},s={}){let a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,u=a.enabled?(0,ed.Q)(o):o,c=!1===s.filterResponse?e=>e:e=>e.result,{cache:l,next:d,...f}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},p=tD(e,t,"query",{query:i,params:u},"u">typeof l||"u">typeof d?{...f,fetch:{cache:l,next:d}}:f);return a.enabled?p.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return em.apply(void 0,(0,G.__spreadArray)([],(0,G.__read)(e)))}((0,z.H)(r.e(8570).then(r.bind(r,98570)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,ec.T)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return c({...e,result:r})})):p.pipe((0,ec.T)(c))}function tC(e,t,r,n={}){let i={uri:tU(e,"doc",(()=>{if(!n.releaseId)return r;let e=ex(r);if(!e){if(eE(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return eR(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` 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 tF(e,t,i).pipe((0,eg.p)(tb),(0,ec.T)(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function t_(e,t,r,n={}){let i={uri:tU(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return tF(e,t,i).pipe((0,eg.p)(tb),(0,ec.T)(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>
17(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function tR(e,t,r,n={}){return tD(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function tx(e,t,r,n){return eB("createIfNotExists",r),t$(e,t,r,"createIfNotExists",n)}function tj(e,t,r,n){return eB("createOrReplace",r),t$(e,t,r,"createOrReplace",n)}function tO(e,t,r,n,i){return eB("createVersion",r),eG("createVersion",r),e9(),tq(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function tT(e,t,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 eK("createVersion",n),eK("createVersion",r),tq(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?eR(r,i):e_(r),ifBaseRevisionId:o},s)}function tS(e,t,r,n){return tD(e,t,"mutate",{mutations:[{delete:tl(r)}]},n)}function tI(e,t,r,n=!1,i){return tq(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function tA(e,t,r,n){return eB("replaceVersion",r),eG("replaceVersion",r),tq(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function tP(e,t,r,n,i){return tq(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function tN(e,t,r,n){let i;return tD(e,t,"mutate",{mutations:Array.isArray(i=r instanceof tp||r instanceof tf?{patch:r.serialize()}:r instanceof ty||r instanceof tm?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function tq(e,t,r,n){let i=Array.isArray(r)?r:[r],o=n&&n.transactionId||void 0;return tD(e,t,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function tD(e,t,r,n,i={}){let o="mutate"===r,s="actions"===r,a=o||s?"":tg(n),u=!o&&!s&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:d,token:f,tag:p,headers:h,returnQuery:v,lastLiveEventId:y,cacheMode:m}=i,g={method:u?"GET":"POST",uri:tU(e,r,c),json:!0,body:u?void 0:n,query:o&&((e={})=>{let t,r;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,r=!0,!1===t?void 0:typeof t>"u"?r:t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:d,headers:h,token:f,tag:p,returnQuery:v,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(y)?y[0]:y,cacheMode:m,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return tF(e,t,g).pipe((0,eg.p)(tb),(0,ec.T)(tw),(0,ec.T)(e=>{if(!o)return e;let t=e.results||[];if(i.returnDocuments)return l?t[0]&&t[0].document:t.map(e=>e.document);let r=l?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[l?"documentId":"documentIds"]:r}}))}function t$(e,t,r,n,i={}){return tD(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let tk=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},tM=(e,t)=>tk(e)&&t.startsWith(tU(e,"query"));function tF(e,t,r){var n;let i=r.url||r.uri,o=e.config(),s=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||tM(e,i)||tk(e)&&i.startsWith(tU(e,"mutate"))||tk(e)&&i.startsWith(tU(e,"doc",""))||tk(e)&&i.startsWith(tU(e,"listen"))||tk(e)&&i.startsWith(tU(e,"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:eY(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&tM(e,i)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&e2(),te(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&a&&(a=!1,e1())),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(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:tz(e,i,a)})),l=new k.c(e=>t(c,o.requester).subscribe(e));return r.signal?l.pipe((n=r.signal,e=>new k.c(t=>{let r=()=>t.error(function(e){if(tV)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):l}function tL(e,t,r){return tF(e,t,r).pipe((0,eg.p)(e=>"response"===e.type),(0,ec.T)(e=>e.body))}function tU(e,t,r){let n=e.config();if(n.resource){eZ(n);let e=tW(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=eH(n),o=`/${t}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function tz(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let tV=!!globalThis.DOMException,tW=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function tK(e,t,r){let n=eH(e.config());return tL(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function tB(e,t,r){let n=eH(e.config());return tL(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function tG(e,t,r){let n=eH(e.config());return tL(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class tH{#u;#c;constructor(e,t){this.#u=e,this.#c=t}generate(e){return tK(this.#u,this.#c,e)}transform(e){return tB(this.#u,this.#c,e)}translate(e){return tG(this.#u,this.#c,e)}}class tY{#u;#c;constructor(e,t){this.#u=e,this.#c=t}generate(e){return B(tK(this.#u,this.#c,e))}transform(e){return B(tB(this.#u,this.#c,e))}translate(e){return B(tG(this.#u,this.#c,e))}prompt(e){return B(function(e,t,r){let n=eH(e.config());return tL(e,t,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#u,this.#c,e))}patch(e){return B(function(e,t,r){let n=eH(e.config());return tL(e,t,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#u,this.#c,e))}}class tZ{#u;#c;constructor(e,t){this.#u=e,this.#c=t}upload(e,t,r){return tJ(this.#u,this.#c,e,t,r)}}class tX{#u;#c;constructor(e,t){this.#u=e,this.#c=t}upload(e,t,r){return B(tJ(this.#u,this.#c,e,t,r).pipe((0,eg.p)(e=>"response"===e.type),(0,ec.T)(e=>e.body.document)))}}function tJ(e,t,r,n,i={}){var o,s;if(-1===eU.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${eU.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.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:d,title:f,description:p,creditLine:h,filename:v,source:y}=c,m=u.resource?.type==="media-library",g=m?{title:f,filename:v}:{label:d,title:f,description:p,filename:v,meta:a,creditLine:h};return y&&!m&&(g.sourceId=y.id,g.sourceName=y.name,g.sourceUrl=y.url),tF(e,t,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;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/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=eH(e);return`assets/${r}/${i}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:g,body:n})}let tQ=F(()=>r.e(5723).then(r.t.bind(r,95723,19))).pipe((0,ec.T)(({default:e})=>e),function(e,t,r){var n,i,o,s,a=!1;return s=null!=e?e:1/0,Q({connector:function(){return new Z(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}(1));function t0(){return function(e){return e.pipe(er((e,t)=>
17e instanceof tr?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,en.U)(1)((0,z.H)(e,(0,U.lI)(e)))}(V({type:"reconnect"}),(0,ei.O)(1e3).pipe((0,W.Z)(()=>t))):eo(()=>e)))}}let t1=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],t2={includeResult:!0};function t3(e,t,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(t2).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?t2[t]:r[t],e),{}),tag:u},l=tg({query:e,params:t,options:{tag:u,...t1.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),d=`${n}${tU(this,"listen",l)}`;if(d.length>14800)return eo(()=>Error("Query too large for listener"));let f=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)),tu(()=>(typeof EventSource>"u"||p.headers?tQ:V(EventSource)).pipe((0,ec.T)(e=>new e(d,p))),f).pipe(t0(),(0,eg.p)(e=>f.includes(e.type)),(0,ec.T)(e=>({type:e.type,..."data"in e?e.data:{}})))}let t4="2021-03-25";class t6{#u;constructor(e){this.#u=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,i,o;let{projectId:s,apiVersion:a,token:u,withCredentials:c,requestTagPrefix:l,headers:d}=this.#u.config(),f=a.replace(/^v/,"");if("X"!==f&&f<t4)throw Error(`The live events API requires API version ${t4} or later. The current API version is ${f}. Please update your API version to use this feature.`);if(e&&!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=tU(this.#u,"live/events"),h=new URL(this.#u.getUrl(p,!1)),v=t&&l?[l,t].join("."):t;v&&h.searchParams.set("tag",v),e&&h.searchParams.set("includeDrafts","true");let y={};e&&c&&(y.withCredentials=!0),(e&&u||d)&&(y.headers={},e&&u&&(y.headers.Authorization=`Bearer ${u}`),d&&Object.assign(y.headers,d));let m=`${h.href}::${JSON.stringify(y)}`,g=t9.get(m);if(g)return g;let b=tu(()=>(typeof EventSource>"u"||y.headers?tQ:V(EventSource)).pipe((0,ec.T)(e=>new e(h.href,y))),["message","restart","welcome","reconnect","goaway"]),w=(n=h,i={method:"OPTIONS",mode:"cors",credentials:y.withCredentials?"include":"omit",headers:y.headers},new k.c(e=>{let t=new AbortController,r=t.signal;return fetch(n,{...i,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe(er(()=>{throw new e$({projectId:s})})),E=b.pipe(t0(),(0,W.Z)(e=>"reconnect"===e.type?w.pipe((0,W.Z)(()=>V(e))):V(e)),er(e=>w.pipe((0,W.Z)(()=>{throw e}))),(0,ec.T)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe(ea(()=>t9.delete(m)),(o="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r,...void 0}:r,e=>{var t,r,n,i;let s,a=!1,{predicate:u,...c}=o,l=e.pipe((t=e=>{o.predicate(e)&&(a=!0,s=e)},(i=(0,L.T)(t)?{next:t,error:r,complete:n}:t)?(0,J.N)(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe((0,et._)(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):es.D),ea(()=>{a=!1,s=void 0}),Q(c)),d=new k.c(e=>{a&&e.next(s),e.complete()});return(0,eu.h)(l,d)}));return t9.set(m,E),E}}let t9=new Map;class t7{#u;#c;constructor(e,t){this.#u=e,this.#c=t}create(e,t){return t5(this.#u,this.#c,"PUT",e,t)}edit(e,t){return t5(this.#u,this.#c,"PATCH",e,t)}delete(e){return t5(this.#u,this.#c,"DELETE",e)}list(){eX("dataset",this.#u.config());let e=this.#u.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),tL(this.#u,this.#c,{uri:r,tag:null})}}class t8{#u;#c;constructor(e,t){this.#u=e,this.#c=t}create(e,t){return eX("dataset",this.#u.config()),B(t5(this.#u,this.#c,"PUT",e,t))}edit(e,t){return eX("dataset",this.#u.config()),B(t5(this.#u,this.#c,"PATCH",e,t))}delete(e){return eX("dataset",this.#u.config()),B(t5(this.#u,this.#c,"DELET
17E",e))}list(){eX("dataset",this.#u.config());let e=this.#u.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),B(tL(this.#u,this.#c,{uri:r,tag:null}))}}function t5(e,t,r,n,i){return eX("dataset",e.config()),eV(n),tL(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class re{#u;#c;constructor(e,t){this.#u=e,this.#c=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#u.config(),o=(i.resource||i["~experimental_resource"])?.id,{instanceId:s,libraryId:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=rr.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),u=a||o;if(!u)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 c=(r=s,n=u,`/media-libraries/${n}/video/${r}/playback-info`),l=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return tL(this.#u,this.#c,{method:"GET",uri:c,query:l})}}class rt{#u;#c;constructor(e,t){this.#u=e,this.#c=t}getPlaybackInfo(e,t={}){return B(new re(this.#u.observable,this.#c).getPlaybackInfo(e,t))}}let rr=/^media-library:(ml[^:]+):([^:]+)$/;class rn{#u;#c;constructor(e,t){this.#u=e,this.#c=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),tL(this.#u,this.#c,{uri:"/projects",query:t})}getById(e){return tL(this.#u,this.#c,{uri:`/projects/${e}`})}}class ri{#u;#c;constructor(e,t){this.#u=e,this.#c=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),B(tL(this.#u,this.#c,{uri:"/projects",query:t}))}getById(e){return B(tL(this.#u,this.#c,{uri:`/projects/${e}`}))}}let ro=((e,t=21)=>((e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*n*t/e.length);return (o=t)=>{let s="";for(;;){let t=r(i),a=0|i;for(;a--;)if((s+=e[t[a]&n]||"").length===o)return s}}})(e,t,eO))("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),rs=(e,t)=>t?eR(e,t):e_(e);function ra(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=rs(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=eE(n._id),i=eC(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=ex(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return rs(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let ru=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=ro(),metadata:n={}}=e;return[r,n,t]}return[ro(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class rc{#u;#c;constructor(e,t){this.#u=e,this.#c=t}get({releaseId:e},t){return tC(this.#u,this.#c,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=ru(e,t),{releaseId:i,metadata:o}=r;return tq(this.#u,this.#c,r,n).pipe((0,ec.T)(e=>({...e,releaseId:i,metadata:o})))}edit({releaseId:e,patch:t},r){return tq(this.#u,this.#c,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return tq(this.#u,this.#c,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return tq(this.#u,this.#c,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return tq(this.#u,this.#c,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return tq(this.#u,this.#c,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return tq(this.#u,this.#c,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return tq(this.#u,this.#c,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return tR(this.#u,this.#c,e,t)}}class rl{#u;#c;constructor(e,t){this.#u=e,this.#c=t}get({releaseId:e},t){return B(tC(this.#u,this.#c,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=ru(e,t),{releaseId:i,metadata:o}=r;return{...await B(tq(this.#u,this.#c,r,n)),releaseId:i,metadata:o}}edit({releaseId:e,patch:t},r){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return B(tq(this.#u,this.#c,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return B(tR(this.#u,this.#c,e,t))}}class rd{#u;#c;constructor(e,t){this.#u=e,this.#c=t}getById(e){return tL(this.#u,this.#c,{uri:`/users/${e}`})}}class rf{#u;#c;constructor(e,t){this.#u=e,this.#c=t}getById(e){return B(tL(this.#u,this.#c,{uri:`/users/${e}`}))}}class rp{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#l;#c;listen=t3;constructor(e,t=e8){this.config(t),this.#c=e,this.assets=new tZ(this,this.#c),this.datasets=new t7(this,this.#c),this.live=new t6(this),this.mediaLibrary={video:new re(this,this.#c)},this.projects=new rn(this,this.#c),this.users=new rd(this,this.#c),this.agent={action:new tH(this,this.#c)},this.releases=new rc(this,this.#c)}clone(){return new rp(this.#c,this.config())}config(e){if(void 0===e)return{...this.#l};if(this.#l&&!1===this.#l.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#l=tt(e,this.#l||{}),this}withConfig(e){let t=this.config();return new rp(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return tE(this,this.#c,this.#l.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return tC(this,this.#c,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return tC(this,this.#c,e,r)}getDocuments(e,t){return t_(this,this.#c,e,t)}create(e,t){return t$(this,this.#c,e,"create",t)}createIfNotExists(e,t){return tx(this,this.#c,e,t)}createOrReplace(e,t){return tj(this,this.#c,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!e)return tT(this,this.#c,t,n,r,i,o);let s=ra("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:s},u=t||ej(e._id);return tO(this,this.#c,a,u,o)}delete(e,t){return tS(this,this.#c,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=rs(t,e);return tI(this,this.#c,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=ra("replaceVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:i};return tA(this,this.#c,o,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=eR(t,e);return tP(this,this.#c,n,t,r)}mutate(e,t){return tN(this,this.#c,e,t)}patch(e,t){return new tf(e,t,this)}transaction(e){return new tm(e,this)}action(e,t){return tq(this,this.#c,e,t)}request(e){return tL(this,this.#c,e)}getUrl(e,t){return tz(this,e,t)}getDataUrl(e,t){return tU(this,e,t)}}class rh{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#l;#c;listen=t3;constructor(e,t=e8){this.config(t),this.#c=e,this.assets=new tX(this,this.#c),this.datasets=new t8(this,this.#c),this.live=new t6(this),this.mediaLibrary={video:new rt(this,this.#c)},this.projects=new ri(this,this.#c),this.users=new rf(this,this.#c),this.agent={action:new tY(this,this.#c)},this.releases=new rl(this,this.#c),this.observable=new rp(e,t)}clone(){return new rh(this.#c,this.config())}config(e){if(void 0===e)return{...this.#l};if(this.#l&&!1===this.#l.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#l=tt(e,this.#l||{}),this}withConfig(e){let t=this.config();return new rh(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return B(tE(this,this.#c,this.#l.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return B(tC(this,this.#c,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return B(tC(this,this.#c,e,r))}getDocuments(e,t){return B(t_(this,this.#c,e,t))}create(e,t){return B(t$(this,this.#c,e,"create",t))}createIfNotExists(e,t){return B(tx(this,this.#c,e,t))}createOrReplace(e,t){return B(tj(this,this.#c,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!e)return(0,el._)(tT(this,this.#c,t,n,r,i,o));let s=ra("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:s},u=t||ej(e._id);return(0,el._)(tO(this,this.#c,a,u,o))}delete(e,t){return B(tS(this,this.#c,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=rs(t,e);return B(tI(this,this.#c,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=ra("replaceVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:i};return(0,el._)(tA(this,this.#c,o,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=eR(t,e);return B(tP(this,this.#c,n,t,r))}mutate(e,t){return B(tN(this,this.#c,e,t))}patch(e,t){return new tp(e,t,this)}transaction(e){return new ty(e,this)}action(e,t){return B(tq(this,this.#c,e,t))}request(e){return B(tL(this,this.#c,e))}dataRequest(e,t,r){return B(tD(this,this.#c,e,t,r))}getUrl(e,t){return tz(this,e,t)}getDataUrl(e,t){return tU(this,e,t)}}let rv=function(e,t){return{requester:eM(e),createClient:r=>{let n=eM(e,{ignoreWarnings:r.ignoreWarnings});return new t((e,t)=>
17(t||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...e}),r)}}}([],rh),ry=(rv.requester,rv.createClient)},90870:(e,t,r)=>{r.d(t,{n:()=>d});var n=r(14232),i=r(10714),o=r(57797),s=r(62146),a=r(37876),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:y,onUnmountAutoFocus:m,...g}=e,[b,w]=n.useState(null),E=(0,s.c)(y),C=(0,s.c)(m),_=n.useRef(null),R=(0,i.s)(t,e=>w(e)),x=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(x.paused||!b)return;let t=e.target;b.contains(t)?_.current=t:h(_.current,{select:!0})},t=function(e){if(x.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(_.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,x.paused]),n.useEffect(()=>{if(b){v.add(x);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,l);b.addEventListener(u,E),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(c,l);b.addEventListener(c,C),b.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),b.removeEventListener(c,C),v.remove(x)},0)}}},[b,E,C,x]);let j=n.useCallback(e=>{if(!r&&!d||x.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&h(o,{select:!0})):(e.preventDefault(),r&&h(i,{select:!0})):n===t&&e.preventDefault()}},[r,d,x.paused]);return(0,a.jsx)(o.sG.div,{tabIndex:-1,...g,ref:R,onKeyDown:j})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=y(e,t)).unshift(t)},remove(t){e=y(e,t),e[0]?.resume()}}}();function y(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},91418:(e,t,r)=>{r.d(t,{k5:()=>l});var n=r(14232),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEac
17h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e){return t=>n.createElement(d,a({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:i,size:o,title:u}=e,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),u&&n.createElement("title",null,u),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(i)}},91799:(e,t,r)=>{r.d(t,{m:()=>i});var n=r(65402);function i(e){return e&&(0,n.T)(e.schedule)}},91844:(e,t,r)=>{r.d(t,{A:()=>s,q:()=>o});var n=r(14232),i=r(37876);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,s=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:s,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function s(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let s=n.createContext(o),a=r.length;r=[...r,o];let u=t=>{let{scope:r,children:o,...u}=t,c=r?.[e]?.[a]||s,l=n.useMemo(()=>u,Object.values(u));return(0,i.jsx)(c.Provider,{value:l,children:o})};return u.displayName=t+"Provider",[u,function(r,i){let u=i?.[e]?.[a]||s,c=n.useContext(u);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},91961:(e,t,r)=>{r.d(t,{C:()=>o,U:()=>s});var n=r(4902),i=r(65402);function o(e){return(0,n.__asyncGenerator)(this,arguments,function(){var t,r,i;return(0,n.__generator)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.__await)(t.read())];case 3:if(i=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.__await)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.__await)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function s(e){return(0,i.T)(null==e?void 0:e.getReader)}},92848:(e,t,r)=>{r.d(t,{c:()=>l});var n=r(11771),i=r(52249),o=r(77439),s=r(95342),a=r(18003),u=r(65402),c=r(54283),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o=this,s=!function(e){return e&&e instanceof n.vU||e&&(0,u.T)(e.next)&&(0,u.T)(e.error)&&(0,u.T)(e.complete)&&(0,i.Uv)(e)}(e)?new n.Ms(e,t,r):e;return(0,c.Y)(function(){var e=o.operator,t=o.source;s.add(e?e.call(s,t):t?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))(function(t,i){var o=new n.Ms({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[o.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.m)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!=(t=null!=e?e:a.$.Promise)?t:Promise}},94769:(e,t,r)=>{r.d(t,{Eq:()=>c});var n=new WeakMap,i=new WeakMap,o={},s=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,r,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=a(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var l=o[r],d=[],f=new Set,p=new Set(c),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};
17c.forEach(h);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(u),o=null!==t&&"false"!==t,s=(n.get(e)||0)+1,a=(l.get(e)||0)+1;n.set(e,s),l.set(e,a),d.push(e),1===s&&o&&i.set(e,!0),1===a&&e.setAttribute(r,"true"),o||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),s++,function(){d.forEach(function(e){var t=n.get(e)-1,o=l.get(e)-1;n.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute(u),i.delete(e)),o||e.removeAttribute(r)}),--s||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),u(n,i,r,"aria-hidden")):function(){return null}}},95316:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(79065).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},95342:(e,t,r)=>{r.d(t,{F:()=>i,m:()=>o});var n=r(69820);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return 0===e.length?n.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},96427:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},96822:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(14232),i=r(10714),o=r(81285),s=e=>{let{present:t,children:r}=e,s=function(e){var t,r;let[i,s]=n.useState(),u=n.useRef(null),c=n.useRef(e),l=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=a(u.current);l.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=u.current,r=c.current;if(r!==e){let n=l.current,i=a(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let n=a(u.current).includes(CSS.escape(r.animationName));if(r.target===i&&n&&(f("ANIMATION_END"),!c.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},n=e=>{e.target===i&&(l.current=a(u.current))};return i.addEventListener("animationstart",n),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",n),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{u.current=e?getComputedStyle(e):null,s(e)},[])}}(t),u="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),c=(0,i.s)(s.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof r||s.isPresent?n.cloneElement(u,{ref:c}):null};function a(e){return e?.animationName||"none"}s.displayName="Presence"},97842:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(79065).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);
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.