PageSourceSearch

https://www.akhandjyoti.org/_next/static/chunks/446-f43f0ce464b624a1.js

js akhandjyoti.org collected 2026-10-02 12:24:36 UTC 199,846 bytes, 149 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[446],{242:(e,t,n)=>{var r=n(19710),i=n(43145),l=n(22405),o=n(10126);e.exports=function(e,t,n){return(e=l(e),void 0===(t=n?void 0:t))?i(e)?o(e):r(e):e.match(t)||[]}},2943:(e,t,n)=>{var r=n(77392),i=n(37027);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},10126:e=>{var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",a="["+l+"]",s="["+r+"]",u="[^"+t+l+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+s+"|"+u+")",g="(?:"+f+"|"+u+")",p="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",b="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+m+")*",w="(?:"+["["+n+"]",c,d].join("|")+")"+(y+m+v),x=RegExp([f+"?"+s+"+"+p+"(?="+[a,f,"$"].join("|")+")",g+"+"+b+"(?="+[a,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",w].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},10793:e=>{e.exports=function(e,t,n,r){var i=-1,l=null==e?0:e.length;for(r&&l&&(n=e[++i]);++i<l;)n=t(n,e[i],i,e);return n}},13482:(e,t,n)=>{"use strict";n.d(t,{tb:()=>U});var r,i,l=[],o="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,l=e.offsetHeight;return!(i||l||e.getClientRects().length)},h=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},g=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},p="undefined"!=typeof window?window:{},b=new WeakMap,m=/auto|scroll/,y=/^tb|vertical/,v=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),w=function(e){return parseFloat(e||"0")},x=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},k=s({devicePixelContentBoxSize:x(),borderBoxSize:x(),contentBoxSize:x(),contentRect:new c(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),b.has(e)&&!t)return b.get(e);if(f(e))return b.set(e,k),k;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===n.boxSizing,l=y.test(n.writingMode||""),o=!r&&m.test(n.overflowY||""),a=!r&&m.test(n.overflowX||""),u=r?0:w(n.paddingTop),h=r?0:w(n.paddingRight),g=r?0:w(n.paddingBottom),p=r?0:w(n.paddingLeft),S=r?0:w(n.borderTopWidth),C=r?0:w(n.borderRightWidth),_=r?0:w(n.borderBottomWidth),R=r?0:w(n.borderLeftWidth),E=p+h,j=u+g,O=R+C,A=S+_,I=a?e.offsetHeight-A-e.clientHeight:0,$=o?e.offsetWidth-O-e.clientWidth:0,z=r?r.width:w(n.width)-(i?E+O:0)-$,M=r?r.height:w(n.height)-(i?j+A:0)-I,N=z+E+$+O,P=M+j+I+A,T=s({devicePixelContentBoxSize:x(Math.round(z*devicePixelRatio),Math.round(M*devicePixelRatio),l),borderBoxSize:x(N,P,l),contentBoxSize:x(z,M,l),contentRect:new c(p,u,z,M)});return b.set(e,T),T},C=function(e,t,n){var i=S(e,n),l=i.borderBoxSize,o=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return l;default:return o}},_=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},R=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];l.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
1n.activeTargets.forEach(function(t){var n=new _(t.target),i=R(t.target);r.push(n),t.lastReportedSize=C(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},j=function(e){l.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(R(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},O=function(){var e=0;for(j(0);l.some(function(e){return e.activeTargets.length>0});)j(e=E());return l.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},A=[],I=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}A.push(e),i()},$=function(e){I(function(){requestAnimationFrame(e)})},z=0,M={attributes:!0,characterData:!0,childList:!0,subtree:!0},N=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},T=!1,L=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!T){T=!0;var n=P(e);$(function(){var r=!1;try{r=O()}finally{if(T=!1,e=n-P(),!z)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,M)};document.body?t():p.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),N.forEach(function(t){return p.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),N.forEach(function(t){return p.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),F=function(e){!z&&e>0&&L.start(),(z+=e)||L.stop()},D=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return d(e=this.target)||g(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),H=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,W=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},V=function(){function e(){}return e.connect=function(e,t){var n=new H(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>W(r.observationTargets,t)&&(i&&l.push(r),r.observationTargets.push(new D(t,n&&n.box)),F(1),L.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=W(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&l.splice(l.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=B.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),U=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");V.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");V.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!h(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");V.unobserve(this,e)},e.prototype.disconnect=function(){V.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},19710:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}}
1,22849:(e,t,n)=>{"use strict";n.d(t,{X:()=>h,r:()=>d});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function l(e){return e>>16?4:e>>11?3:e>>7?2:1}function o(e){let t=0;for(let n=0;n<e.length;n++){let r=l(e.codePointAt(n));4==r&&n++,t+=r}return t}function a(e,t,n=0){let r=n,i=0;for(i=n;r<t;i++){let t=l(e.codePointAt(i));4===t&&i++,r+=t}return i}class s{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:o(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),l=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),l)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}
1splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=l(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let o={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,o)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),l=this.resolveStringPart(i,0,n),o=this.resolveStringPart(i,l,r-n);for(let t=l;t<o;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var d=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new s(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new s(t.endMeta),a=new s(n.endMeta);switch(r){case"object":{let r=i.asObject(t),l=a.asObject(n),o=0,s=Object.keys(r.fields).length,u=Object.keys(l.fields).length;for(let[t,n]of Object.entries(l.fields)){let i=r.fields[t];i&&(l.fields[t]=e(i,n),l.fields[t]===i&&o++)}return s===u&&s===o?t:n}case"array":{let r=i.asArray(t),l=a.asArray(n);if(r.elements.length!==l.elements.length)break;let o=0;for(let t=0;t<l.elements.length;t++)l.elements[t]=e(r.elements[t],l.elements[t]),l.elements[t]!==r.elements[t]&&o++;return 0===o?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=a.copyString(null),s=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let o=l(n);r+=o,i+=4===o?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let o=l(r);i+=o,n+=4===o?2:1}return i}(e,r,s),d=o(r),f=o(e);0<s&&a.stringAppendSlice(i,t,0,s),s<d-c&&a.stringAppendSlice(i,n,s,d-c),f-c<f&&a.stringAppendSlice(i,t,f-c,f);let h=a.finalize(i);if(u(h)!==r)throw Error("incorrect string rebase");return h}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class f{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=a(t,n),l=a(t,r,i);e.data+=t.slice(i,l)}stringAppendValue(e,t){e.data+=t}}function h(e,t){return new i(new f,e,t).process()}},23396:(e,t,n)=>{"use strict";let r;n.d(t,{UE:()=>eS,RK:()=>ev,ll:()=>eb,rD:()=>eC,__:()=>em,UU:()=>ex,jD:()=>ek,cY:()=>ey,BN:()=>ew});let i=["top","right","bottom","left"],l=i.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,a=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function f(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function y(e,t,n){void 0===n&&(n=!1);let r=g(e),i=p(m(e)),l=b(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=C(o)),[o,C(o)]}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],x=["right","left"],k=["top","bottom"],S=["bottom","top"];function C(e){let t=h(e);return d[t]+e.slice(t.length)}function _(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function E(e,t,n){let r,{reference:i,floating:l}=e,o=m(t),a=p(m(t)),s=b(a),u=h(t),c="y"===o,d=i.x+i.width/2-l.width/2,f=i.y+i.height/2-l.height/2,y=i[s]/2-l[s]/2;switch(u){case"top":r={x:d,y:i.y-l.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-l.width,y:f};break;default:r={x:i.x,y:i.y}}switch(g(t)){case"start":r[a]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}async function j(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:l,rects:o,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=f(t,e),p=_(g),b=a[h?"floating"===d?"reference":"floating":d],m=R(await l.getClippingRect
1({element:null==(n=await (null==l.isElement?void 0:l.isElement(b)))||n?b:b.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),w=await (null==l.isElement?void 0:l.isElement(v))&&await (null==l.getScale?void 0:l.getScale(v))||{x:1,y:1},x=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:s}):y);return{top:(m.top-x.top+p.top)/w.y,bottom:(x.bottom-m.bottom+p.bottom)/w.y,left:(m.left-x.left+p.left)/w.x,right:(x.right-m.right+p.right)/w.x}}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:j},s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=E(u,r,s),f=r,h=0,g={};for(let n=0;n<l.length;n++){let p=l[n];if(!p)continue;let{name:b,fn:m}=p,{x:y,y:v,data:w,reset:x}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=v?v:d,g[b]={...g[b],...w},x&&h<50&&(h++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=E(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:g}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return i.some(t=>e[t]>=0)}let $=new Set(["left","top"]);async function z(e,t){let{placement:n,platform:r,elements:i}=e,l=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=h(n),a=g(n),s="y"===m(n),u=$.has(o)?-1:1,c=l&&s?-1:1,d=f(t,e),{mainAxis:p,crossAxis:b,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof y&&(b="end"===a?-1*y:y),s?{x:b*c,y:p*u}:{x:p*u,y:b*c}}function M(){return"undefined"!=typeof window}function N(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function T(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!M()&&(e instanceof Node||e instanceof P(e).Node)}function F(e){return!!M()&&(e instanceof Element||e instanceof P(e).Element)}function D(e){return!!M()&&(e instanceof HTMLElement||e instanceof P(e).HTMLElement)}function H(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function W(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let V=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,G=e=>!!e&&"none"!==e;function q(e){let t=F(e)?Z(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!Y()&&(G(t.backdropFilter)||G(t.filter))||V.test(t.willChange||"")||U.test(t.contain||"")}function Y(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function K(e){return/^(html|body|#document)$/.test(N(e))}function Z(e){return P(e).getComputedStyle(e)}function X(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===N(e))return e;let t=e.assignedSlot||e.parentNode||H(e)&&e.host||T(e);return H(t)?t.host:t}function Q(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=J(t);return K(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&B(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),o=P(i);if(!l)return t.concat(i,Q(i,[],n));{let e=ee(o);
1return t.concat(o,o.visualViewport||[],B(i)?i:[],e&&n?Q(e):[])}}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function et(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=D(e),l=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=s(n)!==l||s(r)!==o;return a&&(n=l,r=o),{width:n,height:r,$:a}}function en(e){return F(e)?e:e.contextElement}function er(e){let t=en(e);if(!D(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=et(t),o=(l?s(n.width):n.width)/r,a=(l?s(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let ei=c(0);function el(e){let t=P(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function eo(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=en(e),a=c(1);t&&(r?F(r)&&(a=er(r)):a=er(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===P(o))&&i)?el(o):c(0),u=(l.left+s.x)/a.x,d=(l.top+s.y)/a.y,f=l.width/a.x,h=l.height/a.y;if(o){let e=P(o),t=r&&F(r)?P(r):r,n=e,i=ee(n);for(;i&&r&&t!==n;){let e=er(i),t=i.getBoundingClientRect(),r=Z(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,h*=e.y,u+=l,d+=o,i=ee(n=P(i))}}return R({width:f,height:h,x:u,y:d})}function ea(e,t){let n=X(e).scrollLeft;return t?t.left+n:eo(T(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ea(e,n),y:n.top+t.scrollTop}}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=P(e),r=T(e),i=n.visualViewport,l=r.clientWidth,o=r.clientHeight,a=0,s=0;if(i){l=i.width,o=i.height;let e=Y();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let u=ea(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(l-=o)}else u<=25&&(l+=u);return{width:l,height:o,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=T(e),n=X(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ea(e),s=-n.scrollTop;return"rtl"===Z(r).direction&&(o+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:o,y:s}}(T(e));else if(F(t))r=function(e,t){let n=eo(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=D(e)?er(e):c(1),o=e.clientWidth*l.x,a=e.clientHeight*l.y;return{width:o,height:a,x:i*l.x,y:r*l.y}}(t,n);else{let n=el(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return R(r)}function ec(e){return"static"===Z(e).position}function ed(e,t){if(!D(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return T(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){var n;let r=P(e);if(W(e))return r;if(!D(e)){let t=J(e);for(;t&&!K(t);){if(F(t)&&!ec(t))return t;t=J(t)}return r}let i=ed(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(N(n)))&&ec(i);)i=ed(i,t);return i&&K(i)&&ec(i)&&!q(i)?r:i||function(e){let t=J(e);for(;D(t)&&!K(t);){if(q(t))return t;if(W(t))break;t=J(t)}return null}(e)||r}let eh=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=D(t),i=T(t),l="fixed"===n,o=eo(e,!0,l,t),a={scrollLeft:0,scrollTop:0},s=c(0);if(r||!r&&!l)if(("body"!==N(t)||B(i))&&(a=X(t)),r){let e=eo(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ea(i));l&&!r&&i&&(s.x=ea(i));let u=!i||r||l?c(0):es(i,a);return{x:o.left+a.scrollLeft-s.x-u.x,y:o.top+a.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,l="fixed"===i,o=T(r),a=!!t&&W(t.floating);if(r===o||a&&l)return n;let s={scrollLeft:0,scrollTop:0},u=c(1),d=c(0),f=D(r);if((f||!f&&!l)&&(("body"!==N(r)||B(o))&&(s=X(r)),f)){let e=eo(r);u=er(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!o||f||l?c(0):es(o,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-s.scrollTop*u.y+d.y+h.y}},getDocumentElement:T,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?W(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Q(e,[],!1).filter(e=>F(e)&&"body"!==N(e)),i=null,l="fixed"===Z(e).position,o=l?J(e):e;for(;F(o)&&!K(o);){let t=Z(o),n=q(o);n||"fixed"!==t.position||(i=null),(l?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||B(o)&&!n&&function e(t,n){let r=J(t);return!(r===n||!F(r)||K(r))&&("fixed"===Z(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=J(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=eu(t,l[0],i),u=s.top,c=s.right,d=s.bottom,f=s.left;for(let e=1;e<l.length;e++){let n=eu(t,l[e],i);u=a(n.top,u),c=o(n.right,c),d=o(n.bottom,d),f=a(n.left,f)}return{width:c-f,height:d-u,x:f,y:u}},getOffsetParent:ef,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=et(e);return{width:t,height:n}},getScale:er,isElement:F,isRTL:function(e){return"rtl"===Z(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eb(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,h=en(e),g=l||s?[...h?Q(h):[],...t?Q(t):[]]:[];
1g.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let p=h&&d?function(e,t){let n,r=null,i=T(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:h,top:g,width:p,height:b}=f;if(c||t(),!p||!b)return;let m=u(g),y=u(i.clientWidth-(h+p)),v={rootMargin:-m+"px "+-y+"px "+-u(i.clientHeight-(g+b))+"px "+-u(h)+"px",threshold:a(0,o(1,d))||1},w=!0;function x(t){let r=t[0].intersectionRatio;if(r!==d){if(!w)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ep(f,e.getBoundingClientRect())||s(),w=!1}try{r=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,v)}r.observe(e)}(!0),l}(h,n):null,b=-1,m=null;c&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&m&&t&&(m.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),h&&!f&&m.observe(h),t&&m.observe(t));let y=f?eo(e):null;return f&&function t(){let r=eo(e);y&&!ep(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(i)}}let em=j,ey=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:a}=t,s=await z(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}},ev=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i,o;let{rects:a,middlewareData:s,placement:u,platform:c,elements:d}=t,{crossAxis:p=!1,alignment:b,allowedPlacements:m=l,autoAlignment:w=!0,...x}=f(e,t),k=void 0!==b||m===l?((o=b||null)?[...m.filter(e=>g(e)===o),...m.filter(e=>g(e)!==o)]:m.filter(e=>h(e)===e)).filter(e=>!o||g(e)===o||!!w&&v(e)!==e):m,S=await c.detectOverflow(t,x),C=(null==(n=s.autoPlacement)?void 0:n.index)||0,_=k[C];if(null==_)return{};let R=y(_,a,await (null==c.isRTL?void 0:c.isRTL(d.floating)));if(u!==_)return{reset:{placement:k[0]}};let E=[S[h(_)],S[R[0]],S[R[1]]],j=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:_,overflows:E}],O=k[C+1];if(O)return{data:{index:C+1,overflows:j},reset:{placement:O}};let A=j.map(e=>{let t=g(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),I=(null==(i=A.filter(e=>e[2].slice(0,g(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||A[0][0];return I!==u?{data:{index:C+1,overflows:j},reset:{placement:I}}:{}}}},ew=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=f(e,t),g={x:n,y:r},b=await l.detectOverflow(t,d),y=m(h(i)),v=p(y),w=g[v],x=g[y];if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+b[e],r=w-b[t];w=a(n,o(w,r))}if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+b[e],r=x-b[t];x=a(n,o(x,r))}let k=c.fn({...t,[v]:w,[y]:x});return{...k,data:{x:k.x-n,y:k.y-r,enabled:{[v]:s,[y]:u}}}}}},ex=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,l,o;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:b=!0,crossAxis:_=!0,fallbackPlacements:R,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:O=!0,...A}=f(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let I=h(a),$=m(c),z=h(c)===c,M=await (null==d.isRTL?void 0:d.isRTL(p.floating)),N=R||(z||!O?[C(c)]:function(e){let t=C(e);return[v(e),t,v(t)]}(c)),P="none"!==j;!R&&P&&N.push(...function(e,t,n,r){let i=g(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:w;return t?w:x;case"left":case"right":return t?k:S;default:return[]}}(h(e),"start"===n,r);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(v)))),l}(c,O,j,M));let T=[c,...N],L=await d.detectOverflow(t,A),F=[],D=(null==(r=s.flip)?void 0:r.overflows)||[];if(b&&F.push(L[I]),_){let e=y(a,u,M);F.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:a,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=T[e];if(t&&("alignment"!==_||$===m(t)||D.every(e=>m(e.placement)!==$||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(l=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(E){case"bestFit":{let e=null==(o=D.filter(e=>{if(P){let t=m(e.placement);return t===$||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},ek=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...l}=f(e,t);switch(i){case"referenceHidden":{let e=A(await r.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=A(await r.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}},eS=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:l,platform:s,elements:u,middlewareData:c}=t,{element:d,padding:h=0}=f(e,t)||{};if(null==d)return{};let y=_(h),v={x:n,y:r},w=p(m(i)),x=b(w),k=await s.getDimensions(d),S="y"===w,C=S?"clientHeight":"clientWidth",R=l.reference[x]+l.reference[w]-v[w]-l.floating[x],E=v[w]-l.reference[w],j=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),O=j?j[C]:0;O&&await (null==s.isElement?void 0:s.isElement(j))||(O=u.floating[C]||l.floating[x]);let A=O/2-k[x]/2-1,I=o(y[S?"top":"left"],A),$=o(y[S?"bottom":"right"],A),z=O-k[x]-$,M=O/2-k[x]/2+(R/2-E/2),N=a(I,o(M,z)),P=!c.arrow&&null!=g(i)&&M!==N&&l.reference[x]/2-(M<I?I:$)-k[x]/2<0,T=P?M<I?M-I:M-z:0;return{[w]:v[w]+T,data:{[w]:N,centerOffset:M-N-T,...P&&{alignmentOffset:T}},reset:P}}}),eC=(e,t,n)=>{let r=new Map,i={platform:eg,...n},l={...i.platform,_c:r};return O(e,t,{...i,platform:l})}},24051:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>o,OZ:()=>h,Ql:()=>l,V0:()=>i,Zp:()=>u,wL:()=>f,wm:()=>a,wv:()=>c,yW:()=>g,z1:()=>s});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],l={title:"Black",hex:"#0d0e12"},o={title:"White",hex:"#ffffff"},a={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},s={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},d={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},f={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},h={gray:a,blue:s,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:d,green:f,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},g={black:l,white:o,...h}},24632:(e,t,n)=>{"use strict";n.d(t,{E:()=>tj,ID:()=>td,NP:()=>tg,DU:()=>t_,AH:()=>tx,i7:()=>tE,I4:()=>tS,DP:()=>th});var r,i,l,o=n(3650),a="-ms-",s="-moz-",u="-webkit-",c="comm",d="rule",f="decl",h="@ke
1yframes",g=Math.abs,p=String.fromCharCode,b=Object.assign;function m(e,t){return(e=t.exec(e))?e[0]:e}function y(e,t,n){return e.replace(t,n)}function v(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function x(e,t,n){return e.slice(t,n)}function k(e){return e.length}function S(e,t){return t.push(e),e}function C(e,t){return e.filter(function(e){return!m(e,t)})}var _=1,R=1,E=0,j=0,O=0,A="";function I(e,t,n,r,i,l,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:l,line:_,column:R,length:o,return:"",siblings:a}}function $(e,t){return b(I("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function z(e){for(;e.root;)e=$(e.root,{children:[e]});S(e,e.siblings)}function M(){return O=j<E?w(A,j++):0,R++,10===O&&(R=1,_++),O}function N(){return w(A,j)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){var t,n;return(t=j-1,n=function e(t){for(;M();)switch(O){case t:return j;case 34:case 39:34!==t&&39!==t&&e(O);break;case 40:41===t&&e(t);break;case 92:M()}return j}(91===e?e+2:40===e?e+1:e),x(A,t,n)).trim()}function L(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function F(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case f:return e.return=e.return||e.value;case c:return"";case h:return e.return=e.value+"{"+L(e.children,r)+"}";case d:if(!k(e.value=e.props.join(",")))return""}return k(n=L(e.children,r))?e.return=e.value+"{"+n+"}":""}function D(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case f:e.return=function e(t,n,r){var i;switch(i=n,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return u+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return u+t+t;case 4855:return u+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return s+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return u+t+s+t+a+t+t;case 5936:switch(w(t,n+11)){case 114:return u+t+a+y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
1case 108:return u+t+a+y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return u+t+a+y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return u+t+a+t+t;case 6165:return u+t+a+"flex-"+t+t;case 5187:return u+t+y(t,/(\w+).+(:[^]+)/,u+"box-$1$2"+a+"flex-$1$2")+t;case 5443:return u+t+a+"flex-item-"+y(t,/flex-|-self/g,"")+(m(t,/flex-|baseline/)?"":a+"grid-row-"+y(t,/flex-|-self/g,""))+t;case 4675:return u+t+a+"flex-line-pack"+y(t,/align-content|flex-|-self/g,"")+t;case 5548:return u+t+a+y(t,"shrink","negative")+t;case 5292:return u+t+a+y(t,"basis","preferred-size")+t;case 6060:return u+"box-"+y(t,"-grow","")+u+t+a+y(t,"grow","positive")+t;case 4554:return u+y(t,/([^-])(transform)/g,"$1"+u+"$2")+t;case 6187:return y(y(y(t,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),t,"")+t;case 5495:case 3959:return y(t,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return y(y(t,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+a+"flex-pack:$3"),/space-between/,"justify")+u+t+t;case 4200:if(!m(t,/flex-|baseline/))return a+"grid-column-align"+x(t,n)+t;break;case 2592:case 3360:return a+y(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,m(e.props,/grid-\w+-end/)}))return~v(t+(r=r[n].value),"span",0)?t:a+y(t,"-start","")+t+a+"grid-row-span:"+(~v(r,"span",0)?m(r,/\d+/):m(r,/\d+/)-m(t,/\d+/))+";";return a+y(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return m(e.props,/grid-\w+-start/)})?t:a+y(y(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return y(t,/(.+)-inline(.+)/,u+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(k(t)-1-n>6)switch(w(t,n+1)){case 109:if(45!==w(t,n+4))break;case 102:return y(t,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+s+(108==w(t,n+3)?"$3":"$2-$3"))+t;case 115:return~v(t,"stretch",0)?e(y(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return y(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,l,o,s){return a+n+":"+r+s+(i?a+n+"-span:"+(l?o:o-r)+s:"")+t});case 4949:if(121===w(t,n+6))return y(t,":",":"+u)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return y(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===w(t,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+a+"$2box$3")+t;case 100:return y(t,":",":"+a)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return y(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case h:return L([$(e,{value:y(e.value,"@","@"+u)})],r);case d:if(e.length){var i,l;return i=n=e.props,l=function(t){switch(m(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":z($(e,{props:[y(t,/:(read-\w+)/,":"+s+"$1")]})),z($(e,{props:[t]})),b(e,{props:C(n,r)});break;case"::placeholder":z($(e,{props:[y(t,/:(plac\w+)/,":"+u+"input-$1")]})),z($(e,{props:[y(t,/:(plac\w+)/,":"+s+"$1")]})),z($(e,{props:[y(t,/:(plac\w+)/,a+"input-$1")]})),z($(e,{props:[t]})),b(e,{props:C(n,r)})}return""},i.map(l).join("")}}}function H(e,t,n,r,i,l,o,a,s,u,c,f){for(var h=i-1,p=0===i?l:[""],b=p.length,m=0,v=0,w=0;m<r;++m)for(var k=0,S=x(e,h+1,h=g(v=o[m])),C=e;k<b;++k)(C=(v>0?p[k]+" "+S:y(S,/&\f/g,p[k])).trim())&&(s[w++]=C);return I(e,t,n,0===i?d:a,s,u,c,f)}function B(e,t,n,r,i){return I(e,t,n,f,x(e,0,r),x(e,r+1,-1),r,i)}var W=n(55036);let V=void 0!==W&&void 0!==W.env&&(W.env.REACT_APP_SC_ATTR||W.env.SC_ATTR)||"data-styled",U="active",G="data-styled-version",q="6.4.2",Y="/*!sc*/\n",K="undefined"!=typeof window&&"undefined"!=typeof document;function Z(e){if(void 0!==W&&void 0!==W.env){let t=W.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let X=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!=(i=null!=(r=Z("REACT_APP_SC_DISABLE_SPEEDY"))?r:Z("SC_DISABLE_SPEEDY"))?i:void 0!==W&&void 0!==W.env&&!1),J="sc-keyframes-",Q={};function ee(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let et=new Map,en=new Map,er=1,ei=e=>{if(et.has(e))return et.get(e);for(;en.has(er);)er++;let t=er++;return et.set(e,t),en.set(t,e),t},el=e=>en.get(e),eo=(e,t)=>{er=t+1,et.set(e,t),en.set(t,e)},ea=Object.freeze([]),es=Object.freeze({});function eu(e,t,n=es){return e.theme!==n.theme&&e.theme||t||n.theme}let ec=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ed=/(^-|-$)/g;function ef(e){return e.replace(ec,"-").replace(ed,"")}let eh=/(a)(d)/gi,eg=e=>String.fromCharCode(e+(e>25?39:97));function ep(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=eg(t%52)+n;return(eg(t%52)+n).replace(eh,"$1-$2")}let eb=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},em=e=>eb(5381,e);function ey(e){return ep(em(e)>>>0)}function ev(e){return"string"==typeof e}let ew=Symbol.for("react.memo"),ex=Symbol.for("react.forward_ref"),ek={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0}
1,eS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},e_={[ex]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ew]:eC};function eR(e){return("type"in e&&e.type.$$typeof)===ew?eC:"$$typeof"in e?e_[e.$$typeof]:ek}let eE=Object.defineProperty,ej=Object.getOwnPropertyNames,eO=Object.getOwnPropertySymbols,eA=Object.getOwnPropertyDescriptor,eI=Object.getPrototypeOf,e$=Object.prototype;function ez(e){return"function"==typeof e}let eM=Symbol.for("react.forward_ref");function eN(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===eM&&"styledComponentId"in e}function eP(e,t){return e&&t?e+" "+t:e||t||""}function eT(e,t){return e.join(t||"")}function eL(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eF(e,t){Object.defineProperty(e,"toString",{value:t})}let eD=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if((r<<=1)<0)throw ee(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,l=t.length;i<l;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Y;return t}},eH=`style[${V}][${G}="${q}"]`,eB=RegExp(`^${V}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),eW=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,eV=e=>{if(!e)return document;if(eW(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(eW(t))return t}return document},eU=(e,t,n)=>{let r,i=n.split(",");for(let n=0,l=i.length;n<l;n++)(r=i[n])&&e.registerName(t,r)},eG=(e,t)=>{var n;let r=(null!=(n=t.textContent)?n:"").split(Y),i=[];for(let t=0,n=r.length;t<n;t++){let n=r[t].trim();if(!n)continue;let l=n.match(eB);if(l){let t=0|parseInt(l[1],10),n=l[2];0!==t&&(eo(n,t),eU(e,n,l[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},eq=e=>{let t=eV(e.options.target).querySelectorAll(eH);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(V)!==U&&(eG(e,r),r.parentNode&&r.parentNode.removeChild(r))}},eY=!1;function eK(){if(!1!==eY)return eY;if("undefined"!=typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eY=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eY=t.getAttribute("content")||void 0}return eY=n.nc}let eZ=(e,t)=>{let n=document.head,r=e||n,i=document.createElement("style"),l=(e=>{let t=Array.from(e.querySelectorAll(`style[${V}]`));return t[t.length-1]})(r),o=void 0!==l?l.nextSibling:null;i.setAttribute(V,U),i.setAttribute(G,q);let a=t||eK();return a&&i.setAttribute("nonce",a),r.insertBefore(i,o),i},eX=class{constructor(e,t){this.element=eZ(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let n=null!=(t=e.getRootNode().styleSheets)?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r.ownerNode===e)return r}throw ee(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
1,eJ=class{constructor(e,t){this.element=eZ(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},eQ=K,e0={isServer:!K,useCSSOMInjection:!X};class e1{static registerId(e){return ei(e)}constructor(e=es,t={},n){this.options=Object.assign(Object.assign({},e0),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&K&&eQ&&(eQ=!1,eq(this)),eF(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r="";for(let i=0;i<n;i++){let n=el(i);if(void 0===n)continue;let l=e.names.get(n);if(void 0===l||!l.size)continue;let o=t.getGroup(i);if(0===o.length)continue;let a=V+".g"+i+'[id="'+n+'"]',s="";for(let e of l)e.length>0&&(s+=e+",");r+=o+a+'{content:"'+s+'"}'+Y}return r})(this))}rehydrate(){!this.server&&K&&eq(this)}reconstructWithOptions(e,t=!0){let n=new e1(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&K&&e.target!==this.options.target&&eV(this.options.target)!==eV(e.target)&&eq(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new eD((({useCSSOMInjection:e,target:t,nonce:n})=>e?new eX(t,n):new eJ(t,n))(this.options)))}hasNameForId(e,t){var n,r;return null!=(r=null==(n=this.names.get(e))?void 0:n.has(t))&&r}registerName(e,t){ei(e),e.startsWith(J)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(ei(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ei(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let e2=new WeakSet,e5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function e4(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}let e3=Symbol.for("sc-keyframes");function e6(e){return ez(e)&&!(e.prototype&&e.prototype.isReactComponent)}let e7=e=>null==e||!1===e||""===e,e8=Symbol.for("react.client.reference");function e9(e){return e.$$typeof===e8}function te(e,t,n,r,i=[]){if(e7(e))return i;let l=typeof e;if("string"===l)return i.push(e),i;if("function"===l)return e9(e)?i:e6(e)&&t?te(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let l=0;l<e.length;l++)te(e[l],t,n,r,i);return i}return eN(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&e3 in e?n?(e.inject(n,r),i.push(e.getName(r))):i.push(e):e9(e)||(eL(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,n){for(let r in t){let i=t[r];t.hasOwnProperty(r)&&!e7(i)&&(Array.isArray(i)&&e2.has(i)||ez(i)?n.push(e4(r)+":",i,";"):eL(i)?(n.push(r+" {"),e(i,n),n.push("}")):n.push(e4(r)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in e5||r.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let tt=em(q);class tn{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=eb(tt,t),this.baseStyle=n,e1.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){let l=this.rules[r];if("string"==typeof l)i+=l;else if(l)if(e6(l)){let r=l(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=eT(te(r,e,t,n)))}else i+=eT(te(l,e,t,n))}
1if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=n.hash?n.hash+i:i,l=this.dynamicNameCache.get(e);if(!l){if(l=ep(eb(eb(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,l)}if(!t.hasNameForId(this.componentId,l)){let e=n(i,"."+l,void 0,this.componentId);t.insertRules(this.componentId,l,e)}r=eP(r,l)}}return r}}let tr=/&/g;function ti(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function tl(e){let t=e.length,n="",r=0,i=0,l=0,o=!1,a=!1;for(let s=0;s<t;s++){let u=e.charCodeAt(s);if(0!==l||o||47!==u||42!==e.charCodeAt(s+1))if(o)42===u&&47===e.charCodeAt(s+1)&&(o=!1,s++);else if(34!==u&&39!==u||ti(e,s)){if(0===l)if(123===u)i++;else if(125===u){if(--i<0){a=!0;let n=s+1;for(;n<t;){let t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,s=n-1,r=n;continue}0===i&&(n+=e.substring(r,s+1),r=s+1)}else 59===u&&0===i&&(n+=e.substring(r,s+1),r=s+1)}else 0===l?l=u:l===u&&(l=0);else o=!0,s++}return a||0!==i||0!==l?(r<t&&0===i&&0===l&&(n+=e.substring(r)),n):e}function to({options:e=es,plugins:t=ea}=es){var n,r,i;let l,o,a,s=(e,t,n)=>n.startsWith(o)&&n.endsWith(o)&&n.replaceAll(o,"").length>0?`.${l}`:e,u=t.slice();u.push(e=>{e.type===d&&e.value.includes("&")&&(a||(a=RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(tr,o).replace(a,s))}),e.prefix&&u.push(D),u.push(F);let f=[],h=(i=(r=u.concat((n=e=>f.push(e),function(e){!e.root&&(e=e.return)&&n(e)}))).length,function(e,t,n,l){for(var o="",a=0;a<i;a++)o+=r[a](e,t,n,l)||"";return o}),b=(t,n="",r="",i="&")=>{var s,u,d;l=i,o=n,a=void 0;let b=function(e){let t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return tl(e);let r=e.length,i="",l=0,o=0,a=0,s=0,u=0,c=!1;for(;o<r;){let t=e.charCodeAt(o);if(34!==t&&39!==t||ti(e,o))if(0===a)if(47===t&&o+1<r&&42===e.charCodeAt(o+1)){for(o+=2;o+1<r&&(42!==e.charCodeAt(o)||47!==e.charCodeAt(o+1));)o++;o+=2}else if(40!==t)if(41!==t)if(s>0)o++;else if(42===t&&o+1<r&&47===e.charCodeAt(o+1))i+=e.substring(l,o),o+=2,l=o,c=!0;else if(47===t&&o+1<r&&47===e.charCodeAt(o+1)){for(i+=e.substring(l,o);o<r&&10!==e.charCodeAt(o);)o++;l=o,c=!0}else 123===t?u++:125===t&&u--,o++;else s>0&&s--,o++;else s++,o++;else o++;else 0===a?a=t:a===t&&(a=0),o++}return c?(l<r&&(i+=e.substring(l)),0===u?i:tl(i)):0===u?e:tl(e)}(t),m=(d=function e(t,n,r,i,l,o,a,s,u){for(var d,f,h,b,m=0,C=0,E=a,$=0,z=0,L=0,F=1,D=1,W=1,V=0,U="",G=l,q=o,Y=i,K=U;D;)switch(L=V,V=M()){case 40:if(108!=L&&58==w(K,E-1)){-1!=v(K+=y(T(V),"&","&\f"),"&\f",g(m?s[m-1]:0))&&(W=-1);break}case 34:case 39:case 91:K+=T(V);break;case 9:case 10:case 13:case 32:K+=function(e){for(;O=N();)if(O<33)M();else break;return P(e)>2||P(O)>3?"":" "}(L);break;case 92:K+=function(e,t){for(var n;--t&&M()&&!(O<48)&&!(O>102)&&(!(O>57)||!(O<65))&&(!(O>70)||!(O<97)););return n=j+(t<6&&32==N()&&32==M()),x(A,e,n)}(j-1,7);continue;case 47:switch(N()){case 42:case 47:S((d=function(e,t){for(;M();)if(e+O===57)break;else if(e+O===84&&47===N())break;return"/*"+x(A,t,j-1)+"*"+p(47===e?e:M())}(M(),j),f=n,h=r,b=u,I(d,f,h,c,p(O),x(d,2,-2),0,b)),u),(5==P(L||1)||5==P(N()||1))&&k(K)&&" "!==x(K,-1,void 0)&&(K+=" ");break;default:K+="/"}break;case 123*F:s[m++]=k(K)*W;case 125*F:case 59:case 0:switch(V){case 0:case 125:D=0;case 59+C:-1==W&&(K=y(K,/\f/g,"")),z>0&&(k(K)-E||0===F&&47===L)&&S(z>32?B(K+";",i,r,E-1,u):B(y(K," ","")+";",i,r,E-2,u),u);break;case 59:K+=";";default:if(S(Y=H(K,n,r,m,C,l,s,U,G=[],q=[],E,o),o),123===V)if(0===C)e(K,n,Y,Y,G,o,E,s,q);else{switch($){case 99:if(110===w(K,3))break;case 108:if(97===w(K,2))break;default:C=0;case 100:case 109:case 115:}C?e(t,Y,Y,i&&S(H(t,Y,Y,0,0,l,s,U,l,G=[],E,q),q),l,q,E,s,i?G:q):e(K,Y,Y,Y,[""],q,0,s,q)}}m=C=z=0,F=W=1,U=K="",E=a;break;case 58:E=1+k(K),z=L;default:if(F<1){if(123==V)--F;else if(125==V&&0==F++&&125==(O=j>0?w(A,--j):0,R--,10===O&&(R=1,_--),O))continue}switch(K+=p(V),V*F){case 38:W=C>0?1:(K+="\f",-1);break;case 44:s[m++]=(k(K)-1)*W,W=1;break;case 64:45===N()&&(K+=T(M())),$=N(),C=E=k(U=K+=function(e){for(;!P(N());)M();return x(A,e,j)}(j)),V++;break;case 45:45===L&&2==k(K)&&(F=0)}}return o}("",null,null,null,[""],(u=s=r||n?r+" "+n+" { "+b+" }":b,_=R=1,E=k(A=u),j=0,s=[]),0,[0],s),A="",d);return e.namespace&&(m=function e(t,n){let r=n+" ",i=","+r;for(let l=0;l<t.length;l++){let o=t[l];if("rule"===o.type){o.value=(r+o.value).replaceAll(",",i);let e=o.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];o.props=t}Array.isArray(o.children)&&"@keyframes"!==o.type&&e(o.children,n)}return t}(m,e.namespace)),f=[],L(m,h),f},m=5381;for(let e=0;e<t.length;e++)t[e].name||ee(15),m=eb(m,t[e].name);return(null==e?void 0:e.namespace)&&(m=eb(m,e.namespace)),(null==e?void 0:e.prefix)&&(m=eb(m,"p")),b.hash=5381!==m?m.toString():"",b}let ta=new e1,ts=to(),tu=o.createContext({shouldForwardProp:void 0,styleSheet:ta,stylis:ts,stylisPlugins:void 0});function tc(){return o.useContext(tu)}function td(e){var t;let n=tc(),{styleSheet:r}=n,i=o.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,r]),l=o.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:to({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!=(t=e.stylisPlugins)?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,s=null!=(t=e.stylisPlugins)?t:n.stylisPlugins,u=o.useMemo(()=>({shouldForwardProp:a,styleSheet:i,stylis:l,stylisPlugins:s}),[a,i,l,s]);return o.createElement(tu.Provider,{value:u},e.children)}tu.Consumer;let tf=o.createContext(void 0);function th(){let e=o.useContext(tf);if(!e)throw ee(18);return e}function tg(e){let t=o.useContext(tf),n=o.useMemo(()=>(function(e,t){if(!e)throw ee(14);if(ez(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw ee(8);return t?Object.assign(Object.assign({},t),e):e})(e.theme,t),[e.theme,t]);return e.children?o.createElement(tf.Provider,{value:n},e.children):null}tf.Consumer;let tp=Object.prototype.hasOwnProperty,tb={};function tm(e,t,n){let r=eN(e),i=!ev(e),{attrs:l=ea,componentId:a=function(e,t){let n="string"!=typeof e?"sc":ef(e);tb[n]=(tb[n]||0)+1;let r=n+"-"+ey(q+n+tb[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId),displayName:s=ev(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,u=t.displayName&&t.componentId?ef(t.displayName)+"-"+t.componentId:t.componentId||a,c=r&&e.attrs?e.attrs.concat(l).filter(
1Boolean):l,{shouldForwardProp:d}=t;if(r&&e.shouldForwardProp){let n=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;d=(t,r)=>n(t,r)&&e(t,r)}else d=n}let f=new tn(n,u,r?e.componentStyle:void 0);function h(e,t){return function(e,t,n){let r,i,{attrs:l,componentStyle:a,defaultProps:s,foldedComponentIds:u,styledComponentId:c,target:d}=e,f=o.useContext(tf),h=tc(),g=e.shouldForwardProp||h.shouldForwardProp,p=eu(t,f,s)||es;{let e=o.useRef(null),n=e.current;if(null!==n&&n[1]===p&&n[2]===h.styleSheet&&n[3]===h.stylis&&n[7]===a&&function(e,t,n){let r=0;for(let n in t)if(tp.call(t,n)&&(r++,e[n]!==t[n]))return!1;return r===n}(n[0],t,n[4]))r=n[5],i=n[6];else{var b,m,y;r=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let l=e[n],o=ez(l)?l(i?Object.assign({},r):r):l;for(let e in o)"className"===e?r.className=eP(r.className,o[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&void 0===t[e]||(r[e]=o[e])}return"className"in t&&"string"==typeof t.className&&(r.className=eP(r.className,t.className)),r}(l,t,p),b=r,m=h.styleSheet,y=h.stylis,i=a.generateAndInjectStyles(b,m,y);let n=0;for(let e in t)tp.call(t,e)&&n++;e.current=[t,p,h.styleSheet,h.stylis,n,r,i,a]}}let v=r.as||d,w=function(e,t,n,r){let i={};for(let l in e)void 0===e[l]||"$"===l[0]||"as"===l||"theme"===l&&e.theme===n||("forwardedAs"===l?i.as=e.forwardedAs:r&&!r(l,t)||(i[l]=e[l]));return i}(r,v,p,g),x=eP(u,c);return i&&(x+=" "+i),r.className&&(x+=" "+r.className),w[ev(v)&&v.includes("-")?"class":"className"]=x,n&&(w.ref=n),(0,o.createElement)(v,w)}(g,e,t)}h.displayName=s;let g=o.forwardRef(h);return g.attrs=c,g.componentStyle=f,g.displayName=s,g.shouldForwardProp=d,g.foldedComponentIds=r?eP(e.foldedComponentIds,e.styledComponentId):"",g.styledComponentId=u,g.target=r?e.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=r?function(e,...t){for(let n of t)!function e(t,n,r=!1){if(!r&&!eL(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(let r=0;r<n.length;r++)t[r]=e(t[r],n[r]);else if(eL(n))for(let r in n)t[r]=e(t[r],n[r]);return t}(e,n,!0);return e}({},e.defaultProps,t):t}}),eF(g,()=>`.${g.styledComponentId}`),i&&function e(t,n,r){if("string"!=typeof n){let i=eI(n);i&&i!==e$&&e(t,i,r);let l=ej(n).concat(eO(n)),o=eR(t),a=eR(n);for(let e=0;e<l.length;++e){let i=l[e];if(!(i in eS||r&&r[i]||a&&i in a||o&&i in o)){let e=eA(n,i);try{eE(t,i,e)}catch(e){}}}}return t}(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var ty=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function tv(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}let tw=e=>(e2.add(e),e);function tx(e,...t){return ez(e)||eL(e)?tw(te(tv(ea,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?te(e):tw(te(tv(e,t)))}let tk=e=>(function e(t,n,r=es){if(!n)throw ee(1,n);let i=(e,...i)=>t(n,r,tx(e,...i));return i.attrs=i=>e(t,n,Object.assign(Object.assign({}
1,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,n,Object.assign(Object.assign({},r),i)),i})(tm,e),tS=tk;ty.forEach(e=>{tS[e]=tk(e)});class tC{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(ez(n)&&!eN(n))return!1}return!0}(e),e1.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let l=this.computeRules(e,t,n,r);n.insertRules(i,l.name,l.rules)}return}let l=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&l){let t=l.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=eT(te(this.rules,t,n,r)),l={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,l),l}rebuildGroup(e){let t=this.componentId;for(let n of(e.clearRules(t),this.instanceRules.values()))e.insertRules(t,n.name,n.rules)}}function t_(e,...t){let n=tx(e,...t),r=`sc-global-${ey(JSON.stringify(n))}`,i=new tC(n,r),l=e=>{let t,n=tc(),l=o.useContext(tf);{let e=o.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),t=e.current}n.styleSheet.server&&a(t,e,n.styleSheet,l,n.stylis);{let s=i.isStatic?[t,n.styleSheet,i]:[t,e,n.styleSheet,l,n.stylis,i],u=o.useRef(i);o.useLayoutEffect(()=>{n.styleSheet.server||(u.current!==i&&(n.styleSheet.clearRules(r),u.current=i),a(t,e,n.styleSheet,l,n.stylis))},s),o.useLayoutEffect(()=>()=>{n.styleSheet.server||i.removeStyles(t,n.styleSheet)},[t,n.styleSheet,i])}return n.styleSheet.server&&i.instanceRules.delete(t),null};function a(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Q,n,o);else{let a=Object.assign(Object.assign({},t),{theme:eu(t,r,l.defaultProps)});i.renderStyles(e,a,n,o)}}return o.memo(l)}class tR{constructor(e,t){this[l]=!0,this.inject=(e,t=ts)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=J+e,this.rules=t,ei(this.id),eF(this,()=>{throw ee(12,String(this.name))})}getName(e=ts){return e.hash?this.name+ep(e.hash>>>0):this.name}}function tE(e,...t){let n=eT(tx(e,...t));return new tR(ey(n),n)}l=e3;class tj{constructor({nonce:e}={}){this._emitSheetCSS=()=>{let e=this.instance.toString();if(!e)return"";let t=this.instance.options.nonce||eK();return`<style ${eT([t&&`nonce="${t}"`,`${V}="true"`,`${G}="${q}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw ee(2);return this._emitSheetCSS()}
1,this.getStyleElement=()=>{if(this.sealed)throw ee(2);let e=this.instance.toString();if(!e)return[];let t={[V]:"",[G]:q,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||eK();return n&&(t.nonce=n),[o.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new e1({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw ee(2);return o.createElement(td,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw ee(3)}}},25701:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},31367:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},37426:(e,t,n)=>{"use strict";var r,i,l=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{$dispatcherGuard:()=>C,$makeReadOnly:()=>R,$reset:()=>_,$structuralCheck:()=>I,c:()=>v,clearRenderCounterRegistry:()=>j,renderCounterRegistry:()=>E,useRenderCounter:()=>O}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=((e,t,n)=>(n=null!=e?l(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(3650)),{useRef:g,useEffect:p,isValidElement:b}=h,m=null!=(r=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=h.__COMPILER_RUNTIME)?void 0:i.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=y;return t[y]=!0,t},[])},w={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{w[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;function k(e){return m.ReactCurrentDispatcher.current=e,m.ReactCurrentDispatcher.current}w.useMemoCache=e=>{if(null!=x)return x.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function C(e){let t=m.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(x=t),t===w)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(w)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(x=null),k(e)}else if(2===e)S.push(t),k(x);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function _(e){for(let t=0;t<e.length;t++)e[t]=y}function R(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var E=new Map;function j(){for(let e of E.values())e.forEach(e=>{e.count=0})}function O(e){let t=g(null);null!=t.current&&(t.current.count+=1),p(()=>
1{if(null==t.current){let n,r={count:0};null==(n=E.get(e))&&(n=new Set,E.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=E.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var A=new Set;function I(e,t,n,r,i,l){function o(e,t,o,a){let s=`${r}:${l} [${i}] ${n}${o} changed from ${e} to ${t} at depth ${a}`;A.has(s)||(A.add(s),console.error(s))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)o(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let l=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)o("null",`type ${typeof n}`,r,i);else if(null===n)o(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)o(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[l,a]of t)n.has(l)?e(a,n.get(l),`${r}.get(${l})`,i+1):o(`Map instance with key ${l}`,`Map instance without key ${l}`,r,i);else o("Map instance","other value",r,i);else if(n instanceof Map)o("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)o(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else o("Set instance","other value",r,i);else if(n instanceof Set)o("other value","Set instance",r,i);else if(l||a)if(l!==a)o(`type ${l?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)o(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let l=0;l<t.length;l++)e(t[l],n[l],`${r}[${l}]`,i+1);else if(b(t)||b(n))b(t)!==b(n)?o(`type ${b(t)?"React element":"object"}`,`type ${b(n)?"React element":"object"}`,r,i):t.type!==n.type?o(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||o(`object without key ${e}`,`object with key ${e}`,r,i);for(let l in t)l in n?e(t[l],n[l],`${r}.${l}`,i+1):o(`object with key ${l}`,`object without key ${l}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&o(t,n,r,i)}}}(e,t,"",0)}},41864:(e,t,n)=>{e.exports=n(31367)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},42604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(23210),i=n(37426),l=n(75001),o=n(82074),a=n(2943),s=n(3650),u=n(35880);function c(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function d(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let f="all-items",h={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function g(e){let t,n,u,g,y,v,x,S,C,_,R,E,j,O,A,I,$=(0,i.c)(54),z=void 0===e.showIcons||e.showIcons,M=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;$[0]!==e.groups||$[1]!==e.labels?(t=e.groups?[{name:f,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(m)]:[],$[0]=e.groups,$[1]=e.labels,$[2]=t):t=$[2],$[3]!==e.views?(n=e.views??[{name:"list"}],$[3]=e.views,$[4]=n):n=$[4],$[5]!==n?(u=n.map(b),$[5]=n,$[6]=u):u=$[6],$[7]!==t||$[8]!==u?(g={query:"",groups:t,views:u},$[7]=t,$[8]=u,$[9]=g):g=$[9];let[N,P]=(0,s.useReducer)(d,g);if($[10]!==e||$[11]!==M||$[12]!==z||$[13]!==N.groups||$[14]!==N.query||$[15]!==N.views){var T,L,F;let t,n,i,s=(T=e.schemaTypes,L=N.query,F=N.groups,T.filter(e=>(function(e,t){let n=t.find(e=>e.selected);return!n||n.name===f||n.of?.includes(e.name)})(e,F)&&function(e,t){let n=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(n):e.name.includes(n)}(e,L))),u=N.views.find(p),d=M||N.views.length>1,g=N.groups&&N.groups.length>0,b=d||g;x=o.W1,j=0,v=o.so,_="column",R="fill",$[25]!==b?(t=b?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},$[25]=b,$[26]=t):t=$[26],$[27]!==e.labels||$[28]!==M||$[29]!==d||$[30]!==N.query||$[31]!==N.views?(n=d?(0,r.jsxs)(o.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[M?(0,r.jsx)(o.az,{flex:1,children:(0,r.jsx)(o.ks,{autoFocus:!0,border:!1,fontSize:1,icon:l.WIv,onChange:e=>{P({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:N.query})}):null,N.views.length>1?(0,r.jsx)(o.az,{flex:"none",children:(0,r.jsx)(w,{views:N.views,onToggle:e=>{P({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,$[27]=e.labels,$[28]=M,$[29]=d,$[30]=N.query,$[31]=N.views,$[32]=n):n=$[32],$[33]!==g||$[34]!==N.groups?(i=g?(0,r.jsx)(o.az,{paddingTop:1,paddingX:1,children:(0,r.jsx)(o.wb,{space:1,children:N.groups.map(e=>(0,r.jsx)(o.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??a(e.name),selected:e.selected,onClick:()=>{P({type:"select group",name:e.name})}},e.name))})}):null,$[33]=g,$[34]=N.groups,$[35]=i):i=$[35],$[36]!==t||$[37]!==n||$[38]!==i?(E=(0,r.jsxs)(o.az,{...t,children:[n,i]}),$[36]=t,$[37]=n,$[38]=i,$[39]=E):E=$[39],y=o.az,S=1,C=0===s.length?(0,r.jsx)(o.az,{padding:2,children:(0,r.jsx)(o.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,r.jsx)(o.xA,{autoRows:"auto",flex:1,gap:1,style:h,children:s.map(t=>(0,r.jsx)(k,{icon:z?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t}
1,t.name))}):(0,r.jsx)(o.BJ,{flex:1,space:1,children:s.map(t=>(0,r.jsx)(o.Dr,{icon:z?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??a(t.name)},t.name))}):null,$[10]=e,$[11]=M,$[12]=z,$[13]=N.groups,$[14]=N.query,$[15]=N.views,$[16]=y,$[17]=v,$[18]=x,$[19]=S,$[20]=C,$[21]=_,$[22]=R,$[23]=E,$[24]=j}else y=$[16],v=$[17],x=$[18],S=$[19],C=$[20],_=$[21],R=$[22],E=$[23],j=$[24];return $[40]!==y||$[41]!==S||$[42]!==C?(O=(0,r.jsx)(y,{padding:S,children:C}),$[40]=y,$[41]=S,$[42]=C,$[43]=O):O=$[43],$[44]!==v||$[45]!==O||$[46]!==_||$[47]!==R||$[48]!==E?(A=(0,r.jsxs)(v,{direction:_,height:R,children:[E,O]}),$[44]=v,$[45]=O,$[46]=_,$[47]=R,$[48]=E,$[49]=A):A=$[49],$[50]!==x||$[51]!==A||$[52]!==j?(I=(0,r.jsx)(x,{padding:j,children:A}),$[50]=x,$[51]=A,$[52]=j,$[53]=I):I=$[53],I}function p(e){return e.selected}function b(e,t){return{...e,selected:0===t}}function m(e){return{...e,selected:!1}}let y={grid:l.jxC,list:l.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function w(e){let t,n,l,a,s=(0,i.c)(11),u=e.views.findIndex(x),c=e.views[u+1]??e.views[0],d=e.labels[v[c.name]];s[0]!==d?(t=(0,r.jsx)(o.EY,{size:1,children:d}),s[0]=d,s[1]=t):t=s[1];let f=y[c.name];return s[2]!==c.name||s[3]!==e?(n=()=>{e.onToggle(c.name)},s[2]=c.name,s[3]=e,s[4]=n):n=s[4],s[5]!==f||s[6]!==n?(l=(0,r.jsx)(o.$n,{mode:"bleed",icon:f,onClick:n}),s[5]=f,s[6]=n,s[7]=l):l=s[7],s[8]!==t||s[9]!==l?(a=(0,r.jsx)(o.m_,{content:t,placement:"top",portal:!0,children:l}),s[8]=t,s[9]=l,s[10]=a):a=s[10],a}function x(e){return e.selected}function k(e){let t,n,l,a,c,d,f,h,g,p=(0,i.c)(19),[b,m]=(0,s.useState)(!1),y=e.icon;p[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},p[0]=t):t=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},p[1]=n):n=p[1],p[2]!==y?(l=(0,u.isValidElementType)(y)?(0,r.jsx)(o.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,r.jsx)(o.EY,{size:1,children:(0,r.jsx)(y,{})})}):null,p[2]=y,p[3]=l):l=p[3],p[4]!==b||p[5]!==e.previewImageUrl?(a=!e.previewImageUrl||b?null:(0,r.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{m(!0)}}),p[4]=b,p[5]=e.previewImageUrl,p[6]=a):a=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),p[7]=c):c=p[7],p[8]!==l||p[9]!==a?(d=(0,r.jsxs)(o.az,{flex:"none",style:n,children:[l,a,c]}),p[8]=l,p[9]=a,p[10]=d):d=p[10];let v=e.schemaType.title??e.schemaType.name;return p[11]!==v?(f=(0,r.jsx)(o.az,{flex:1,padding:2,children:(0,r.jsx)(o.EY,{size:1,weight:"medium",children:v})}),p[11]=v,p[12]=f):f=p[12],p[13]!==d||p[14]!==f?(h=(0,r.jsxs)(o.so,{direction:"column",gap:1,padding:1,children:[d,f]}),p[13]=d,p[14]=f,p[15]=h):h=p[15],p[16]!==e.onClick||p[17]!==h?(g=(0,r.jsx)(o.Dr,{padding:0,radius:2,onClick:e.onClick,style:t,children:h}),p[16]=e.onClick,p[17]=h,p[18]=g):g=p[18],g}},42658:(e,t,n)=>{"use strict";n.d(t,{B3:()=>Q,JW:()=>g,me:()=>ed,sR:()=>eh});var r=n(24051);let i={transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base
1:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}};i.transparent.darkest,i.transparent.lightest,i.transparent.lightest,i.transparent.darkest,i.transparent.darker,i.transparent.lighter,i.transparent.base,i.transparent.base,i.primary.darkest,i.primary.lightest,i.primary.lightest,i.primary.darkest,i.primary.darker,i.primary.lighter,i.primary.base,i.primary.base,i.positive.darkest,i.positive.lightest,i.positive.lightest,i.positive.darkest,i.positive.darker,i.positive.lighter,i.positive.base,i.positive.base,i.caution.darkest,i.caution.lightest,i.caution.lightest,i.caution.darkest,i.caution.darker,i.caution.lighter,i.caution.base,i.caution.base,i.critical.darkest,i.critical.lightest,i.critical.lightest,i.critical.darkest,i.critical.darker,i.critical.lighter,i.critical.base,i.critical.base;let l={avatar:{sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},button:{textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},card:{border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},container:[320,640,960,1280,1600,1920],media:[360,600,900,1200,1800,2400],layer:{dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],input:{border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}},radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}},o={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0}
1,{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},a=new WeakMap;function s(e){let t=a.get(e);if(t)return t;let n=c(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:u(e,e.button.default),ghost:u(e,e.button.ghost),bleed:u(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:d(e.input.default),invalid:d(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:u(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return a.set(e,r),r}function u(e,t){return{default:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},neutral:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},primary:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},suggest:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},positive:{enabled:c(e,t.positive.enabled),hovered:c(e,t.positive.hovered),pressed:c(e,t.positive.pressed),selected:c(e,t.positive.selected),disabled:c(e,t.positive.disabled)},caution:{enabled:c(e,t.caution.enabled),hovered:c(e,t.caution.hovered),pressed:c(e,t.caution.pressed),selected:c(e,t.caution.selected),disabled:c(e,t.caution.disabled)},critical:{enabled:c(e,t.critical.enabled),hovered:c(e,t.critical.hovered),pressed:c(e,t.critical.pressed),selected:c(e,t.critical.selected),disabled:c(e,t.critical.disabled)}}}function c(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg},cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function d(e){return{enabled:f(e.enabled),disabled:f(e.disabled),readOnly:f(e.readOnly),hovered:f(e.hovered)}}function f(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let h=new WeakMap;function g(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=h.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...l.avatar,...e.sanity.avatar},button:{...l.button,...e.sanity.button},card:l.card,color:s(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...l.input,...e.sanity.input,checkbox:{...l.input.checkbox,...e.sanity.input.checkbox},radio:{...l.input.radio,...e.sanity.input.radio},switch:{...l.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??l.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return h.set(e,n),n}function p(e){return 2===e._version}let b=new WeakMap,m=new WeakMap;function y(e){let t=m.get(e);if(t)return t;
1let{avatar:n,button:r,color:i,container:l,font:o,input:a,media:s,radius:u,shadow:c,space:d,style:f}=e;return{_version:0,avatar:n,button:r,container:l,color:{light:{transparent:v(i.light.transparent),default:v(i.light.default),primary:v(i.light.primary),positive:v(i.light.positive),caution:v(i.light.caution),critical:v(i.light.critical)},dark:{transparent:v(i.dark.transparent),default:v(i.dark.default),primary:v(i.dark.primary),positive:v(i.dark.positive),caution:v(i.dark.caution),critical:v(i.dark.critical)}},focusRing:a.text.focusRing,fonts:o,input:a,media:s,radius:u,shadows:c,space:d,styles:f,v2:e}}function v(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focusRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:w(e.input.default),invalid:w(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function w(e){return{enabled:x(e.enabled),disabled:x(e.disabled),readOnly:x(e.readOnly),hovered:x(e.hovered)}}function x(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let k=["multiply","screen"],S=["transparent","default","neutral","primary","suggest","positive","caution","critical"],C=["default","neutral","primary","suggest","positive","caution","critical"],_=["enabled","hovered","pressed","selected","disabled"],R=["default","ghost","bleed"],E=["default","invali
1d"],j=["enabled","hovered","readOnly","disabled"];function O(e){return r.V0.includes(e)}function A(e){return/^\d+%$/.test(e)}function I(e){var t;let n=e.split("/"),i=n.shift()||"",[l,o]=i.split(" ");if(O(l)){let e=n.shift()||"";return A(o)?{type:"color",tint:l,mix:Number(o.slice(0,-1))/100}:$(e)?{type:"color",tint:l,opacity:Number(e)}:{type:"color",tint:l}}if("black"===(t=l)||"white"===t){let e=n.shift()||"";return A(o)?{type:"color",key:l,mix:Number(o.slice(0,-1))/100}:$(e)?{type:"color",key:l,opacity:Number(e)}:{type:"color",key:l}}if(r.Cv.includes(l)){let[e,t]=(i=n.shift()||"").split(" ");if(O(e)){let r=n.shift()||"";return A(t)?{type:"color",hue:l,tint:e,mix:Number(t.slice(0,-1))/100}:$(r)?{type:"color",hue:l,tint:e,opacity:Number(r)}:{type:"color",hue:l,tint:e}}return{type:"hue",value:l}}if(k.includes(l))return{type:"blendMode",value:l}}function $(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...r.Cv],[...S],[...C],[..._],[...E],[...j];let z=["500","500"];function M(e,t=z){var n;let r,{hue:i,scheme:l}=e,o=I(t[+("light"!==l)]);if(!o||"color"!==o.type)throw Error(`Invalid color token: ${t[0]}`);return n={...o,hue:o.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let N={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
1,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
1data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function P(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function T(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(L,{})}function L(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];P(r)&&P(i)?e[n]=T(r,i):e[n]=i}return e}function F(e,t){let{scheme:n}=e,r={};for(let e of S)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],l={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:M(l,i?.accent?.fg)},avatar:D({scheme:n},i),backdrop:M(l,i?.backdrop),badge:B(i?.badge,{scheme:n},t),bg:M(l,i?.bg),border:M(l,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of R)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,l={};for(let e of C)l[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:l}=e,o={};for(let e of _)o[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:l,state:o}=e,a=t?.color?.base?.[n],s=t?.color?.button?.[r]?.[i]?.[o],u=s?._hue||a?._hue||"gray",c=s?._blend||["screen","multiply"],d={hue:u,scheme:l};return{_blend:c[+("light"!==l)],accent:{fg:M(d,s?.accent?.fg)},avatar:D({scheme:l},s),badge:B(s?.badge,{scheme:l},t),bg:M(d,s?.bg),border:M(d,s?.border),code:{bg:M(d,s?.code?.bg),fg:M(d,s?.code?.fg)},fg:M(d,s?.fg),icon:M(d,s?.icon),muted:{bg:M(d,s?.muted?.bg),fg:M(d,s?.muted?.fg)},kbd:{bg:M(d,s?.kbd?.bg),fg:M(d,s?.kbd?.fg),border:M(d,s?.kbd?.border)},link:{fg:M(d,s?.link?.fg)},skeleton:{from:M(d,s?.skeleton?.from),to:M(d,s?.skeleton?.to)}}}({cardTone:n,mode:r,tone:l,scheme:i,state:e},t);return o}({cardTone:n,mode:r,scheme:i,tone:e},t);return l}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:M(l,i?.code?.bg),fg:M(l,i?.code?.fg)},fg:M(l,i?.fg),focusRing:M(l,i?.focusRing),icon:M(l,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:W({mode:"default",scheme:n,tone:r},t),invalid:W({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:M(l,i?.kbd?.bg),fg:M(l,i?.kbd?.fg),border:M(l,i?.kbd?.border)},link:{fg:M(l,i?.link?.fg)},muted:{bg:M(l,i?.muted?.bg),fg:M(l,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of C)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,l={};for(let e of _)l[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:l}=e,o=t?.color?.base?.[n],a=t?.color?.selectable?.[l]?.[i],s=a?._hue||o?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:s,scheme:r};return{_blend:u[+("light"!==r)],accent:{fg:M(c,a?.accent?.fg)},avatar:D({scheme:r},a),badge:B(a?.badge,{scheme:r},t),bg:M(c,a?.bg),border:M(c,a?.border),code:{bg:M(c,a?.code?.bg),fg:M(c,a?.code?.fg)},fg:M(c,a?.fg),icon:M(c,a?.icon),muted:{bg:M(c,a?.muted?.bg),fg:M(c,a?.muted?.fg)},kbd:{bg:M(c,a?.kbd?.bg),fg:M(c,a?.kbd?.fg),border:M(c,a?.kbd?.border)},link:{fg:M(c,a?.link?.fg)},skeleton:{from:M(c,a?.skeleton?.from),to:M(c,a?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return l}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],l={hue:i?._hue||"gray",scheme:n};return{outline:M(l,i?.shadow?.outline),umbra:M(l,i?.shadow?.umbra),penumbra:M(l,i?.shadow?.penumbra),ambient:M(l,i?.shadow?.ambient)}}
1({scheme:n,tone:r},t),skeleton:{from:M(l,i?.skeleton?.from),to:M(l,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:M(i,r?.atrule),attrName:M(i,r?.attrName),attrValue:M(i,r?.attrValue),attribute:M(i,r?.attribute),boolean:M(i,r?.boolean),builtin:M(i,r?.builtin),cdata:M(i,r?.cdata),char:M(i,r?.char),class:M(i,r?.class),className:M(i,r?.className),comment:M(i,r?.comment),constant:M(i,r?.constant),deleted:M(i,r?.deleted),doctype:M(i,r?.doctype),entity:M(i,r?.entity),function:M(i,r?.function),hexcode:M(i,r?.hexcode),id:M(i,r?.id),important:M(i,r?.important),inserted:M(i,r?.inserted),keyword:M(i,r?.keyword),number:M(i,r?.number),operator:M(i,r?.operator),prolog:M(i,r?.prolog),property:M(i,r?.property),pseudoClass:M(i,r?.pseudoClass),pseudoElement:M(i,r?.pseudoElement),punctuation:M(i,r?.punctuation),regex:M(i,r?.regex),selector:M(i,r?.selector),string:M(i,r?.string),symbol:M(i,r?.symbol),tag:M(i,r?.tag),unit:M(i,r?.unit),url:M(i,r?.url),variable:M(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function D(e,t){let{scheme:n}=e;return{gray:H({color:"gray",scheme:n},t),blue:H({color:"blue",scheme:n},t),purple:H({color:"purple",scheme:n},t),magenta:H({color:"magenta",scheme:n},t),red:H({color:"red",scheme:n},t),orange:H({color:"orange",scheme:n},t),yellow:H({color:"yellow",scheme:n},t),green:H({color:"green",scheme:n},t),cyan:H({color:"cyan",scheme:n},t)}}function H(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],l={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:M(l,i?.bg),fg:M(l,i?.fg)}}function B(e,t,n){let{scheme:r}=t,i={};for(let t of C)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,l=e?.[i],o={hue:l?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:M(o,l?.bg),fg:M(o,l?.fg),dot:M(o,l?.dot),icon:M(o,l?.icon)}}(e,{scheme:r,tone:t},n);return i}function W(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:V({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:V({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:V({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:V({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function V(e,t){let{cardTone:n,mode:r,scheme:i,state:l}=e,o=t?.color?.base?.[n],a=t?.color?.input?.[r]?.[l],s=a?._hue||o?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:s,scheme:i};return{_blend:u[+("light"!==i)],bg:M(c,a?.bg),border:M(c,a?.border),fg:M(c,a?.fg),muted:{bg:M(c,a?.muted?.bg)},placeholder:M(c,a?.placeholder)}}let U=r.yW;function G(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function q(e,t,n,r,i){var l;return n*(1-(l=G((i-e)/(t-e))))+r*l}function Y(e){return Math.round(e)}function K(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function Z(e){let t=Y(G(Math.round(e.r),0,255)),n=Y(G(Math.round(e.g),0,255)),r=Y(G(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let X=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function J(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return K(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),l=n-r/2,o=0,a=0,s=0;return 0<=e.h&&e.h<60?(o=r,a=i,s=0):60<=e.h&&e.h<120?(o=i,a=r,s=0):120<=e.h&&e.h<180?(o=0,a=r,s=i):180<=e.h&&e.h<240?(o=0,a=i,s=r):240<=e.h&&e.h<300?(o=i,a=0,s=r):300<=e.h&&e.h<360&&(o=r,a=0,s=i),{r:Math.round((o+l)*255),g:Math.round((a+l)*255),b:Math.round((s+l)*255)}}(function(e){let t=X.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function Q(e,t){let n=J(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let ee=[0,255];function et(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let l=I(e);if(!l||"color"!==l.type)throw Error(`Invalid color token value: ${e}`);let o="";if("black"===l.key&&(o=en(i.black)),"white"===l.key&&(o=en(i.white)),l.hue&&l.tint&&(o=en(i[l.hue][l.tint])),!o)throw Error(`Invalid color token value: ${e}`);let a=o,s={blendMode:r,bg:n,black:en(i.black),white:en(i.white)};try{if(o=function(e,t){var n,r,i,l,o,a;let{blendMode:s}=t,u=J(e),c=J(t.black),d=J(t.white),f=t.bg?J(t.bg):"multiply"===s?d:c,h={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},g={r:G(q(...h.r,...ee,f.r),...ee),g:G(q(...h.g,...ee,f.g),...ee),b:G(q(...h.b,...ee,f.b),...ee)},p={r:G(q(...h.r,...ee,u.r),...ee),g:G(q(...h.g,...ee,u.g),...ee),b:G(q(...h.b,...ee,u.b),...ee)},b="multiply"===s?{r:255*(g.r/255*(p.r/255)),g:255*(g.g/255*(p.g/255)),b:255*(g.b/255*(p.b/255))}:{r:255*((n=g.r/255)+(r=p.r/255)-n*r),g:255*((i=g.g/255)+(l=p.g/255)-i*l),b:255*((o=g.b/255)+(a=p.b/255)-o*a)};return Z({r:G(q(...ee,...h.r,b.r),...h.r),g:G(q(...ee,...h.g,b.g),...h.g),b:G(q(...ee,...h.b,b.b),...h.b)})}(o,s),n&&void 0!==l.mix){var u,c,d,f,h,g,p;let e=K(n),t=K(o);o=Z((u=l.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(f=e.g,h=t.g,f+(h-f)*u),b:(g=e.b,p=t.b,g+(p-g)*u)}))}}catch(e){throw console.warn("could not blend",o,s),e}
1return"#aN"===o&&(console.warn(`invalid color token value: ${e}`),o=a),void 0!==l.opacity&&(o=Q(o,l.opacity)),o}function en(e){return"string"==typeof e?e:e.hex}function er(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),l=ei(r,{colorPalette:e}),o=ei(i,{colorPalette:e}),a=o.bg;if("white"===a)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",l],["default",o],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,ei(n,{bg:a,colorPalette:e})])])}function ei(e,t){var n,r,i,l;let{colorPalette:o,bg:a}=t,s=e._blend||"multiply",u=et(e.bg,{colorPalette:o,bg:a,blendMode:s}),c={colorPalette:o,bg:u,blendMode:s},d=(n=e.button,r={baseBg:u,blendMode:s,colorPalette:o},{default:ea(n.default,r),ghost:ea(n.ghost,r),bleed:ea(n.bleed,r)}),f=function(e,t){let n={};for(let l of C){var r,i;n[l]=(r=e[l],i=t,{enabled:es(r.enabled,i),hovered:es(r.hovered,i),pressed:es(r.pressed,i),selected:es(r.selected,i),disabled:es(r.disabled,i)})}return n}(e.selectable,{colorPalette:o,baseBg:u,blendMode:s}),h={outline:et(e.shadow.outline,c),umbra:et(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),penumbra:et(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}}),ambient:et(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...o,black:"#000000"}})};return{_blend:s,_dark:e._dark,accent:{fg:et(e.accent.fg,c)},avatar:el(e.avatar,{baseBg:u,colorPalette:o,blendMode:s}),backdrop:et(e.backdrop,c),badge:eo(e.badge,{baseBg:u,colorPalette:o,blendMode:s}),bg:u,border:et(e.border,c),button:d,code:{bg:et(e.code.bg,c),fg:et(e.code.fg,c)},fg:et(e.fg,c),focusRing:et(e.focusRing,c),icon:et(e.icon,c),input:(i=e.input,l={baseBg:u,colorPalette:o,blendMode:s},{default:eu(i.default,l),invalid:eu(i.invalid,l)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,l=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:l,blendMode:r,colorPalette:i};return{bg:l,fg:et(e.fg,o),border:et(e.border,o)}}(e.kbd,{baseBg:u,colorPalette:o,blendMode:s}),link:{fg:et(e.link.fg,c)},muted:{bg:et(e.muted.bg,c),fg:et(e.muted.fg,c)},shadow:h,skeleton:{from:et(e.skeleton.from,c),to:et(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,l={colorPalette:n,bg:r,blendMode:i};return{atrule:et(e.atrule,l),attrName:et(e.attrName,l),attrValue:et(e.attrValue,l),attribute:et(e.attribute,l),boolean:et(e.boolean,l),builtin:et(e.builtin,l),cdata:et(e.cdata,l),char:et(e.char,l),class:et(e.class,l),className:et(e.className,l),comment:et(e.comment,l),constant:et(e.constant,l),deleted:et(e.deleted,l),doctype:et(e.doctype,l),entity:et(e.entity,l),function:et(e.function,l),hexcode:et(e.hexcode,l),id:et(e.id,l),important:et(e.important,l),inserted:et(e.inserted,l),keyword:et(e.keyword,l),number:et(e.number,l),operator:et(e.operator,l),prolog:et(e.prolog,l),property:et(e.property,l),pseudoClass:et(e.pseudoClass,l),pseudoElement:et(e.pseudoElement,l),punctuation:et(e.punctuation,l),regex:et(e.regex,l),selector:et(e.selector,l),string:et(e.string,l),symbol:et(e.symbol,l),tag:et(e.tag,l),unit:et(e.unit,l),url:et(e.url,l),variable:et(e.variable,l)}}(e.syntax,{baseBg:u,colorPalette:o,blendMode:s}),selectable:f}}function el(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,l=e._blend||"multiply",o=et(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:l,bg:o,fg:et(e.fg,{bg:o,blendMode:l,colorPalette:i})}}(e[i],t);return n}function eo(e,t){let n={};for(let r of C)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,l=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),o={bg:l,blendMode:r,colorPalette:i};return{bg:l,dot:et(e.dot,o),fg:et(e.fg,o),icon:et(e.icon,o)}}(e[r],t);return n}function ea(e,t){let n={};for(let l of C){var r,i;n[l]=(r=e[l],i=t,{enabled:es(r.enabled,i),hovered:es(r.hovered,i),pressed:es(r.pressed,i),selected:es(r.selected,i),disabled:es(r.disabled,i)})}return n}function es(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,l=e._blend||"multiply",o=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:l,colorPalette:i};return{_blend:l,accent:{fg:et(e.accent.fg,a)},avatar:el(e.avatar,{baseBg:o,colorPalette:i,blendMode:l}),badge:eo(e.badge,{baseBg:o,colorPalette:i,blendMode:l}),bg:o,border:et(e.border,a),code:{bg:et(e.code.bg,a),fg:et(e.code.fg,a)},fg:et(e.fg,a),icon:et(e.icon,a),link:{fg:et(e.link.fg,a)},muted:{bg:et(e.muted.bg,a),fg:et(e.muted.fg,a)},kbd:{bg:et(e.kbd.bg,a),fg:et(e.kbd.fg,a),border:et(e.kbd.border,a)},skeleton:{from:et(e.skeleton?.from,a),to:et(e.skeleton?.to,a)}}}function eu(e,t){return{enabled:ec(e.enabled,t),hovered:ec(e.hovered,t),readOnly:ec(e.readOnly,t),disabled:ec(e.disabled,t)}}function ec(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,l=e._blend||"multiply",o=et(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:o,blendMode:l};return{_blend:l,bg:o,border:et(e.border,a),fg:et(e.fg,a),muted:{bg:et(e.muted.bg,a)},placeholder:et(e.placeholder,a)}}function ed(e){let t=function(e){let t={color:function(e){let t=T(N,e);return{base:function(e){let t={};for(let n of S)t[n]=function(e,t){let n=T(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>
1({...e,[t]:T({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:C.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of R)t[n]=function(e,t){let n={};for(let i of C)n[i]=function(e,t,n){let i={};for(let l of _)i[l]=function(e,t,n,i){let l=T(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),o=l._hue||e?.base?.[t]?._hue;return{...l,_hue:o,avatar:r.Cv.reduce((e,t)=>({...e,[t]:T({_hue:t},l.avatar?.["*"],l.avatar?.[t])}),{}),badge:C.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...l.badge?.["*"],...l.badge?.[n]}}),{})}}(e,n,t,l);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of E)t[n]=function(e,t){let n={};for(let r of j)n[r]=function(e,t,n){let r=T(e?.input?.["*"]?.["*"],e?.input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of C)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of _)n[i]=function(e,t,n){let i=T(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),l=i._hue||e?.base?.[t]?._hue;return{...i,_hue:l,avatar:r.Cv.reduce((e,t)=>({...e,[t]:T({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:C.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||l,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:F({scheme:"light"},t),dark:F({scheme:"dark"},t)}}(e);return y({_version:2,avatar:e?.avatar??l.avatar,button:e?.button??l.button,card:e?.card??l.card,color:function(e,t){let n=t?.palette??U;return{light:er(n,e.light),dark:er(n,e.dark)}}(t,e),container:e?.container??l.container,font:e?.font??o,input:e?.input??l.input,layer:e?.layer??l.layer,media:e?.media??l.media,radius:e?.radius??l.radius,shadow:e?.shadow??l.shadow,space:e?.space??l.space,style:e?.style??l.style})}let ef=new Map;function eh(e,t,n){var r;let i=function(e,t,n){let r=ef.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let o=p(e)?y(e):e,a=p(e)?e:function(e){if(e.v2)return e.v2;let t=b.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,fonts:a,input:u,layer:c,media:d,radius:f,shadows:h,space:g,styles:p}=e,m={_version:2,avatar:{...l.avatar,...n},button:{...l.button,...r},card:l.card,color:{light:{transparent:s(i.light.transparent),default:s(i.light.default),neutral:s(i.light.transparent),primary:s(i.light.primary),suggest:s(i.light.primary),positive:s(i.light.positive),caution:s(i.light.caution),critical:s(i.light.critical)},dark:{transparent:s(i.dark.transparent),default:s(i.dark.default),neutral:s(i.dark.transparent),primary:s(i.dark.primary),suggest:s(i.dark.primary),positive:s(i.dark.positive),caution:s(i.dark.caution),critical:s(i.dark.critical)}},container:o,font:a,input:{...l.input,...u,checkbox:{...l.input.checkbox,...u.checkbox},radio:{...l.input.radio,...u.radio},switch:{...l.input.switch,...u.switch}},layer:c??l.layer,media:d,radius:f,shadow:h,space:g,style:p};return b.set(e,m),m}(e),u=o.color[t]||o.color.light,c=u[n]||u.default,d=o.layer||l.layer,f=a.color[t]||a.color.light,h="neutral"in(r=f[n]||f.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},g=a.layer||l.layer,m={sanity:{...o,color:c,layer:d,v2:{...a,_resolved:!0,color:h,layer:g}}};return function(e,t,n,r){ef.has(t)||ef.set(t,new Map);let i=ef.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,m),m}},43145:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},44246:(e,t,n)=>{"use strict";n.d(t,{$:()=>g});var r,i=n(45279),l=n(74342),o=1,a={};function s(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=o++;return a[t]=!0,r||(r=Promise.resolve()),r.then(function(){return s(t)&&e()}),t},clearImmediate:function(e){s(e)}},c=u.setImmediate,d=u.clearImmediate,f={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=f.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=f.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},h=function(e){function t(t,n){var r=e.call(this,t,n)||this;
1return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=f.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,l=t.actions;null!=n&&(null==(i=l[l.length-1])?void 0:i.id)!==n&&(f.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(l.R),g=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(76153).q))(h)},51446:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,l=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},o=(e,t,n,r,i,l,o,a)=>l<e&&o>t||l>e&&o<t?0:l<=e&&a<=n||o>=t&&a>=n?l-e-r:o>t&&a<n||l<e&&a>n?o-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var n,i,s,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:f,boundary:h,skipOverflowHiddenElements:g}=t,p="function"==typeof h?h:e=>e!==h;if(!r(e))throw TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,m=[],y=e;for(;r(y)&&p(y);){if((y=a(y))===b){m.push(y);break}null!=y&&y===document.body&&l(y)&&!l(document.documentElement)||null!=y&&l(y,g)&&m.push(y)}let v=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,w=null!=(u=null==(s=window.visualViewport)?void 0:s.height)?u:innerHeight,{scrollX:x,scrollY:k}=window,{height:S,width:C,top:_,right:R,bottom:E,left:j}=e.getBoundingClientRect(),{top:O,right:A,bottom:I,left:$}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),z="start"===d||"nearest"===d?_-O:"end"===d?E+I:_+S/2-O+I,M="center"===f?j+C/2-$+A:"end"===f?R+A:j-$,N=[];for(let e=0;e<m.length;e++){let t=m[e],{height:n,width:r,top:i,right:a,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===c&&_>=0&&j>=0&&E<=w&&R<=v&&(t===b&&!l(t)||_>=i&&E<=s&&j>=u&&R<=a))break;let h=getComputedStyle(t),g=parseInt(h.borderLeftWidth,10),p=parseInt(h.borderTopWidth,10),y=parseInt(h.borderRightWidth,10),O=parseInt(h.borderBottomWidth,10),A=0,I=0,$="offsetWidth"in t?t.offsetWidth-t.clientWidth-g-y:0,P="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-O:0,T="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(b===t)A="start"===d?z:"end"===d?z-w:"nearest"===d?o(k,k+w,w,p,O,k+z,k+z+S,S):z-w/2,I="start"===f?M:"center"===f?M-v/2:"end"===f?M-v:o(x,x+v,v,g,y,x+M,x+M+C,C),A=Math.max(0,A+k),I=Math.max(0,I+x);else{A="start"===d?z-i-p:"end"===d?z-s+O+P:"nearest"===d?o(i,s,n,p,O+P,z,z+S,S):z-(i+n/2)+P/2,I="start"===f?M-u-g:"center"===f?M-(u+r/2)+$/2:"end"===f?M-a+y+$:o(u,a,r,g,y+$,M,M+C,C);let{scrollLeft:e,scrollTop:l}=t;A=0===L?0:Math.max(0,Math.min(l+A/L,t.scrollHeight-n/L+P)),I=0===T?0:Math.max(0,Math.min(e+I/T,t.scrollWidth-r/T+$)),z+=l-A,M+=e-I}N.push({el:t,top:A,left:I})}return N};function u(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||
10,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:l,left:o}of s(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=l-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},57953:(e,t,n)=>{"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,l=r.length;if(0===i||0===l)return 0;i>l?n=n.substring(i-l):i<l&&(r=r.substring(0,i));let o=Math.min(i,l);if(n===r)return o;let a=0,s=1;for(let e=0;-1!==e;){let t=n.substring(o-s);if(-1===(e=r.indexOf(t)))break;s+=e,(0===e||n.substring(o-s)===r.substring(0,s))&&(a=s,s++)}return a}function l(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,l=0;for(;n<i;)e.substring(l,i)===t.substring(l,i)?l=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function o(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,l=0;for(;n<i;)e.substring(e.length-i,e.length-l)===t.substring(t.length-i,t.length-l)?l=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function s(e,t,n,r,i){let l=e.substring(0,n),o=t.substring(0,r),a=e.substring(n),s=t.substring(r),u=v(l,o,{checkLines:!1,deadline:i}),c=v(a,s,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,a="",s,u,c,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=l(e.slice(n),t.slice(i)),f=o(e.slice(0,n),t.slice(0,i));a.length<f+r&&(a=t.slice(i-f,i)+t.slice(i,i+r),s=e.slice(0,n-f),u=e.slice(n+r),c=t.slice(0,i-f),d=t.slice(i+r))}return 2*a.length>=e.length?[s||"",u||"",c||"",d||"",a||""]:null}n.d(t,{$i:()=>G,Cm:()=>p,Ug:()=>b,Vx:()=>S,iU:()=>y,iz:()=>el,jW:()=>et,lw:()=>m,sw:()=>I,w1:()=>ea});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let p=-1,b=1,m=0;function y(e,t,n){if(null===e||null===t)throw Error("Null input. (diff)");let r=v(e,t,function(e){let t;var n,r={checkLines:!0,deadline:(n=e.timeout||1,t=1,"u">typeof n&&(t=n<=0?Number.MAX_VALUE:n),Date.now()+1e3*t)},i=e;for(var l in i||(i={}))f.call(i,l)&&g(r,l,i[l]);if(d)for(var l of d(i))h.call(i,l)&&g(r,l,i[l]);return r}(n||{}));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===m&&k(e,t,1),a(i)&&n===m&&k(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(r),r}function v(e,t,n){let r=e,i=t;if(r===i)return r?[[m,r]]:[];let a=l(r,i),c=r.substring(0,a);a=o(r=r.substring(a),i=i.substring(a));let d=r.substring(r.length-a),f=function(e,t,n){let r;if(!e)return[[b,t]];if(!t)return[[p,e]];let i=e.length>t.length?e:t,l=e.length>t.length?t:e,o=i.indexOf(l);if(-1!==o)return r=[[b,i.substring(0,o)],[m,l],[b,i.substring(o+l.length)]],e.length>t.length&&(r[0][0]=p,r[2][0]=p),r;if(1===l.length)return[[p,e],[b,t]];let a=function(e,t,n=1){let r,i,l,o,a;if(n<=0)return null;let s=e.length>t.length?e:t,c=e.length>t.length?t:e;if(s.length<4||2*c.length<s.length)return null;let d=u(s,c,Math.ceil(s.length/4)),f=u(s,c,Math.ceil(s.length/2));if(d&&f)r=d[4].length>f[4].length?d:f;else{if(!d&&!f)return null;f?d||(r=f):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],l=r[1],o=r[2],a=r[3]):(o=r[0],a=r[1],i=r[2],l=r[3]),[i,l,o,a,r[4]]}(e,t);if(a){let e=a[0],t=a[1],r=a[2],i=a[3],l=a[4],o=v(e,r,n),s=v(t,i,n);return o.concat([[m,l]],s)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,l=function(e,t){let n=[],r={};function i(e){let t="",i=0,o=-1,a=n.length;for(;o<e.length-1;){-1===(o=e.indexOf(`
2`,i))&&(o=e.length-1);let s=e.slice(i,o+1);(r.hasOwnProperty?r.hasOwnProperty(s):void 0!==r[s])?t+=String.fromCharCode(r[s]):(a===l&&(s=e.slice(i),o=e.length),t+=String.fromCharCode(a),r[s]=a,n[a++]=s),i=o+1}return t}n[0]="";let l=4e4,o=i(e);return l=65535,{chars1:o,chars2:i(t),lineArray:n}}(r,i);r=l.chars1,i=l.chars2;let o=l.lineArray,a=v(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(a,o),(a=S(a)).push([m,""]);let s=0,u=0,c=0,d="",f="";for(;s<a.length;){switch(a[s][0]){case b:c++,f+=a[s][1];break;case p:u++,d+=a[s][1];break;case m:if(u>=1&&c>=1){a.splice(s-u-c,u+c),s=s-u-c;let e=v(d,f,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)a.splice(s,0,e[t]);s+=e.length}c=0,u=0,d="",f="";break;default:throw Error("Unknown diff operation.")}s++}return a.pop(),a}(e,t,n):function(e,t,n){let r=e.length,i=t.length,l=Math.ceil((r+i)/2),o=2*l,a=Array(o),u=Array(o);for(let e=0;e<o;e++)a[e]=-1,u[e]=-1;a[l+1]=0,u[l+1]=0;let c=r-i,d=c%2!=0,f=0,h=0,g=0,m=0;for(let p=0;p<l&&!(Date.now()>n);p++){for(let g=-p+f;g<=p-h;g+=2){let b,m=l+g,y=(b=g===-p||g!==p&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;for(;b<r&&y<i&&e.charAt(b)===t.charAt(y);)b++,y++;if(a[m]=b,b>r)h+=2;else if(y>i)f+=2;else if(d){let i=l+c-g;if(i>=0&&i<o&&-1!==u[i]&&b>=r-u[i])return s(e,t,b,y,n)}}for(let f=-p+g;f<=p-m;f+=2){let h,b=l+f,y=(h=f===-p||f!==p&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-f;for(;h<r&&y<i&&e.charAt(r-h-1)===t.charAt(i-y-1);)h++,y++;if(u[b]=h,h>r)m+=2;else if(y>i)g+=2;else if(!d){let i=l+c-f;if(i>=0&&i<o&&-1!==a[i]){let o=a[i],u=l+o-i;if(o>=(h=r-h))return s(e,t,o,u,n)}}}}return[[p,e],[b,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-a),i=i.substring(0,i.length-a),n);return c&&f.unshift([m,c]),d&&f.push([m,d]),f=A(f)}function w(e,t,n){return 1===n?e+t:t+e}function x(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}
2function k(e,t,n){var r,i;let l=1===n?-1:1,o=null,a=null,s=t+n;for(;s>=0&&s<e.length&&(null===o||null===a);s+=n){let[r,i]=e[s];if(0!==i.length){if(r===b){null===o&&(o=s);continue}else if(r===p){null===a&&(a=s);continue}else if(r===m){if(null===o&&null===a){let[r,i]=x(e[t][1],n);e[t][1]=r,e[s][1]=w(e[s][1],i,l);return}break}}}if(null!==o&&null!==a&&(r=o,i=a,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=x(e[o][1],l),[s]=x(e[a][1],l);e[o][1]=r,e[a][1]=s,e[t][1]=w(e[t][1],i,n);return}let[u,c]=x(e[t][1],n);e[t][1]=u,null===o?(e.splice(s,0,[b,c]),null!==a&&a>=s&&a++):e[o][1]=w(e[o][1],c,l),null===a?e.splice(s,0,[p,c]):e[a][1]=w(e[a][1],c,l)}function S(e){let t=e.map(e=>r(e)),n=!1,l=[],o=0,a=null,s=0,u=0,c=0,d=0,f=0;for(;s<t.length;)t[s][0]===m?(l[o++]=s,u=d,c=f,d=0,f=0,a=t[s][1]):(t[s][0]===b?d+=t[s][1].length:f+=t[s][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,f)&&(t.splice(l[o-1],0,[p,a]),t[l[o-1]+1][0]=b,o--,s=--o>0?l[o-1]:-1,u=0,c=0,d=0,f=0,a=null,n=!0)),s++;for(n&&(t=A(t)),t=O(t),s=1;s<t.length;){if(t[s-1][0]===p&&t[s][0]===b){let e=t[s-1][1],n=t[s][1],r=i(e,n),l=i(n,e);r>=l?(r>=e.length/2||r>=n.length/2)&&(t.splice(s,0,[m,n.substring(0,r)]),t[s-1][1]=e.substring(0,e.length-r),t[s+1][1]=n.substring(r),s++):(l>=e.length/2||l>=n.length/2)&&(t.splice(s,0,[m,e.substring(0,l)]),t[s-1][0]=b,t[s-1][1]=n.substring(0,n.length-l),t[s+1][0]=p,t[s+1][1]=e.substring(l),s++),s++}s++}return t}let C=/[^a-zA-Z0-9]/,_=/\s/,R=/[\r\n]/,E=/\n\r?\n$/,j=/^\r?\n\r?\n/;function O(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(C),l=r.match(C),o=i&&n.match(_),a=l&&r.match(_),s=o&&n.match(R),u=a&&r.match(R),c=s&&e.match(E),d=u&&t.match(j);return c||d?5:s||u?4:i&&!o&&a?3:o||a?2:i||l?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===m&&t[i+1][0]===m){let e=t[i-1][1],r=t[i][1],l=t[i+1][1],a=o(e,r);if(a){let t=r.substring(r.length-a);e=e.substring(0,e.length-a),r=t+r.substring(0,r.length-a),l=t+l}let s=e,u=r,c=l,d=n(e,r)+n(r,l);for(;r.charAt(0)===l.charAt(0);){e+=r.charAt(0),r=r.substring(1)+l.charAt(0),l=l.substring(1);let t=n(e,r)+n(r,l);t>=d&&(d=t,s=e,u=r,c=l)}t[i-1][1]!==s&&(s?t[i-1][1]=s:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function A(e){let t=e.map(e=>r(e));t.push([m,""]);let n=0,i=0,a=0,s="",u="",c;for(;n<t.length;)switch(t[n][0]){case b:a++,u+=t[n][1],n++;break;case p:i++,s+=t[n][1],n++;break;case m:i+a>1?(0!==i&&0!==a&&(0!==(c=l(u,s))&&(n-i-a>0&&t[n-i-a-1][0]===m?t[n-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[m,u.substring(0,c)]),n++),u=u.substring(c),s=s.substring(c)),0!==(c=o(u,s))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),s=s.substring(0,s.length-c))),n-=i+a,t.splice(n,i+a),s.length&&(t.splice(n,0,[p,s]),n++),u.length&&(t.splice(n,0,[b,u]),n++),n++):0!==n&&t[n-1][0]===m?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,a=0,i=0,s="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(n=1;n<t.length-1;)t[n-1][0]===m&&t[n+1][0]===m&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;return d&&(t=A(t)),t}function I(e,t=4){let n=e.map(e=>r(e)),i=!1,l=[],o=0,a=null,s=0,u=!1,c=!1,d=!1,f=!1;for(;s<n.length;)n[s][0]===m?(n[s][1].length<t&&(d||f)?(l[o++]=s,u=d,c=f,a=n[s][1]):(o=0,a=null),d=!1,f=!1):(n[s][0]===p?f=!0:d=!0,a&&(u&&c&&d&&f||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(u,c,d,f))&&(n.splice(l[o-1],0,[p,a]),n[l[o-1]+1][0]=b,o--,a=null,u&&c?(d=!0,f=!0,o=0):(s=--o>0?l[o-1]:-1,d=!1,f=!1),i=!0)),s++;return i&&(n=A(n)),n}var $=Object.defineProperty,z=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,P=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>
2{for(var n in t||(t={}))M.call(t,n)&&P(e,n,t[n]);if(z)for(var n of z(t))N.call(t,n)&&P(e,n,t[n]);return e};let L={threshold:.5,distance:1e3};function F(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=T(T({},L),r),l=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function o(e,r){let l=e/t.length,o=Math.abs(n-r);return i.distance?l+o/i.distance:o?1:l}let a=i.threshold,s=e.indexOf(t,n);-1!==s&&(a=Math.min(o(0,s),a),-1!==(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,s),a)));let u=1<<t.length-1;s=-1;let c,d,f=t.length+e.length,h=[];for(let r=0;r<t.length;r++){for(c=0,d=f;c<d;)o(r,n+d)<=a?c=d:f=d,d=Math.floor((f-c)/2+c);f=d;let i=Math.max(1,n-d+1),g=Math.min(n+d,e.length)+t.length,p=Array(g+2);p[g+1]=(1<<r)-1;for(let t=g;t>=i;t--){let c=l[e.charAt(t-1)];if(0===r?p[t]=(p[t+1]<<1|1)&c:p[t]=(p[t+1]<<1|1)&c|((h[t+1]|h[t])<<1|1)|h[t+1],p[t]&u){let e=o(r,t-1);if(e<=a)if(a=e,(s=t-1)>n)i=Math.max(1,2*n-s);else break}}if(o(r+1,n)>a)break;h=p}return s}(e,t,i,r):-1}function D(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==b&&(t[n]=e[n][1]);return t.join("")}function H(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==p&&(t[n]=e[n][1]);return t.join("")}function B(e,t){let n=0,r=0,i=0,l=0,o;for(o=0;o<e.length&&(e[o][0]!==b&&(n+=e[o][1].length),e[o][0]!==p&&(r+=e[o][1].length),!(n>t));o++)i=n,l=r;return e.length!==o&&e[o][0]===p?l:l+(t-i)}function W(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=V(r)}return t}function V(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function U(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function G(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let l=function(e,t,n={}){let i=0,l=0;function o(e){for(;i<e;){let e=t.codePointAt(l);if(typeof e>"u")return l;i+=V(e),e>65535?l+=2:l+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return l}let a=[];for(let t of e)a.push({diffs:t.diffs.map(e=>r(e)),start1:o(t.start1),start2:o(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return a}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),o=n.margin||4,a=n.deleteThreshold||.4,s=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==m)i.unshift([m,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,l=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=l,r.start2-=l,r.utf8Start1-=l,r.utf8Start2-=l,r.length1+=l,r.length2+=l,r.utf8Length1+=l,r.utf8Length2+=l}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==m)i.push([m,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(l,o);i=s+i+s,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,l=r.start2,o="";for(;0!==r.diffs.length;){let a=U(i-o.length,l-o.length),s=!0;if(""!==o){let e=W(o);a.length1=o.length,a.utf8Length1=e,a.length2=o.length,a.utf8Length2=e,a.diffs.push([m,o])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],o=W(n);if(e===b){a.length2+=n.length,a.utf8Length2+=o,l+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),s=!1}else e===p&&1===a.diffs.length&&a.diffs[0][0]===m&&n.length>64?(a.length1+=n.length,a.utf8Length1+=o,i+=n.length,s=!1,a.diffs.push([e,n]),r.diffs.shift()):(o=W(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=o,i+=n.length,e===m?(a.length2+=n.length,a.utf8Length2+=o,l+=n.length):s=!1,a.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}o=(o=H(a.diffs)).substring(o.length-t);let u=D(r.diffs).substring(0,t),c=W(u);""!==u&&(a.length1+=u.length,a.length2+=u.length,a.utf8Length1+=c,a.utf8Length2+=c,0!==a.diffs.length&&a.diffs[a.diffs.length-1][0]===m?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([m,u])),s||e.splice(++n,0,a)}}}(l,o);let u=0,c=[];for(let e=0;e<l.length;e++){let t=l[e].start2+u,n=D(l[e].diffs),r,o=-1;if(n.length>32?-1!==(r=F(i,n.substring(0,32),t))&&(-1===(o=F(i,n.substring(n.length-32),t+n.length-32))||r>=o)&&(r=-1):r=F(i,n,t),-1===r)c[e]=!1,u-=l[e].length2-l[e].length1;else{let s;if(c[e]=!0,u=r-t,s=-1===o?i.substring(r,r+n.length):i.substring(r,o+32),n===s)i=i.substring(0,r)+H(l[e].diffs)+i.substring(r+n.length);else{let t=y(n,s,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let l=e[i][0],o=e[i][1];switch(l){case b:n+=o.length;break;case p:r+=o.length;break;case m:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>a)c[e]=!1;else{t=O(t);let n=0,o=0;for(let a=0;a<l[e].diffs.length;a++){let s=l[e].diffs[a];
2s[0]!==m&&(o=B(t,n)),s[0]===b?i=i.substring(0,r+o)+s[1]+i.substring(r+o):s[0]===p&&(i=i.substring(0,r+o)+i.substring(r+B(t,n+s[1].length))),s[0]!==p&&(n+=s[1].length)}}}}}return[i=i.substring(s.length,i.length-s.length),c]}var q=Object.defineProperty,Y=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,X=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&X(e,n,t[n]);if(Y)for(var n of Y(t))Z.call(t,n)&&X(e,n,t[n]);return e};let Q={margin:4};function ee(e={}){return J(J({},Q),e)}function et(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=y(e,t,{checkLines:!0});return r.length>2&&(r=I(r=S(r))),en(e,r,ee(n))}if(e&&Array.isArray(e)&&typeof t>"u")return en(D(e),e,ee(n));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,ee(n));throw Error("Unknown call format to make()")}function en(e,t,n){if(0===t.length)return[];let r=[],i=U(0,0),l=0,o=0,a=0,s=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let f=t[e],[h,g]=f,y=g.length,v=W(g);switch(!l&&h!==m&&(i.start1=o,i.start2=a,i.utf8Start1=s,i.utf8Start2=u),h){case b:i.diffs[l++]=f,i.length2+=y,i.utf8Length2+=v,d=d.substring(0,a)+g+d.substring(a);break;case p:i.length1+=y,i.utf8Length1+=v,i.diffs[l++]=f,d=d.substring(0,a)+d.substring(a+y);break;case m:y<=2*n.margin&&l&&t.length!==e+1?(i.diffs[l++]=f,i.length1+=y,i.length2+=y,i.utf8Length1+=v,i.utf8Length2+=v):y>=2*n.margin&&l&&(er(i,c,n),r.push(i),i=U(-1,-1),l=0,c=d,o=a,s=u);break;default:throw Error("Unknown diff type")}h!==b&&(o+=y,s+=v),h!==p&&(a+=y,u+=v)}return l&&(er(i,c,n),r.push(i)),r}function er(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let l=e.start2-i;l>=1&&a(t[l])&&l--;let o=t.substring(l,e.start2);o&&e.diffs.unshift([m,o]);let s=o.length,u=W(o),c=e.start2+e.length1+i;c<t.length&&a(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([m,d]);let f=d.length,h=W(d);e.start1-=s,e.start2-=s,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=s+f,e.length2+=s+f,e.utf8Length1+=u+h,e.utf8Length2+=u+h}let ei=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function el(e){if(!e)return[];let t=[],n=e.split(`
3`),r=0;for(;r<n.length;){let e=n[r].match(ei);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=U(eo(e[1]),eo(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=eo(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=eo(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],l=t.charAt(0);if("@"===l)break;if(""===l){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let o=W(e)-e.length;if("-"===l)i.diffs.push([p,e]),i.length1-=o;else if("+"===l)i.diffs.push([b,e]),i.length2-=o;else if(" "===l)i.diffs.push([m,e]),i.length1-=o,i.length2-=o;else throw Error(`Invalid patch mode "${l}" in: ${e}`);r++}}return t}function eo(e){return parseInt(e,10)}function ea(e){return e.map(es).join("")}function es(e){let t,n,r,{utf8Length1:i,utf8Length2:l,utf8Start1:o,utf8Start2:a,diffs:s}=e;t=0===i?`${o},0`:1===i?`${o+1}`:`${o+1},${i}`,n=0===l?`${a},0`:1===l?`${a+1}`:`${a+1},${l}`;let u=[`@@ -${t} +${n} @@
4`];for(let e=0;e<s.length;e++){switch(s[e][0]){case b:r="+";break;case p:r="-";break;case m:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(s[e][1])}
5`}return u.join("").replace(/%20/g," ")}},66700:(e,t,n)=>{"use strict";n.d(t,{BN:()=>h,RK:()=>p,UE:()=>m,UU:()=>g,cY:()=>f,jD:()=>b,we:()=>d});var r=n(23396),i=n(3650),l=n(8863),o="undefined"!=typeof document?i.useLayoutEffect:function(){};function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;
5if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:h,floating:g}={},transform:p=!0,whileElementsMounted:b,open:m}=e,[y,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(d);a(w,d)||x(d);let[k,S]=i.useState(null),[C,_]=i.useState(null),R=i.useCallback(e=>{e!==A.current&&(A.current=e,S(e))},[]),E=i.useCallback(e=>{e!==I.current&&(I.current=e,_(e))},[]),j=h||k,O=g||C,A=i.useRef(null),I=i.useRef(null),$=i.useRef(y),z=null!=b,M=c(b),N=c(f),P=c(m),T=i.useCallback(()=>{if(!A.current||!I.current)return;let e={placement:t,strategy:n,middleware:w};N.current&&(e.platform=N.current),(0,r.rD)(A.current,I.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};L.current&&!a($.current,t)&&($.current=t,l.flushSync(()=>{v(t)}))})},[w,t,n,N,P]);o(()=>{!1===m&&$.current.isPositioned&&($.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[m]);let L=i.useRef(!1);o(()=>(L.current=!0,()=>{L.current=!1}),[]),o(()=>{if(j&&(A.current=j),O&&(I.current=O),j&&O){if(M.current)return M.current(j,O,T);T()}},[j,O,T,M,z]);let F=i.useMemo(()=>({reference:A,floating:I,setReference:R,setFloating:E}),[R,E]),D=i.useMemo(()=>({reference:j,floating:O}),[j,O]),H=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=u(D.floating,y.x),r=u(D.floating,y.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...s(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,p,D.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:T,refs:F,elements:D,floatingStyles:H}),[y,T,F,D,H])}let f=(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>{let n=(0,r.RK)(e);return{name:n.name,fn:n.fn,options:[e,t]}},b=(e,t)=>{let n=(0,r.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}}},69034:(e,t,n)=>{"use strict";var r,i,l=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(f,{$dispatcherGuard:()=>C,$makeReadOnly:()=>R,$reset:()=>_,$structuralCheck:()=>I,c:()=>v,clearRenderCounterRegistry:()=>j,renderCounterRegistry:()=>E,useRenderCounter:()=>O}),e.exports=d(o({},"__esModule",{value:!0}),f);var h=((e,t,n)=>(n=null!=e?l(u(e)):{},d(!t&&e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(3650)),{useRef:g,useEffect:p,isValidElement:b}=h,m=null!=(r=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=h.__COMPILER_RUNTIME)?void 0:i.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=y;return t[y]=!0,t},[])},w={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e
5=>{w[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;function k(e){return m.ReactCurrentDispatcher.current=e,m.ReactCurrentDispatcher.current}w.useMemoCache=e=>{if(null!=x)return x.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var S=[];function C(e){let t=m.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(x=t),t===w)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(w)}else if(1===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(x=null),k(e)}else if(2===e)S.push(t),k(x);else if(3===e){let e=S.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function _(e){for(let t=0;t<e.length;t++)e[t]=y}function R(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var E=new Map;function j(){for(let e of E.values())e.forEach(e=>{e.count=0})}function O(e){let t=g(null);null!=t.current&&(t.current.count+=1),p(()=>
5{if(null==t.current){let n,r={count:0};null==(n=E.get(e))&&(n=new Set,E.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=E.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var A=new Set;function I(e,t,n,r,i,l){function o(e,t,o,a){let s=`${r}:${l} [${i}] ${n}${o} changed from ${e} to ${t} at depth ${a}`;A.has(s)||(A.add(s),console.error(s))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)o(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let l=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)o("null",`type ${typeof n}`,r,i);else if(null===n)o(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)o(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[l,a]of t)n.has(l)?e(a,n.get(l),`${r}.get(${l})`,i+1):o(`Map instance with key ${l}`,`Map instance without key ${l}`,r,i);else o("Map instance","other value",r,i);else if(n instanceof Map)o("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)o(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else o("Set instance","other value",r,i);else if(n instanceof Set)o("other value","Set instance",r,i);else if(l||a)if(l!==a)o(`type ${l?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)o(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let l=0;l<t.length;l++)e(t[l],n[l],`${r}[${l}]`,i+1);else if(b(t)||b(n))b(t)!==b(n)?o(`type ${b(t)?"React element":"object"}`,`type ${b(n)?"React element":"object"}`,r,i):t.type!==n.type?o(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||o(`object without key ${e}`,`object with key ${e}`,r,i);for(let l in t)l in n?e(t[l],n[l],`${r}.${l}`,i+1):o(`object with key ${l}`,`object without key ${l}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&o(t,n,r,i)}}}(e,t,"",0)}},77392:(e,t,n)=>{var r=n(10793),i=n(92251),l=n(242),o=RegExp("['’]","g");e.exports=function(e){return function(t){return r(l(i(t).replace(o,"")),e,"")}}},90969:(e,t,n)=>{"use strict";n.d(t,{BI:()=>z,Co:()=>U,EA:()=>J,IU:()=>G,Ki:()=>b,Kp:()=>et,X:()=>h,dj:()=>eE,jT:()=>A,lG:()=>V,r5:()=>ee,s5:()=>p,sQ:()=>m,tE:()=>e_,tH:()=>y});var r=n(82074),i=n(23210),l=n(75001),o=n(3650),a=n(24632),s=n(69034),u=n(42658),c=n(49820),d=n(87953);function f(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function h(e){let t=null,n=f(()=>{t=f(e)});return()=>{t&&t(),n()}}function g(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(g(n)||p(n)))return!0}return!1}function b(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(g(n)||b(n)))return!0}return!1}function m(e){return(0,r.cF)(e)?._contentRect||null}class y extends o.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let v=a.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,w=(0,a.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,x=(0,a.i7)`
6  from {
7    transform: rotate(0deg);
8  }
9
10  to {
11    transform: rotate(360deg);
12  }
13`,k=(0,a.I4)(l.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${x} 500ms linear infinite;`;function S(e){let t,n,l,o=(0,s.c)(11),{children:a,id:u,onSelect:c,selected:d,value:f}=e;o[0]!==c||o[1]!==f?(t=()=>{setTimeout(()=>{c(f)},0)},o[0]=c,o[1]=f,o[2]=t):t=o[2];let h=t;o[3]!==h?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||h()},o[3]=h,o[4]=n):n=o[4];let g=n;return o[5]!==a||o[6]!==h||o[7]!==g||o[8]!==u||o[9]!==d?(l=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:h,onKeyDown:g,children:a}),o[5]=a,o[6]=h,o[7]=g,o[8]=u,o[9]=d,o[10]=l):l=o[10],l}function C(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let _=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],R=["bottom-start","to
13p-start"],E=(e,t)=>t?t.value:e,j=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,O=(0,o.forwardRef)(function(e,t){let{border:n=!0,customValidity:a,disabled:s,filterOption:u,fontSize:c=2,icon:d,id:h,listBox:g=r.sU,loading:b,onBlur:m,onChange:y,onFocus:x,onQueryChange:O,onSelect:A,openButton:I,openOnFocus:$,options:z,padding:M=3,popover:N=r.sU,prefix:P,radius:T=2,readOnly:L,relatedElements:F,renderOption:D,renderPopover:H,renderValue:B=E,suffix:W,value:V,...U}=e,[G,q]=(0,o.useReducer)(C,{activeValue:V||null,focused:!1,listFocused:!1,query:null,value:V||null}),{activeValue:Y,focused:K,listFocused:Z,query:X,value:J}=G,Q=(0,o.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:M,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,M]),ee="function"==typeof D?D:Q,et="function"==typeof u?u:j,en=(0,o.useRef)(null),er=(0,o.useRef)(null),ei=(0,o.useRef)(null),el=(0,o.useRef)(null),eo=(0,o.useRef)(!1),ea=(0,o.useRef)(J),es=(0,o.useRef)(V),eu=(0,o.useRef)(!1);(0,o.useImperativeHandle)(t,()=>ei.current);let ec=`${h}-listbox`,ed=Array.isArray(z)?z:r.Ml,ef=(0,r.KC)(M),eh=(0,o.useMemo)(()=>null!==J?ed.find(e=>e.value===J):void 0,[ed,J]),eg=(0,o.useMemo)(()=>ed.filter(e=>!X||et(X,e)),[et,ed,X]),ep=eg.length,eb=Y?`${h}-option-${Y}`:void 0,em=null!==X&&b||K&&null!==X,ey=(0,o.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(F||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(q({type:"root/blur"}),eu.current=!1,O&&O(null),m&&m(e))},0)},[m,O,F]),ev=(0,o.useCallback)(e=>{let t=el.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==eo.current&&(eo.current=r,q({type:"root/setListFocused",listFocused:r}))},[]),ew=(0,o.useCallback)(e=>{q({type:"value/change",value:e}),eu.current=!1,A&&A(e),ea.current=e,y&&y(e),O&&O(null),ei.current?.focus()},[y,A,O]),ex=(0,o.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!ep)return;let t=eg.find(e=>e.value===Y),n=t?eg.indexOf(t):-1,r=eg[(n+1)%ep];r&&q({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!ep)return;let t=eg.find(e=>e.value===Y),n=t?eg.indexOf(t):-1,r=eg[-1===n?ep-1:(ep+n-1)%ep];r&&q({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){q({type:"root/escape"}),eu.current=!1,O&&O(null),ei.current?.focus();return}let t=e.target,n=el.current;if((n===t||n?.contains(t))&&!_.includes(e.key))return void ei.current?.focus()},[Y,eg,ep,O]),ek=(0,o.useCallback)(e=>{let t=e.currentTarget.value;q({type:"input/change",query:t}),O&&O(t)},[O]),eS=(0,o.useCallback)(()=>{q({type:"root/open",query:J?B(J,eh):""})},[eh,B,J]),eC=(0,o.useCallback)(e=>{K||(q({type:"input/focus"}),x&&x(e),$&&eS())},[K,x,$,eS]),e_=(0,o.useCallback)(()=>{eu.current=!0},[]),eR=(0,o.useCallback)(()=>{eu.current=!1},[]),eE=(0,o.useCallback)(()=>{q({type:"root/clear"}),ea.current="",y&&y(""),O&&O(null),ei.current?.focus()},[y,O]),ej=(0,o.useCallback)(()=>{q({type:"input/focus"})},[]);(0,o.useEffect)(()=>{if(V!==es.current){es.current=V,void 0!==V&&(q({type:"value/change",value:V}),ea.current=V);return}V!==ea.current&&(ea.current=V||null,q({type:"value/change",value:V||null}))},[V]),(0,o.useEffect)(()=>{!K&&ea.current&&q({type:"root/setActiveValue",value:ea.current})},[K]),(0,o.useEffect)(()=>{let e=el.current;if(!e)return;let t=eg.find(e=>e.value===Y);if(t){let n=eg.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;p(r)}}},[Y,eg]);let eO=(0,o.useMemo)(()=>{if(!b&&!s&&J)return{"aria-label":"Clear",onFocus:ej}},[s,ej,b,J]),eA=(0,o.useMemo)(()=>ef.map(e=>0===e?0:1===e||2===e?1:e-2),[ef]),eI=(0,o.useMemo)(()=>ef.map(e=>Math.max(e-1,0)),[ef]),e$=(0,o.useMemo)(()=>"object"==typeof I?I:r.sU,[I]),ez=(0,o.useCallback)(e=>{eS(),e$.onClick&&e$.onClick(e),f(()=>ei.current?.focus())},[e$,eS]),eM=(0,o.useMemo)(()=>s||L||!I?void 0:(0,i.jsx)(r.az,{"aria-hidden":em,padding:eA,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:em,fontSize:c,icon:l.D3D,mode:"bleed",padding:eI,...e$,onClick:ez})}),[s,em,c,ez,I,eA,eI,e$,L]),eN=(0,o.useMemo)(()=>null===X?null!==J?B(J,eh):"":X,[eh,X,B,J]),eP=(0,i.jsx)(r.ks,{...U,"aria-activedescendant":eb,"aria-autocomplete":"list","aria-expanded":em,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eO,customValidity:a,disabled:s,fontSize:c,icon:d,iconRight:b&&k,id:h,inputMode:"search",onChange:ek,onClear:eE,onFocus:eC,padding:ef,prefix:P,radius:T,readOnly:L,ref:ei,role:"combobox",spell
13Check:!1,suffix:W||eM,value:eN}),eT=(0,o.useCallback)(e=>{"Tab"===e.key&&Z&&ei.current?.focus()},[Z]),eL=(0,o.useMemo)(()=>0===eg.length?null:(0,i.jsx)(w,{"data-ui":"AutoComplete__results",onKeyDown:eT,padding:1,...g,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:el,role:"listbox",space:1,children:eg.map(e=>{let t=null!==Y?e.value===Y:eh===e;return(0,i.jsx)(S,{id:`${h}-option-${e.value}`,onSelect:ew,selected:t,value:e.value,children:(0,o.cloneElement)(ee(e),{disabled:b,selected:t,tabIndex:Z&&t?0:-1})},e.value)})})}),[Y,eh,eg,ew,eT,h,g,ec,Z,b,ee]),eF=(0,o.useMemo)(()=>H?H({content:eL,hidden:!em,inputElement:ei.current,onMouseEnter:e_,onMouseLeave:eR},er):0===ep?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:eL,fallbackPlacements:R,matchReferenceWidth:!0,onMouseEnter:e_,onMouseLeave:eR,open:em,overflow:"auto",placement:"bottom-start",portal:!0,radius:T,ref:er,referenceElement:ei.current,...N}),[eL,em,ep,e_,eR,N,T,H]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:ey,onFocus:ev,onKeyDown:ex,ref:en,children:[eP,eF]})});O.displayName="ForwardRef(Autocomplete)";let A=O,I=a.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,$=(0,a.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,z=(0,o.forwardRef)(function(e,t){let n,l,a,u,c,d,f,h,g,p,b,m,y=(0,s.c)(44);y[0]!==e?({children:n,maxLength:l,separator:u,space:c,...a}=e,y[0]=e,y[1]=n,y[2]=l,y[3]=a,y[4]=u,y[5]=c):(n=y[1],l=y[2],a=y[3],u=y[4],c=y[5]);let v=(0,r.KC)(void 0===c?2:c),[w,x]=(0,o.useState)(!1),k=(0,o.useRef)(null),S=(0,o.useRef)(null);y[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>x(!1),y[6]=d):d=y[6];let C=d;y[7]===Symbol.for("react.memo_cache_sentinel")?(f=()=>x(!0),y[7]=f):f=y[7];let _=f;y[8]===Symbol.for("react.memo_cache_sentinel")?(h=()=>[k.current,S.current],y[8]=h):h=y[8],(0,r.PR)(C,h),y[9]!==n?(g=o.Children.toArray(n).filter(o.isValidElement),y[9]=n,y[10]=g):g=y[10];let R=g;e:{let e=R.length;if(l&&e>l){let t,n=Math.ceil(l/2),o=Math.floor(l/2);if(y[11]!==o||y[12]!==n||y[13]!==e||y[14]!==w||y[15]!==R||y[16]!==v){let l,a,s,u,c=R.slice(0,n-1);y[18]!==o||y[19]!==n||y[20]!==e||y[21]!==R?(l=R.slice(n-1,e-o),y[18]=o,y[19]=n,y[20]=e,y[21]=R,y[22]=l):l=y[22],y[23]!==v||y[24]!==l?(a=(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:v,space:v,children:l}),y[23]=v,y[24]=l,y[25]=a):a=y[25];let d=w?C:_;y[26]!==w||y[27]!==d?(s=(0,i.jsx)($,{fontSize:1,mode:"bleed",onClick:d,padding:1,ref:k,selected:w,text:"…"}),y[26]=w,y[27]=d,y[28]=s):s=y[28],y[29]!==w||y[30]!==s||y[31]!==a?(u=(0,i.jsx)(r.AM,{constrainSize:!0,content:a,open:w,placement:"top",portal:!0,ref:S,children:s},"button"),y[29]=w,y[30]=s,y[31]=a,y[32]=u):u=y[32],t=[...c,u,...R.slice(e-o)],y[11]=o,y[12]=n,y[13]=e,y[14]=w,y[15]=R,y[16]=v,y[17]=t}else t=y[17];p=t;break e}p=R}let E=p;if(y[33]!==E||y[34]!==u||y[35]!==v){let e;y[37]!==u||y[38]!==v?(e=(e,t)=>(0,i.jsxs)(o.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:v,children:u||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t),y[37]=u,y[38]=v,y[39]=e):e=y[39],b=E.map(e),y[33]=E,y[34]=u,y[35]=v,y[36]=b}else b=y[36];return y[40]!==t||y[41]!==a||y[42]!==b?(m=(0,i.jsx)(I,{"data-ui":"Breadcrumbs",...a,ref:t,children:b}),y[40]=t,y[41]=a,y[42]=b,y[43]=m):m=y[43],m});z.displayName="ForwardRef(Breadcrumbs)";let M=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function N(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let P=(0,a.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,a.AH)`
14    @keyframes zoomIn {
15      from {
16        opacity: 0;
17        transform: scale(0.95);
18      }
19      to {
20        opacity: 1;
21        transform: scale(1);
22      }
23    }
24    @keyframes fadeIn {
25      from {
26        opacity: 0;
27      }
28      to {
29        opacity: 1;
30      }
31    }
32
33    animation: fadeIn 200ms ease-out;
34    // Animates the dialog card.
35    & > [data-ui='DialogCard'] {
36      animation: zoomIn 200ms ease-out;
37    }
38  `:(0,a.AH)``}),T=(0,a.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,L=(0,a.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,F=(0,a.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,D=(0,a.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,H=(0,a.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,a.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,W=(0,o.forwardRef)(function(e,t){let n,a,u,c,d,f,h,g,b,m,y,v,w,x=(0,s.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:S,children:C,contentRef:_,footer:R,header:E,id:j,onClickOutside:O,onClose:A,portal:I,radius:$,scheme:z,shadow:M,width:P}=e,W=(0,r.WP)(),V=I?W.elements?.[I]||null:W.element,U=(0,r.$w)().element,G=(0,r.KC)($),q=(0,r.KC)(M),Y=(0,r.KC)(P),K=(0,o.useRef)(null),Z=(0,o.useRef)(null),{isTopLayer:X}=(0,r.Z4)(),J=`${j}_label`,Q=!!A&&!1===S,ee=!!E||Q;return x[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>K.current,x[0]=n):n=x[0],(0,o.useImperativeHandle)(t,n),x[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>Z.current,x[1]=a):a=x[1],(0,o.useImperativeHandle)(_,a),x[2]!==k?(u=()=>{k&&K.current&&p(K.current)},c=[k,K],x[2]=k,x[3]=u,x[4]=c):(u=x[3],c=x[4]),(0,o.useEffect)(u,c),x[5]!==U||x[6]!==X||x[7]!==A||x[8]!==V?(d=e=>{if(!X||!A)return;let t=document.activeElement;t&&!N(U,V,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A())},x[5]=U,x[6]=X,x[7]=A,x[8]=V,x[9]=d):d=x[9],(0,r.Pm)(d),x[10]!==U||x[11]!==X||x[12]!==O||x[13]!==V?(f=X&&O&&(e=>{let t=e.target;t&&!N(U,V,t)||O()}),x[10]=U,x[11]=X,x[12]=O,x[13]=V,x[14]=f):f=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(h=()=>[K.current],x[15]=h):h=x[15],(0,r.PR)(f,h),x[16]!==E||x[17]!==J||x[18]!==A||x[19]!==Q||x[20]!==ee?(g=ee&&(0,i.jsx)(D,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:E&&(0,i.jsx)(r.EY,{id:J,size:1,weight:"semibold",children:E})}),Q&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!A,icon:l.USm,mode:"bleed",onClick:A,padding:2})})]})}),x[16]=E,x[17]=J,x[18]=A,x[19]=Q,x[20]=ee,x[21]=g):g=x[21],x[22]!==C?(b=(0,i.jsx)(H,{flex:1,ref:Z,tabIndex:-1,children:C}),x[22]=C,x[23]=b):b=x[23],x[24]!==R?(m=R&&(0,i.jsx)(B,{children:R}),x[24]=R,x[25]=m):m=x[25],x[26]!==g||x[27]!==b||x[28]!==m?(y=(0,i.jsxs)(F,{direction:"column",children:[g,b,m]}),x[26]=g,x[27]=b,x[28]=m,x[29]=y):y=x[29],x[30]!==G||x[31]!==z||x[32]!==q||x[33]!==y?(v=(0,i.jsx)(L,{radius:G,ref:K,scheme:z,shadow:q,children:y}),x[30]=G,x[31]=z,x[32]=q,x[33]=y,x[34]=v):v=x[34],x[35]!==v||x[36]!==Y?(w=(0,i.jsx)(T,{"data-ui":"DialogCard",width:Y,children:v}),x[35]=v,x[36]=Y,x[37]=w):w=x[37],w});W.displayName="ForwardRef(DialogCard)";let V=(0,o.forwardRef)(function(e,t){let n,l,a,u,c,d,f,h,g,m,y,v,w,x,k,S,C,_,R,E,j,O,A,I,$,z,T,L,F=(0,s.c)(60),D=(0,o.useContext)(M),{layer:H}=(0,r.M4)();F[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:S,cardRadius:C,cardShadow:_,children:a,contentRef:u,footer:c,header:d,id:f,onActivate:h,onClickOutside:g,onClose:m,onFocus:y,padding:R,portal:v,position:n,scheme:x,width:E,zOffset:l,animate:j,...w}=e,F[0]=e,F[1]=n,F[2]=l,F[3]=a,F[4]=u,F[5]=c,F[6]=d,F[7]=f,F[8]=h,F[9]=g,F[10]=m,F[11]=y,F[12]=v,F[13]=w,F[14]=x,F[15]=k,F[16]=S,F[17]=C,F[18]=_,F[19]=R,F[20]=E,F[21]=j):(n=F[1],l=F[2],a=F[3],u=F[4],c=F[5],d=F[6],f=F[7],h=F[8],g=F[9],m=F[10],y=F[11],v=F[12],w=F[13],x=F[14],k=F[15],S=F[16],C=F[17],_=F[18],R=F[19],E=F[20],j=F[21]);let B=void 0===k||k,V=void 0!==S&&S,U=void 0===C?4:C,G=void 0===_?3:_,q=void 0===R?3:R,Y=void 0===E?0:E,K=void 0!==j&&j,Z=n??(D.position||"fixed"),X=l??(D.zOffset||H.dialog.zOffset),J=!(0,r.jt)()&&K,Q=(0,r.WP)(),ee=v?Q.elements?.[v]||null:Q.element,et=(0,r.$w)().element,en=(0,r.KC)(U),er=(0,r.KC)(q),ei=(0,r.KC)(Z),el=(0,r.KC)(Y),eo=(0,r.KC)(X),ea=(0,o.useRef)(null),es=(0,o.useRef)(null),eu=(0,o.useRef)(null),ec=(0,o.useRef)(null);F[22]!==y?(O=e=>{y?.(e);let t=e.target,n=eu.current;return n&&t===ea.current?void b(n):n&&t===es.current?void p(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},F[22]=y,F[23]=O):O=F[23];let ed=O,ef=`${f}_label`,eh=(0,o.useRef)(void 0);F[24]!==et||F[25]!==ee?(A=()=>{eh.current&&clearTimeout(eh.current),eh.current=setTimeout(()=>{let e=document.activeElement;if(e&&!N(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&p(e);return}
38e.focus()}},0)},F[24]=et,F[25]=ee,F[26]=A):A=F[26];let eg=A;return F[27]===Symbol.for("react.memo_cache_sentinel")?(I=(0,i.jsx)("div",{ref:ea,tabIndex:0}),F[27]=I):I=F[27],F[28]!==B||F[29]!==en||F[30]!==G||F[31]!==a||F[32]!==u||F[33]!==c||F[34]!==d||F[35]!==V||F[36]!==f||F[37]!==g||F[38]!==m||F[39]!==v||F[40]!==x||F[41]!==el?($=(0,i.jsx)(W,{__unstable_autoFocus:B,__unstable_hideCloseButton:V,contentRef:u,footer:c,header:d,id:f,onClickOutside:g,onClose:m,portal:v,radius:en,ref:eu,scheme:x,shadow:G,width:el,children:a}),F[28]=B,F[29]=en,F[30]=G,F[31]=a,F[32]=u,F[33]=c,F[34]=d,F[35]=V,F[36]=f,F[37]=g,F[38]=m,F[39]=v,F[40]=x,F[41]=el,F[42]=$):$=F[42],F[43]===Symbol.for("react.memo_cache_sentinel")?(z=(0,i.jsx)("div",{ref:es,tabIndex:0}),F[43]=z):z=F[43],F[44]!==J||F[45]!==ed||F[46]!==eg||F[47]!==f||F[48]!==ef||F[49]!==h||F[50]!==er||F[51]!==ei||F[52]!==t||F[53]!==w||F[54]!==$||F[55]!==eo?(T=(0,i.jsxs)(P,{...w,$animate:J,$padding:er,$position:ei,"aria-labelledby":ef,"aria-modal":!0,"data-ui":"Dialog",id:f,onActivate:h,onClick:eg,onFocus:ed,ref:t,role:"dialog",zOffset:eo,children:[I,$,z]}),F[44]=J,F[45]=ed,F[46]=eg,F[47]=f,F[48]=ef,F[49]=h,F[50]=er,F[51]=ei,F[52]=t,F[53]=w,F[54]=$,F[55]=eo,F[56]=T):T=F[56],F[57]!==v||F[58]!==T?(L=(0,i.jsx)(r.ZL,{__unstable_name:v,children:T}),F[57]=v,F[58]=T,F[59]=L):L=F[59],L});function U(e){let t,n,r=(0,s.c)(6),{children:l,position:o,zOffset:a}=e;r[0]!==o||r[1]!==a?(t={version:0,position:o,zOffset:a},r[0]=o,r[1]=a,r[2]=t):t=r[2];let u=t;return r[3]!==l||r[4]!==u?(n=(0,i.jsx)(M.Provider,{value:u,children:l}),r[3]=l,r[4]=u,r[5]=n):n=r[5],n}V.displayName="ForwardRef(Dialog)",U.displayName="DialogProvider";let G=(0,o.forwardRef)(function(e,t){let n,l,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C,_,R,E,j,O=(0,s.c)(62),{__unstable_disableRestoreFocusOnClose:A,boundaryElement:I,button:$,id:z,menu:M,onClose:N,onOpen:P,placement:T,popoverScheme:L,portal:F,popover:D,popoverRadius:H,preventOverflow:B}=e,W=void 0!==A&&A,V=void 0===F||F,[U,G]=(0,o.useState)(!1),[Y,K]=(0,o.useState)(null),[Z,X]=(0,o.useState)(null);O[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],O[0]=n):n=O[0];let[J,Q]=(0,o.useState)(n),ee=(0,o.useRef)(U);O[1]!==P||O[2]!==U?(l=()=>{P&&U&&!ee.current&&P()},a=[P,U],O[1]=P,O[2]=U,O[3]=l,O[4]=a):(l=O[3],a=O[4]),(0,o.useEffect)(l,a),O[5]!==N||O[6]!==U?(u=()=>{N&&!U&&ee.current&&N()},c=[N,U],O[5]=N,O[6]=U,O[7]=u,O[8]=c):(u=O[7],c=O[8]),(0,o.useEffect)(u,c),O[9]!==U?(d=()=>{ee.current=U},f=[U],O[9]=U,O[10]=d,O[11]=f):(d=O[10],f=O[11]),(0,o.useEffect)(d,f),O[12]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{G(q),K(null)},O[12]=h):h=O[12];let et=h;O[13]!==U?(g=e=>{U&&e.preventDefault()},O[13]=U,O[14]=g):g=O[14];let en=g;O[15]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),G(!0),K("first");return}if("ArrowUp"===e.key){e.preventDefault(),G(!0),K("last");return}},O[15]=p):p=O[15];let er=p;O[16]!==Z||O[17]!==J?(b=e=>{let t=e.target;if(t instanceof Node&&!(Z&&(t===Z||Z.contains(t)))){for(let e of J)if(t===e||e.contains(t))return;G(!1)}},O[16]=Z,O[17]=J,O[18]=b):b=O[18];let ei=b;O[19]!==Z||O[20]!==W?(m=()=>{G(!1),!W&&Z&&Z.focus()},O[19]=Z,O[20]=W,O[21]=m):m=O[21];let el=m;O[22]!==J?(y=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of J)if(e===t||e.contains(t))return;G(!1)}},O[22]=J,O[23]=y):y=O[23];let eo=y;O[24]!==Z||O[25]!==W?(v=()=>{G(!1),!W&&Z&&Z.focus()},O[24]=Z,O[25]=W,O[26]=v):v=O[26];let ea=v;O[27]===Symbol.for("react.memo_cache_sentinel")?(w=e=>(Q(t=>t.concat([e])),()=>Q(t=>t.filter(t=>t!==e))),O[27]=w):w=O[27];let es=w;O[28]!==Z||O[29]!==eo||O[30]!==ea||O[31]!==ei||O[32]!==el||O[33]!==z||O[34]!==M||O[35]!==Y?(x=M&&(0,o.cloneElement)(M,{"aria-labelledby":z,onBlurCapture:eo,onClickOutside:ei,onEscape:el,onItemClick:ea,originElement:Z,registerElement:es,shouldFocus:Y}),O[28]=Z,O[29]=eo,O[30]=ea,O[31]=ei,O[32]=el,O[33]=z,O[34]=M,O[35]=Y,O[36]=x):x=O[36];let eu=x;O[37]!==$||O[38]!==en||O[39]!==z||O[40]!==U?(k=$&&(0,o.cloneElement)($,{"data-ui":"MenuButton",id:z,onClick:et,onKeyDown:er,onMouseDown:en,"aria-haspopup":!0,"aria-expanded":U,ref:X,selected:$.props.selected??U}),O[37]=$,O[38]=en,O[39]=z,O[40]=U,O[41]=k):k=O[41];let ec=k;O[42]!==Z?(S=()=>Z,C=[Z],O[42]=Z,O[43]=S,O[44]=C):(S=O[43],C=O[44]),(0,o.useImperativeHandle)(t,S,C),O[45]!==D?(_=D||{},O[45]=D,O[46]=_):_=O[46],O[47]!==I||O[48]!==T||O[49]!==H||O[50]!==L||O[51]!==V||O[52]!==B||O[53]!==_?(R={boundaryElement:I,overflow:"auto",placement:T,portal:V,preventOverflow:B,radius:H,scheme:L,..._},O[47]=I,O[48]=T,O[49]=H,O[50]=L,O[51]=V,O[52]=B,O[53]=_,O[54]=R):R=O[54];let ed=R;return O[55]!==ec?(E=ec||(0,i.jsx)(i.Fragment,{}
38),O[55]=ec,O[56]=E):E=O[56],O[57]!==eu||O[58]!==U||O[59]!==ed||O[60]!==E?(j=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...ed,content:eu,open:U,children:E}),O[57]=eu,O[58]=U,O[59]=ed,O[60]=E,O[61]=j):j=O[61],j});function q(e){return!e}G.displayName="ForwardRef(MenuButton)";let Y=(0,a.i7)`
39  0% {
40    background-position: 100%;
41  }
42  100% {
43    background-position: -100%;
44  }
45`,K=(0,a.AH)`
46  background-image: linear-gradient(
47    to right,
48    var(--card-skeleton-color-from),
49    var(--card-skeleton-color-to),
50    var(--card-skeleton-color-from),
51    var(--card-skeleton-color-from),
52    var(--card-skeleton-color-from)
53  );
54  background-position: 100%;
55  background-size: 200% 100%;
56  background-attachment: fixed;
57  animation-name: ${Y};
58  animation-timing-function: ease-in-out;
59  animation-iteration-count: infinite;
60  animation-duration: 2000ms;
61`,Z=(0,a.AH)`
62  opacity: ${({$visible:e})=>+!!e};
63  transition: opacity 200ms ease-in;
64
65  @media screen and (prefers-reduced-motion: no-preference) {
66    ${({$animated:e})=>e?K:(0,a.AH)`
67            background-color: var(--card-skeleton-color-from);
68          `}
69  }
70
71  @media screen and (prefers-reduced-motion: reduce) {
72    background-color: var(--card-skeleton-color-from);
73  }
74`,X=(0,a.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,Z),J=(0,o.forwardRef)(function(e,t){let n,l,a,u,c,d,f,h=(0,s.c)(14);h[0]!==e?({animated:u,delay:n,radius:l,...a}=e,h[0]=e,h[1]=n,h[2]=l,h[3]=a,h[4]=u):(n=h[1],l=h[2],a=h[3],u=h[4]);let g=void 0!==u&&u,[p,b]=(0,o.useState)(!n);h[5]!==n?(c=()=>{if(!n)return b(!0);let e=setTimeout(()=>{b(!0)},n);return()=>{clearTimeout(e)}},d=[n],h[5]=n,h[6]=c,h[7]=d):(c=h[6],d=h[7]),(0,o.useEffect)(c,d);let m=(0,r.KC)(l);return h[8]!==g||h[9]!==t||h[10]!==a||h[11]!==m||h[12]!==p?(f=(0,i.jsx)(X,{...a,$animated:g,$radius:m,$visible:p,ref:t}),h[8]=g,h[9]=t,h[10]=a,h[11]=m,h[12]=p,h[13]=f):f=h[13],f});J.displayName="ForwardRef(Skeleton)";let Q=(0,a.I4)(J).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:l}=(0,u.JW)(e.theme),o=i[n];return(0,r.U1)(l,t,e=>{let t=o.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,o.forwardRef)(function(e,t){let n,l,o,a=(0,s.c)(7);a[0]!==e?({size:l,...n}=e,a[0]=e,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let u=(0,r.KC)(void 0===l?2:l);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"text"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o});ee.displayName="ForwardRef(TextSkeleton)",(0,o.forwardRef)(function(e,t){let n,l,o,a=(0,s.c)(7);a[0]!==e?({size:l,...n}=e,a[0]=e,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let u=(0,r.KC)(void 0===l?2:l);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"label"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(LabelSkeleton)",(0,o.forwardRef)(function(e,t){let n,l,o,a=(0,s.c)(7);a[0]!==e?({size:l,...n}=e,a[0]=e,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let u=(0,r.KC)(void 0===l?2:l);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"heading"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(HeadingSkeleton)",(0,o.forwardRef)(function(e,t){let n,l,o,a=(0,s.c)(7);a[0]!==e?({size:l,...n}=e,a[0]=e,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let u=(0,r.KC)(void 0===l?2:l);return a[3]!==u||a[4]!==t||a[5]!==n?(o=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"code"}),a[3]=u,a[4]=t,a[5]=n,a[6]=o):o=a[6],o}).displayName="ForwardRef(CodeSkeleton)";let et=(0,o.forwardRef)(function(e,t){let n,l,o,a=(0,s.c)(9);a[0]!==e?({flex:n,...l}=e,a[0]=e,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return a[3]!==n||a[4]!==e.children||a[5]!==t||a[6]!==l||a[7]!==u?(o=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...l,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),a[3]=n,a[4]=e.children,a[5]=t,a[6]=l,a[7]=u,a[8]=o):o=a[8],o});et.displayName="ForwardRef(TabPanel)";let en={error:"critical",warning:"caution",success:"positive",info:"neutral"},er={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,a.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,el=(0,a.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,eo=a.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,ea=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,es=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,eu={error:"alert",warning:"alert",success:"alert",info:"alert"};function ec(e){let t,n,o,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C,_=(0,s.c)(50);_[0]!==e?({closable:t,description:n,duration:o,onClose:a,radius:d,title:f,status:c,updatedAt:h,...u}=e,_[0]=e,_[1]=t,_[2]=n,_[3]=o,_[4]=a,_[5]=u,_[6]=c,_[7]=d,_[8]=f,_[9]=h):(t=_[1],n=_[2],o=_[3],a=_[4],u=_[5],c=_[6],d=_[7],f=_[8],h=_[9]);let R=void 0===d?3:d,E=c?en[c]:"default",j=c?er[c]:"default",O=c?eu[c]:"status",A=.26*!(0,r.jt)();_[10]!==A?(g=A?{type:"spring",visualDuration:A,bounce:.25}:{duration:0},_[10]=A,_[11]=g):g=_[11];let I=g,$=o&&isFinite(o)&&o<20736e5;_[12]===Symbol.for("react.memo_cache_sentinel")?(p=["hidden","initial"],_[12]=p):p=_[12];let z=p;_[13]===Symbol.for("react.memo_cache_sentinel")?(b=["visible","slideIn"],_[13]=b):b=_[13];let M=b;_[14]===Symbol.for("react.memo_cache_sentinel")?(m=["hidden","slideOut"],_[14]=m):m=_[14];let N=m,P=$?"":void 0;return _[15]!==f?(y=f&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:f}),_[15]=f,_[16]=y):y=_[16],_[17]!==n||_[18]!==I?(v=n&&(0,i.jsx)(ep,{muted:!0,size:1,variants:ef,transition:I,children:n}),_[17]=n,_[18]=I,_[19]=v):v=_[19],_[20]!==y||_[21]!==v?(w=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[y,v]})}),_[20]=y,_[21]=v,_[22]=w):w=_[22],_[23]!==j||_[24]!==t||_[25]!==a?(x=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:l.USm,mode:"bleed",padding:2,tone:j,onClick:a,style:{verticalAlign:"top"}})}),_[23]=j,_[24]=t,_[25]=a,_[26]=x):x=_[26],_[27]!==w||_[28]!==x||_[29]!==I?(k=(0,i.jsxs)(eg,{align:"flex-start",variants:ef,transition:I,children:[w,x]}),_[27]=w,_[28]=x,_[29]=I,_[30]=k):k=_[30],_[31]!==E||_[32]!==o||_[33]!==$||_[34]!==a||_[35]!==R||_[36]!==I||_[37]!==h||_[38]!==A?(S=$&&(0,i.jsxs)(eb,{variants:ef,transition:I,children:[(0,i.jsx)(ea,{tone:E,radius:R}),(0,i.jsx)(em,{tone:E,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:A,duration:o/1e3,ease:"linear"},onAnimationComplete:a},`progress-${h}
74`)]}),_[31]=E,_[32]=o,_[33]=$,_[34]=a,_[35]=R,_[36]=I,_[37]=h,_[38]=A,_[39]=S):S=_[39],_[40]!==E||_[41]!==R||_[42]!==u||_[43]!==O||_[44]!==k||_[45]!==S||_[46]!==P||_[47]!==I||_[48]!==A?(C=(0,i.jsxs)(eh,{"data-ui":"Toast",role:O,...u,"data-has-duration":P,custom:A,radius:R,shadow:2,tone:E,forwardedAs:"li",layout:"position",variants:ed,initial:z,animate:M,exit:N,transition:I,children:[k,S]}),_[40]=E,_[41]=R,_[42]=u,_[43]=O,_[44]=k,_[45]=S,_[46]=P,_[47]=I,_[48]=A,_[49]=C):C=_[49],C}ec.displayName="Toast";let ed={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},ef={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},eh=c.P.create(el),eg=c.P.create(r.so),ep=c.P.create(r.EY),eb=c.P.create(eo),em=c.P.create(es);function ey(){return!1}function ev(){return!0}let ew=()=>()=>{},ex=(0,r.bz)("@sanity/ui/context/toast",null);function ek(e){let t,n,l=(0,s.c)(9),{children:o,padding:a,paddingX:u,paddingY:c,gap:d}=e,f=void 0===a?4:a,h=void 0===d?3:d,{zIndex:g}=(0,r.Z4)();return l[0]!==g?(t={zIndex:g},l[0]=g,l[1]=t):t=l[1],l[2]!==o||l[3]!==h||l[4]!==f||l[5]!==u||l[6]!==c||l[7]!==t?(n=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:f,paddingX:u,paddingY:c,gap:h,columns:1,style:t,children:o}),l[2]=o,l[3]=h,l[4]=f,l[5]=u,l[6]=c,l[7]=t,l[8]=n):n=l[8],n}ek.displayName="ToastLayer";let eS=(0,a.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eC=0;function e_(e){let t,n,l,a,u=(0,s.c)(13),{children:c,padding:f,paddingX:h,paddingY:g,gap:p,zOffset:b}=e,m=void 0===b?1:b;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],u[0]=t):t=u[0];let[y,v]=(0,o.useState)(t),w=(0,o.useSyncExternalStore)(ew,ev,ey);u[1]===Symbol.for("react.memo_cache_sentinel")?(n={version:0,push:e=>{let t=e.id||String(eC++),n=e.duration||5e3;return(0,o.startTransition)(()=>{v(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,o.startTransition)(()=>v(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},u[1]=n):n=u[1];let x=n;return u[2]!==p||u[3]!==w||u[4]!==f||u[5]!==h||u[6]!==g||u[7]!==y||u[8]!==m?(l=w&&(0,i.jsx)(r.XS,{zOffset:m,children:(0,i.jsx)(ek,{padding:f,paddingX:h,paddingY:g,gap:p,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:y.map(eR)})})}),u[2]=p,u[3]=w,u[4]=f,u[5]=h,u[6]=g,u[7]=y,u[8]=m,u[9]=l):l=u[9],u[10]!==c||u[11]!==l?(a=(0,i.jsxs)(ex.Provider,{value:x,children:[c,l]}),u[10]=c,u[11]=l,u[12]=a):a=u[12],a}function eR(e){let{dismiss:t,id:n,params:r,updatedAt:l}=e;return(0,i.jsx)(ec,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:l},n)}function eE(){let e=(0,o.useContext)(ex);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function ej(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}e_.displayName="ToastProvider";let eO=(0,r.bz)("@sanity/ui/context/tree",null);function eA(){let e=(0,o.useContext)(eO);if(!e)throw Error("Tree: missing context value");return e}(0,o.memo)((0,o.forwardRef)(function(e,t){let n,l,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C,_,R,E=(0,s.c)(37);E[0]!==e?({children:n,space:u,onFocus:l,...a}=e,E[0]=e,E[1]=n,E[2]=l,E[3]=a,E[4]=u):(n=E[1],l=E[2],a=E[3],u=E[4]);let j=void 0===u?1:u,O=(0,o.useRef)(null),[A,I]=(0,o.useState)(null),$=(0,o.useRef)(A);E[5]===Symbol.for("react.memo_cache_sentinel")?(c=[],E[5]=c):c=E[5];let z=c;E[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],E[6]=d):d=E[6];let[M,N]=(0,o.useState)(d);E[7]===Symbol.for("react.memo_cache_sentinel")?(f={},E[7]=f):f=E[7];let[P,T]=(0,o.useState)(f),L=(0,o.useRef)(P);E[8]===Symbol.for("react.memo_cache_sentinel")?(h=()=>O.current,E[8]=h):h=E[8],(0,o.useImperativeHandle)(t,h),E[9]!==A?(g=()=>{$.current=A},p=[A],E[9]=A,E[10]=g,E[11]=p):(g=E[10],p=E[11]),(0,o.useEffect)(g,p),E[12]!==P?(b=()=>{L.current=P},m=[P],E[12]=P,E[13]=b,E[14]=m):(b=E[13],m=E[14]),(0,o.useEffect)(b,m),E[15]===Symbol.for("react.memo_cache_sentinel")?(y=(e,t,n,r)=>(T(r=>({...r,[t]:{element:e,expanded:n}})),r&&I(e),()=>{T(e=>{let n={...e};return delete n[t],n})}),E[15]=y):y=E[15];let F=y;E[16]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t)=>{T(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},E[16]=v):v=E[16];let D=v,H=A||M[0]||null;E[17]!==j||E[18]!==P||E[19]!==H?(w={version:0,focusedElement:H,level:0,path:z,registerItem:F,setExpanded:D,setFocusedElement:I,space:j,state:P},E[17]=j,E[18]=P,E[19]=H,E[20]=w):w=E[20];let B=w;E[21]!==M?(x=e=>{if($.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),l=t.length;for(let t=1;t<l;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let l=[],o=!0;for(let t=0;t<r.length;t+=1){l.push(r[t]);let n=l.join("/");if(!e[n]?.expanded){o=!1;break}}if(o)return i[t]}return null}(L.current,M,$.current);t&&(ej(t),I(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),l=i.length;for(let t=l-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let l=[],o=!0;for(let t=0;t<r.length;t+=1){l.push(r[t]);let n=l.join("/");if(!e[n]?.expanded){o=!1;break}}if(o)return i[t]}return null}(L.current,M,$.current);t&&(ej(t),I(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=$.current.getAttribute("data-tree-key");if(!t)return;let n=L.current[t];if(!n)return;if(n.expanded)T(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&L.current[n];r&&(r.element.focus(),I(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=$.current.getAttribute("data-tree-key");if(!t)return;L.current[t]?.expanded||T(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},E[21]=M,E[22]=x):x=E[22];let W=x;
74E[23]!==l?(k=e=>{I(e.target),l?.(e)},E[23]=l,E[24]=k):k=E[24];let V=k;return E[25]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{O.current&&N(Array.from(O.current.querySelectorAll('[data-ui="TreeItem"]')))},E[25]=S):S=E[25],E[26]!==n?(C=[n],E[26]=n,E[27]=C):C=E[27],(0,o.useEffect)(S,C),E[28]!==n||E[29]!==V||E[30]!==W||E[31]!==a||E[32]!==j?(_=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...a,onFocus:V,onKeyDown:W,ref:O,role:"tree",space:j,children:n}),E[28]=n,E[29]=V,E[30]=W,E[31]=a,E[32]=j,E[33]=_):_=E[33],E[34]!==B||E[35]!==_?(R=(0,i.jsx)(eO.Provider,{value:B,children:_}),E[34]=B,E[35]=_,E[36]=R):R=E[36],R})).displayName="Memo(ForwardRef(Tree))";let eI=(0,o.memo)(function(e){let t,n,l,o,a=(0,s.c)(9);a[0]!==e?({children:t,expanded:l,...n}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=l):(t=a[1],n=a[2],l=a[3]);let u=void 0!==l&&l,c=eA(),d=!u;return a[4]!==t||a[5]!==n||a[6]!==d||a[7]!==c.space?(o=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),a[4]=t,a[5]=n,a[6]=d,a[7]=c.space,a[8]=o):o=a[8],o}),e$=(0,o.memo)(a.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,a.AH)`
75    &[role='none'] > [role='treeitem'] {
76      outline: none;
77      cursor: default;
78      border-radius: 3px;
79
80      background-color: var(--card-bg-color);
81      color: var(--treeitem-fg-color);
82
83      &:focus {
84        position: relative;
85      }
86    }
87
88    &[role='treeitem'] {
89      outline: none;
90
91      & > div {
92        cursor: default;
93        border-radius: 3px;
94
95        background-color: var(--card-bg-color);
96        color: var(--treeitem-fg-color);
97      }
98
99      &:focus > div {
100        position: relative;
101      }
102    }
103  `},function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,a.AH)`
104    &[role='none'] {
105      & > [role='treeitem'] {
106        ${(0,r.g5)(t,n.enabled)}
107      }
108
109      &[data-selected] > [role='treeitem'] {
110        ${(0,r.g5)(t,n.pressed)}
111      }
112
113      @media (hover: hover) {
114        &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
115          ${(0,r.g5)(t,n.hovered)}
116        }
117
118        & > [role='treeitem']:focus {
119          ${(0,r.g5)(t,n.selected)}
120        }
121      }
122    }
123
124    &[role='treeitem'] {
125      & > [data-ui='TreeItem__box'] {
126        ${(0,r.g5)(t,n.enabled)}
127      }
128
129      &[data-selected] > [data-ui='TreeItem__box'] {
130        ${(0,r.g5)(t,n.pressed)}
131      }
132
133      @media (hover: hover) {
134        &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
135          ${(0,r.g5)(t,n.hovered)}
136        }
137
138        &:focus > [data-ui='TreeItem__box'] {
139          ${(0,r.g5)(t,n.selected)}
140        }
141      }
142    }
143  `})),ez=(0,a.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,a.AH)`
144    padding-left: ${(0,r.D0)(n[2]*t)};
145
146    &[data-as='a'] {
147      text-decoration: none;
148    }
149  `}),eM=(0,a.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,o.memo)(function(e){let{children:t,expanded:n=!1,fontSize:a=1,href:s,icon:u,id:c,linkAs:d,muted:f,onClick:h,padding:g=2,selected:p=!1,space:b=2,text:m,weight:y,...v}=e,w=(0,o.useRef)(null),x=(0,o.useRef)(null),k=eA(),{path:S,registerItem:C,setExpanded:_,setFocusedElement:R}=k,E=(0,o.useId)(),j=c||E,O=(0,o.useMemo)(()=>S.concat([j||""]),[j,S]),A=O.join("/"),I=k.state[A],$=k.focusedElement===w.current,z=I?.expanded===void 0?n:I?.expanded||!1,M=k.focusedElement&&k.focusedElement===w.current?0:-1,N=(0,o.useMemo)(()=>({...k,level:k.level+1,path:O}),[O,k]),P=(0,o.useCallback)(e=>{h&&h(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),_(A,!z),R(w.current))},[z,A,h,_,R]),T=(0,o.useCallback)(e=>{$&&"Enter"===e.key&&(x.current||w.current)?.click()},[$]);(0,o.useEffect)(()=>{if(w.current)return C(w.current,O.join("/"),z,p)},[z,O,C,p]);let L=(0,i.jsxs)(r.so,{padding:g,children:[(0,i.jsxs)(r.az,{marginRight:b,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:f,size:a,weight:y,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(eM,{muted:f,size:a,weight:y,children:(0,i.jsx)(l.nVd,{style:{transform:z?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:f,size:a,textOverflow:"ellipsis",weight:y,children:m})})]});return s?(0,i.jsxs)(e$,{"data-selected":p?"":void 0,"data-tree-id":j,"data-tree-key":A,"data-ui":"TreeItem",...v,onClick:P,ref:w,role:"none",children:[(0,i.jsx)(ez,{$level:k.level,"aria-expanded":z,as:d,"data-ui":"TreeItem__box",href:s,ref:x,role:"treeitem",tabIndex:M,children:L}),(0,i.jsx)(eO.Provider,{value:N,children:t&&(0,i.jsx)(eI,{hidden:!z,children:t})})]}):(0,i.jsxs)(e$,{"data-selected":p?"":void 0,"data-ui":"TreeItem","data-tree-id":j,"data-tree-key":A,...v,"aria-expanded":z,onClick:P,onKeyDown:T,ref:w,role:"treeitem",tabIndex:M,children:[(0,i.jsx)(ez,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:L}),(0,i.jsx)(eO.Provider,{value:N,children:t&&(0,i.jsx)(eI,{expanded:z,children:t})})]})}).displayName="Memo(TreeItem)"},92251:(e,t,n)=>{var r=n(41864),i=n(22405),l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
1497f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(l,r).replace(o,"")}}}]);

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.