PageSourceSearch

https://www.simberobotics.com/_next/static/chunks/624-3c9b7911f704c72b.js

js simberobotics.com collected 2026-10-01 11:40:09 UTC 195,795 bytes, 149 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[624],{59294:(e,t,r)=>{"use strict";r.d(t,{tb:()=>U});var n,i,o=[],l="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:l}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=l),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(n||(n={}));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,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,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(),r=t.width,n=t.height;return!r&&!n}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},h=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.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,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new u((r?t:e)||0,(r?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 r=getComputedStyle(e),n=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===r.boxSizing,o=y.test(r.writingMode||""),l=!n&&m.test(r.overflowY||""),a=!n&&m.test(r.overflowX||""),u=n?0:w(r.paddingTop),h=n?0:w(r.paddingRight),g=n?0:w(r.paddingBottom),p=n?0:w(r.paddingLeft),S=n?0:w(r.borderTopWidth),C=n?0:w(r.borderRightWidth),E=n?0:w(r.borderBottomWidth),_=n?0:w(r.borderLeftWidth),j=p+h,R=u+g,A=_+C,I=S+E,O=a?e.offsetHeight-I-e.clientHeight:0,z=l?e.offsetWidth-A-e.clientWidth:0,M=n?n.width:w(r.width)-(i?j+A:0)-z,P=n?n.height:w(r.height)-(i?R+I:0)-O,$=M+j+z+A,T=P+R+O+I,N=s({devicePixelContentBoxSize:x(Math.round(M*devicePixelRatio),Math.round(P*devicePixelRatio),o),borderBoxSize:x($,T,o),contentBoxSize:x(M,P,o),contentRect:new c(p,u,M,P)});return b.set(e,N),N},C=function(e,t,r){var i=S(e,r),o=i.borderBoxSize,l=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case n.DEVICE_PIXEL_CONTENT_BOX:return a;case n.BORDER_BOX:return o;default:return l}},E=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])},_=function(e){if(f(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},j=function(){var e=1/0,t=[];o.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new E(t.target),i=_(t.target);n.push(r),t.lastReportedSize=C(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){r.callback.call(r.observer,n,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var r=0;r<t.length;r++)(0,t[r])();return e},R=function(e){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(_(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},A=function(){var e=0;for(R(0);o.some(function(e){return e.activeTargets.length>0});)R(e=j());return o.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},I=[],O=function(e){if(!i){var t=0,r=document.createTextNode("");
1new MutationObserver(function(){return I.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),i=function(){r.textContent="".concat(t?t--:t++)}}I.push(e),i()},z=function(e){O(function(){requestAnimationFrame(e)})},M=0,P={attributes:!0,characterData:!0,childList:!0,subtree:!0},$=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],T=function(e){return void 0===e&&(e=0),Date.now()+e},N=!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),!N){N=!0;var r=T(e);z(function(){var n=!1;try{n=A()}finally{if(N=!1,e=r-T(),!M)return;n?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,P)};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(),$.forEach(function(t){return p.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),$.forEach(function(t){return p.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),F=function(e){!M&&e>0&&L.start(),(M+=e)||L.stop()},H=function(){function e(e,t){this.target=e,this.observedBox=t||n.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}(),D=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,W=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return -1},V=function(){function e(){}return e.connect=function(e,t){var r=new D(e,t);B.set(e,r)},e.observe=function(e,t,r){var n=B.get(e),i=0===n.observationTargets.length;0>W(n.observationTargets,t)&&(i&&o.push(n),n.observationTargets.push(new H(t,r&&r.box)),F(1),L.schedule())},e.unobserve=function(e,t){var r=B.get(e),n=W(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&o.splice(o.indexOf(r),1),r.observationTargets.splice(n,1),F(-1))},e.disconnect=function(e){var t=this,r=B.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.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}()},62089:(e,t,r)=>{"use strict";var n,i,o=Object.create,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))c.call(e,i)||i===r||l(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},f={};((e,t)=>
1{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(f,{$dispatcherGuard:()=>C,$makeReadOnly:()=>_,$reset:()=>E,$structuralCheck:()=>O,c:()=>v,clearRenderCounterRegistry:()=>R,renderCounterRegistry:()=>j,useRenderCounter:()=>A}),e.exports=d(l({},"__esModule",{value:!0}),f);var h=((e,t,r)=>(r=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)))(r(12115)),{useRef:g,useEffect:p,isValidElement:b}=h,m=null!=(n=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?n: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 r=0;r<e;r++)t[r]=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(e){for(let t=0;t<e.length;t++)e[t]=y}function _(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var j=new Map;function R(){for(let e of j.values())e.forEach(e=>{e.count=0})}function A(e){let t=g(null);null!=t.current&&(t.current.count+=1),p(()=>
1{if(null==t.current){let r;let n={count:0};null==(r=j.get(e))&&(r=new Set,j.set(e,r)),r.add(n),t.current=n}return()=>{null!==t.current&&function(e,t){let r=j.get(e);null!=r&&r.delete(t)}(e,t.current)}})}var I=new Set;function O(e,t,r,n,i,o){function l(e,t,l,a){let s=`${n}:${o} [${i}] ${r}${l} changed from ${e} to ${t} at depth ${a}`;I.has(s)||(I.add(s),console.error(s))}!function e(t,r,n,i){if(!(i>2)&&t!==r){if(typeof t!=typeof r)l(`type ${typeof t}`,`type ${typeof r}`,n,i);else if("object"==typeof t){let o=Array.isArray(t),a=Array.isArray(r);if(null===t&&null!==r)l("null",`type ${typeof r}`,n,i);else if(null===r)l(`type ${typeof t}`,"null",n,i);else if(t instanceof Map){if(r instanceof Map){if(t.size!==r.size)l(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,i);else for(let[o,a]of t)r.has(o)?e(a,r.get(o),`${n}.get(${o})`,i+1):l(`Map instance with key ${o}`,`Map instance without key ${o}`,n,i)}else l("Map instance","other value",n,i)}else if(r instanceof Map)l("other value","Map instance",n,i);else if(t instanceof Set){if(r instanceof Set){if(t.size!==r.size)l(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,i);else for(let e of r)t.has(e)||l(`Set instance without element ${e}`,`Set instance with element ${e}`,n,i)}else l("Set instance","other value",n,i)}else if(r instanceof Set)l("other value","Set instance",n,i);else if(o||a){if(o!==a)l(`type ${o?"array":"object"}`,`type ${a?"array":"object"}`,n,i);else if(t.length!==r.length)l(`array with length ${t.length}`,`array with length ${r.length}`,n,i);else for(let o=0;o<t.length;o++)e(t[o],r[o],`${n}[${o}]`,i+1)}else if(b(t)||b(r))b(t)!==b(r)?l(`type ${b(t)?"React element":"object"}`,`type ${b(r)?"React element":"object"}`,n,i):t.type!==r.type?l(`React element of type ${t.type}`,`React element of type ${r.type}`,n,i):e(t.props,r.props,`[props of ${n}]`,i+1);else{for(let e in r)e in t||l(`object without key ${e}`,`object with key ${e}`,n,i);for(let o in t)o in r?e(t[o],r[o],`${n}.${o}`,i+1):l(`object with key ${o}`,`object without key ${o}`,n,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&l(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,i):t!==r&&l(t,r,n,i)}}}(e,t,"",0)}},41933:(e,t,r)=>{var n=r(62673).Symbol;e.exports=n},58812:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},35652:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},18622:e=>{e.exports=function(e){return e.split("")}},78313:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},43600:(e,t,r)=>{var n=r(41933),i=r(8273),o=r(96798),l=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?i(e):o(e)}},22516:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},91470:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},34892:(e,t,r)=>{var n=r(41933),i=r(58812),o=r(3293),l=r(83480),a=1/0,s=n?n.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(l(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}},85164:(e,t,r)=>{var n=r(91470);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},84373:(e,t,r)=>{var n=r(85164),i=r(65630),o=r(40394),l=r(80756);e.exports=function(e){return function(t){var r=i(t=l(t))?o(t):void 0,a=r?r[0]:t.charAt(0),s=r?n(r,1).join(""):t.slice(1);return a[e]()+s}}},72803:(e,t,r)=>{var n=r(35652),i=r(12466),o=r(24909),l=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(l,"")),e,"")}}},43999:(e,t,r)=>{var n=r(22516)({À:"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"});e.exports=n},34952:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8273:(e,t,r)=>{var n=r(41933),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=l.call(e);return n&&(t?e[a]=r:delete e[a]),i}},65630:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},43278: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)}},96798:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62673:(e,t,r)=>{var n=r(34952),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},40394:(e,t,r)=>{var n=r(18622),i=r(65630),o=r(97490);e.exports=function(e){return i(e)?o(e):n(e)}},97490:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",l="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+r+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,l].join("|")+")"+s+a+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,l,"["+t+"]"].join("|")+")"+(s+a+u),"g");e.exports=function(e){return e.match(c)||[]}},7349:e=>{var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\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",l="['’]",a="["+o+"]",s="["+n+"]",u="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+s+"|"+u+")",g="(?:"+f+"|"+u+")",p="(?:"+l+"(?:d|ll|m|re|s|t|ve))?",b="(?:"+l+"(?: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="(?:"+["["+r+"]",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)||[]}},12466:(e,t,r)=>{var n=r(43999),i=r(80756),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(l,"")}},3293:e=>{var t=Array.isArray;e.exports=t},34480:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},83480:(e,t,r)=>{var n=r(43600),i=r(34480);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},78592:(e,t,r)=>{var n=r(72803),i=r(94994),o=n(function(e,t,r){return e+(r?" ":"")+i(t)});e.exports=o},80756:(e,t,r)=>{var n=r(34892);e.exports=function(e){return null==e?"":n(e)}},94994:(e,t,r)=>{var n=r(84373)("toUpperCase");e.exports=n},24909:(e,t,r)=>{var n=r(78313),i=r(43278),o=r(80756),l=r(7349);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?l(e):n(e):e.match(t)||[]}},66531:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case l:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case p:case g:case s:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=s,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=p,t.Memo=g,t.Portal=i,t.Profiler=a,t.StrictMode=l,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return m(e)===u},t.isContextProvider=function(e){return m(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return m(e)===d},t.isFragment=function(e){return m(e)===o},t.isLazy=function(e){return m(e)===p},t.isMemo=function(e){return m(e)===g},t.isPortal=function(e){return m(e)===i},t.isProfiler=function(e){return m(e)===a},t.isStrictMode=function(e){return m(e)===l},t.isSuspense=function(e){return m(e)===f},t.isSuspenseList=function(e){return m(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===l||e===f||e===h||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=m},40583:(e,t,r)=>{"use strict";e.exports=r(66531)},40223:(e,t,r)=>{"use strict";r.d(t,{$:()=>g});var n,i=r(6476),o=r(1444),l=1,a={};function s(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=l++;return a[t]=!0,n||(n=Promise.resolve()),n.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 r=f.delegate;return((null==r?void 0:r.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,r){var n=e.call(this,t,r)||this;
1return n.scheduler=t,n.work=r,n}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=f.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,o=t.actions;null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(f.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(o.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,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(r(10936).q))(h)},59725:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),s=0;s<o.length;s++){var u=o[s];if(!a(u))return!1;var c=e[u],d=t[u];if(!1===(i=r?r.call(n,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},16873:(e,t,r)=>{"use strict";r.d(t,{E:()=>tw,ID:()=>e9,NP:()=>tu,DU:()=>ty,AH:()=>tg,i7:()=>tv,I4:()=>tb,DP:()=>ts});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=r(12115),l=r(59725),a=r.n(l),s="-ms-",u="-moz-",c="-webkit-",d="comm",f="rule",h="decl",g="@keyframes",p=Math.abs,b=String.fromCharCode,m=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function w(e,t,r){return e.indexOf(t,r)}function x(e,t){return 0|e.charCodeAt(t)}function k(e,t,r){return e.slice(t,r)}function S(e){return e.length}function C(e,t){return t.push(e),e}function E(e,t){return e.filter(function(e){return!y(e,t)})}var _=1,j=1,R=0,A=0,I=0,O="";function z(e,t,r,n,i,o,l,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_,column:j,length:l,return:"",siblings:a}}function M(e,t){return m(z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function P(e){for(;e.root;)e=M(e.root,{children:[e]});C(e,e.siblings)}function $(){return I=A<R?x(O,A++):0,j++,10===I&&(j=1,_++),I}function T(){return x(O,A)}function N(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 L(e){var t,r;return(t=A-1,r=function e(t){for(;$();)switch(I){case t:return A;case 34:case 39:34!==t&&39!==t&&e(I);break;case 40:41===t&&e(t);break;case 92:$()}return A}(91===e?e+2:40===e?e+1:e),k(O,t,r)).trim()}function F(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function H(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case d:return"";case g:return e.return=e.value+"{"+F(e.children,n)+"}";case f:if(!S(e.value=e.props.join(",")))return""}return S(r=F(e.children,n))?e.return=e.value+"{"+r+"}":""}function D(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,r,n){var i;switch(i=r,45^x(t,0)?(((i<<2^x(t,0))<<2^x(t,1))<<2^x(t,2))<<2^x(t,3):0){case 5103:return c+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 4789:return u+t+t;
vendor: 9,711 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+u+t+s+t+t;case 5936:switch(x(t,r+11)){case 114:return c+t+s+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+s+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+s+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+s+t+t;case 6165:return c+t+s+"flex-"+t+t;case 5187:return c+t+v(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+s+"flex-$1$2")+t;case 5443:return c+t+s+"flex-item-"+v(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":s+"grid-row-"+v(t,/flex-|-self/g,""))+t;case 4675:return c+t+s+"flex-line-pack"+v(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+s+v(t,"shrink","negative")+t;case 5292:return c+t+s+v(t,"basis","preferred-size")+t;case 6060:return c+"box-"+v(t,"-grow","")+c+t+s+v(t,"grow","positive")+t;case 4554:return c+v(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+s+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!y(t,/flex-|baseline/))return s+"grid-column-align"+k(t,r)+t;break;case 2592:case 3360:return s+v(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,y(e.props,/grid-\w+-end/)}))return~w(t+(n=n[r].value),"span",0)?t:s+v(t,"-start","")+t+s+"grid-row-span:"+(~w(n,"span",0)?y(n,/\d+/):+y(n,/\d+/)-+y(t,/\d+/))+";";return s+v(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return y(e.props,/grid-\w+-start/)})?t:s+v(v(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,c+"$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(S(t)-1-r>6)switch(x(t,r+1)){case 109:if(45!==x(t,r+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==x(t,r+3)?"$3":"$2-$3"))+t;case 115:return~w(t,"stretch",0)?e(v(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return v(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,o,l,a){return s+r+":"+n+a+(i?s+r+"-span:"+(o?l:+l-+n)+a:"")+t});case 4949:if(121===x(t,r+6))return v(t,":",":"+c)+t;break;case 6444:switch(x(t,45===x(t,14)?18:11)){case 120:return v(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===x(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+s+"$2box$3")+t;case 100:return v(t,":",":"+s)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case g:return F([M(e,{value:v(e.value,"@","@"+c)})],n);case f:if(e.length){var i,o;return i=r=e.props,o=function(t){switch(y(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(M(e,{props:[v(t,/:(read-\w+)/,":"+u+"$1")]})),P(M(e,{props:[t]})),m(e,{props:E(r,n)});break;case"::placeholder":P(M(e,{props:[v(t,/:(plac\w+)/,":"+c+"input-$1")]})),P(M(e,{props:[v(t,/:(plac\w+)/,":"+u+"$1")]})),P(M(e,{props:[v(t,/:(plac\w+)/,s+"input-$1")]})),P(M(e,{props:[t]})),m(e,{props:E(r,n)})}return""},i.map(o).join("")}}}function B(e,t,r,n,i,o,l,a,s,u,c,d){for(var h=i-1,g=0===i?o:[""],b=g.length,m=0,y=0,w=0;m<n;++m)for(var x=0,S=k(e,h+1,h=p(y=l[m])),C=e;x<b;++x)(C=(y>0?g[x]+" "+S:v(S,/&\f/g,g[x])).trim())&&(s[w++]=C);return z(e,t,r,0===i?f:a,s,u,c,d)}function W(e,t,r,n,i){return z(e,t,r,h,k(e,0,n),k(e,n+1,-1),n,i)}var V={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans: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},U=r(87358),G=void 0!==U&&void 0!==U.env&&(U.env.REACT_APP_SC_ATTR||U.env.SC_ATTR)||"data-styled",Y="active",q="data-styled-version",K="6.1.18",Z="/*!sc*/\n",X="undefined"!=typeof window&&"undefined"!=typeof document,J=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==U&&void 0!==U.env&&void 0!==U.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==U.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==U.env.REACT_APP_SC_DISABLE_SPEEDY&&U.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==U&&void 0!==U.env&&void 0!==U.env.SC_DISABLE_SPEEDY&&""!==U.env.SC_DISABLE_SPEEDY&&"false"!==U.env.SC_DISABLE_SPEEDY&&U.env.SC_DISABLE_SPEEDY),Q={},ee=Object.freeze([]),et=Object.freeze({});function er(e,t,r){return void 0===r&&(r=et),e.theme!==r.theme&&e.theme||t||r.theme}var en=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ei=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eo=/(^-|-$)/g;function el(e){return e.replace(ei,"-").replace(eo,"")}var ea=/(a)(d)/gi,es=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=es(t%52)+r;return(es(t%52)+r).replace(ea,"$1-$2")}var ec,ed=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ef=function(e){return ed(5381,e)};function eh(e){return eu(ef(e)>>>0)}function eg(e){return"string"==typeof e}var ep="function"==typeof Symbol&&Symbol.for,eb=ep?Symbol.for("react.memo"):60115,em=ep?Symbol.for("react.forward_ref"):60112,ey={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ew={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex=((ec={})[em]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ec[eb]=ew,ec);function ek(e){return("type"in e&&e.type.$$typeof)===eb?ew:"$$typeof"in e?ex[e.$$typeof]:ey}var eS=Object.defineProperty,eC=Object.getOwnPropertyNames,eE=Object.getOwnPropertySymbols,e_=Object.getOwnPropertyDescriptor,ej=Object.getPrototypeOf,eR=Object.prototype;function eA(e){return"function"==typeof e}function eI(e){return"object"==typeof e&&"styledComponentId"in e}function eO(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ez(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function eM(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eP(e,t){Object.defineProperty(e,"toString",{value:t})}function e$(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eT=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw e$(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var l=this.indexOfGroup(e+1),a=(o=0,t.length);o<a;o++)this.tag.insertRule(l,t[o])&&(this.groupSizes[e]++,l++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(Z);return t},e}(),eN=new Map,eL=new Map,eF=1,eH=function(e){if(eN.has(e))return eN.get(e);for(;eL.has(eF);)eF++;var t=eF++;return eN.set(e,t),eL.set(t,e),t},eD=function(e,t){eF=t+1,eN.set(e,t),eL.set(t,e)},eB="style[".concat(G,"][").concat(q,'="').concat(K,'"]'),eW=new RegExp("^".concat(G,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eV=function(e,t,r){for(var n,i=r.split(","),o=0,l=i.length;o<l;o++)(n=i[o])&&e.registerName(t,n)},eU=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Z),i=[],o=0,l=n.length;o<l;o++){var a=n[o].trim();if(a){var s=a.match(eW);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(eD(c,u),eV(e,c,s[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},eG=function(e){for(var t=document.querySelectorAll(eB),r=0,n=t.length;r<n;r++){var i=t[r];
1i&&i.getAttribute(G)!==Y&&(eU(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eY=function(e){var t,n=document.head,i=e||n,o=document.createElement("style"),l=(t=Array.from(i.querySelectorAll("style[".concat(G,"]"))))[t.length-1],a=void 0!==l?l.nextSibling:null;o.setAttribute(G,Y),o.setAttribute(q,K);var s=r.nc;return s&&o.setAttribute("nonce",s),i.insertBefore(o,a),o},eq=function(){function e(e){this.element=eY(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw e$(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eK=function(){function e(e){this.element=eY(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eZ=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eX=X,eJ={isServer:!X,useCSSOMInjection:!J},eQ=function(){function e(e,t,r){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=n(n({},eJ),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&X&&eX&&(eX=!1,eG(this)),eP(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++)(function(r){var i=eL.get(r);if(void 0!==i){var o=e.names.get(i),l=t.getGroup(r);if(void 0!==o&&o.size&&0!==l.length){var a="".concat(G,".g").concat(r,'[id="').concat(i,'"]'),s="";void 0!==o&&o.forEach(function(e){e.length>0&&(s+="".concat(e,","))}),n+="".concat(l).concat(a,'{content:"').concat(s,'"}').concat(Z)}}})(i);return n}(i)})}return e.registerId=function(e){return eH(e)},e.prototype.rehydrate=function(){!this.server&&X&&eG(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,r;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,r=e.target,new eT(e.isServer?new eZ(r):t?new eq(r):new eK(r))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eH(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(eH(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eH(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,e1=/^\s*\/\/.*$/gm;function e2(e){var t,r,n,i=void 0===e?et:e,o=i.options,l=void 0===o?et:o,a=i.plugins,s=void 0===a?ee:a,u=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push(function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(e0,r).replace(n,u))}),l.prefix&&c.push(D),c.push(H);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,r=i,n=RegExp("\\".concat(r,"\\b"),"g");var s,u,f,h,g,m,y=e.replace(e1,""),E=(g=function e(t,r,n,i,o,l,a,s,u){for(var c,f=0,h=0,g=a,m=0,y=0,E=0,R=1,M=1,P=1,F=0,H="",D=o,V=l,U=i,G=H;M;)switch(E=F,F=$()){case 40:if(108!=E&&58==x(G,g-1)){-1!=w(G+=v(L(F),"&","&\f"),"&\f",p(f?s[f-1]:0))&&(P=-1);break}case 34:case 39:case 91:G+=L(F);break;case 9:case 10:case 13:case 32:G+=function(e){for(;I=T();)if(I<33)$();else break;return N(e)>2||N(I)>3?"":" "}(E);break;case 92:G+=function(e,t){for(var r;--t&&$()&&!(I<48)&&!(I>102)&&(!(I>57)||!(I<65))&&(!(I>70)||!(I<97)););return r=A+(t<6&&32==T()&&32==$()),k(O,e,r)}(A-1,7);continue;case 47:switch(T()){case 42:case 47:C(z(c=function(e,t){for(;$();)if(e+I===57)break;else if(e+I===84&&47===T())break;
1return"/*"+k(O,t,A-1)+"*"+b(47===e?e:$())}($(),A),r,n,d,b(I),k(c,2,-2),0,u),u);break;default:G+="/"}break;case 123*R:s[f++]=S(G)*P;case 125*R:case 59:case 0:switch(F){case 0:case 125:M=0;case 59+h:-1==P&&(G=v(G,/\f/g,"")),y>0&&S(G)-g&&C(y>32?W(G+";",i,n,g-1,u):W(v(G," ","")+";",i,n,g-2,u),u);break;case 59:G+=";";default:if(C(U=B(G,r,n,f,h,o,s,H,D=[],V=[],g,l),l),123===F){if(0===h)e(G,r,U,U,D,l,g,s,V);else switch(99===m&&110===x(G,3)?100:m){case 100:case 108:case 109:case 115:e(t,U,U,i&&C(B(t,U,U,0,0,o,s,H,o,D=[],g,V),V),o,V,g,s,i?D:V);break;default:e(G,U,U,U,[""],V,0,s,V)}}}f=h=y=0,R=P=1,H=G="",g=a;break;case 58:g=1+S(G),y=E;default:if(R<1){if(123==F)--R;else if(125==F&&0==R++&&125==(I=A>0?x(O,--A):0,j--,10===I&&(j=1,_--),I))continue}switch(G+=b(F),F*R){case 38:P=h>0?1:(G+="\f",-1);break;case 44:s[f++]=(S(G)-1)*P,P=1;break;case 64:45===T()&&(G+=L($())),m=T(),h=g=S(H=G+=function(e){for(;!N(T());)$();return k(O,e,A)}(A)),F++;break;case 45:45===E&&2==S(G)&&(R=0)}}return l}("",null,null,null,[""],(f=h=o||i?"".concat(o," ").concat(i," { ").concat(y," }"):y,_=j=1,R=S(O=f),A=0,h=[]),0,[0],h),O="",g);l.namespace&&(E=function e(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(e){return"".concat(r," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,r)),t})}(E,l.namespace));var M=[];return F(E,(u=(s=c.concat((m=function(e){return M.push(e)},function(e){!e.root&&(e=e.return)&&m(e)}))).length,function(e,t,r,n){for(var i="",o=0;o<u;o++)i+=s[o](e,t,r,n)||"";return i})),M};return h.hash=s.length?s.reduce(function(e,t){return t.name||e$(15),ed(e,t.name)},5381).toString():"",h}var e5=new eQ,e3=e2(),e4=o.createContext({shouldForwardProp:void 0,styleSheet:e5,stylis:e3}),e6=(e4.Consumer,o.createContext(void 0));function e8(){return(0,o.useContext)(e4)}function e9(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=e8().styleSheet,l=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),s=(0,o.useMemo)(function(){return e2({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){a()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:s}},[e.shouldForwardProp,l,s]);return o.createElement(e4.Provider,{value:u},o.createElement(e6.Provider,{value:s},e.children))}var e7=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=e3);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eP(this,function(){throw e$(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e3),this.name+e.hash},e}();function te(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;n>="A"&&n<="Z"?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var tt=function(e){return null==e||!1===e||""===e},tr=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!tt(n)&&(Array.isArray(n)&&n.isCss||eA(n)?t.push("".concat(te(r),":"),n,";"):eM(n)?t.push.apply(t,i(i(["".concat(r," {")],tr(n),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(null==n||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||r in V||r.startsWith("--")?String(n).trim():"".concat(n,"px"),";")))}return t};function tn(e,t,r,n){return tt(e)?[]:eI(e)?[".".concat(e.styledComponentId)]:eA(e)?!eA(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tn(e(t),t,r,n):e instanceof e7?r?(e.inject(r,n),[e.getName(n)]):[e]:eM(e)?tr(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tn(e,t,r,n)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eA(r)&&!eI(r))return!1}return!0}var to=ef(K),tl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ti(e),this.componentId=t,this.baseHash=ed(to,t),this.baseStyle=r,eQ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=eO(n,this.staticRulesId);else{var i=ez(tn(this.rules,e,t,r)),o=eu(ed(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var l=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,l)}n=eO(n,o),this.staticRulesId=o}}else{for(var a=ed(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=ez(tn(c,e,t,r));a=ed(a,d+u),s+=d}}if(s){var f=eu(a>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,r(s,".".concat(f),void 0,this.componentId)),n=eO(n,f)}}return n},e}(),ta=o.createContext(void 0);function ts(){var e=(0,o.useContext)(ta);if(!e)throw e$(18);return e}function tu(e){var t=o.useContext(ta),r=(0,o.useMemo)(function(){return function(e,t){if(!e)throw e$(14);if(eA(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw e$(8);return t?n(n({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(ta.Provider,{value:r},e.children):null}ta.Consumer;var tc={};function td(e,t,r){var i,l,a,s,u=eI(e),c=!eg(e),d=t.attrs,f=void 0===d?ee:d,h=t.componentId,g=void 0===h?(i=t.displayName,l=t.parentComponentId,tc[a="string"!=typeof i?"sc":el(i)]=(tc[a]||0)+1,s="".concat(a,"-").concat(eh(K+a+tc[a])),l?"".concat(l,"-").concat(s):s):h,p=t.displayName,b=void 0===p?eg(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):p,m=t.displayName&&t.componentId?"".concat(el(t.displayName),"-").concat(t.componentId):t.componentId||g,y=u&&e.attrs?e.attrs.concat(f).filter(
vendor: 4,221 bytes, line 1
1Boolean):f,v=t.shouldForwardProp;if(u&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;v=function(e,t){return w(e,t)&&x(e,t)}}else v=w}var k=new tl(r,m,u?e.componentStyle:void 0);function S(e,t){return function(e,t,r){var i,l=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,f=o.useContext(ta),h=e8(),g=e.shouldForwardProp||h.shouldForwardProp,p=er(t,f,s)||et,b=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),l=0;l<e.length;l+=1){var a=eA(i=e[l])?i(o):i;for(var s in a)o[s]="className"===s?eO(o[s],a[s]):"style"===s?n(n({},o[s]),a[s]):a[s]}return t.className&&(o.className=eO(o.className,t.className)),o}(l,t,p),m=b.as||d,y={};for(var v in b)void 0===b[v]||"$"===v[0]||"as"===v||"theme"===v&&b.theme===p||("forwardedAs"===v?y.as=b.forwardedAs:g&&!g(v,m)||(y[v]=b[v]));var w=(i=e8(),a.generateAndInjectStyles(b,i.styleSheet,i.stylis)),x=eO(u,c);return w&&(x+=" "+w),b.className&&(x+=" "+b.className),y[eg(m)&&!en.has(m)?"class":"className"]=x,r&&(y.ref=r),(0,o.createElement)(m,y)}(C,e,t)}S.displayName=b;var C=o.forwardRef(S);return C.attrs=y,C.componentStyle=k,C.displayName=b,C.shouldForwardProp=v,C.foldedComponentIds=u?eO(e.foldedComponentIds,e.styledComponentId):"",C.styledComponentId=m,C.target=u?e.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=u?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)(function e(t,r,n){if(void 0===n&&(n=!1),!n&&!eM(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(var i=0;i<r.length;i++)t[i]=e(t[i],r[i]);else if(eM(r))for(var i in r)t[i]=e(t[i],r[i]);return t})(e,t[n],!0);return e}({},e.defaultProps,t):t}}),eP(C,function(){return".".concat(C.styledComponentId)}),c&&function e(t,r,n){if("string"!=typeof r){if(eR){var i=ej(r);i&&i!==eR&&e(t,i,n)}var o=eC(r);eE&&(o=o.concat(eE(r)));for(var l=ek(t),a=ek(r),s=0;s<o.length;++s){var u=o[s];if(!(u in ev||n&&n[u]||a&&u in a||l&&u in l)){var c=e_(r,u);try{eS(t,u,c)}catch(e){}}}}return t}(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function tf(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var th=function(e){return Object.assign(e,{isCss:!0})};function tg(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return eA(e)||eM(e)?th(tn(tf(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tn(e):th(tn(tf(e,t)))}var tp=function(e){return function e(t,r,o){if(void 0===o&&(o=et),!r)throw e$(1,r);var l=function(e){for(var n=[],l=1;l<arguments.length;l++)n[l-1]=arguments[l];return t(r,o,tg.apply(void 0,i([e],n,!1)))};return l.attrs=function(i){return e(t,r,n(n({},o),{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},l.withConfig=function(i){return e(t,r,n(n({},o),i))},l}(td,e)},tb=tp;en.forEach(function(e){tb[e]=tp(e)});var tm=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ti(e),eQ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var i=n(ez(tn(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&eQ.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ty(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var l=tg.apply(void 0,i([e],t,!1)),a="sc-global-".concat(eh(JSON.stringify(l))),s=new tm(l,a),u=function(e){var t=e8(),r=o.useContext(ta),n=o.useRef(t.styleSheet.allocateGSInstance(a)).current;return t.styleSheet.server&&c(n,e,t.styleSheet,r,t.stylis),o.useLayoutEffect(function(){if(!t.styleSheet.server)return c(n,e,t.styleSheet,r,t.stylis),function(){return s.removeStyles(n,t.styleSheet)}},[n,e,t.styleSheet,r,t.stylis]),null};function c(e,t,r,i,o){if(s.isStatic)s.renderStyles(e,Q,r,o);else{var l=n(n({},t),{theme:er(t,i,u.defaultProps)});s.renderStyles(e,l,r,o)}}return o.memo(u)}function tv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];
1var n=ez(tg.apply(void 0,i([e],t,!1)));return new e7(eh(n),n)}var tw=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=r.nc,i=ez([n&&'nonce="'.concat(n,'"'),"".concat(G,'="true"'),"".concat(q,'="').concat(K,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw e$(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw e$(2);var t,i=e.instance.toString();if(!i)return[];var l=((t={})[G]="",t[q]=K,t.dangerouslySetInnerHTML={__html:i},t),a=r.nc;return a&&(l.nonce=a),[o.createElement("style",n({},l,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eQ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw e$(2);return o.createElement(e9,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw e$(3)},e}()},57205:(e,t,r)=>{"use strict";r.d(t,{UE:()=>ef,ll:()=>el,rD:()=>eh,__:()=>ea,UU:()=>ec,jD:()=>ed,cY:()=>es,BN:()=>eu});let n=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,a=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(f(e))?"y":"x"}function m(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function v(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function x(e,t,r){let n,{reference:i,floating:o}=e,l=b(t),a=g(b(t)),s=p(a),u=f(t),c="y"===l,d=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,y=i[s]/2-o[s]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:m};break;case"left":n={x:i.x-o.width,y:m};break;default:n={x:i.x,y:i.y}}switch(h(t)){case"start":n[a]-=y*(r&&c?-1:1);break;case"end":n[a]+=y*(r&&c?-1:1)}return n}let k=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=x(u,n,s),f=n,h={},g=0;for(let r=0;r<a.length;r++){let{name:o,fn:p}=a[r],{x:b,y:m,data:y,reset:v}=await p({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=b?b:c,d=null!=m?m:d,h={...h,[o]:{...h[o],...y}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(u=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):v.rects),{x:c,y:d}=x(u,f,s)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=d(t,e),p=v(g),b=a[h?"floating"===f?"reference":"floating":f],m=w(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(b)))||r?b:b.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===f?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),k=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},S=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:s}):y);return{top:(m.top-S.top+p.top)/k.y,bottom:(S.bottom-m.bottom+p.bottom)/k.y,left:(m.left-S.left+p.left)/k.x,right:(S.right-m.right+p.right)/k.x}}function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function E(e){return n.some(t=>e[t]>=0)}async function _(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),l=f(r),a=h(r),s="y"===b(r),u=["left","top"].includes(l)?-1:1,c=o&&s?-1:1,g=d(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:y}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}
1:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return a&&"number"==typeof y&&(m="end"===a?-1*y:y),s?{x:m*c,y:p*u}:{x:p*u,y:m*c}}function j(){return"undefined"!=typeof window}function R(e){return O(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(O(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function O(e){return!!j()&&(e instanceof Node||e instanceof A(e).Node)}function z(e){return!!j()&&(e instanceof Element||e instanceof A(e).Element)}function M(e){return!!j()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function P(e){return!!j()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function $(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function T(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function N(e){let t=L(),r=z(e)?H(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function L(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function F(e){return["html","body","#document"].includes(R(e))}function H(e){return A(e).getComputedStyle(e)}function D(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||P(e)&&e.host||I(e);return P(t)?t.host:t}function W(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=B(t);return F(r)?t.ownerDocument?t.ownerDocument.body:t.body:M(r)&&$(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),l=A(i);if(o){let e=V(l);return t.concat(l,l.visualViewport||[],$(i)?i:[],e&&r?W(e):[])}return t.concat(i,W(i,[],r))}function V(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U(e){let t=H(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=M(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=l(r)!==o||l(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function G(e){return z(e)?e:e.contextElement}function Y(e){let t=G(e);if(!M(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=U(t),a=(o?l(r.width):r.width)/n,u=(o?l(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let q=s(0);function K(e){let t=A(e);return L()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function Z(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),l=G(e),a=s(1);t&&(n?z(n)&&(a=Y(n)):a=Y(e));let u=(void 0===(i=r)&&(i=!1),n&&(!i||n===A(l))&&i)?K(l):s(0),c=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(l){let e=A(l),t=n&&z(n)?A(n):n,r=e,i=V(r);for(;i&&n&&t!==r;){let e=Y(i),t=i.getBoundingClientRect(),n=H(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=o,d+=l,i=V(r=A(i))}}return w({width:f,height:h,x:c,y:d})}function X(e,t){let r=D(e).scrollLeft;return t?t.left+r:Z(I(e)).left+r}function J(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:X(e,n)),y:n.top+t.scrollTop}}function Q(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=A(e),n=I(e),i=r.visualViewport,o=n.clientWidth,l=n.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=L();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}(e,r);else if("document"===t)n=function(e){let t=I(e),r=D(e),n=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),l=o(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+X(e),s=-r.scrollTop;return"rtl"===H(n).direction&&(a+=o(t.clientWidth,n.clientWidth)-i),{width:i,height:l,x:a,y:s}}(I(e));else if(z(t))n=function(e,t){let r=Z(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=M(e)?Y(e):s(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{let r=K(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return w(n)}function ee(e){return"static"===H(e).position}function et(e,t){if(!M(e)||"fixed"===H(e).position)return null;if(t)return t(e);let r=e.offsetParent;return I(e)===r&&(r=r.ownerDocument.body),r}function er(e,t){let r=A(e);if(T(e))return r;if(!M(e)){let t=B(e);for(;t&&!F(t);){if(z(t)&&!ee(t))return t;t=B(t)}return r}let n=et(e,t);for(;n&&["table","td","th"].includes(R(n))&&ee(n);)n=et(n,t);return n&&F(n)&&ee(n)&&!N(n)?r:n||function(e){let t=B(e);for(;M(t)&&!F(t);){if(N(t))return t;if(T(t))break;t=B(t)}return null}(e)||r}let en=async function(e){let t=this.getOffsetParent||er,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=M(t),i=I(t),o="fixed"===r,l=Z(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(n||!n&&!o){if(("body"!==R(t)||$(i))&&(a=D(t)),n){let e=Z(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=X(i))}o&&!n&&i&&(u.x=X(i));let c=!i||n||o?s(0):J(i,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,l=I(n),a=!!t&&T(t.floating);if(n===l||a&&o)return r;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),f=M(n);if((f||!f&&!o)&&(("body"!==R(n)||$(l))&&(u=D(n)),M(n))){let e=Z(n);c=Y(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let h=!l||f||o?s(0):J(l,u,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:l}=e,a=[..."clippingAncestors"===r?T(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=W(e,[],!1).filter(e=>z(e)&&"body"!==R(e)),i=null,o="fixed"===H(e).position,l=o?B(e):e;for(;z(l)&&!F(l);){let t=H(l),r=N(l);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||$(l)&&!r&&function e(t,r){let n=B(t);return!(n===r||!z(n)||F(n))&&("fixed"===H(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):i=t,l=B(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=a[0],u=a.reduce((e,r)=>{let n=Q(t,r,l);return e.top=o(n.top,e.top),e.right=i(n.right,e.right),e.bottom=i(n.bottom,e.bottom),e.left=o(n.left,e.left),e},Q(t,s,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:er,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=U(e);return{width:t,height:r}},getScale:Y,isElement:z,isRTL:function(e){return"rtl"===H(e).direction}};function eo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function el(e,t,r,n){let l;void 0===n&&(n={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,h=G(e),g=s||u?[...h?W(h):[],...W(t)]:[];
1g.forEach(e=>{s&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let p=h&&d?function(e,t){let r,n=null,l=I(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let f=e.getBoundingClientRect(),{left:h,top:g,width:p,height:b}=f;if(c||t(),!p||!b)return;let m=a(g),y=a(l.clientWidth-(h+p)),v={rootMargin:-m+"px "+-y+"px "+-a(l.clientHeight-(g+b))+"px "+-a(h)+"px",threshold:o(0,i(1,d))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(n!==d){if(!w)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||eo(f,e.getBoundingClientRect())||u(),w=!1}try{n=new IntersectionObserver(x,{...v,root:l.ownerDocument})}catch(e){n=new IntersectionObserver(x,v)}n.observe(e)}(!0),s}(h,r):null,b=-1,m=null;c&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===h&&m&&(m.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),h&&!f&&m.observe(h),m.observe(t));let y=f?Z(e):null;return f&&function t(){let n=Z(e);y&&!eo(y,n)&&r(),y=n,l=requestAnimationFrame(t)}(),r(),()=>{var e;g.forEach(e=>{s&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(l)}}let ea=S,es=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await _(t,e);return l===(null==(r=a.offset)?void 0:r.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},eu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:l}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=d(e,t),h={x:r,y:n},p=await S(t,c),m=b(f(l)),y=g(m),v=h[y],w=h[m];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=v+p[e],n=v-p[t];v=o(r,i(v,n))}if(s){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",r=w+p[e],n=w-p[t];w=o(r,i(w,n))}let x=u.fn({...t,[y]:v,[m]:w});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[y]:a,[m]:s}}}}}},ec=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,l,a;let{placement:s,middlewareData:u,rects:c,initialPlacement:v,platform:w,elements:x}=t,{mainAxis:k=!0,crossAxis:C=!0,fallbackPlacements:E,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:R=!0,...A}=d(e,t);if(null!=(r=u.arrow)&&r.alignmentOffset)return{};let I=f(s),O=b(v),z=f(v)===v,M=await (null==w.isRTL?void 0:w.isRTL(x.floating)),P=E||(z||!R?[y(v)]:function(e){let t=y(e);return[m(e),t,m(t)]}(v)),$="none"!==j;!E&&$&&P.push(...function(e,t,r,n){let i=h(e),o=function(e,t,r){let n=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(r)return t?i:n;return t?n:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(m)))),o}(v,R,j,M));let T=[v,...P],N=await S(t,A),L=[],F=(null==(n=u.flip)?void 0:n.overflows)||[];if(k&&L.push(N[I]),C){let e=function(e,t,r){void 0===r&&(r=!1);let n=h(e),i=g(b(e)),o=p(i),l="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=y(l)),[l,y(l)]}(s,c,M);L.push(N[e[0]],N[e[1]])}if(F=[...F,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=T[e];if(t){let r="alignment"===C&&O!==b(t),n=(null==(l=F[0])?void 0:l.overflows[0])>0;if(!r||n)return{data:{index:e,overflows:F},reset:{placement:t}}}let r=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(_){case"bestFit":{let e=null==(a=F.filter(e=>{if($){let t=b(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=v}if(s!==r)return{reset:{placement:r}}}return{}}}},ed=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=d(e,t);switch(n){case"referenceHidden":{let e=C(await S(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:E(e)}}}case"escaped":{let e=C(await S(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:E(e)}}}default:return{}}}}},ef=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:l,rects:a,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:m=0}=d(e,t)||{};if(null==f)return{};let y=v(m),w={x:r,y:n},x=g(b(l)),k=p(x),S=await s.getDimensions(f),C="y"===x,E=C?"clientHeight":"clientWidth",_=a.reference[k]+a.reference[x]-w[x]-a.floating[k],j=w[x]-a.reference[x],R=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),A=R?R[E]:0;A&&await (null==s.isElement?void 0:s.isElement(R))||(A=u.floating[E]||a.floating[k]);let I=A/2-S[k]/2-1,O=i(y[C?"top":"left"],I),z=i(y[C?"bottom":"right"],I),M=A-S[k]-z,P=A/2-S[k]/2+(_/2-j/2),$=o(O,i(P,M)),T=!c.arrow&&null!=h(l)&&P!==$&&a.reference[k]/2-(P<O?O:z)-S[k]/2<0,N=T?P<O?P-O:P-M:0;return{[x]:w[x]+N,data:{[x]:$,centerOffset:P-$-N,...T&&{alignmentOffset:N}},reset:T}}}),eh=(e,t,r)=>{let n=new Map,i={platform:ei,...r},o={...i.platform,_c:n};return k(e,t,{...i,platform:o})}},96932:(e,t,r)=>{"use strict";r.d(t,{BN:()=>g,UE:()=>m,UU:()=>p,cY:()=>h,jD:()=>
1b,we:()=>d});var n=r(57205),i=r(12115),o=r(47650),l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function a(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!a(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!a(e[r],t[r]))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 r=s(e);return Math.round(t*r)/r}function c(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="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:r,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=i.useState(d);a(w,d)||x(d);let[k,S]=i.useState(null),[C,E]=i.useState(null),_=i.useCallback(e=>{e!==I.current&&(I.current=e,S(e))},[]),j=i.useCallback(e=>{e!==O.current&&(O.current=e,E(e))},[]),R=h||k,A=g||C,I=i.useRef(null),O=i.useRef(null),z=i.useRef(y),M=null!=b,P=c(b),$=c(f),T=c(m),N=i.useCallback(()=>{if(!I.current||!O.current)return;let e={placement:t,strategy:r,middleware:w};$.current&&(e.platform=$.current),(0,n.rD)(I.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};L.current&&!a(z.current,t)&&(z.current=t,o.flushSync(()=>{v(t)}))})},[w,t,r,$,T]);l(()=>{!1===m&&z.current.isPositioned&&(z.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[m]);let L=i.useRef(!1);l(()=>(L.current=!0,()=>{L.current=!1}),[]),l(()=>{if(R&&(I.current=R),A&&(O.current=A),R&&A){if(P.current)return P.current(R,A,N);N()}},[R,A,N,P,M]);let F=i.useMemo(()=>({reference:I,floating:O,setReference:_,setFloating:j}),[_,j]),H=i.useMemo(()=>({reference:R,floating:A}),[R,A]),D=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!H.floating)return e;let t=u(H.floating,y.x),n=u(H.floating,y.y);return p?{...e,transform:"translate("+t+"px, "+n+"px)",...s(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,p,H.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:N,refs:F,elements:H,floatingStyles:D}),[y,N,F,H,D])}let f=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:i}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,n.UE)({element:r.current,padding:i}).fn(t):{}:r?(0,n.UE)({element:r,padding:i}).fn(t):{}}}),h=(e,t)=>({...(0,n.cY)(e),options:[e,t]}),g=(e,t)=>({...(0,n.BN)(e),options:[e,t]}),p=(e,t)=>({...(0,n.UU)(e),options:[e,t]}),b=(e,t)=>({...(0,n.jD)(e),options:[e,t]}),m=(e,t)=>({...f(e),options:[e,t]})},97684:(e,t,r)=>{"use strict";r.d(t,{Cv:()=>n,D9:()=>d,ON:()=>l,OZ:()=>h,Ql:()=>o,V0:()=>i,Zp:()=>u,wL:()=>f,wm:()=>a,wv:()=>c,yW:()=>g,z1:()=>s});let n=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],o={title:"Black",hex:"#0d0e12"},l={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:o,white:l,...h}},24531:(e,t,r)=>{"use strict";function n(e){let[t,r]=e;return[t,r]}function i(e,t){let r=e,n=t,i=r.length,o=n.length;if(0===i||0===o)return 0;i>o?r=r.substring(i-o):i<o&&(n=n.substring(0,i));let l=Math.min(i,o);if(r===n)return l;let a=0,s=1;for(let e=0;-1!==e;){let t=r.substring(l-s);if(-1===(e=n.indexOf(t)))break;s+=e,(0===e||r.substring(l-s)===n.substring(0,s))&&(a=s,s++)}return a}function o(e,t){if(!e||!t||e[0]!==t[0])return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(o,i)===t.substring(o,i)?o=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function l(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?o=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function a(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function s(e,t,r,n,i){let o=e.substring(0,r),l=t.substring(0,n),a=e.substring(r),s=t.substring(n),u=w(o,l,{checkLines:!1,deadline:i}),c=w(a,s,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,r){let n=e.slice(r,r+Math.floor(e.length/4)),i=-1,a="",s,u,c,d;for(;-1!==(i=t.indexOf(n,i+1));){let n=o(e.slice(r),t.slice(i)),f=l(e.slice(0,r),t.slice(0,i));a.length<f+n&&(a=t.slice(i-f,i)+t.slice(i,i+n),s=e.slice(0,r-f),u=e.slice(r+n),c=t.slice(0,i-f),d=t.slice(i+n))}return 2*a.length>=e.length?[s||"",u||"",c||"",d||"",a||""]:null}r.d(t,{$i:()=>Y,Cm:()=>b,Ug:()=>m,Vx:()=>C,iU:()=>v,iz:()=>el,jW:()=>er,lw:()=>y,sw:()=>z,w1:()=>es});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,g=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))f.call(t,r)&&g(e,r,t[r]);if(d)for(var r of d(t))h.call(t,r)&&g(e,r,t[r]);return e};let b=-1,m=1,y=0;function v(e,t,r){var n,i;let o;if(null===e||null===t)throw Error("Null input. (diff)");let l=w(e,t,p({checkLines:!0,deadline:(i=(n=r||{}).timeout||1,o=1,"u">typeof i&&(o=i<=0?Number.MAX_VALUE:i),Date.now()+1e3*o)}
1,n));return function(e){for(let t=0;t<e.length;t++){let[r,n]=e[t];if(0===n.length)continue;let i=n[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(n[n.length-1])&&r===y&&S(e,t,1),a(i)&&r===y&&S(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(l),l}function w(e,t,r){let n=e,i=t;if(n===i)return n?[[y,n]]:[];let a=o(n,i),c=n.substring(0,a);a=l(n=n.substring(a),i=i.substring(a));let d=n.substring(n.length-a),f=function(e,t,r){let n;if(!e)return[[m,t]];if(!t)return[[b,e]];let i=e.length>t.length?e:t,o=e.length>t.length?t:e,l=i.indexOf(o);if(-1!==l)return n=[[m,i.substring(0,l)],[y,o],[m,i.substring(l+o.length)]],e.length>t.length&&(n[0][0]=b,n[2][0]=b),n;if(1===o.length)return[[b,e],[m,t]];let a=function(e,t,r=1){let n,i,o,l,a;if(r<=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)n=d[4].length>f[4].length?d:f;else{if(!d&&!f)return null;f?d||(n=f):n=d}if(!n)throw Error("Unable to find a half match.");return e.length>t.length?(i=n[0],o=n[1],l=n[2],a=n[3]):(l=n[0],a=n[1],i=n[2],o=n[3]),[i,o,l,a,n[4]]}(e,t);if(a){let e=a[0],t=a[1],n=a[2],i=a[3],o=a[4],l=w(e,n,r),s=w(t,i,r);return l.concat([[y,o]],s)}return r.checkLines&&e.length>100&&t.length>100?function(e,t,r){let n=e,i=t,o=function(e,t){let r=[],n={};function i(e){let t="",i=0,l=-1,a=r.length;for(;l<e.length-1;){-1===(l=e.indexOf(`
2`,i))&&(l=e.length-1);let s=e.slice(i,l+1);(n.hasOwnProperty?n.hasOwnProperty(s):void 0!==n[s])?t+=String.fromCharCode(n[s]):(a===o&&(s=e.slice(i),l=e.length),t+=String.fromCharCode(a),n[s]=a,r[a++]=s),i=l+1}return t}r[0]="";let o=4e4,l=i(e);return o=65535,{chars1:l,chars2:i(t),lineArray:r}}(n,i);n=o.chars1,i=o.chars2;let l=o.lineArray,a=w(n,i,{checkLines:!1,deadline:r.deadline});(function(e,t){for(let r=0;r<e.length;r++){let n=e[r][1],i=[];for(let e=0;e<n.length;e++)i[e]=t[n.charCodeAt(e)];e[r][1]=i.join("")}})(a,l),(a=C(a)).push([y,""]);let s=0,u=0,c=0,d="",f="";for(;s<a.length;){switch(a[s][0]){case m:c++,f+=a[s][1];break;case b:u++,d+=a[s][1];break;case y:if(u>=1&&c>=1){a.splice(s-u-c,u+c),s=s-u-c;let e=w(d,f,{checkLines:!1,deadline:r.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,r):function(e,t,r){let n=e.length,i=t.length,o=Math.ceil((n+i)/2),l=2*o,a=Array(l),u=Array(l);for(let e=0;e<l;e++)a[e]=-1,u[e]=-1;a[o+1]=0,u[o+1]=0;let c=n-i,d=c%2!=0,f=0,h=0,g=0,p=0;for(let b=0;b<o&&!(Date.now()>r);b++){for(let g=-b+f;g<=b-h;g+=2){let p;let m=o+g,y=(p=g===-b||g!==b&&a[m-1]<a[m+1]?a[m+1]:a[m-1]+1)-g;for(;p<n&&y<i&&e.charAt(p)===t.charAt(y);)p++,y++;if(a[m]=p,p>n)h+=2;else if(y>i)f+=2;else if(d){let i=o+c-g;if(i>=0&&i<l&&-1!==u[i]&&p>=n-u[i])return s(e,t,p,y,r)}}for(let f=-b+g;f<=b-p;f+=2){let h;let m=o+f,y=(h=f===-b||f!==b&&u[m-1]<u[m+1]?u[m+1]:u[m-1]+1)-f;for(;h<n&&y<i&&e.charAt(n-h-1)===t.charAt(i-y-1);)h++,y++;if(u[m]=h,h>n)p+=2;else if(y>i)g+=2;else if(!d){let i=o+c-f;if(i>=0&&i<l&&-1!==a[i]){let l=a[i],u=o+l-i;if(l>=(h=n-h))return s(e,t,l,u,r)}}}}return[[b,e],[m,t]]}(e,t,r.deadline)}(n=n.substring(0,n.length-a),i=i.substring(0,i.length-a),r);return c&&f.unshift([y,c]),d&&f.push([y,d]),f=O(f)}function x(e,t,r){return 1===r?e+t:t+e}function k(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function S(e,t,r){var n,i;let o=1===r?-1:1,l=null,a=null,s=t+r;for(;s>=0&&s<e.length&&(null===l||null===a);s+=r){let[n,i]=e[s];if(0!==i.length){if(n===m){null===l&&(l=s);continue}if(n===b){null===a&&(a=s);continue}if(n===y){if(null===l&&null===a){let[n,i]=k(e[t][1],r);e[t][1]=n,e[s][1]=x(e[s][1],i,o);return}break}}}if(null!==l&&null!==a&&(n=l,i=a,1===r?e[n][1][e[n][1].length-1]===e[i][1][e[i][1].length-1]:e[n][1][0]===e[i][1][0])){let[
2n,i]=k(e[l][1],o),[s]=k(e[a][1],o);e[l][1]=n,e[a][1]=s,e[t][1]=x(e[t][1],i,r);return}let[u,c]=k(e[t][1],r);e[t][1]=u,null===l?(e.splice(s,0,[m,c]),null!==a&&a>=s&&a++):e[l][1]=x(e[l][1],c,o),null===a?e.splice(s,0,[b,c]):e[a][1]=x(e[a][1],c,o)}function C(e){let t=e.map(e=>n(e)),r=!1,o=[],l=0,a=null,s=0,u=0,c=0,d=0,f=0;for(;s<t.length;)t[s][0]===y?(o[l++]=s,u=d,c=f,d=0,f=0,a=t[s][1]):(t[s][0]===m?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(o[l-1],0,[b,a]),t[o[l-1]+1][0]=m,l--,s=--l>0?o[l-1]:-1,u=0,c=0,d=0,f=0,a=null,r=!0)),s++;for(r&&(t=O(t)),t=I(t),s=1;s<t.length;){if(t[s-1][0]===b&&t[s][0]===m){let e=t[s-1][1],r=t[s][1],n=i(e,r),o=i(r,e);n>=o?(n>=e.length/2||n>=r.length/2)&&(t.splice(s,0,[y,r.substring(0,n)]),t[s-1][1]=e.substring(0,e.length-n),t[s+1][1]=r.substring(n),s++):(o>=e.length/2||o>=r.length/2)&&(t.splice(s,0,[y,e.substring(0,o)]),t[s-1][0]=m,t[s-1][1]=r.substring(0,r.length-o),t[s+1][0]=b,t[s+1][1]=e.substring(o),s++),s++}s++}return t}let E=/[^a-zA-Z0-9]/,_=/\s/,j=/[\r\n]/,R=/\n\r?\n$/,A=/^\r?\n\r?\n/;function I(e){let t=e.map(e=>n(e));function r(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(E),o=n.match(E),l=i&&r.match(_),a=o&&n.match(_),s=l&&r.match(j),u=a&&n.match(j),c=s&&e.match(R),d=u&&t.match(A);return c||d?5:s||u?4:i&&!l&&a?3:l||a?2:i||o?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===y&&t[i+1][0]===y){let e=t[i-1][1],n=t[i][1],o=t[i+1][1],a=l(e,n);if(a){let t=n.substring(n.length-a);e=e.substring(0,e.length-a),n=t+n.substring(0,n.length-a),o=t+o}let s=e,u=n,c=o,d=r(e,n)+r(n,o);for(;n.charAt(0)===o.charAt(0);){e+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let t=r(e,n)+r(n,o);t>=d&&(d=t,s=e,u=n,c=o)}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 O(e){let t=e.map(e=>n(e));t.push([y,""]);let r=0,i=0,a=0,s="",u="",c;for(;r<t.length;)switch(t[r][0]){case m:a++,u+=t[r][1],r++;break;case b:i++,s+=t[r][1],r++;break;case y:i+a>1?(0!==i&&0!==a&&(0!==(c=o(u,s))&&(r-i-a>0&&t[r-i-a-1][0]===y?t[r-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),r++),u=u.substring(c),s=s.substring(c)),0!==(c=l(u,s))&&(t[r][1]=u.substring(u.length-c)+t[r][1],u=u.substring(0,u.length-c),s=s.substring(0,s.length-c))),r-=i+a,t.splice(r,i+a),s.length&&(t.splice(r,0,[b,s]),r++),u.length&&(t.splice(r,0,[m,u]),r++),r++):0!==r&&t[r-1][0]===y?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,a=0,i=0,s="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(r=1;r<t.length-1;)t[r-1][0]===y&&t[r+1][0]===y&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),d=!0):t[r][1].substring(0,t[r+1][1].length)===t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),d=!0)),r++;return d&&(t=O(t)),t}function z(e,t=4){let r=e.map(e=>n(e)),i=!1,o=[],l=0,a=null,s=0,u=!1,c=!1,d=!1,f=!1;for(;s<r.length;)r[s][0]===y?(r[s][1].length<t&&(d||f)?(o[l++]=s,u=d,c=f,a=r[s][1]):(l=0,a=null),d=!1,f=!1):(r[s][0]===b?f=!0:d=!0,a&&(u&&c&&d&&f||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+(t?1:0),0)}(u,c,d,f))&&(r.splice(o[l-1],0,[b,a]),r[o[l-1]+1][0]=m,l--,a=null,u&&c?(d=!0,f=!0,l=0):(s=--l>0?o[l-1]:-1,d=!1,f=!1),i=!0)),s++;return i&&(r=O(r)),r}var M=Object.defineProperty,P=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,N=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t||(t={}))$.call(t,r)&&N(e,r,t[r]);if(P)for(var r of P(t))T.call(t,r)&&N(e,r,t[r]);return e};let F={threshold:.5,distance:1e3};function H(e,t,r,n={}){if(null===e||null===t||null===r)throw Error("Null input. (match())");let i=Math.max(0,Math.min(r,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,r,n={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=L(L({},F),n),o=function(e){let t={};for(let r=0;r<e.length;r++)t[e.charAt(r)]=0;for(let r=0;r<e.length;r++)t[e.charAt(r)]|=1<<e.length-r-1;return t}(t);function l(e,n){let o=e/t.length,l=Math.abs(r-n);return i.distance?o+l/i.distance:l?1:o}let a=i.threshold,s=e.indexOf(t,r);-1!==s&&(a=Math.min(l(0,s),a),-1!==(s=e.lastIndexOf(t,r+t.length))&&(a=Math.min(l(0,s),a)));let u=1<<t.length-1;s=-1;let c,d,f=t.length+e.length,h=[];for(let n=0;n<t.length;n++){for(c=0,d=f;c<d;)l(n,r+d)<=a?c=d:f=d,d=Math.floor((f-c)/2+c);f=d;let i=Math.max(1,r-d+1),g=Math.min(r+d,e.length)+t.length,p=Array(g+2);p[g+1]=(1<<n)-1;for(let t=g;t>=i;t--){let c=o[e.charAt(t-1)];if(0===n?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=l(n,t-1);if(e<=a){if(a=e,(s=t-1)>r)i=Math.max(1,2*r-s);else break}}}if(l(n+1,r)>a)break;h=p}return s}(e,t,i,n):-1}function D(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==m&&(t[r]=e[r][1]);return t.join("")}function B(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==b&&(t[r]=e[r][1]);return t.join("")}function W(e,t){let r=0,n=0,i=0,o=0,l;for(l=0;l<e.length&&(e[l][0]!==m&&(r+=e[l][1].length),e[l][0]!==b&&(n+=e[l][1].length),!(r>t));l++)i=r,o=n;return e.length!==l&&e[l][0]===b?o:o+(t-i)}function V(e){let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);if(typeof n>"u")throw Error("Failed to get codepoint");t+=U(n)}return t}function U(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function G(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function Y(e,t,r={}){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 o=function(e,t,r={}){let i=0,o=0;function l(e){for(;i<e;){let e=t.codePointAt(o);if(typeof e>"u")return o;i+=U(e),e>65535?o+=2:o+=1}if(!r.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return o}let a=[];for(let t of e)a.push({diffs:t.diffs.map(e=>n(e)),start1:l(t.start1),start2:l(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:r.allowExceedingIndices}),l=r.margin||4,a=r.deleteThreshold||.4,s=function(e,t=4){let r="";for(let e=1;e<=t;e++)r+=String.fromCharCode(e);for(let r of e)r.start1+=t,r.start2+=t,r.utf8Start1+=t,r.utf8Start2+=t;let n=e[0],i=n.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,r]),n.start1-=t,n.start2-=t,n.utf8Start1-=t,n.utf8Start2-=t,n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,o=t-e;i[0][1]=r.substring(e)+i[0][1],n.start1-=o,n.start2-=o,n.utf8Start1-=o,n.utf8Start2-=o,n.length1+=o,n.length2+=o,n.utf8Length1+=o,n.utf8Length2+=o}if(0===(i=(n=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,r]),n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.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]+=r.substring(0,e),n.length1+=e,n.length2+=e,n.utf8Length1+=e,n.utf8Length2+=e}return r}(o,l);i=s+i+s,function(e,t=4){for(let r=0;r<e.length;r++){if(e[r].length1<=32)continue;let n=e[r];
2e.splice(r--,1);let i=n.start1,o=n.start2,l="";for(;0!==n.diffs.length;){let a=G(i-l.length,o-l.length),s=!0;if(""!==l){let e=V(l);a.length1=l.length,a.utf8Length1=e,a.length2=l.length,a.utf8Length2=e,a.diffs.push([y,l])}for(;0!==n.diffs.length&&a.length1<32-t;){let e=n.diffs[0][0],r=n.diffs[0][1],l=V(r);if(e===m){a.length2+=r.length,a.utf8Length2+=l,o+=r.length;let e=n.diffs.shift();e&&a.diffs.push(e),s=!1}else e===b&&1===a.diffs.length&&a.diffs[0][0]===y&&r.length>64?(a.length1+=r.length,a.utf8Length1+=l,i+=r.length,s=!1,a.diffs.push([e,r]),n.diffs.shift()):(l=V(r=r.substring(0,32-a.length1-t)),a.length1+=r.length,a.utf8Length1+=l,i+=r.length,e===y?(a.length2+=r.length,a.utf8Length2+=l,o+=r.length):s=!1,a.diffs.push([e,r]),r===n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(r.length))}l=(l=B(a.diffs)).substring(l.length-t);let u=D(n.diffs).substring(0,t),c=V(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]===y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([y,u])),s||e.splice(++r,0,a)}}}(o,l);let u=0,c=[];for(let e=0;e<o.length;e++){let t=o[e].start2+u,r=D(o[e].diffs),n,l=-1;if(r.length>32?-1!==(n=H(i,r.substring(0,32),t))&&(-1===(l=H(i,r.substring(r.length-32),t+r.length-32))||n>=l)&&(n=-1):n=H(i,r,t),-1===n)c[e]=!1,u-=o[e].length2-o[e].length1;else{let s;if(c[e]=!0,u=n-t,s=-1===l?i.substring(n,n+r.length):i.substring(n,l+32),r===s)i=i.substring(0,n)+B(o[e].diffs)+i.substring(n+r.length);else{let t=v(r,s,{checkLines:!1});if(r.length>32&&function(e){let t=0,r=0,n=0;for(let i=0;i<e.length;i++){let o=e[i][0],l=e[i][1];switch(o){case m:r+=l.length;break;case b:n+=l.length;break;case y:t+=Math.max(r,n),r=0,n=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(r,n)}(t)/r.length>a)c[e]=!1;else{t=I(t);let r=0,l=0;for(let a=0;a<o[e].diffs.length;a++){let s=o[e].diffs[a];s[0]!==y&&(l=W(t,r)),s[0]===m?i=i.substring(0,n+l)+s[1]+i.substring(n+l):s[0]===b&&(i=i.substring(0,n+l)+i.substring(n+W(t,r+s[1].length))),s[0]!==b&&(r+=s[1].length)}}}}}return[i=i.substring(s.length,i.length-s.length),c]}var q=Object.defineProperty,K=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,J=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))Z.call(t,r)&&J(e,r,t[r]);if(K)for(var r of K(t))X.call(t,r)&&J(e,r,t[r]);return e};let ee={margin:4};function et(e={}){return Q(Q({},ee),e)}function er(e,t,r){if("string"==typeof e&&"string"==typeof t){let n=v(e,t,{checkLines:!0});return n.length>2&&(n=z(n=C(n))),en(e,n,et(r))}if(e&&Array.isArray(e)&&typeof t>"u")return en(D(e),e,et(r));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,et(r));throw Error("Unknown call format to make()")}function en(e,t,r){if(0===t.length)return[];let n=[],i=G(0,0),o=0,l=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,p=g.length,v=V(g);switch(o||h===y||(i.start1=l,i.start2=a,i.utf8Start1=s,i.utf8Start2=u),h){case m:i.diffs[o++]=f,i.length2+=p,i.utf8Length2+=v,d=d.substring(0,a)+g+d.substring(a);break;case b:i.length1+=p,i.utf8Length1+=v,i.diffs[o++]=f,d=d.substring(0,a)+d.substring(a+p);break;case y:p<=2*r.margin&&o&&t.length!==e+1?(i.diffs[o++]=f,i.length1+=p,i.length2+=p,i.utf8Length1+=v,i.utf8Length2+=v):p>=2*r.margin&&o&&(ei(i,c,r),n.push(i),i=G(-1,-1),o=0,c=d,l=a,s=u);break;default:throw Error("Unknown diff type")}h!==m&&(l+=p,s+=v),h!==b&&(a+=p,u+=v)}return o&&(ei(i,c,r),n.push(i)),n}function ei(e,t,r){if(0===t.length)return;let n=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(n)!==t.lastIndexOf(n)&&n.length<32-r.margin-r.margin;)i+=r.margin,n=t.substring(e.start2-i,e.start2+e.length1+i);i+=r.margin;let o=e.start2-i;o>=1&&a(t[o])&&o--;let l=t.substring(o,e.start2);l&&e.diffs.unshift([y,l]);let s=l.length,u=V(l),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([y,d]);let f=d.length,h=V(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 eo=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function el(e){if(!e)return[];let t=[],r=e.split(`
3`),n=0;for(;n<r.length;){let e=r[n].match(eo);if(!e)throw Error(`Invalid patch string: ${r[n]}`);let i=G(ea(e[1]),ea(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=ea(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=ea(e[4]),i.length2=i.utf8Length2),n++;n<r.length;){let e;let t=r[n],o=t.charAt(0);if("@"===o)break;if(""===o){n++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let l=V(e)-e.length;if("-"===o)i.diffs.push([b,e]),i.length1-=l;else if("+"===o)i.diffs.push([m,e]),i.length2-=l;else if(" "===o)i.diffs.push([y,e]),i.length1-=l,i.length2-=l;else throw Error(`Invalid patch mode "${o}" in: ${e}`);n++}}return t}function ea(e){return parseInt(e,10)}function es(e){return e.map(eu).join("")}function eu(e){let t,r,n;let{utf8Length1:i,utf8Length2:o,utf8Start1:l,utf8Start2:a,diffs:s}=e;t=0===i?`${l},0`:1===i?`${l+1}`:`${l+1},${i}`,r=0===o?`${a},0`:1===o?`${a+1}`:`${a+1},${o}`;let u=[`@@ -${t} +${r} @@
4`];for(let e=0;e<s.length;e++){switch(s[e][0]){case m:n="+";break;case b:n="-";break;case y:n=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${n+encodeURI(s[e][1])}
5`}return u.join("").replace(/%20/g," ")}},38724:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});
5var n=r(95155),i=r(45054),o=r(64775),l=r(91611),a=r(78592),s=r(12115),u=r(40583);function c(e){let t=function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&("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,r,u,g,y,v,x,S,C,E,_,j,R,A,I,O;let z=(0,i.c)(54),M=void 0===e.showIcons||e.showIcons,P=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;z[0]!==e.groups||z[1]!==e.labels?(t=e.groups?[{name:f,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(m)]:[],z[0]=e.groups,z[1]=e.labels,z[2]=t):t=z[2],z[3]!==e.views?(r=e.views??[{name:"list"}],z[3]=e.views,z[4]=r):r=z[4],z[5]!==r?(u=r.map(b),z[5]=r,z[6]=u):u=z[6],z[7]!==t||z[8]!==u?(g={query:"",groups:t,views:u},z[7]=t,z[8]=u,z[9]=g):g=z[9];let[$,T]=(0,s.useReducer)(d,g);if(z[10]!==e||z[11]!==P||z[12]!==M||z[13]!==$.groups||z[14]!==$.query||z[15]!==$.views){var N,L,F;let t,r,i;let s=(N=e.schemaTypes,L=$.query,F=$.groups,N.filter(e=>(function(e,t){let r=t.find(e=>e.selected);return!r||r.name===f||r.of?.includes(e.name)})(e,F)&&function(e,t){let r=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(r):e.name.includes(r)}(e,L))),u=$.views.find(p),d=P||$.views.length>1,g=$.groups&&$.groups.length>0,b=d||g;x=l.W1,R=0,v=l.so,E="column",_="fill",z[25]!==b?(t=b?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},z[25]=b,z[26]=t):t=z[26],z[27]!==e.labels||z[28]!==P||z[29]!==d||z[30]!==$.query||z[31]!==$.views?(r=d?(0,n.jsxs)(l.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[P?(0,n.jsx)(l.az,{flex:1,children:(0,n.jsx)(l.ks,{autoFocus:!0,border:!1,fontSize:1,icon:o.WIv,onChange:e=>{T({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:$.query})}):null,$.views.length>1?(0,n.jsx)(l.az,{flex:"none",children:(0,n.jsx)(w,{views:$.views,onToggle:e=>{T({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,z[27]=e.labels,z[28]=P,z[29]=d,z[30]=$.query,z[31]=$.views,z[32]=r):r=z[32],z[33]!==g||z[34]!==$.groups?(i=g?(0,n.jsx)(l.az,{paddingTop:1,paddingX:1,children:(0,n.jsx)(l.wb,{space:1,children:$.groups.map(e=>(0,n.jsx)(l.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??a(e.name),selected:e.selected,onClick:()=>{T({type:"select group",name:e.name})}},e.name))})}):null,z[33]=g,z[34]=$.groups,z[35]=i):i=z[35],z[36]!==t||z[37]!==r||z[38]!==i?(j=(0,n.jsxs)(l.az,{...t,children:[r,i]}),z[36]=t,z[37]=r,z[38]=i,z[39]=j):j=z[39],y=l.az,S=1,C=0===s.length?(0,n.jsx)(l.az,{padding:2,children:(0,n.jsx)(l.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,n.jsx)(l.xA,{autoRows:"auto",flex:1,gap:1,style:h,children:s.map(t=>(0,n.jsx)(k,{icon:M?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,n.jsx)(l.BJ,{flex:1,space:1,children:s.map(t=>(0,n.jsx)(l.Dr,{icon:M?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??a(t.name)},t.name))}):null,z[10]=e,z[11]=P,z[12]=M,z[13]=$.groups,z[14]=$.query,z[15]=$.views,z[16]=y,z[17]=v,z[18]=x,z[19]=S,z[20]=C,z[21]=E,z[22]=_,z[23]=j,z[24]=R}else y=z[16],v=z[17],x=z[18],S=z[19],C=z[20],E=z[21],_=z[22],j=z[23],R=z[24];return z[40]!==y||z[41]!==S||z[42]!==C?(A=(0,n.jsx)(y,{padding:S,children:C}),z[40]=y,z[41]=S,z[42]=C,z[43]=A):A=z[43],z[44]!==v||z[45]!==A||z[46]!==E||z[47]!==_||z[48]!==j?(I=(0,n.jsxs)(v,{direction:E,height:_,children:[j,A]}),z[44]=v,z[45]=A,z[46]=E,z[47]=_,z[48]=j,z[49]=I):I=z[49],z[50]!==x||z[51]!==I||z[52]!==R?(O=(0,n.jsx)(x,{padding:R,children:I}),z[50]=x,z[51]=I,z[52]=R,z[53]=O):O=z[53],O}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:o.jxC,list:o.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function w(e){let t,r,o,a;let 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,n.jsx)(l.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?(r=()=>{e.onToggle(c.name)},s[2]=c.name,s[3]=e,s[4]=r):r=s[4],s[5]!==f||s[6]!==r?(o=(0,n.jsx)(l.$n,{mode:"bleed",icon:f,onClick:r}),s[5]=f,s[6]=r,s[7]=o):o=s[7],s[8]!==t||s[9]!==o?(a=(0,n.jsx)(l.m_,{content:t,placement:"top",portal:!0,children:o}
5),s[8]=t,s[9]=o,s[10]=a):a=s[10],a}function x(e){return e.selected}function k(e){let t,r,o,a,c,d,f,h,g;let 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")?(r={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},p[1]=r):r=p[1],p[2]!==y?(o=(0,u.isValidElementType)(y)?(0,n.jsx)(l.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,n.jsx)(l.EY,{size:1,children:(0,n.jsx)(y,{})})}):null,p[2]=y,p[3]=o):o=p[3],p[4]!==b||p[5]!==e.previewImageUrl?(a=!e.previewImageUrl||b?null:(0,n.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,n.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]!==o||p[9]!==a?(d=(0,n.jsxs)(l.az,{flex:"none",style:r,children:[o,a,c]}),p[8]=o,p[9]=a,p[10]=d):d=p[10];let v=e.schemaType.title??e.schemaType.name;return p[11]!==v?(f=(0,n.jsx)(l.az,{flex:1,padding:2,children:(0,n.jsx)(l.EY,{size:1,weight:"medium",children:v})}),p[11]=v,p[12]=f):f=p[12],p[13]!==d||p[14]!==f?(h=(0,n.jsxs)(l.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,n.jsx)(l.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}},3818:(e,t,r)=>{"use strict";r.d(t,{BI:()=>M,Co:()=>U,EA:()=>J,IU:()=>G,Ki:()=>b,Kp:()=>et,X:()=>h,dj:()=>ej,jT:()=>I,lG:()=>V,r5:()=>ee,s5:()=>p,sQ:()=>m,tE:()=>eE,tH:()=>y});var n=r(91611),i=r(95155),o=r(64775),l=r(12115),a=r(16873),s=r(62089),u=r(24285),c=r(51821),d=r(25683);function f(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function h(e){let t=null,r=f(()=>{t=f(e)});return()=>{t&&t(),r()}}function g(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,n.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,n.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,n.WE)(e)||(0,n.q4)(e)||(0,n.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 r=e.childNodes[t];if((0,n.sb)(r)&&(g(r)||p(r)))return!0}return!1}function b(e){for(let t=e.childNodes.length-1;t>=0;t--){let r=e.childNodes[t];if((0,n.sb)(r)&&(g(r)||b(r)))return!0}return!1}function m(e){return n.cF(e)?._contentRect||null}class y extends l.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)(n.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)(n.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)(o.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${x} 500ms linear infinite;`;function S(e){let t,r,o;let l=(0,s.c)(11),{children:a,id:u,onSelect:c,selected:d,value:f}=e;l[0]!==c||l[1]!==f?(t=()=>{setTimeout(()=>{c(f)},0)},l[0]=c,l[1]=f,l[2]=t):t=l[2];let h=t;l[3]!==h?(r=e=>{"Enter"!==e.key||(0,n.zd)(e.currentTarget)||h()},l[3]=h,l[4]=r):r=l[4];let g=r;return l[5]!==a||l[6]!==h||l[7]!==g||l[8]!==u||l[9]!==d?(o=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:h,onKeyDown:g,children:a}),l[5]=a,l[6]=h,l[7]=g,l[8]=u,l[9]=d,l[10]=o):o=l[10],o}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 E=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],_=["bottom-start","to
13p-start"],j=(e,t)=>t?t.value:e,R=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,A=(0,l.forwardRef)(function(e,t){let{border:r=!0,customValidity:a,disabled:s,filterOption:u,fontSize:c=2,icon:d,id:h,listBox:g=n.sU,loading:b,onBlur:m,onChange:y,onFocus:x,onQueryChange:A,onSelect:I,openButton:O,openOnFocus:z,options:M,padding:P=3,popover:$=n.sU,prefix:T,radius:N=2,readOnly:L,relatedElements:F,renderOption:H,renderPopover:D,renderValue:B=j,suffix:W,value:V,...U}=e,[G,Y]=(0,l.useReducer)(C,{activeValue:V||null,focused:!1,listFocused:!1,query:null,value:V||null}),{activeValue:q,focused:K,listFocused:Z,query:X,value:J}=G,Q=(0,l.useCallback)(({value:e})=>(0,i.jsx)(n.Zp,{"data-as":"button",padding:P,radius:2,tone:"inherit",children:(0,i.jsx)(n.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,P]),ee="function"==typeof H?H:Q,et="function"==typeof u?u:R,er=(0,l.useRef)(null),en=(0,l.useRef)(null),ei=(0,l.useRef)(null),eo=(0,l.useRef)(null),el=(0,l.useRef)(!1),ea=(0,l.useRef)(J),es=(0,l.useRef)(V),eu=(0,l.useRef)(!1);(0,l.useImperativeHandle)(t,()=>ei.current);let ec=`${h}-listbox`,ed=Array.isArray(M)?M:n.Ml,ef=(0,n.KC)(P),eh=(0,l.useMemo)(()=>null!==J?ed.find(e=>e.value===J):void 0,[ed,J]),eg=(0,l.useMemo)(()=>ed.filter(e=>!X||et(X,e)),[et,ed,X]),ep=eg.length,eb=q?`${h}-option-${q}`:void 0,em=null!==X&&b||K&&null!==X,ey=(0,l.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(F||[]).concat(er.current?[er.current]:[],en.current?[en.current]:[]),r=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){r=!0;break}}!1===r&&(Y({type:"root/blur"}),eu.current=!1,A&&A(null),m&&m(e))},0)},[m,A,F]),ev=(0,l.useCallback)(e=>{let t=eo.current,r=e.target instanceof HTMLElement?e.target:null,n=t?.contains(r)||!1;n!==el.current&&(el.current=n,Y({type:"root/setListFocused",listFocused:n}))},[]),ew=(0,l.useCallback)(e=>{Y({type:"value/change",value:e}),eu.current=!1,I&&I(e),ea.current=e,y&&y(e),A&&A(null),ei.current?.focus()},[y,I,A]),ex=(0,l.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!ep)return;let t=eg.find(e=>e.value===q),r=t?eg.indexOf(t):-1,n=eg[(r+1)%ep];n&&Y({type:"root/setActiveValue",value:n.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!ep)return;let t=eg.find(e=>e.value===q),r=t?eg.indexOf(t):-1,n=eg[-1===r?ep-1:(ep+r-1)%ep];n&&Y({type:"root/setActiveValue",value:n.value,listFocused:!0});return}if("Escape"===e.key){Y({type:"root/escape"}),eu.current=!1,A&&A(null),ei.current?.focus();return}let t=e.target,r=eo.current;if((r===t||r?.contains(t))&&!E.includes(e.key)){ei.current?.focus();return}},[q,eg,ep,A]),ek=(0,l.useCallback)(e=>{let t=e.currentTarget.value;Y({type:"input/change",query:t}),A&&A(t)},[A]),eS=(0,l.useCallback)(()=>{Y({type:"root/open",query:J?B(J,eh):""})},[eh,B,J]),eC=(0,l.useCallback)(e=>{K||(Y({type:"input/focus"}),x&&x(e),z&&eS())},[K,x,z,eS]),eE=(0,l.useCallback)(()=>{eu.current=!0},[]),e_=(0,l.useCallback)(()=>{eu.current=!1},[]),ej=(0,l.useCallback)(()=>{Y({type:"root/clear"}),ea.current="",y&&y(""),A&&A(null),ei.current?.focus()},[y,A]),eR=(0,l.useCallback)(()=>{Y({type:"input/focus"})},[]);(0,l.useEffect)(()=>{if(V!==es.current){es.current=V,void 0!==V&&(Y({type:"value/change",value:V}),ea.current=V);return}V!==ea.current&&(ea.current=V||null,Y({type:"value/change",value:V||null}))},[V]),(0,l.useEffect)(()=>{!K&&ea.current&&Y({type:"root/setActiveValue",value:ea.current})},[K]),(0,l.useEffect)(()=>{let e=eo.current;if(!e)return;let t=eg.find(e=>e.value===q);if(t){let r=eg.indexOf(t),n=e.childNodes[r];if(n){if(document.activeElement&&n.contains(document.activeElement))return;p(n)}}},[q,eg]);let eA=(0,l.useMemo)(()=>{if(!b&&!s&&J)return{"aria-label":"Clear",onFocus:eR}},[s,eR,b,J]),eI=(0,l.useMemo)(()=>ef.map(e=>0===e?0:1===e||2===e?1:e-2),[ef]),eO=(0,l.useMemo)(()=>ef.map(e=>Math.max(e-1,0)),[ef]),ez=(0,l.useMemo)(()=>"object"==typeof O?O:n.sU,[O]),eM=(0,l.useCallback)(e=>{eS(),ez.onClick&&ez.onClick(e),f(()=>ei.current?.focus())},[ez,eS]),eP=(0,l.useMemo)(()=>s||L||!O?void 0:(0,i.jsx)(n.az,{"aria-hidden":em,padding:eI,children:(0,i.jsx)(n.$n,{"aria-label":"Open",disabled:em,fontSize:c,icon:o.D3D,mode:"bleed",padding:eO,...ez,onClick:eM})}),[s,em,c,eM,O,eI,eO,ez,L]),e$=(0,l.useMemo)(()=>null===X?null!==J?B(J,eh):"":X,[eh,X,B,J]),eT=(0,i.jsx)(n.ks,{...U,"aria-activedescendant":eb,"aria-autocomplete":"list","aria-expanded":em,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:r,clearButton:eA,customValidity:a,disabled:s,fontSize:c,icon:d,iconRight:b&&k,id:h,inputMode:"search",onChange:ek,onClear:ej,onFocus:eC,padding:ef,prefix:T,radiu
13s:N,readOnly:L,ref:ei,role:"combobox",spellCheck:!1,suffix:W||eP,value:e$}),eN=(0,l.useCallback)(e=>{"Tab"===e.key&&Z&&ei.current?.focus()},[Z]),eL=(0,l.useMemo)(()=>0===eg.length?null:(0,i.jsx)(w,{"data-ui":"AutoComplete__results",onKeyDown:eN,padding:1,...g,tabIndex:-1,children:(0,i.jsx)(n.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:eo,role:"listbox",space:1,children:eg.map(e=>{let t=null!==q?e.value===q:eh===e;return(0,i.jsx)(S,{id:`${h}-option-${e.value}`,onSelect:ew,selected:t,value:e.value,children:(0,l.cloneElement)(ee(e),{disabled:b,selected:t,tabIndex:Z&&t?0:-1})},e.value)})})}),[q,eh,eg,ew,eN,h,g,ec,Z,b,ee]),eF=(0,l.useMemo)(()=>D?D({content:eL,hidden:!em,inputElement:ei.current,onMouseEnter:eE,onMouseLeave:e_},en):0===ep?null:(0,i.jsx)(n.AM,{arrow:!1,constrainSize:!0,content:eL,fallbackPlacements:_,matchReferenceWidth:!0,onMouseEnter:eE,onMouseLeave:e_,open:em,overflow:"auto",placement:"bottom-start",portal:!0,radius:N,ref:en,referenceElement:ei.current,...$}),[eL,em,ep,eE,e_,$,N,D]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:ey,onFocus:ev,onKeyDown:ex,ref:er,children:[eT,eF]})});A.displayName="ForwardRef(Autocomplete)";let I=A,O=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;`,z=(0,a.I4)(n.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,M=(0,l.forwardRef)(function(e,t){let{children:r,maxLength:o,separator:a,space:s=2,...u}=e,c=(0,n.KC)(s),[d,f]=(0,l.useState)(!1),h=(0,l.useRef)(null),g=(0,l.useRef)(null),p=(0,l.useCallback)(()=>f(!1),[]),b=(0,l.useCallback)(()=>f(!0),[]);(0,n.PR)(p,()=>[h.current,g.current]);let m=(0,l.useMemo)(()=>l.Children.toArray(r).filter(l.isValidElement),[r]),y=(0,l.useMemo)(()=>{let e=m.length;if(o&&e>o){let t=Math.ceil(o/2),r=Math.floor(o/2);return[...m.slice(0,t-1),(0,i.jsx)(n.AM,{constrainSize:!0,content:(0,i.jsx)(n.BJ,{as:"ol",overflow:"auto",padding:c,space:c,children:m.slice(t-1,e-r)}),open:d,placement:"top",portal:!0,ref:g,children:(0,i.jsx)(z,{fontSize:1,mode:"bleed",onClick:d?p:b,padding:1,ref:h,selected:d,text:"…"})},"button"),...m.slice(e-r)]}return m},[p,b,o,d,m,c]);return(0,i.jsx)(O,{"data-ui":"Breadcrumbs",...u,ref:t,children:y.map((e,t)=>(0,i.jsxs)(l.Fragment,{children:[t>0&&(0,i.jsx)(n.az,{"aria-hidden":!0,as:"li",paddingX:c,children:a||(0,i.jsx)(n.EY,{muted:!0,children:"/"})}),(0,i.jsx)(n.az,{as:"li",children:e})]},t))})});M.displayName="ForwardRef(Breadcrumbs)";let P=(0,n.bz)("@sanity/ui/context/dialog",{version:0});function $(e,t,r){return!e||!t||(0,n.Q3)(e,r)||(0,n.Q3)(t,r)}let T=(0,a.I4)(n.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(n.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,n.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)``}),N=(0,a.I4)(n.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)(n.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)(n.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,H=(0,a.I4)(n.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,D=(0,a.I4)(n.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,a.I4)(n.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,W=(0,l.forwardRef)(function(e,t){let r,a,u,c,d,f,h,g,b,m,y,v,w;let x=(0,s.c)(38),{__unstable_autoFocus:k,__unstable_hideCloseButton:S,children:C,contentRef:E,footer:_,header:j,id:R,onClickOutside:A,onClose:I,portal:O,radius:z,scheme:M,shadow:P,width:T}=e,W=(0,n.WP)(),V=O?W.elements?.[O]||null:W.element,U=(0,n.$w)().element,G=(0,n.KC)(z),Y=(0,n.KC)(P),q=(0,n.KC)(T),K=(0,l.useRef)(null),Z=(0,l.useRef)(null),{isTopLayer:X}=(0,n.Z4)(),J=`${R}_label`,Q=!!I&&!1===S,ee=!!j||Q;return x[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>K.current,x[0]=r):r=x[0],(0,l.useImperativeHandle)(t,r),x[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>Z.current,x[1]=a):a=x[1],(0,l.useImperativeHandle)(E,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,l.useEffect)(u,c),x[5]!==U||x[6]!==X||x[7]!==I||x[8]!==V?(d=e=>{if(!X||!I)return;let t=document.activeElement;t&&!$(U,V,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),I())}
38,x[5]=U,x[6]=X,x[7]=I,x[8]=V,x[9]=d):d=x[9],(0,n.Pm)(d),x[10]!==U||x[11]!==X||x[12]!==A||x[13]!==V?(f=X&&A&&(e=>{let t=e.target;t&&!$(U,V,t)||A()}),x[10]=U,x[11]=X,x[12]=A,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,n.PR)(f,h),x[16]!==j||x[17]!==J||x[18]!==I||x[19]!==Q||x[20]!==ee?(g=ee&&(0,i.jsx)(H,{children:(0,i.jsxs)(n.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(n.az,{flex:1,padding:2,children:j&&(0,i.jsx)(n.EY,{id:J,size:1,weight:"semibold",children:j})}),Q&&(0,i.jsx)(n.az,{flex:"none",children:(0,i.jsx)(n.$n,{"aria-label":"Close dialog",disabled:!I,icon:o.USm,mode:"bleed",onClick:I,padding:2})})]})}),x[16]=j,x[17]=J,x[18]=I,x[19]=Q,x[20]=ee,x[21]=g):g=x[21],x[22]!==C?(b=(0,i.jsx)(D,{flex:1,ref:Z,tabIndex:-1,children:C}),x[22]=C,x[23]=b):b=x[23],x[24]!==_?(m=_&&(0,i.jsx)(B,{children:_}),x[24]=_,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]!==M||x[32]!==Y||x[33]!==y?(v=(0,i.jsx)(L,{radius:G,ref:K,scheme:M,shadow:Y,children:y}),x[30]=G,x[31]=M,x[32]=Y,x[33]=y,x[34]=v):v=x[34],x[35]!==v||x[36]!==q?(w=(0,i.jsx)(N,{"data-ui":"DialogCard",width:q,children:v}),x[35]=v,x[36]=q,x[37]=w):w=x[37],w});W.displayName="ForwardRef(DialogCard)";let V=(0,l.forwardRef)(function(e,t){let r,o,a,u,c,d,f,h,g,m,y,v,w,x,k,S,C,E,_,j,R,A,I,O,z,M,N,L;let F=(0,s.c)(60),H=(0,l.useContext)(P),{layer:D}=(0,n.M4)();F[0]!==e?({__unstable_autoFocus:k,__unstable_hideCloseButton:S,cardRadius:C,cardShadow:E,children:a,contentRef:u,footer:c,header:d,id:f,onActivate:h,onClickOutside:g,onClose:m,onFocus:y,padding:_,portal:v,position:r,scheme:x,width:j,zOffset:o,animate:R,...w}=e,F[0]=e,F[1]=r,F[2]=o,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]=E,F[19]=_,F[20]=j,F[21]=R):(r=F[1],o=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],E=F[18],_=F[19],j=F[20],R=F[21]);let B=void 0===k||k,V=void 0!==S&&S,U=void 0===C?4:C,G=void 0===E?3:E,Y=void 0===_?3:_,q=void 0===j?0:j,K=void 0!==R&&R,Z=r??(H.position||"fixed"),X=o??(H.zOffset||D.dialog.zOffset),J=!(0,n.jt)()&&K,Q=(0,n.WP)(),ee=v?Q.elements?.[v]||null:Q.element,et=(0,n.$w)().element,er=(0,n.KC)(U),en=(0,n.KC)(Y),ei=(0,n.KC)(Z),eo=(0,n.KC)(q),el=(0,n.KC)(X),ea=(0,l.useRef)(null),es=(0,l.useRef)(null),eu=(0,l.useRef)(null),ec=(0,l.useRef)(null);F[22]!==y?(A=e=>{y?.(e);let t=e.target,r=eu.current;if(r&&t===ea.current){b(r);return}if(r&&t===es.current){p(r);return}(0,n.sb)(e.target)&&(ec.current=e.target)},F[22]=y,F[23]=A):A=F[23];let ed=A,ef=`${f}_label`,eh=(0,l.useRef)(void 0);F[24]!==et||F[25]!==ee?(I=()=>{eh.current&&clearTimeout(eh.current),eh.current=setTimeout(()=>{let e=document.activeElement;if(e&&!$(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]=I):I=F[26];let eg=I;return F[27]===Symbol.for("react.memo_cache_sentinel")?(O=(0,i.jsx)("div",{ref:ea,tabIndex:0}),F[27]=O):O=F[27],F[28]!==B||F[29]!==er||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]!==eo?(z=(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:er,ref:eu,scheme:x,shadow:G,width:eo,children:a}),F[28]=B,F[29]=er,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]=eo,F[42]=z):z=F[42],F[43]===Symbol.for("react.memo_cache_sentinel")?(M=(0,i.jsx)("div",{ref:es,tabIndex:0}),F[43]=M):M=F[43],F[44]!==J||F[45]!==ed||F[46]!==eg||F[47]!==f||F[48]!==ef||F[49]!==h||F[50]!==en||F[51]!==ei||F[52]!==t||F[53]!==w||F[54]!==z||F[55]!==el?(N=(0,i.jsxs)(T,{...w,$animate:J,$padding:en,$position:ei,"aria-labelledby":ef,"aria-modal":!0,"data-ui":"Dialog",id:f,onActivate:h,onClick:eg,onFocus:ed,ref:t,role:"dialog",zOffset:el,children:[O,z,M]}),F[44]=J,F[45]=ed,F[46]=eg,F[47]=f,F[48]=ef,F[49]=h,F[50]=en,F[51]=ei,F[52]=t,F[53]=w,F[54]=z,F[55]=el,F[56]=N):N=F[56],F[57]!==v||F[58]!==N?(L=(0,i.jsx)(n.ZL,{__unstable_name:v,children:N}),F[57]=v,F[58]=N,F[59]=L):L=F[59],L});function U(e){let t,r,n;let o=(0,s.c)(6),{children:l,position:a,zOffset:u}=e;return o[0]!==a||o[1]!==u?(r={version:0,position:a,zOffset:u},o[0]=a,o[1]=u,o[2]=r):r=o[2],t=r,o[3]!==l||o[4]!==t?(n=(0,i.jsx)(P.Provider,{value:t,children:l}),o[3]=l,o[4]=t,o[5]=n):n=o[5],n}V.displayName="ForwardRef(Dialog)",U.displayName="DialogProvider";let G=(0,l.forwardRef)(function(e,t){let r,o,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C,E,_,j,R,A,I;let O=(0,s.c)(62),{__unstable_disableRestoreFocusOnClose:z,boundaryElement:M,button:P,id:$,menu:T,onClose:N,onOpen:L,placement:F,popoverScheme:H,portal:D,popover:B,popoverRadius:W,preventOverflow:V}=e,U=void 0!==z&&z,G=void 0===D||D,[q,K]=(0,l.useState)(!1),[Z,X]=(0,l.useState)(null),[J,Q]=(0,l.useState)(null);O[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],O[0]=r):r=O[0];let[ee,et]=(0,l.useState)(r),er=(0,l.useRef)(q);O[1]!==L||O[2]!==q?(o=()=>{L&&q&&!er.current&&L()},a=[L,q],O[1]=L,O[2]=q,O[3]=o,O[4]=a):(o=O[3],a=O[4]),(0,l.useEffect)(o,a),O[5]!==N||O[6]!==q?(u=()=>{N&&!q&&er.current&&N()},c=[N,q],O[5]=N,O[6]=q,O[7]=u,O[8]=c):(u=O[7],c=O[8]),(0,l.useEffect)(u,c),O[9]!==q?(d=()=>{er.current=q},f=[q],O[9]=q,O[10]=d,O[11]=f):(d=O[10],f=O[11]),(0,l.useEffect)(d,f),O[12]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{K(Y),X(null)},O[12]=h):h=O[12];let en=h;O[13]!==q?(g=e=>{q&&e.preventDefault()},O[13]=q,O[14]=g):g=O[14];let ei=g;O[15]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),K(!0),X("first");return}if("ArrowUp"===e.key){e.preventDefault(),K(!0),X("last");return}},O[15]=p):p=O[15];let eo=p;O[16]!==J||O[17]!==ee?(b=e=>{let t=e.target;if(t instanceof Node&&!(J&&(t===J||J.contains(t)))){for(let e of ee)if(t===e||e.contains(t))return;K(!1)}},O[16]=J,O[17]=ee,O[18]=b):b=O[18];let el=b;O[19]!==J||O[20]!==U?(m=()=>{K(!1),!U&&J&&J.focus()},O[19]=J,O[20]=U,O[21]=m):m=O[21];let ea=m;O[22]!==ee?(y=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of ee)if(e===t||e.contains(t))return;K(!1)}},O[22]=ee,O[23]=y):y=O[23];let es=y;O[24]!==J||O[25]!==U?(v=()=>{K(!1),!U&&J&&J.focus()},O[24]=J,O[25]=U,O[26]=v):v=O[26];let eu=v;O[27]===Symbol.for("react.memo_cache_sentinel")?(w=e=>(et(t=>t.concat([e])),()=>et(t=>t.filter(t=>t!==e))),O[27]=w):w=O[27];let ec=w;O[28]!==J||O[29]!==es||O[30]!==eu||O[31]!==el||O[32]!==ea||O[33]!==$||O[34]!==T||O[35]!==Z?(x=T&&(0,l.cloneElement)(T,{"aria-labelledby":$,onBlurCapture:es,onClickOutside:el,onEscape:ea,onItemClick:eu,originElement:J,registerElement:ec,shouldFocus:Z}),O[28]=J,O[29]=es,O[30]=eu,O[31]=el,O[32]=ea,O[33]=$,O[34]=T,O[35]=Z,O[36]=x):x=O[36];let ed=x;return O[37]!==P||O[38]!==ei||O[39]!==$||O[40]!==q?(S=P&&(0,l.cloneElement)(P,{"data-ui":"MenuButton",id:$,onClick:en,onKeyDown:eo,onMouseDown:ei,"aria-haspopup":!0,"aria-expanded":q,ref:Q,selected:P.props.selected??q}),O[37]=P,O[38]=ei,O[39]=$,O[40]=q,O[41]=S):S=O[41],k=S,O[42]!==J?(C=()=>J,E=[J],O[42]=J,O[43]=C,O[44]=E):(C=O[43],E=O[44]),(0,l.useImperativeHandle)(t,C,E),O[45]!==B?(j=B||{},O[45]=B,O[46]=j):j=O[46],O[47]!==M||O[48]!==F||O[49]!==W||O[50]!==H||O[51]!==G||O[52]!==V||O[53]!==j?(R={boundaryElement:M,overflow:"auto",placement:F,portal:G,preventOverflow:V,radius:W,scheme:H,...j},O[47]=M,O[48]=F,O[49]=W,O[50]=H,O[51]=G,O[52]=V,O[53]=j,O[54]=R):R=O[54],_=R,O[55]!==k?(A=k||(0,i.jsx)(i.Fragment,{}
38),O[55]=k,O[56]=A):A=O[56],O[57]!==ed||O[58]!==q||O[59]!==_||O[60]!==A?(I=(0,i.jsx)(n.AM,{"data-ui":"MenuButton__popover",..._,content:ed,open:q,children:A}),O[57]=ed,O[58]=q,O[59]=_,O[60]=A,O[61]=I):I=O[61],I});function Y(e){return!e}G.displayName="ForwardRef(MenuButton)";let q=(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: ${q};
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?1:0};
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)(n.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(n.gK,Z),J=(0,l.forwardRef)(function(e,t){let r,o,a,u,c,d,f;let h=(0,s.c)(14);h[0]!==e?({animated:u,delay:r,radius:o,...a}=e,h[0]=e,h[1]=r,h[2]=o,h[3]=a,h[4]=u):(r=h[1],o=h[2],a=h[3],u=h[4]);let g=void 0!==u&&u,[p,b]=(0,l.useState)(!r);h[5]!==r?(c=()=>{if(!r)return b(!0);let e=setTimeout(()=>{b(!0)},r);return()=>{clearTimeout(e)}},d=[r],h[5]=r,h[6]=c,h[7]=d):(c=h[6],d=h[7]),(0,l.useEffect)(c,d);let m=(0,n.KC)(o);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:r}=e,{font:i,media:o}=(0,u.JW)(e.theme),l=i[r];return(0,n.U1)(o,t,e=>{let t=l.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,l.forwardRef)(function(e,t){let r,o,l;let a=(0,s.c)(7);a[0]!==e?({size:o,...r}=e,a[0]=e,a[1]=r,a[2]=o):(r=a[1],o=a[2]);let u=(0,n.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==r?(l=(0,i.jsx)(Q,{...r,$size:u,ref:t,$style:"text"}),a[3]=u,a[4]=t,a[5]=r,a[6]=l):l=a[6],l});ee.displayName="ForwardRef(TextSkeleton)",(0,l.forwardRef)(function(e,t){let r,o,l;let a=(0,s.c)(7);a[0]!==e?({size:o,...r}=e,a[0]=e,a[1]=r,a[2]=o):(r=a[1],o=a[2]);let u=(0,n.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==r?(l=(0,i.jsx)(Q,{...r,$size:u,ref:t,$style:"label"}),a[3]=u,a[4]=t,a[5]=r,a[6]=l):l=a[6],l}).displayName="ForwardRef(LabelSkeleton)",(0,l.forwardRef)(function(e,t){let r,o,l;let a=(0,s.c)(7);a[0]!==e?({size:o,...r}=e,a[0]=e,a[1]=r,a[2]=o):(r=a[1],o=a[2]);let u=(0,n.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==r?(l=(0,i.jsx)(Q,{...r,$size:u,ref:t,$style:"heading"}),a[3]=u,a[4]=t,a[5]=r,a[6]=l):l=a[6],l}).displayName="ForwardRef(HeadingSkeleton)",(0,l.forwardRef)(function(e,t){let r,o,l;let a=(0,s.c)(7);a[0]!==e?({size:o,...r}=e,a[0]=e,a[1]=r,a[2]=o):(r=a[1],o=a[2]);let u=(0,n.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==r?(l=(0,i.jsx)(Q,{...r,$size:u,ref:t,$style:"code"}),a[3]=u,a[4]=t,a[5]=r,a[6]=l):l=a[6],l}).displayName="ForwardRef(CodeSkeleton)";let et=(0,l.forwardRef)(function(e,t){let r,o,l;let a=(0,s.c)(9);a[0]!==e?({flex:r,...o}=e,a[0]=e,a[1]=r,a[2]=o):(r=a[1],o=a[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return a[3]!==r||a[4]!==e.children||a[5]!==t||a[6]!==o||a[7]!==u?(l=(0,i.jsx)(n.az,{"data-ui":"TabPanel",...o,flex:r,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),a[3]=r,a[4]=e.children,a[5]=t,a[6]=o,a[7]=u,a[8]=l):l=a[8],l});et.displayName="ForwardRef(TabPanel)";let er={error:"critical",warning:"caution",success:"positive",info:"neutral"},en={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,a.I4)(n.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,eo=(0,a.I4)(n.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);}`,el=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)(n.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)(n.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,r,l,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C;let E=(0,s.c)(50);E[0]!==e?({closable:t,description:r,duration:l,onClose:a,radius:d,title:f,status:c,updatedAt:h,...u}=e,E[0]=e,E[1]=t,E[2]=r,E[3]=l,E[4]=a,E[5]=u,E[6]=c,E[7]=d,E[8]=f,E[9]=h):(t=E[1],r=E[2],l=E[3],a=E[4],u=E[5],c=E[6],d=E[7],f=E[8],h=E[9]);let _=void 0===d?3:d,j=c?er[c]:"default",R=c?en[c]:"default",A=c?eu[c]:"status",I=(0,n.jt)()?0:.26;E[10]!==I?(g=I?{type:"spring",visualDuration:I,bounce:.25}:{duration:0},E[10]=I,E[11]=g):g=E[11];let O=g,z=l&&isFinite(l)&&l<20736e5;E[12]===Symbol.for("react.memo_cache_sentinel")?(p=["hidden","initial"],E[12]=p):p=E[12];let M=p;E[13]===Symbol.for("react.memo_cache_sentinel")?(b=["visible","slideIn"],E[13]=b):b=E[13];let P=b;E[14]===Symbol.for("react.memo_cache_sentinel")?(m=["hidden","slideOut"],E[14]=m):m=E[14];let $=m,T=z?"":void 0;return E[15]!==f?(y=f&&(0,i.jsx)(n.EY,{size:1,weight:"medium",children:f}),E[15]=f,E[16]=y):y=E[16],E[17]!==r||E[18]!==O?(v=r&&(0,i.jsx)(ep,{muted:!0,size:1,variants:ef,transition:O,children:r}),E[17]=r,E[18]=O,E[19]=v):v=E[19],E[20]!==y||E[21]!==v?(w=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(n.BJ,{space:3,children:[y,v]})}),E[20]=y,E[21]=v,E[22]=w):w=E[22],E[23]!==R||E[24]!==t||E[25]!==a?(x=t&&(0,i.jsx)(n.az,{padding:1,children:(0,i.jsx)(n.$n,{as:"button",icon:o.USm,mode:"bleed",padding:2,tone:R,onClick:a,style:{verticalAlign:"top"}})}),E[23]=R,E[24]=t,E[25]=a,E[26]=x):x=E[26],E[27]!==w||E[28]!==x||E[29]!==O?(k=(0,i.jsxs)(eg,{align:"flex-start",variants:ef,transition:O,children:[w,x]}),E[27]=w,E[28]=x,E[29]=O,E[30]=k):k=E[30],E[31]!==j||E[32]!==l||E[33]!==z||E[34]!==a||E[35]!==_||E[36]!==O||E[37]!==h||E[38]!==I?(S=z&&(0,i.jsxs)(eb,{variants:ef,transition:O,children:[(0,i.jsx)(ea,{tone:j,radius:_}),(0,i.jsx)(em,{tone:j,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:I,duration:l/1e3,ease:"linear"},onAnimationComplete:a},`progress-${h}
74`)]}),E[31]=j,E[32]=l,E[33]=z,E[34]=a,E[35]=_,E[36]=O,E[37]=h,E[38]=I,E[39]=S):S=E[39],E[40]!==j||E[41]!==_||E[42]!==u||E[43]!==A||E[44]!==k||E[45]!==S||E[46]!==T||E[47]!==O||E[48]!==I?(C=(0,i.jsxs)(eh,{"data-ui":"Toast",role:A,...u,"data-has-duration":T,custom:I,radius:_,shadow:2,tone:j,forwardedAs:"li",layout:"position",variants:ed,initial:M,animate:P,exit:$,transition:O,children:[k,S]}),E[40]=j,E[41]=_,E[42]=u,E[43]=A,E[44]=k,E[45]=S,E[46]=T,E[47]=O,E[48]=I,E[49]=C):C=E[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(eo),eg=c.P.create(n.so),ep=c.P.create(n.EY),eb=c.P.create(el),em=c.P.create(es);function ey(){return!1}function ev(){return!0}let ew=()=>()=>{},ex=(0,n.bz)("@sanity/ui/context/toast",null);function ek(e){let t,r;let o=(0,s.c)(9),{children:l,padding:a,paddingX:u,paddingY:c,gap:d}=e,f=void 0===a?4:a,h=void 0===d?3:d,{zIndex:g}=(0,n.Z4)();return o[0]!==g?(t={zIndex:g},o[0]=g,o[1]=t):t=o[1],o[2]!==l||o[3]!==h||o[4]!==f||o[5]!==u||o[6]!==c||o[7]!==t?(r=(0,i.jsx)(eS,{forwardedAs:"ul","data-ui":"ToastProvider",padding:f,paddingX:u,paddingY:c,gap:h,columns:1,style:t,children:l}),o[2]=l,o[3]=h,o[4]=f,o[5]=u,o[6]=c,o[7]=t,o[8]=r):r=o[8],r}ek.displayName="ToastLayer";let eS=(0,a.I4)(n.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 eE(e){let t,r,o,a,u;let c=(0,s.c)(13),{children:f,padding:h,paddingX:g,paddingY:p,gap:b,zOffset:m}=e,y=void 0===m?1:m;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let[v,w]=(0,l.useState)(t),x=(0,l.useSyncExternalStore)(ew,ev,ey);return c[1]===Symbol.for("react.memo_cache_sentinel")?(o={version:0,push:e=>{let t=e.id||String(eC++),r=e.duration||5e3;return(0,l.startTransition)(()=>{w(n=>.01===r?n.filter(e=>e.id!==t):[...n.filter(e=>e.id!==t),{dismiss:()=>(0,l.startTransition)(()=>w(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:r}}])}),t}},c[1]=o):o=c[1],r=o,c[2]!==b||c[3]!==x||c[4]!==h||c[5]!==g||c[6]!==p||c[7]!==v||c[8]!==y?(a=x&&(0,i.jsx)(n.XS,{zOffset:y,children:(0,i.jsx)(ek,{padding:h,paddingX:g,paddingY:p,gap:b,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:v.map(e_)})})}),c[2]=b,c[3]=x,c[4]=h,c[5]=g,c[6]=p,c[7]=v,c[8]=y,c[9]=a):a=c[9],c[10]!==f||c[11]!==a?(u=(0,i.jsxs)(ex.Provider,{value:r,children:[f,a]}),c[10]=f,c[11]=a,c[12]=u):u=c[12],u}function e_(e){let{dismiss:t,id:r,params:n,updatedAt:o}=e;
74return(0,i.jsx)(ec,{closable:n.closable,description:n.description,onClose:t,status:n.status,title:n.title,duration:n.duration,updatedAt:o},r)}function ej(){let e=(0,l.useContext)(ex);if(!e)throw Error("useToast(): missing context value");if(!(0,n.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function eR(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eE.displayName="ToastProvider";let eA=(0,n.bz)("@sanity/ui/context/tree",null);function eI(){let e=(0,l.useContext)(eA);if(!e)throw Error("Tree: missing context value");return e}(0,l.memo)((0,l.forwardRef)(function(e,t){let r,o,a,u,c,d,f,h,g,p,b,m,y,v,w,x,k,S,C,E,_,j,R;let A=(0,s.c)(37);A[0]!==e?({children:r,space:u,onFocus:o,...a}=e,A[0]=e,A[1]=r,A[2]=o,A[3]=a,A[4]=u):(r=A[1],o=A[2],a=A[3],u=A[4]);let I=void 0===u?1:u,O=(0,l.useRef)(null),[z,M]=(0,l.useState)(null),P=(0,l.useRef)(z);A[5]===Symbol.for("react.memo_cache_sentinel")?(d=[],A[5]=d):d=A[5],c=d,A[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],A[6]=f):f=A[6];let[$,T]=(0,l.useState)(f);A[7]===Symbol.for("react.memo_cache_sentinel")?(h={},A[7]=h):h=A[7];let[N,L]=(0,l.useState)(h),F=(0,l.useRef)(N);A[8]===Symbol.for("react.memo_cache_sentinel")?(g=()=>O.current,A[8]=g):g=A[8],(0,l.useImperativeHandle)(t,g),A[9]!==z?(p=()=>{P.current=z},b=[z],A[9]=z,A[10]=p,A[11]=b):(p=A[10],b=A[11]),(0,l.useEffect)(p,b),A[12]!==N?(m=()=>{F.current=N},y=[N],A[12]=N,A[13]=m,A[14]=y):(m=A[13],y=A[14]),(0,l.useEffect)(m,y),A[15]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t,r,n)=>(L(n=>({...n,[t]:{element:e,expanded:r}})),n&&M(e),()=>{L(e=>{let r={...e};return delete r[t],r})}),A[15]=v):v=A[15];let H=v;A[16]===Symbol.for("react.memo_cache_sentinel")?(w=(e,t)=>{L(r=>{let n=r[e];return n?{...r,[e]:{...n,expanded:t}}:r})},A[16]=w):w=A[16];let D=w,B=z||$[0]||null;A[17]!==I||A[18]!==N||A[19]!==B?(k={version:0,focusedElement:B,level:0,path:c,registerItem:H,setExpanded:D,setFocusedElement:M,space:I,state:N},A[17]=I,A[18]=N,A[19]=B,A[20]=k):k=A[20],x=k,A[21]!==$?(S=e=>{if(P.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,r){let n=t.indexOf(r),i=t.slice(n),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let r=i[t].getAttribute("data-tree-key");if(!r)continue;let n=r.split("/");n.pop();let o=[],l=!0;for(let t=0;t<n.length;t+=1){o.push(n[t]);let r=o.join("/");if(!e[r]?.expanded){l=!1;break}}if(l)return i[t]}return null}(F.current,$,P.current);t&&(eR(t),M(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,r){let n=t.indexOf(r),i=t.slice(0,n),o=i.length;for(let t=o-1;t>=0;t-=1){let r=i[t].getAttribute("data-tree-key");if(!r)continue;let n=r.split("/");n.pop();let o=[],l=!0;for(let t=0;t<n.length;t+=1){o.push(n[t]);let r=o.join("/");if(!e[r]?.expanded){l=!1;break}}if(l)return i[t]}return null}(F.current,$,P.current);t&&(eR(t),M(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=P.current.getAttribute("data-tree-key");if(!t)return;let r=F.current[t];if(!r)return;if(r.expanded)L(e=>{let r=e[t];return r?{...e,[t]:{...r,expanded:!1}}:e});else{let e=t.split("/");e.pop();let r=e.join("/"),n=r&&F.current[r];n&&(n.element.focus(),M(n.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=P.current.getAttribute("data-tree-key");if(!t)return;F.current[t]?.expanded||L(e=>{let r=e[t];return r?{...e,[t]:{...r,expanded:!0}}:e});return}}},A[21]=$,A[22]=S):S=A[22];let W=S;A[23]!==o?(C=e=>{M(e.target),o?.(e)},A[23]=o,A[24]=C):C=A[24];let V=C;return A[25]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{O.current&&T(Array.from(O.current.querySelectorAll('[data-ui="TreeItem"]')))},A[25]=E):E=A[25],A[26]!==r?(_=[r],A[26]=r,A[27]=_):_=A[27],(0,l.useEffect)(E,_),A[28]!==r||A[29]!==V||A[30]!==W||A[31]!==a||A[32]!==I?(j=(0,i.jsx)(n.BJ,{as:"ul","data-ui":"Tree",...a,onFocus:V,onKeyDown:W,ref:O,role:"tree",space:I,children:r}),A[28]=r,A[29]=V,A[30]=W,A[31]=a,A[32]=I,A[33]=j):j=A[33],A[34]!==x||A[35]!==j?(R=(0,i.jsx)(eA.Provider,{value:x,children:j}),A[34]=x,A[35]=j,A[36]=R):R=A[36],R})).displayName="Memo(ForwardRef(Tree))";let eO=(0,l.memo)(function(e){let t,r,o,l;let a=(0,s.c)(9);a[0]!==e?({children:t,expanded:o,...r}
74=e,a[0]=e,a[1]=t,a[2]=r,a[3]=o):(t=a[1],r=a[2],o=a[3]);let u=void 0!==o&&o,c=eI(),d=!u;return a[4]!==t||a[5]!==r||a[6]!==d||a[7]!==c.space?(l=(0,i.jsx)(n.BJ,{as:"ul","data-ui":"TreeGroup",...r,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),a[4]=t,a[5]=r,a[6]=d,a[7]=c.space,a[8]=l):l=a[8],l}),ez=(0,l.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),r=t.selectable.default;return(0,a.AH)`
104    &[role='none'] {
105      & > [role='treeitem'] {
106        ${(0,n.g5)(t,r.enabled)}
107      }
108
109      &[data-selected] > [role='treeitem'] {
110        ${(0,n.g5)(t,r.pressed)}
111      }
112
113      @media (hover: hover) {
114        &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
115          ${(0,n.g5)(t,r.hovered)}
116        }
117
118        & > [role='treeitem']:focus {
119          ${(0,n.g5)(t,r.selected)}
120        }
121      }
122    }
123
124    &[role='treeitem'] {
125      & > [data-ui='TreeItem__box'] {
126        ${(0,n.g5)(t,r.enabled)}
127      }
128
129      &[data-selected] > [data-ui='TreeItem__box'] {
130        ${(0,n.g5)(t,r.pressed)}
131      }
132
133      @media (hover: hover) {
134        &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
135          ${(0,n.g5)(t,r.hovered)}
136        }
137
138        &:focus > [data-ui='TreeItem__box'] {
139          ${(0,n.g5)(t,r.selected)}
140        }
141      }
142    }
143  `})),eM=(0,a.I4)(n.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:r}=(0,u.JW)(e.theme);return(0,a.AH)`
144    padding-left: ${(0,n.D0)(r[2]*t)};
145
146    &[data-as='a'] {
147      text-decoration: none;
148    }
149  `}),eP=(0,a.I4)(n.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,l.memo)(function(e){let{children:t,expanded:r=!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,l.useRef)(null),x=(0,l.useRef)(null),k=eI(),{path:S,registerItem:C,setExpanded:E,setFocusedElement:_}=k,j=(0,l.useId)(),R=c||j,A=(0,l.useMemo)(()=>S.concat([R||""]),[R,S]),I=A.join("/"),O=k.state[I],z=k.focusedElement===w.current,M=O?.expanded===void 0?r:O?.expanded||!1,P=k.focusedElement&&k.focusedElement===w.current?0:-1,$=(0,l.useMemo)(()=>({...k,level:k.level+1,path:A}),[A,k]),T=(0,l.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(),E(I,!M),_(w.current))},[M,I,h,E,_]),N=(0,l.useCallback)(e=>{z&&"Enter"===e.key&&(x.current||w.current)?.click()},[z]);(0,l.useEffect)(()=>{if(w.current)return C(w.current,A.join("/"),M,p)},[M,A,C,p]);let L=(0,i.jsxs)(n.so,{padding:g,children:[(0,i.jsxs)(n.az,{marginRight:b,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(n.EY,{muted:f,size:a,weight:y,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(eP,{muted:f,size:a,weight:y,children:(0,i.jsx)(o.nVd,{style:{transform:M?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(n.az,{flex:1,children:(0,i.jsx)(n.EY,{muted:f,size:a,textOverflow:"ellipsis",weight:y,children:m})})]});return s?(0,i.jsxs)(ez,{"data-selected":p?"":void 0,"data-tree-id":R,"data-tree-key":I,"data-ui":"TreeItem",...v,onClick:T,ref:w,role:"none",children:[(0,i.jsx)(eM,{$level:k.level,"aria-expanded":M,as:d,"data-ui":"TreeItem__box",href:s,ref:x,role:"treeitem",tabIndex:P,children:L}),(0,i.jsx)(eA.Provider,{value:$,children:t&&(0,i.jsx)(eO,{hidden:!M,children:t})})]}):(0,i.jsxs)(ez,{"data-selected":p?"":void 0,"data-ui":"TreeItem","data-tree-id":R,"data-tree-key":I,...v,"aria-expanded":M,onClick:T,onKeyDown:N,ref:w,role:"treeitem",tabIndex:P,children:[(0,i.jsx)(eM,{$level:k.level,as:"div","data-ui":"TreeItem__box",children:L}),(0,i.jsx)(eA.Provider,{value:$,children:t&&(0,i.jsx)(eO,{expanded:M,children:t})})]})}).displayName="Memo(TreeItem)"},24285:(e,t,r)=>{"use strict";r.d(t,{B3:()=>et,JW:()=>b,me:()=>eh,sR:()=>ep});var n=r(97684);function i(e,t,r,n,i,o){return{enabled:e.selectable({base:t,dark:r,solid:n,muted:i,state:"enabled",tone:o}),hovered:e.selectable({base:t,dark:r,solid:n,muted:i,state:"hovered",tone:o}),pressed:e.selectable({base:t,dark:r,solid:n,muted:i,state:"pressed",tone:o}),selected:e.selectable({base:t,dark:r,solid:n,muted:i,state:"selected",tone:o}),disabled:e.selectable({base:t,dark:r,solid:n,muted:i,state:"disabled",tone:o})}}function o(e,t,r,n,i,o){return{default:e.button({base:t,dark:r,solid:n.default,muted:i.default,mode:o}),primary:e.button({base:t,dark:r,solid:n.primary,muted:i.primary,mode:o}),positive:e.button({base:t,dark:r,solid:n.positive,muted:i.positive,mode:o}),caution:e.button({base:t,dark:r,solid:n.caution,muted:i.caution,mode:o}),critical:e.button({base:t,dark:r,solid:n.critical,muted:i.critical,mode:o})}}let l={transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base
149:"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:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}};l.transparent.darkest,l.transparent.lightest,l.transparent.lightest,l.transparent.darkest,l.transparent.darker,l.transparent.lighter,l.transparent.base,l.transparent.base,l.primary.darkest,l.primary.lightest,l.primary.lightest,l.primary.darkest,l.primary.darker,l.primary.lighter,l.primary.base,l.primary.base,l.positive.darkest,l.positive.lightest,l.positive.lightest,l.positive.darkest,l.positive.darker,l.positive.lighter,l.positive.base,l.positive.base,l.caution.darkest,l.caution.lightest,l.caution.lightest,l.caution.darkest,l.caution.darker,l.caution.lighter,l.caution.base,l.caution.base,l.critical.darkest,l.critical.lightest,l.critical.lightest,l.critical.darkest,l.critical.darker,l.critical.lighter,l.critical.base,l.critical.base;let a={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"}}}},s={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}
149,{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},u=new WeakMap;function c(e){let t=u.get(e);if(t)return t;let r=f(e,e.card.enabled),n={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:r.accent,avatar:r.avatar,backdrop:e.base.shadow.ambient,badge:r.badge,bg:e.base.bg,border:e.base.border,button:{default:d(e,e.button.default),ghost:d(e,e.button.ghost),bleed:d(e,e.button.bleed)},code:r.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:r.muted.fg,input:{default:h(e.input.default),invalid:h(e.input.invalid)},kbd:r.kbd,link:r.link,muted:{...r.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:d(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 u.set(e,n),n}function d(e,t){return{default:{enabled:f(e,t.default.enabled),hovered:f(e,t.default.hovered),pressed:f(e,t.default.pressed),selected:f(e,t.default.selected),disabled:f(e,t.default.disabled)},neutral:{enabled:f(e,t.default.enabled),hovered:f(e,t.default.hovered),pressed:f(e,t.default.pressed),selected:f(e,t.default.selected),disabled:f(e,t.default.disabled)},primary:{enabled:f(e,t.primary.enabled),hovered:f(e,t.primary.hovered),pressed:f(e,t.primary.pressed),selected:f(e,t.primary.selected),disabled:f(e,t.primary.disabled)},suggest:{enabled:f(e,t.primary.enabled),hovered:f(e,t.primary.hovered),pressed:f(e,t.primary.pressed),selected:f(e,t.primary.selected),disabled:f(e,t.primary.disabled)},positive:{enabled:f(e,t.positive.enabled),hovered:f(e,t.positive.hovered),pressed:f(e,t.positive.pressed),selected:f(e,t.positive.selected),disabled:f(e,t.positive.disabled)},caution:{enabled:f(e,t.caution.enabled),hovered:f(e,t.caution.hovered),pressed:f(e,t.caution.pressed),selected:f(e,t.caution.selected),disabled:f(e,t.caution.disabled)},critical:{enabled:f(e,t.critical.enabled),hovered:f(e,t.critical.hovered),pressed:f(e,t.critical.pressed),selected:f(e,t.critical.selected),disabled:f(e,t.critical.disabled)}}}function f(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 h(e){return{enabled:g(e.enabled),disabled:g(e.disabled),readOnly:g(e.readOnly),hovered:g(e.hovered)}}function g(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let p=new WeakMap;function b(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=p.get(e);if(t)return t;let r={_version:2,_resolved:!0,avatar:{...a.avatar,...e.sanity.avatar},button:{...a.button,...e.sanity.button},card:a.card,color:c(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...a.input,...e.sanity.input,checkbox:{...a.input.checkbox,...e.sanity.input.checkbox},radio:{...a.input.radio,...e.sanity.input.radio},switch:{...a.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??a.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return p.set(e,r),r}function m(e){return 2===e._version}let y=new WeakMap,v=new WeakMap;function w(e){let t=v.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:o,font:l,input:a,media:s,radius:u,shadow:c,space:d,style:f}=e;return{_version:0,avatar:r,button:n,container:o,color:{light:{transparent:x(i.light.transparent),default:x(i.light.default),primary:x(i.light.primary),positive:x(i.light.positive),caution:x(i.light.caution),critical:x(i.light.critical)},dark:{transparent:x(i.dark.transparent),default:x(i.dark.default),primary:x(i.dark.primary),positive:x(i.dark.positive),caution:x(i.dark.caution),critical:x(i.dark.critical)}},focusRing:a.text.focusRing,fonts:l,input:a,media:s,radius:u,shadows:c,space:d,styles:f,v2:e}}function x(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focu
149sRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:k(e.input.default),invalid:k(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 k(e){return{enabled:S(e.enabled),disabled:S(e.disabled),readOnly:S(e.readOnly),hovered:S(e.hovered)}}function S(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let C=["multiply","screen"],E=["transparent","default","neutral","primary","suggest","positive","caution","critical"],_=["default","neutral","primary","suggest","positive","caution","critical"],j=["enabled","hovered","pressed","selected","disabled"],R=["default","ghost","bleed"],A=["default","invalid"],I=["enabled","hovered","readOnly","disabled"];function O(e){return n.V0.includes(e)}function z(e){return/^\d+%$/.test(e)}function M(e){let t=e.split("/"),r=t.shift()||"",[i,o]=r.split(" ");if(O(i)){let e=t.shift()||"";return z(o)?{type:"color",tint:i,mix:Number(o.slice(0,-1))/100}:P(e)?{type:"color",tint:i,opacity:Number(e)}:{type:"color",tint:i}}if("black"===i||"white"===i){let e=t.shift()||"";return z(o)?{type:"color",key:i,mix:Number(o.slice(0,-1))/100}:P(e)?{type:"color",key:i,opacity:Number(e)}:{type:"color",key:i}}if(n.Cv.includes(i)){let[e,n]=(r=t.shift()||"").split(" ");if(O(e)){let r=t.shift()||"";return z(n)?{type:"color",hue:i,tint:e,mix:Number(n.slice(0,-1))/100}:P(r)?{type:"color",hue:i,tint:e,opacity:Number(r)}:{type:"color",hue:i,tint:e}}return{type:"hue",value:i}}if(C.includes(i))return{type:"blendMode",value:i}}function P(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...n.Cv],[...E],[..._],[...j],[...A],[...I];let $=["500","500"];function T(e,t=$){var r;let n;let{hue:i,scheme:o}=e,l=M(t["light"===o?0:1]);if(!l||"color"!==l.type)throw Error(`Invalid color token: ${t[0]}`);return r={...l,hue:l.hue||i},n="",n="black"===r.key||"white"===r.key?r.key:`${r.hue}/${r.tint}`,void 0!==r.mix?`${n} ${100*r.mix}%`:(void 0!==r.opacity&&(n+=`/${r.opacity}`),n)}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"]}}
149,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
149data:["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 L(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function F(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(H,{})}function H(e,t){for(let r of Object.keys(t)){let n=e[r],i=t[r];L(n)&&L(i)?e[r]=F(n,i):e[r]=i}return e}function D(e,t){let{scheme:r}=e,n={};for(let e of E)n[e]=function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["multiply","screen"])["light"===r?0:1],_dark:"dark"===r,accent:{fg:T(o,i?.accent?.fg)},avatar:B({scheme:r},i),backdrop:T(o,i?.backdrop),badge:V(i?.badge,{scheme:r},t),bg:T(o,i?.bg),border:T(o,i?.border),button:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of R)i[e]=function(e,t){let{cardTone:r,mode:n,scheme:i}=e,o={};for(let e of _)o[e]=function(e,t){let{cardTone:r,mode:n,scheme:i,tone:o}=e,l={};for(let e of j)l[e]=function(e,t){let{cardTone:r,mode:n,tone:i,scheme:o,state:l}=e,a=t?.color?.base?.[r],s=t?.color?.button?.[n]?.[i]?.[l],u=s?._hue||a?._hue||"gray",c=s?._blend||["screen","multiply"],d={hue:u,scheme:o};return{_blend:c["light"===o?0:1],accent:{fg:T(d,s?.accent?.fg)},avatar:B({scheme:o},s),badge:V(s?.badge,{scheme:o},t),bg:T(d,s?.bg),border:T(d,s?.border),code:{bg:T(d,s?.code?.bg),fg:T(d,s?.code?.fg)},fg:T(d,s?.fg),icon:T(d,s?.icon),muted:{bg:T(d,s?.muted?.bg),fg:T(d,s?.muted?.fg)},kbd:{bg:T(d,s?.kbd?.bg),fg:T(d,s?.kbd?.fg),border:T(d,s?.kbd?.border)},link:{fg:T(d,s?.link?.fg)},skeleton:{from:T(d,s?.skeleton?.from),to:T(d,s?.skeleton?.to)}}}({cardTone:r,mode:n,tone:o,scheme:i,state:e},t);return l}({cardTone:r,mode:n,scheme:i,tone:e},t);return o}({cardTone:n,scheme:r,mode:e},t);return i}({scheme:r,tone:n},t),code:{bg:T(o,i?.code?.bg),fg:T(o,i?.code?.fg)},fg:T(o,i?.fg),focusRing:T(o,i?.focusRing),icon:T(o,i?.icon),input:function(e,t){let{scheme:r,tone:n}=e;return{default:U({mode:"default",scheme:r,tone:n},t),invalid:U({mode:"invalid",scheme:r,tone:n},t)}}({scheme:r,tone:n},t),kbd:{bg:T(o,i?.kbd?.bg),fg:T(o,i?.kbd?.fg),border:T(o,i?.kbd?.border)},link:{fg:T(o,i?.link?.fg)},muted:{bg:T(o,i?.muted?.bg),fg:T(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of _)i[e]=function(e,t){let{cardTone:r,scheme:n,tone:i}=e,o={};for(let e of j)o[e]=function(e,t){let{cardTone:r,scheme:n,state:i,tone:o}=e,l=t?.color?.base?.[r],a=t?.color?.selectable?.[o]?.[i],s=a?._hue||l?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:s,scheme:n};return{_blend:u["light"===n?0:1],accent:{fg:T(c,a?.accent?.fg)},avatar:B({scheme:n},a),badge:V(a?.badge,{scheme:n},t),bg:T(c,a?.bg),border:T(c,a?.border),code:{bg:T(c,a?.code?.bg),fg:T(c,a?.code?.fg)},fg:T(c,a?.fg),icon:T(c,a?.icon),muted:{bg:T(c,a?.muted?.bg),fg:T(c,a?.muted?.fg)},kbd:{bg:T(c,a?.kbd?.bg),fg:T(c,a?.kbd?.fg),border:T(c,a?.kbd?.border)},link:{fg:T(c,a?.link?.fg)},skeleton:{from:T(c,a?.skeleton?.from),to:T(c,a?.skeleton?.to)}}}({cardTone:r,tone:i,scheme:n,state:e},t);return o}({cardTone:n,scheme:r,tone:e},t);return i}({scheme:r,tone:n},t),shadow:function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],o={hue:i?._hue||"gray",scheme:r};return{outline:T(o,i?.shadow?.outline),umbra:T(o,i?.shadow?.umbra),penumbra:T(o,i?.shadow?.penumbra),ambient:T(o,i?.shadow?.ambient)}}
149({scheme:r,tone:n},t),skeleton:{from:T(o,i?.skeleton?.from),to:T(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:r}=e,n=t?.color?.syntax,i={hue:"gray",scheme:r};return{atrule:T(i,n?.atrule),attrName:T(i,n?.attrName),attrValue:T(i,n?.attrValue),attribute:T(i,n?.attribute),boolean:T(i,n?.boolean),builtin:T(i,n?.builtin),cdata:T(i,n?.cdata),char:T(i,n?.char),class:T(i,n?.class),className:T(i,n?.className),comment:T(i,n?.comment),constant:T(i,n?.constant),deleted:T(i,n?.deleted),doctype:T(i,n?.doctype),entity:T(i,n?.entity),function:T(i,n?.function),hexcode:T(i,n?.hexcode),id:T(i,n?.id),important:T(i,n?.important),inserted:T(i,n?.inserted),keyword:T(i,n?.keyword),number:T(i,n?.number),operator:T(i,n?.operator),prolog:T(i,n?.prolog),property:T(i,n?.property),pseudoClass:T(i,n?.pseudoClass),pseudoElement:T(i,n?.pseudoElement),punctuation:T(i,n?.punctuation),regex:T(i,n?.regex),selector:T(i,n?.selector),string:T(i,n?.string),symbol:T(i,n?.symbol),tag:T(i,n?.tag),unit:T(i,n?.unit),url:T(i,n?.url),variable:T(i,n?.variable)}}({scheme:r},t)}}({scheme:r,tone:e},t);return n}function B(e,t){let{scheme:r}=e;return{gray:W({color:"gray",scheme:r},t),blue:W({color:"blue",scheme:r},t),purple:W({color:"purple",scheme:r},t),magenta:W({color:"magenta",scheme:r},t),red:W({color:"red",scheme:r},t),orange:W({color:"orange",scheme:r},t),yellow:W({color:"yellow",scheme:r},t),green:W({color:"green",scheme:r},t),cyan:W({color:"cyan",scheme:r},t)}}function W(e,t){let{color:r,scheme:n}=e,i=t?.avatar?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["screen","multiply"])["light"===n?0:1],bg:T(o,i?.bg),fg:T(o,i?.fg)}}function V(e,t,r){let{scheme:n}=t,i={};for(let t of _)i[t]=function(e,t,r){let{scheme:n,tone:i}=t,o=e?.[i],l={hue:o?._hue||r?.color?.base?.[i]?._hue||"gray",scheme:n};return{bg:T(l,o?.bg),fg:T(l,o?.fg),dot:T(l,o?.dot),icon:T(l,o?.icon)}}(e,{scheme:n,tone:t},r);return i}function U(e,t){let{mode:r,scheme:n,tone:i}=e;return{enabled:G({mode:r,scheme:n,state:"enabled",cardTone:i},t),hovered:G({mode:r,scheme:n,state:"hovered",cardTone:i},t),readOnly:G({mode:r,scheme:n,state:"readOnly",cardTone:i},t),disabled:G({mode:r,scheme:n,state:"disabled",cardTone:i},t)}}function G(e,t){let{cardTone:r,mode:n,scheme:i,state:o}=e,l=t?.color?.base?.[r],a=t?.color?.input?.[n]?.[o],s=a?._hue||l?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:s,scheme:i};return{_blend:u["light"===i?0:1],bg:T(c,a?.bg),border:T(c,a?.border),fg:T(c,a?.fg),muted:{bg:T(c,a?.muted?.bg)},placeholder:T(c,a?.placeholder)}}let Y=n.yW;function q(e,t=0,r=1){return Math.min(r,Math.max(t,e))}function K(e,t,r,n,i){var o;return r*(1-(o=q((i-e)/(t-e))))+n*o}function Z(e){return Math.round(e)}function X(e){if(4===e.length){let t=e.slice(1,2),r=e.slice(2,3),n=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(r+r,16),b:parseInt(n+n,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function J(e){let t=Z(q(Math.round(e.r),0,255)),r=Z(q(Math.round(e.g),0,255)),n=Z(q(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${r},${n},${e.a})`:"#"+(0x1000000+(t<<16)+(r<<8)+n).toString(16).slice(1)}let Q=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function ee(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 X(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,r=e.l/100,n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e.h/60%2-1)),o=r-n/2,l=0,a=0,s=0;return 0<=e.h&&e.h<60?(l=n,a=i,s=0):60<=e.h&&e.h<120?(l=i,a=n,s=0):120<=e.h&&e.h<180?(l=0,a=n,s=i):180<=e.h&&e.h<240?(l=0,a=i,s=n):240<=e.h&&e.h<300?(l=i,a=0,s=n):300<=e.h&&e.h<360&&(l=n,a=0,s=i),{r:Math.round((l+o)*255),g:Math.round((a+o)*255),b:Math.round((s+o)*255)}}(function(e){let t=Q.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("))return function(e){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}(e);throw Error(`parseColor: unexpected color format: "${e}"`)}function et(e,t){let r=ee(e);return`rgba(${r.r},${r.g},${r.b},${t})`}let er=[0,255];function en(e,t){let{bg:r,blendMode:n,colorPalette:i}=t;if("white"===r)throw Error("Cannot blend with white background");let o=M(e);if(!o||"color"!==o.type)throw Error(`Invalid color token value: ${e}`);let l="";if("black"===o.key&&(l=ei(i.black)),"white"===o.key&&(l=ei(i.white)),o.hue&&o.tint&&(l=ei(i[o.hue][o.tint])),!l)throw Error(`Invalid color token value: ${e}`);let a=l,s={blendMode:n,bg:r,black:ei(i.black),white:ei(i.white)};try{if(l=function(e,t){var r,n,i,o,l,a;let{blendMode:s}=t,u=ee(e),c=ee(t.black),d=ee(t.white),f=t.bg?ee(t.bg):"multiply"===s?d:c,h={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},g={r:q(K(...h.r,...er,f.r),...er),g:q(K(...h.g,...er,f.g),...er),b:q(K(...h.b,...er,f.b),...er)},p={r:q(K(...h.r,...er,u.r),...er),g:q(K(...h.g,...er,u.g),...er),b:q(K(...h.b,...er,u.b),...er)},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*((r=g.r/255)+(n=p.r/255)-r*n),g:255*((i=g.g/255)+(o=p.g/255)-i*o),b:255*((l=g.b/255)+(a=p.b/255)-l*a)};return J({r:q(K(...er,...h.r,b.r),...h.r),g:q(K(...er,...h.g,b.g),...h.g),b:q(K(...er,...h.b,b.b),...h.b)})}(l,s),r&&void 0!==o.mix){var u,c,d,f,h,g,p;let e=X(r),t=X(l);l=J((u=o.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",l,s),e}
149return"#aN"===l&&(console.warn(`invalid color token value: ${e}`),l=a),void 0!==o.opacity&&(l=et(l,o.opacity)),l}function ei(e){return"string"==typeof e?e:e.hex}function eo(e,t){let r=Object.entries(t),[,n]=r.find(([e])=>"transparent"===e),[,i]=r.find(([e])=>"default"===e),o=el(n,{colorPalette:e}),l=el(i,{colorPalette:e}),a=l.bg;if("white"===a)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",o],["default",l],...r.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,r])=>[t,el(r,{bg:a,colorPalette:e})])])}function el(e,t){var r,n,i,o;let{colorPalette:l,bg:a}=t,s=e._blend||"multiply",u=en(e.bg,{colorPalette:l,bg:a,blendMode:s}),c={colorPalette:l,bg:u,blendMode:s},d=(r=e.button,n={baseBg:u,blendMode:s,colorPalette:l},{default:eu(r.default,n),ghost:eu(r.ghost,n),bleed:eu(r.bleed,n)}),f=function(e,t){let r={};for(let i of _){var n;r[i]={enabled:ec((n=e[i]).enabled,t),hovered:ec(n.hovered,t),pressed:ec(n.pressed,t),selected:ec(n.selected,t),disabled:ec(n.disabled,t)}}return r}(e.selectable,{colorPalette:l,baseBg:u,blendMode:s}),h={outline:en(e.shadow.outline,c),umbra:en(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...l,black:"#000000"}}),penumbra:en(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...l,black:"#000000"}}),ambient:en(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...l,black:"#000000"}})};return{_blend:s,_dark:e._dark,accent:{fg:en(e.accent.fg,c)},avatar:ea(e.avatar,{baseBg:u,colorPalette:l,blendMode:s}),backdrop:en(e.backdrop,c),badge:es(e.badge,{baseBg:u,colorPalette:l,blendMode:s}),bg:u,border:en(e.border,c),button:d,code:{bg:en(e.code.bg,c),fg:en(e.code.fg,c)},fg:en(e.fg,c),focusRing:en(e.focusRing,c),icon:en(e.icon,c),input:(i=e.input,o={baseBg:u,colorPalette:l,blendMode:s},{default:ed(i.default,o),invalid:ed(i.invalid,o)}),kbd:function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,o=en(e.bg,{bg:r,blendMode:n,colorPalette:i}),l={bg:o,blendMode:n,colorPalette:i};return{bg:o,fg:en(e.fg,l),border:en(e.border,l)}}(e.kbd,{baseBg:u,colorPalette:l,blendMode:s}),link:{fg:en(e.link.fg,c)},muted:{bg:en(e.muted.bg,c),fg:en(e.muted.fg,c)},shadow:h,skeleton:{from:en(e.skeleton.from,c),to:en(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:r,baseBg:n,blendMode:i}=t,o={colorPalette:r,bg:n,blendMode:i};return{atrule:en(e.atrule,o),attrName:en(e.attrName,o),attrValue:en(e.attrValue,o),attribute:en(e.attribute,o),boolean:en(e.boolean,o),builtin:en(e.builtin,o),cdata:en(e.cdata,o),char:en(e.char,o),class:en(e.class,o),className:en(e.className,o),comment:en(e.comment,o),constant:en(e.constant,o),deleted:en(e.deleted,o),doctype:en(e.doctype,o),entity:en(e.entity,o),function:en(e.function,o),hexcode:en(e.hexcode,o),id:en(e.id,o),important:en(e.important,o),inserted:en(e.inserted,o),keyword:en(e.keyword,o),number:en(e.number,o),operator:en(e.operator,o),prolog:en(e.prolog,o),property:en(e.property,o),pseudoClass:en(e.pseudoClass,o),pseudoElement:en(e.pseudoElement,o),punctuation:en(e.punctuation,o),regex:en(e.regex,o),selector:en(e.selector,o),string:en(e.string,o),symbol:en(e.symbol,o),tag:en(e.tag,o),unit:en(e.unit,o),url:en(e.url,o),variable:en(e.variable,o)}}(e.syntax,{baseBg:u,colorPalette:l,blendMode:s}),selectable:f}}function ea(e,t){let r={};for(let i of n.Cv)r[i]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,o=e._blend||"multiply",l=en(e.bg,{bg:r,blendMode:n,colorPalette:i});return{_blend:o,bg:l,fg:en(e.fg,{bg:l,blendMode:o,colorPalette:i})}}(e[i],t);return r}function es(e,t){let r={};for(let n of _)r[n]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,o=en(e.bg,{bg:r,blendMode:n,colorPalette:i}),l={bg:o,blendMode:n,colorPalette:i};return{bg:o,dot:en(e.dot,l),fg:en(e.fg,l),icon:en(e.icon,l)}}(e[n],t);return r}function eu(e,t){let r={};for(let i of _){var n;r[i]={enabled:ec((n=e[i]).enabled,t),hovered:ec(n.hovered,t),pressed:ec(n.pressed,t),selected:ec(n.selected,t),disabled:ec(n.disabled,t)}}return r}function ec(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,o=e._blend||"multiply",l=en(e.bg,{bg:r,blendMode:n,colorPalette:i}),a={bg:l,blendMode:o,colorPalette:i};return{_blend:o,accent:{fg:en(e.accent.fg,a)},avatar:ea(e.avatar,{baseBg:l,colorPalette:i,blendMode:o}),badge:es(e.badge,{baseBg:l,colorPalette:i,blendMode:o}),bg:l,border:en(e.border,a),code:{bg:en(e.code.bg,a),fg:en(e.code.fg,a)},fg:en(e.fg,a),icon:en(e.icon,a),link:{fg:en(e.link.fg,a)},muted:{bg:en(e.muted.bg,a),fg:en(e.muted.fg,a)},kbd:{bg:en(e.kbd.bg,a),fg:en(e.kbd.fg,a),border:en(e.kbd.border,a)},skeleton:{from:en(e.skeleton?.from,a),to:en(e.skeleton?.to,a)}}}function ed(e,t){return{enabled:ef(e.enabled,t),hovered:ef(e.hovered,t),readOnly:ef(e.readOnly,t),disabled:ef(e.disabled,t)}}function ef(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,o=e._blend||"multiply",l=en(e.bg,{colorPalette:i,bg:r,blendMode:n}),a={colorPalette:i,bg:l,blendMode:o};return{_blend:o,bg:l,border:en(e.border,a),fg:en(e.fg,a),muted:{bg:en(e.muted.bg,a)},placeholder:en(e.placeholder,a)}}function eh(e){let t=function(e){let t={color:function(e){let t=F(N,e);return{base:function(e){let t={};for(let r of E)t[r]=function(e,t){let r=F(e?.base?.["*"],e?.base?.[t]),i=r._hue||e?.base?.[t]?._hue||"gray";return{...r,_hue:i,avatar:n.Cv.reduce((e,t)=>
149({...e,[t]:F({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:_.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||i,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,r);return t}(t),button:function(e){let t={};for(let r of R)t[r]=function(e,t){let r={};for(let i of _)r[i]=function(e,t,r){let i={};for(let o of j)i[o]=function(e,t,r,i){let o=F(e?.button?.[r]?.["*"]?.["*"],e?.button?.[r]?.[t]?.["*"],e?.button?.[r]?.["*"]?.[i],e?.button?.[r]?.[t]?.[i]),l=o._hue||e?.base?.[t]?._hue;return{...o,_hue:l,avatar:n.Cv.reduce((e,t)=>({...e,[t]:F({_hue:t},o.avatar?.["*"],o.avatar?.[t])}),{}),badge:_.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||l,...o.badge?.["*"],...o.badge?.[r]}}),{})}}(e,r,t,o);return i}(e,t,i);return r}(e,r);return t}(t),input:function(e){let t={};for(let r of A)t[r]=function(e,t){let r={};for(let n of I)r[n]=function(e,t,r){let n=F(e?.input?.["*"]?.["*"],e?.input?.[t]?.["*"],e?.input?.["*"]?.[r],e?.input?.[t]?.[r]),i=n._hue||e?.input?.[t]?._hue;return{...n,_hue:i}}(e,t,n);return r}(e,r);return t}(t),selectable:function(e){let t={};for(let r of _)t[r]=function(e,t){let r={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of j)r[i]=function(e,t,r){let i=F(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[r],e?.selectable?.[t]?.[r]),o=i._hue||e?.base?.[t]?._hue;return{...i,_hue:o,avatar:n.Cv.reduce((e,t)=>({...e,[t]:F({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:_.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||o,...i.badge?.["*"],...i.badge?.[r]}}),{})}}(e,t,i);return r}(e,r);return t}(t),syntax:t.syntax}}(e?.color)};return{light:D({scheme:"light"},t),dark:D({scheme:"dark"},t)}}(e);return w({_version:2,avatar:e?.avatar??a.avatar,button:e?.button??a.button,card:e?.card??a.card,color:function(e,t){let r=t?.palette??Y;return{light:eo(r,e.light),dark:eo(r,e.dark)}}(t,e),container:e?.container??a.container,font:e?.font??s,input:e?.input??a.input,layer:e?.layer??a.layer,media:e?.media??a.media,radius:e?.radius??a.radius,shadow:e?.shadow??a.shadow,space:e?.space??a.space,style:e?.style??a.style})}let eg=new Map;function ep(e,t,r){var n;let i=function(e,t,r){let n=eg.get(t);if(!n)return;let i=n.get(r);if(i)return i.get(e)}(e,t,r);if(i)return i;let o=m(e)?w(e):e,l=m(e)?e:function(e){if(e.v2)return e.v2;let t=y.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:o,fonts:l,input:s,layer:u,media:d,radius:f,shadows:h,space:g,styles:p}=e,b={_version:2,avatar:{...a.avatar,...r},button:{...a.button,...n},card:a.card,color:{light:{transparent:c(i.light.transparent),default:c(i.light.default),neutral:c(i.light.transparent),primary:c(i.light.primary),suggest:c(i.light.primary),positive:c(i.light.positive),caution:c(i.light.caution),critical:c(i.light.critical)},dark:{transparent:c(i.dark.transparent),default:c(i.dark.default),neutral:c(i.dark.transparent),primary:c(i.dark.primary),suggest:c(i.dark.primary),positive:c(i.dark.positive),caution:c(i.dark.caution),critical:c(i.dark.critical)}},container:o,font:l,input:{...a.input,...s,checkbox:{...a.input.checkbox,...s.checkbox},radio:{...a.input.radio,...s.radio},switch:{...a.input.switch,...s.switch}},layer:u??a.layer,media:d,radius:f,shadow:h,space:g,style:p};return y.set(e,b),b}(e),s=o.color[t]||o.color.light,u=s[r]||s.default,d=o.layer||a.layer,f=l.color[t]||l.color.light,h="neutral"in(n=f[r]||f.default).badge?n:{...n,badge:{...n.badge,neutral:n.badge.default,suggest:n.badge.primary},button:{bleed:{...n.button.bleed,neutral:n.button.bleed.default,suggest:n.button.bleed.primary},default:{...n.button.default,neutral:n.button.default.default,suggest:n.button.default.primary},ghost:{...n.button.ghost,neutral:n.button.ghost.default,suggest:n.button.ghost.primary}},selectable:{...n.selectable,neutral:n.selectable.default,suggest:n.selectable.primary}},g=l.layer||a.layer,p={sanity:{...o,color:u,layer:d,v2:{...l,_resolved:!0,color:h,layer:g}}};return function(e,t,r,n){eg.has(t)||eg.set(t,new Map);let i=eg.get(t);i.has(r)||i.set(r,new WeakMap),i.get(r).set(e,n)}(e,t,r,p),p}},56918:(e,t,r)=>{"use strict";r.d(t,{X:()=>h,r:()=>d});let n=["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,r){this.model=e,this.root=t,this.patch=r,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=n[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),r=this.outputArray();this.model.arrayAppendValue(r,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),r=this.finalizeOutput(t);r=this.model.markChanged(r);let n=this.outputObject();this.model.objectSetField(n,e,r)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),r=this.finalizeOutput(t),n=this.outputObject();this.model.objectSetField(n,e.key,r)}processPushField(){let e=this.read(),t=this.inputEntry(),r=this.inputKey(t,e),n=this.model.objectGetField(t.value,r);this.inputStack.push({value:n,key:r})}processPushElement(){let e=this.read(),t=this.inputEntry(),r=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:r})}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(),r=this.inputKey(t,e),n=this.outputObject();this.model.objectDeleteField(n,r)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),r=this.outputArray(),n=this.inputEntry().value;this.model.arrayAppendSlice(r,n,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(),r=this.outputString(),n=this.inputEntry().value;this.model.stringAppendSlice(r,n,e,t)}}function o(e){return e>>16?4:e>>11?3:e>>7?2:1}function l(e){let t=0;for(let r=0;r<e.length;r++){let n=o(e.codePointAt(r));4==n&&r++,t+=n}return t}function a(e,t,r=0){let n=r,i=0;for(i=r;n<t;
149i++){let t=o(e.codePointAt(i));4===t&&i++,n+=t}return i}class s{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,r=this.meta){return{data:e,startMeta:t,endMeta:r}}asObject(e){if(!e.content){let t={};for(let[r,n]of Object.entries(e.data))t[r]=this.wrapWithMeta(n,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)),r=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:r}}return e.content}asString(e){if(!e.content){let t=e.data,r={value:t,utf8size:l(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([r])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let r of e)r.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 r=this.asObject(e);Object.assign(t.fields,r.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,r){e.fields[t]=r}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,r,n){let i=this.asArray(t),o=i.elements.length===r;if(e.elements.push(...i.elements.slice(r,n)),o)e.metas.push(...i.metas.slice(r,n));else for(let t=r;t<n;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let r of this.asString(t).parts)this.stringAppendPart(e,r)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,r){if(0===r)return t;for(let n=t;n<e.parts.length;n++){let t=e.parts[n];if(r===t.utf8size)return n+1;if(r<t.utf8size)return this.splitString(t,r),n+1;r-=t.utf8size}throw Error("splitting string out of bounds")}splitString(e,t){let r,n=t,i=e.utf8size-n;if(e.utf8size!==e.value.length){let r=0;for(t=0;r<n;t++){let n=o(e.value.codePointAt(t));4===n&&t++,r+=n}}r=e.value.slice(0,t);let l={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=r,e.utf8size=n,e.uses)){let r=t.parts.indexOf(e);if(-1===r)throw Error("bug: mismatch between string parts and use.");t.parts.splice(r+1,0,l)}}stringAppendSlice(e,t,r,n){let i=this.asString(t),o=this.resolveStringPart(i,0,r),l=this.resolveStringPart(i,o,n-r);for(let t=o;t<l;t++){let r=i.parts[t];this.stringAppendPart(e,r)}}}function u(e){if("u">typeof e.data)return e.data;let t,r=e.content;switch(r.type){case"string":t=r.parts.map(e=>e.value).join("");break;case"array":t=r.elements.map(e=>u(e));break;case"object":for(let[e,n]of(t={},Object.entries(r.fields)))t[e]=u(n)}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,r){return new i(new s(r),e,t).process()},getType:c,rebaseValue:function e(t,r){let n=c(t);if(n!==c(r))return r;let i=new s(t.endMeta),a=new s(r.endMeta);switch(n){case"object":{let n=i.asObject(t),o=a.asObject(r),l=0,s=Object.keys(n.fields).length,u=Object.keys(o.fields).length;for(let[t,r]of Object.entries(o.fields)){let i=n.fields[t];i&&(o.fields[t]=e(i,r),o.fields[t]===i&&l++)}return s===u&&s===l?t:r}case"array":{let n=i.asArray(t),o=a.asArray(r);if(n.elements.length!==o.elements.length)break;let l=0;for(let t=0;t<o.elements.length;t++)o.elements[t]=e(n.elements[t],o.elements[t]),o.elements[t]!==n.elements[t]&&l++;return 0===l?t:r}case"null":case"boolean":case"number":if(u(t)===u(r))return t;break;case"string":{let e=u(t),n=u(r);if(e===n)return t;let i=a.copyString(null),s=function(e,t){let r=Math.min(e.length,t.length),n=0;for(let i=0;i<r;){let r=e.codePointAt(i);if(r!==t.codePointAt(i))break;let l=o(r);n+=l,i+=4===l?2:1}return n}
149(e,n),c=function(e,t,r=0){let n=Math.min(e.length,t.length)-r,i=0;for(let r=0;r<n;){let n=e.codePointAt(e.length-1-r);if(n!==t.codePointAt(t.length-1-r))break;let l=o(n);i+=l,r+=4===l?2:1}return i}(e,n,s),d=l(n),f=l(e);0<s&&a.stringAppendSlice(i,t,0,s),s<d-c&&a.stringAppendSlice(i,r,s,d-c),f-c<f&&a.stringAppendSlice(i,t,f-c,f);let h=a.finalize(i);if(u(h)!==n)throw Error("incorrect string rebase");return h}}return r},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[r,n]of Object.entries(e))t.data[r]=n;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,r){e.data[t]=r}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,r,n){e.push(...t.slice(r,n))}stringAppendSlice(e,t,r,n){let i=a(t,r),o=a(t,n,i);e.data+=t.slice(i,o)}stringAppendValue(e,t){e.data+=t}}function h(e,t){return new i(new f,e,t).process()}},93067:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.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},l=(e,t,r,n,i,o,l,a)=>o<e&&l>t||o>e&&l<t?0:o<=e&&a<=r||l>=t&&a>=r?o-e-n:l>t&&a<r||o<e&&a>r?l-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var r,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(!n(e))throw TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,m=[],y=e;for(;n(y)&&p(y);){if((y=a(y))===b){m.push(y);break}null!=y&&y===document.body&&o(y)&&!o(document.documentElement)||null!=y&&o(y,g)&&m.push(y)}let v=null!=(i=null==(r=window.visualViewport)?void 0:r.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:E,right:_,bottom:j,left:R}=e.getBoundingClientRect(),{top:A,right:I,bottom:O,left:z}=(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),M="start"===d||"nearest"===d?E-A:"end"===d?j+O:E+S/2-A+O,P="center"===f?R+C/2-z+I:"end"===f?_+I:R-z,$=[];for(let e=0;e<m.length;e++){let t=m[e],{height:r,width:n,top:i,right:a,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===c&&E>=0&&R>=0&&j<=w&&_<=v&&(t===b&&!o(t)||E>=i&&j<=s&&R>=u&&_<=a))break;let h=getComputedStyle(t),g=parseInt(h.borderLeftWidth,10),p=parseInt(h.borderTopWidth,10),y=parseInt(h.borderRightWidth,10),A=parseInt(h.borderBottomWidth,10),I=0,O=0,z="offsetWidth"in t?t.offsetWidth-t.clientWidth-g-y:0,T="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-A:0,N="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(b===t)I="start"===d?M:"end"===d?M-w:"nearest"===d?l(k,k+w,w,p,A,k+M,k+M+S,S):M-w/2,O="start"===f?P:"center"===f?P-v/2:"end"===f?P-v:l(x,x+v,v,g,y,x+P,x+P+C,C),I=Math.max(0,I+k),O=Math.max(0,O+x);else{I="start"===d?M-i-p:"end"===d?M-s+A+T:"nearest"===d?l(i,s,r,p,A+T,M,M+S,S):M-(i+r/2)+T/2,O="start"===f?P-u-g:"center"===f?P-(u+n/2)+z/2:"end"===f?P-a+y+z:l(u,a,n,g,y+z,P,P+C,C);let{scrollLeft:e,scrollTop:o}=t;I=0===L?0:Math.max(0,Math.min(o+I/L,t.scrollHeight-r/L+T)),O=0===N?0:Math.max(0,Math.min(e+O/N,t.scrollWidth-n/N+z)),M+=o-I,P+=e-O}$.push({el:t,top:I,left:O})}return $},u=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function c(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 r=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||
1490,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:o,left:l}of s(e,u(t))){let e=o-r.top+r.bottom,t=l-r.left+r.right;i.scroll({top:e,left:t,behavior:n})}}}}]);

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.